Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Side by Side Diff: skia/ext/pixel_ref_utils.h

Issue 1279843004: cc: Plumb more details about pixel refs to tile manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SKIA_EXT_PIXEL_REF_UTILS_H_ 5 #ifndef SKIA_EXT_PIXEL_REF_UTILS_H_
6 #define SKIA_EXT_PIXEL_REF_UTILS_H_ 6 #define SKIA_EXT_PIXEL_REF_UTILS_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "SkPicture.h" 10 #include "SkPicture.h"
11 #include "SkRect.h" 11 #include "SkRect.h"
12 12
13 namespace skia { 13 namespace skia {
14 14
15 class SK_API PixelRefUtils { 15 class SK_API PixelRefUtils {
16 public: 16 public:
17 17
18 struct PositionPixelRef { 18 struct PositionPixelRef {
19 SkPixelRef* pixel_ref; 19 SkPixelRef* pixel_ref;
20 SkRect pixel_ref_rect; 20 SkRect pixel_ref_rect;
21 SkMatrix matrix; 21 SkMatrix matrix;
22 SkFilterQuality filter_quality; 22 SkFilterQuality filter_quality;
23 }; 23 };
24 24
25 static void GatherDiscardablePixelRefs( 25 static void GatherDiscardablePixelRefs(
26 SkPicture* picture, 26 SkPicture* picture,
27 std::vector<PositionPixelRef>* pixel_refs); 27 std::vector<PositionPixelRef>* pixel_refs);
28 }; 28 };
29 29
30 typedef std::vector<PixelRefUtils::PositionPixelRef> DiscardablePixelRefList; 30 using PositionPixelRef = PixelRefUtils::PositionPixelRef;
31 using DiscardablePixelRefList = std::vector<PositionPixelRef>;
31 32
32 } // namespace skia 33 } // namespace skia
33 34
34 #endif 35 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698