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

Unified Diff: examples/ui/jank/jank.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 | « apps/moterm/moterm_view.cc ('k') | examples/ui/noodles/frame.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/ui/jank/jank.cc
diff --git a/examples/ui/jank/jank.cc b/examples/ui/jank/jank.cc
index ae1a8c354dd7aba2551d5eff2c20851aeb853358..782525127658d2be2c8df88e523dcb5f6c416dd5 100644
--- a/examples/ui/jank/jank.cc
+++ b/examples/ui/jank/jank.cc
@@ -59,9 +59,9 @@ class JankView : public mojo::ui::GaneshView,
: GaneshView(app_connector.Pass(), view_owner_request.Pass(), "Jank"),
choreographer_(scene(), this),
input_handler_(GetViewServiceProvider(), this),
- typeface_(skia::AdoptRef(SkTypeface::CreateFromStream(
+ typeface_(SkTypeface::MakeFromStream(
new SkMemoryStream(font_data::kDejaVuSansMonoRegular.data,
- font_data::kDejaVuSansMonoRegular.size)))) {}
+ font_data::kDejaVuSansMonoRegular.size))) {}
~JankView() override {}
@@ -163,7 +163,7 @@ class JankView : public mojo::ui::GaneshView,
textPaint.setColor(SK_ColorBLACK);
textPaint.setTextSize(16);
textPaint.setTextEncoding(SkPaint::kUTF8_TextEncoding);
- textPaint.setTypeface(typeface_.get());
+ textPaint.setTypeface(typeface_);
textPaint.setAntiAlias(true);
SkRect textBounds;
textPaint.measureText(label, strlen(label), &textBounds);
@@ -195,7 +195,7 @@ class JankView : public mojo::ui::GaneshView,
mojo::ui::Choreographer choreographer_;
mojo::ui::InputHandler input_handler_;
- skia::RefPtr<SkTypeface> typeface_;
+ sk_sp<SkTypeface> typeface_;
int64_t stutter_end_time_ = 0u;
DISALLOW_COPY_AND_ASSIGN(JankView);
« no previous file with comments | « apps/moterm/moterm_view.cc ('k') | examples/ui/noodles/frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698