diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-04 00:37:11 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-04 00:37:11 +0000 |
commit | 62e832e0f78a47a64d2a9e19757d89f144e04993 (patch) | |
tree | 14139a538d279d4a84bcb425be4d154358cc3ab4 /skia/ext/vector_platform_device_emf_win.cc | |
parent | 4d170e8ba008550917e0a42b0e165f2e7551b7d0 (diff) | |
download | chromium_src-62e832e0f78a47a64d2a9e19757d89f144e04993.zip chromium_src-62e832e0f78a47a64d2a9e19757d89f144e04993.tar.gz chromium_src-62e832e0f78a47a64d2a9e19757d89f144e04993.tar.bz2 |
Add skia::RefPtr class to wrap ref counted classes from Skia.
This class behaves like scoped_refptr and wraps the raw SkRefCnt subclass
so that we don't have to call ref() and unref() directly on the pointers.
Tested by:
unit_tests:RefPtrTest.ReferenceCounting
unit_tests:RefPtrTest.Construct
unit_tests:RefPtrTest.DeclareAndAssign
unit_tests:RefPtrTest.Assign
unit_tests:RefPtrTest.Upcast
BUG=163454
NOTRY=true
Review URL: https://chromiumcodereview.appspot.com/11418217
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170851 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext/vector_platform_device_emf_win.cc')
-rw-r--r-- | skia/ext/vector_platform_device_emf_win.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/skia/ext/vector_platform_device_emf_win.cc b/skia/ext/vector_platform_device_emf_win.cc index 243e808..6d8fbee 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); |