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

Unified Diff: cc/layers/heads_up_display_layer_impl.cc

Issue 1855273002: Update new Surface callsites (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: software_output_device was indirectly including skia::refptr, switch to sk_sp<> 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/layers/heads_up_display_layer_impl.h ('k') | cc/layers/picture_image_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/heads_up_display_layer_impl.cc
diff --git a/cc/layers/heads_up_display_layer_impl.cc b/cc/layers/heads_up_display_layer_impl.cc
index c2f8a1b543ca3dc4e163fad5777e2c7c25c042ae..610be60ebb0565bb29d0f7f548e767e5be55b891 100644
--- a/cc/layers/heads_up_display_layer_impl.cc
+++ b/cc/layers/heads_up_display_layer_impl.cc
@@ -179,8 +179,8 @@ void HeadsUpDisplayLayerImpl::UpdateHudTexture(
!hud_surface_) {
TRACE_EVENT0("cc", "ResizeHudCanvas");
- hud_surface_ = skia::AdoptRef(SkSurface::NewRasterN32Premul(
- internal_content_bounds_.width(), internal_content_bounds_.height()));
+ hud_surface_ = SkSurface::MakeRasterN32Premul(
+ internal_content_bounds_.width(), internal_content_bounds_.height());
}
UpdateHudContents();
@@ -200,7 +200,7 @@ void HeadsUpDisplayLayerImpl::UpdateHudTexture(
TRACE_EVENT0("cc", "UploadHudTexture");
SkImageInfo info;
size_t row_bytes = 0;
- const void* pixels = hud_surface_->getCanvas()->peekPixels(&info, &row_bytes);
+ const void* pixels = hud_surface_->peekPixels(&info, &row_bytes);
DCHECK(pixels);
DCHECK(info.colorType() == kN32_SkColorType);
resource_provider->CopyToResource(resources_.back()->id(),
« no previous file with comments | « cc/layers/heads_up_display_layer_impl.h ('k') | cc/layers/picture_image_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698