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

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: 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_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..ae47905caf37bc5b4258b43a810806c4f89e4f11 100644
--- a/skia/ext/vector_platform_device_emf_win.cc
+++ b/skia/ext/vector_platform_device_emf_win.cc
@@ -9,6 +9,7 @@
#include "base/logging.h"
#include "base/string16.h"
#include "skia/ext/bitmap_platform_device.h"
+#include "skia/ext/refptr.h"
#include "skia/ext/skia_utils_win.h"
#include "third_party/skia/include/core/SkFontHost.h"
#include "third_party/skia/include/core/SkPathEffect.h"
@@ -190,7 +191,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 +225,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);

Powered by Google App Engine
This is Rietveld 408576698