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

Unified Diff: skia/ext/vector_platform_device_skia.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/vector_platform_device_skia.cc
diff --git a/skia/ext/vector_platform_device_skia.cc b/skia/ext/vector_platform_device_skia.cc
index 14376222b49c4dd397acf76b85e052db94e613f6..fba1baae3adceb5a1a89838aeec1c2a287733bff 100644
--- a/skia/ext/vector_platform_device_skia.cc
+++ b/skia/ext/vector_platform_device_skia.cc
@@ -43,7 +43,6 @@ PlatformSurface VectorPlatformDeviceSkia::BeginPlatformPaint() {
DCHECK(raster_surface_ == NULL);
raster_surface_ = BitmapPlatformDevice::CreateAndClear(width(), height(),
false);
- raster_surface_->unref(); // SkRefPtr and create both took a reference.
return raster_surface_->BeginPlatformPaint();
}

Powered by Google App Engine
This is Rietveld 408576698