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

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

Issue 111143005: cc: Gather and lock/unlock SkDiscardablePixelRefs instead of skia::LazyPixelRefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2013 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.
4
5 #ifndef SKIA_EXT_LAZY_PIXEL_REF_UTILS_H_
6 #define SKIA_EXT_LAZY_PIXEL_REF_UTILS_H_
7
8 #include <vector>
9
10 #include "SkPicture.h"
11 #include "SkRect.h"
12
13 namespace skia {
14
15 class LazyPixelRef;
16 class SK_API LazyPixelRefUtils {
17 public:
18
19 struct PositionLazyPixelRef {
20 skia::LazyPixelRef* lazy_pixel_ref;
21 SkRect pixel_ref_rect;
22 };
23
24 static void GatherPixelRefs(
25 SkPicture* picture,
26 std::vector<PositionLazyPixelRef>* lazy_pixel_refs);
27 };
28
29 typedef std::vector<LazyPixelRefUtils::PositionLazyPixelRef> LazyPixelRefList;
30
31 } // namespace skia
32
33 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698