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

Unified Diff: cc/resources/picture.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/resources/picture.cc » ('j') | cc/resources/raster_worker_pool.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture.h
diff --git a/cc/resources/picture.h b/cc/resources/picture.h
index 085fb6a453167e9c967f3260d119b730670e2d20..8d71d6fb5c9c72f6a10dfc53c946d1aac0ec0eaf 100644
--- a/cc/resources/picture.h
+++ b/cc/resources/picture.h
@@ -18,7 +18,6 @@
#include "base/memory/scoped_ptr.h"
#include "cc/base/cc_export.h"
#include "cc/base/region.h"
-#include "skia/ext/lazy_pixel_ref.h"
#include "skia/ext/refptr.h"
#include "third_party/skia/include/core/SkPixelRef.h"
#include "third_party/skia/include/core/SkTileGridPicture.h"
@@ -40,7 +39,7 @@ class CC_EXPORT Picture
: public base::RefCountedThreadSafe<Picture> {
public:
typedef std::pair<int, int> PixelRefMapKey;
- typedef std::vector<skia::LazyPixelRef*> PixelRefs;
+ typedef std::vector<SkPixelRef*> PixelRefs;
typedef base::hash_map<PixelRefMapKey, PixelRefs> PixelRefMap;
static scoped_refptr<Picture> Create(gfx::Rect layer_rect);
@@ -87,12 +86,12 @@ class CC_EXPORT Picture
PixelRefIterator(gfx::Rect layer_rect, const Picture* picture);
~PixelRefIterator();
- skia::LazyPixelRef* operator->() const {
+ SkPixelRef* operator->() const {
DCHECK_LT(current_index_, current_pixel_refs_->size());
return (*current_pixel_refs_)[current_index_];
}
- skia::LazyPixelRef* operator*() const {
+ SkPixelRef* operator*() const {
DCHECK_LT(current_index_, current_pixel_refs_->size());
return (*current_pixel_refs_)[current_index_];
}
« no previous file with comments | « no previous file | cc/resources/picture.cc » ('j') | cc/resources/raster_worker_pool.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698