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

Unified Diff: cc/heads_up_display_layer_impl.cc

Issue 11412255: cc: Use skia::RefPtr in place of raw pointers and SkAutoTUnref. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add webkit 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: cc/heads_up_display_layer_impl.cc
diff --git a/cc/heads_up_display_layer_impl.cc b/cc/heads_up_display_layer_impl.cc
index 4faf68246e7f44d88531ae0cb8c19aa6f1bad2c6..ebe25b8e38a638f6abb3af9b72b0c5605c8ee705 100644
--- a/cc/heads_up_display_layer_impl.cc
+++ b/cc/heads_up_display_layer_impl.cc
@@ -39,7 +39,9 @@ static inline SkPaint createPaint()
swizzleMatrix.fMat[3 + 5 * 3] = 1;
SkPaint paint;
- paint.setColorFilter(new SkColorMatrixFilter(swizzleMatrix))->unref();
+ skia::RefPtr<SkColorMatrixFilter> filter =
+ skia::AdoptRef(new SkColorMatrixFilter(swizzleMatrix));
+ paint.setColorFilter(filter.get());
return paint;
}
« no previous file with comments | « cc/gl_renderer.cc ('k') | cc/layer.h » ('j') | webkit/compositor_bindings/web_layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698