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

Unified Diff: cc/test/solid_color_content_layer_client.cc

Issue 2509983004: Revert "Change call-sites now that SkCanvas is not ref-counted" (Closed)
Patch Set: Created 4 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
« no previous file with comments | « cc/test/fake_content_layer_client.cc ('k') | cc/trees/layer_tree_host_pixeltest_masks.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/solid_color_content_layer_client.cc
diff --git a/cc/test/solid_color_content_layer_client.cc b/cc/test/solid_color_content_layer_client.cc
index 58e4ad271cd9ff4f28a325bd41d4b4d0b45bea1c..b7138f2729b6521ef7110e00e0a2663fc34c0151 100644
--- a/cc/test/solid_color_content_layer_client.cc
+++ b/cc/test/solid_color_content_layer_client.cc
@@ -26,7 +26,8 @@ SolidColorContentLayerClient::PaintContentsToDisplayList(
PaintingControlSetting painting_control) {
SkPictureRecorder recorder;
gfx::Rect clip(PaintableRegion());
- SkCanvas* canvas = recorder.beginRecording(gfx::RectToSkRect(clip));
+ sk_sp<SkCanvas> canvas =
+ sk_ref_sp(recorder.beginRecording(gfx::RectToSkRect(clip)));
canvas->clear(SK_ColorTRANSPARENT);
« no previous file with comments | « cc/test/fake_content_layer_client.cc ('k') | cc/trees/layer_tree_host_pixeltest_masks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698