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

Unified Diff: skia/ext/vector_canvas.h

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: Drop TNoRef 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.h
diff --git a/skia/ext/vector_canvas.h b/skia/ext/vector_canvas.h
index e7a67fce9d2153f7ed9f0112a930cd1de1fb315f..34a218fadec1be9e18808daabbd03796f505fcbb 100644
--- a/skia/ext/vector_canvas.h
+++ b/skia/ext/vector_canvas.h
@@ -7,6 +7,7 @@
#include "base/compiler_specific.h"
#include "skia/ext/platform_canvas.h"
+#include "skia/ext/refptr.h"
class SkDevice;
@@ -19,7 +20,7 @@ namespace skia {
class SK_API VectorCanvas : public PlatformCanvas {
public:
// Ownership of |device| is transfered to VectorCanvas.
- explicit VectorCanvas(SkDevice* device);
+ explicit VectorCanvas(const skia::RefPtr<SkDevice>& device);
virtual ~VectorCanvas();
virtual SkBounder* setBounder(SkBounder* bounder) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698