diff options
Diffstat (limited to 'skia')
-rw-r--r-- | skia/ext/vector_platform_device_linux.cc | 4 | ||||
-rw-r--r-- | skia/ext/vector_platform_device_win.cc | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/skia/ext/vector_platform_device_linux.cc b/skia/ext/vector_platform_device_linux.cc index e3438e3..cbe465d 100644 --- a/skia/ext/vector_platform_device_linux.cc +++ b/skia/ext/vector_platform_device_linux.cc @@ -153,7 +153,7 @@ void VectorPlatformDevice::drawPath(const SkDraw& draw, // Removes the path effect from the temporary SkPaint object. SkPaint paint_no_effet(paint); - paint_no_effet.setPathEffect(NULL)->safeUnref(); + SkSafeUnref(paint_no_effet.setPathEffect(NULL)); // Draw the calculated path. drawPath(draw, path_modified, paint_no_effet); @@ -369,7 +369,7 @@ void VectorPlatformDevice::drawRect(const SkDraw& draw, // Removes the path effect from the temporary SkPaint object. SkPaint paint_no_effet(paint); - paint_no_effet.setPathEffect(NULL)->safeUnref(); + SkSafeUnref(paint_no_effet.setPathEffect(NULL)); // Draw the calculated path. drawPath(draw, path_modified, paint_no_effet); diff --git a/skia/ext/vector_platform_device_win.cc b/skia/ext/vector_platform_device_win.cc index ce096af..49dbc13 100644 --- a/skia/ext/vector_platform_device_win.cc +++ b/skia/ext/vector_platform_device_win.cc @@ -140,7 +140,7 @@ void VectorPlatformDevice::drawRect(const SkDraw& draw, // Removes the path effect from the temporary SkPaint object. SkPaint paint_no_effet(paint); - paint_no_effet.setPathEffect(NULL)->safeUnref(); + SkSafeUnref(paint_no_effet.setPathEffect(NULL)); // Draw the calculated path. drawPath(draw, path_modified, paint_no_effet); @@ -170,7 +170,7 @@ void VectorPlatformDevice::drawPath(const SkDraw& draw, // Removes the path effect from the temporary SkPaint object. SkPaint paint_no_effet(paint); - paint_no_effet.setPathEffect(NULL)->safeUnref(); + SkSafeUnref(paint_no_effet.setPathEffect(NULL)); // Draw the calculated path. drawPath(draw, path_modified, paint_no_effet); |