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

Unified Diff: skia/ext/bitmap_platform_device_linux.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: 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/bitmap_platform_device_linux.cc
diff --git a/skia/ext/bitmap_platform_device_linux.cc b/skia/ext/bitmap_platform_device_linux.cc
index 23a76830e4661409faaa3a18e84801e22ca68846..896f505aa1317c0e2a8c749d66fd385828854a46 100644
--- a/skia/ext/bitmap_platform_device_linux.cc
+++ b/skia/ext/bitmap_platform_device_linux.cc
@@ -180,7 +180,8 @@ void BitmapPlatformDevice::setMatrixClip(const SkMatrix& transform,
SkCanvas* CreatePlatformCanvas(int width, int height, bool is_opaque,
uint8_t* data, OnFailureType failureType) {
- SkDevice* dev = BitmapPlatformDevice::Create(width, height, is_opaque, data);
+ skia::RefPtr<SkDevice> dev =
+ BitmapPlatformDevice::Create(width, height, is_opaque, data);
return CreateCanvas(dev, failureType);
}

Powered by Google App Engine
This is Rietveld 408576698