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

Unified Diff: cc/picture.h

Issue 11412255: cc: Use skia::RefPtr in place of raw pointers and SkAutoTUnref. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ref() Created 8 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 | « cc/layer_tree_host_impl.cc ('k') | cc/picture.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/picture.h
diff --git a/cc/picture.h b/cc/picture.h
index bd8889ae3fdf21e73b1b8c23214d6b2d02565e72..d23d634aef1bbb33de526dd751023eb3775e6381 100644
--- a/cc/picture.h
+++ b/cc/picture.h
@@ -8,6 +8,7 @@
#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
#include "cc/cc_export.h"
+#include "skia/ext/refptr.h"
#include "third_party/skia/include/core/SkPicture.h"
#include "ui/gfx/rect.h"
@@ -39,12 +40,14 @@ private:
Picture();
// This constructor assumes SkPicture is already ref'd and transfers
// ownership to this picture.
- Picture(SkPicture*, gfx::Rect layer_rect, gfx::Rect opaque_rect);
+ Picture(const skia::RefPtr<SkPicture>&,
+ gfx::Rect layer_rect,
+ gfx::Rect opaque_rect);
~Picture();
gfx::Rect layer_rect_;
gfx::Rect opaque_rect_;
- SkAutoTUnref<SkPicture> picture_;
+ skia::RefPtr<SkPicture> picture_;
friend class base::RefCountedThreadSafe<Picture>;
DISALLOW_COPY_AND_ASSIGN(Picture);
« no previous file with comments | « cc/layer_tree_host_impl.cc ('k') | cc/picture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698