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

Unified Diff: skia/ext/vector_platform_device_emf_win.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: nit+rebase Created 8 years 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
« no previous file with comments | « skia/ext/vector_canvas_unittest.cc ('k') | skia/ext/vector_platform_device_skia.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/vector_platform_device_emf_win.cc
diff --git a/skia/ext/vector_platform_device_emf_win.cc b/skia/ext/vector_platform_device_emf_win.cc
index 243e80876d61738a6c80286eb5212ca8f41a19a5..6d8fbee3b083b9ca733f16ca90caea18cfe9e5ac 100644
--- a/skia/ext/vector_platform_device_emf_win.cc
+++ b/skia/ext/vector_platform_device_emf_win.cc
@@ -190,7 +190,7 @@ void VectorPlatformDeviceEmf::drawRect(const SkDraw& draw,
// Removes the path effect from the temporary SkPaint object.
SkPaint paint_no_effet(paint);
- SkSafeUnref(paint_no_effet.setPathEffect(NULL));
+ paint_no_effet.setPathEffect(NULL);
// Draw the calculated path.
drawPath(draw, path_modified, paint_no_effet);
@@ -224,7 +224,7 @@ void VectorPlatformDeviceEmf::drawPath(const SkDraw& draw,
// Removes the path effect from the temporary SkPaint object.
SkPaint paint_no_effet(paint);
- SkSafeUnref(paint_no_effet.setPathEffect(NULL));
+ paint_no_effet.setPathEffect(NULL);
// Draw the calculated path.
drawPath(draw, path_modified, paint_no_effet);
« no previous file with comments | « skia/ext/vector_canvas_unittest.cc ('k') | skia/ext/vector_platform_device_skia.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698