Roll PDFium 640c395..4ea0e6b
[chromium-blink-merge.git] / skia / ext / discardable_image_utils.h
blobf56ae0182d559c599b0c9dc23a004a890e1e2f1b
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_DISCARDABLE_IMAGE_UTILS_H_
6 #define SKIA_EXT_DISCARDABLE_IMAGE_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