Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / skia / ext / discardable_image_utils.h
blobb2d7c9306851a292dd5f33eeac7f1efaf14b7e87
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef SKIA_EXT_PIXEL_REF_UTILS_H_
6 #define SKIA_EXT_PIXEL_REF_UTILS_H_
8 #include <vector>
10 #include "SkPicture.h"
11 #include "SkRect.h"
13 namespace skia {
15 class SK_API DiscardableImageUtils {
16 public:
17 struct PositionImage {
18 const SkImage* image;
19 SkRect image_rect;
20 SkMatrix matrix;
21 SkFilterQuality filter_quality;
24 static void GatherDiscardableImages(SkPicture* picture,
25 std::vector<PositionImage>* images);
28 using PositionImage = DiscardableImageUtils::PositionImage;
29 using DiscardableImageList = std::vector<PositionImage>;
31 } // namespace skia
33 #endif