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

Unified Diff: cc/trees/layer_tree_host_pixeltest_tiles.cc

Issue 1869753003: Replace many skia::RefPtr with sk_sp<> in cc/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Florin's nits Created 4 years, 8 months 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/trees/layer_tree_host_pixeltest_masks.cc ('k') | chrome/browser/android/thumbnail/thumbnail.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 292c3edfc7edd2c5e4cf74754439c9e8acfceb07..a7833ddd0879db5707da7b53bd9ee7f80ef84cd1 100644
--- a/cc/trees/layer_tree_host_pixeltest_tiles.cc
+++ b/cc/trees/layer_tree_host_pixeltest_tiles.cc
@@ -116,8 +116,8 @@ class BlueYellowClient : public ContentLayerClient {
DisplayItemList::Create(PaintableRegion(), settings);
SkPictureRecorder recorder;
- skia::RefPtr<SkCanvas> canvas = skia::SharePtr(
- 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/thumbnail/thumbnail.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698