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

Unified Diff: cc/trees/layer_tree_host_pixeltest_tiles.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
Index: cc/trees/layer_tree_host_pixeltest_tiles.cc
diff --git a/cc/trees/layer_tree_host_pixeltest_tiles.cc b/cc/trees/layer_tree_host_pixeltest_tiles.cc
index b569208f018825fa9a39eac55878ddd0ea154437..9a649dcece9c5b4cac4512193d45d33d9b84db9f 100644
--- a/cc/trees/layer_tree_host_pixeltest_tiles.cc
+++ b/cc/trees/layer_tree_host_pixeltest_tiles.cc
@@ -115,8 +115,8 @@ class BlueYellowClient : public ContentLayerClient {
DisplayItemList::Create(settings);
SkPictureRecorder recorder;
- SkCanvas* canvas =
- recorder.beginRecording(gfx::RectToSkRect(gfx::Rect(size_)));
+ sk_sp<SkCanvas> canvas =
+ sk_ref_sp(recorder.beginRecording(gfx::RectToSkRect(gfx::Rect(size_))));
gfx::Rect top(0, 0, size_.width(), size_.height() / 2);
gfx::Rect bottom(0, size_.height() / 2, size_.width(), size_.height() / 2);
« no previous file with comments | « cc/trees/layer_tree_host_pixeltest_masks.cc ('k') | chrome/browser/android/compositor/layer/crushed_sprite_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698