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

Unified Diff: cc/layers/heads_up_display_layer.cc

Issue 1939143002: Remove all uses of skia::RefPtr and stale includes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix bad rebase 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 | « cc/layers/heads_up_display_layer.h ('k') | cc/layers/heads_up_display_layer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/heads_up_display_layer.cc
diff --git a/cc/layers/heads_up_display_layer.cc b/cc/layers/heads_up_display_layer.cc
index d06d1387bae9ab95f9c1b562259793ee01c679ac..26344ff5919c65020f28e674a93982770d974f72 100644
--- a/cc/layers/heads_up_display_layer.cc
+++ b/cc/layers/heads_up_display_layer.cc
@@ -18,10 +18,10 @@ scoped_refptr<HeadsUpDisplayLayer> HeadsUpDisplayLayer::Create() {
}
HeadsUpDisplayLayer::HeadsUpDisplayLayer()
- : typeface_(skia::AdoptRef(
- SkTypeface::CreateFromName("times new roman", SkTypeface::kNormal))) {
+ : typeface_(
+ SkTypeface::CreateFromName("times new roman", SkTypeface::kNormal)) {
if (!typeface_) {
- typeface_ = skia::AdoptRef(
+ typeface_ = sk_sp<SkTypeface>(
SkTypeface::CreateFromName("monospace", SkTypeface::kBold));
}
DCHECK(typeface_.get());
« no previous file with comments | « cc/layers/heads_up_display_layer.h ('k') | cc/layers/heads_up_display_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698