Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / skia / ext / pixel_ref_utils.h
blob3f140f03633b1a0b87813f470af8c0ca828688e7
1 // Copyright 2014 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 PixelRefUtils {
16 public:
18 struct PositionPixelRef {
19 SkPixelRef* pixel_ref;
20 SkRect pixel_ref_rect;
21 SkMatrix matrix;
22 SkFilterQuality filter_quality;
25 static void GatherDiscardablePixelRefs(
26 SkPicture* picture,
27 std::vector<PositionPixelRef>* pixel_refs);
30 using PositionPixelRef = PixelRefUtils::PositionPixelRef;
31 using DiscardablePixelRefList = std::vector<PositionPixelRef>;
33 } // namespace skia
35 #endif