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

Unified Diff: skia/ext/vector_canvas.cc

Issue 11418217: Add skia::RefPtr class to wrap ref counted classes from Skia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Just skia/ Created 8 years, 1 month 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
Index: skia/ext/vector_canvas.cc
diff --git a/skia/ext/vector_canvas.cc b/skia/ext/vector_canvas.cc
index 96c23e92c372fc805d21423cefcacde2fe759986..446b0a5d94418dcd8feb45ada2aab5bca415f204 100644
--- a/skia/ext/vector_canvas.cc
+++ b/skia/ext/vector_canvas.cc
@@ -8,7 +8,7 @@
namespace skia {
VectorCanvas::VectorCanvas(SkDevice* device) {
- setDevice(device)->unref(); // Created with refcount 1, and setDevice refs.
Stephen White 2012/11/29 23:00:33 Not new to this patch, but IIRC setDevice() (the s
danakj 2012/11/29 23:15:52 Done.
+ setDevice(device);
}
VectorCanvas::~VectorCanvas() {

Powered by Google App Engine
This is Rietveld 408576698