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

Unified Diff: examples/ui/noodles/noodles_view.cc

Issue 2011713003: Roll skia to 8cc209111876b7c78b5ec577c9221d8ed5e21024 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 7 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 | « examples/ui/noodles/noodles_view.h ('k') | examples/ui/pdf_viewer/pdf_viewer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/ui/noodles/noodles_view.cc
diff --git a/examples/ui/noodles/noodles_view.cc b/examples/ui/noodles/noodles_view.cc
index eec304549470f6ce43efa1ddfecdc0f52680e995..07e8121e48bd3cf86ba8acdc8b48f495843119db 100644
--- a/examples/ui/noodles/noodles_view.cc
+++ b/examples/ui/noodles/noodles_view.cc
@@ -109,7 +109,7 @@ void NoodlesView::OnDraw(const mojo::gfx::composition::FrameInfo& frame_info,
}
}
-skia::RefPtr<SkPicture> NoodlesView::CreatePicture() {
+sk_sp<SkPicture> NoodlesView::CreatePicture() {
constexpr int count = 4;
constexpr int padding = 1;
@@ -140,7 +140,7 @@ skia::RefPtr<SkPicture> NoodlesView::CreatePicture() {
canvas->drawPath(path, paint);
}
- return skia::AdoptRef(recorder.endRecordingAsPicture());
+ return recorder.finishRecordingAsPicture();
}
NoodlesView::FrameQueue::FrameQueue() {}
« no previous file with comments | « examples/ui/noodles/noodles_view.h ('k') | examples/ui/pdf_viewer/pdf_viewer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698