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

Unified Diff: skia/ext/bitmap_platform_device_android.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_android.cc
diff --git a/skia/ext/bitmap_platform_device_android.cc b/skia/ext/bitmap_platform_device_android.cc
index c12abd6d74da1d3bd1c0130e0eb7d49978d376c1..45f89be4c822c30d07b2da1c0dcf36f0565e53fc 100644
--- a/skia/ext/bitmap_platform_device_android.cc
+++ b/skia/ext/bitmap_platform_device_android.cc
@@ -76,7 +76,8 @@ void BitmapPlatformDevice::DrawToNativeContext(
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