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

Unified Diff: cc/trees/layer_tree_host_pixeltest_tiles.cc

Issue 2476113002: Change call-sites now that SkCanvas is not ref-counted (Closed)
Patch Set: try fixing win again 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 9a649dcece9c5b4cac4512193d45d33d9b84db9f..b569208f018825fa9a39eac55878ddd0ea154437 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;
- sk_sp<SkCanvas> canvas =
- sk_ref_sp(recorder.beginRecording(gfx::RectToSkRect(gfx::Rect(size_))));
+ SkCanvas* canvas =
+ 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);

Powered by Google App Engine
This is Rietveld 408576698