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

Unified Diff: cc/output/gl_renderer.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/picture_image_layer_unittest.cc ('k') | cc/output/renderer_pixeltest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/gl_renderer.cc
diff --git a/cc/output/gl_renderer.cc b/cc/output/gl_renderer.cc
index feef7e2870f16493562eb8a91d5b71e4e5934561..f618cfd6ae9ed5621ab55f63f7f98d879cc9723b 100644
--- a/cc/output/gl_renderer.cc
+++ b/cc/output/gl_renderer.cc
@@ -639,8 +639,8 @@ static skia::RefPtr<SkImage> ApplyImageFilter(
// Create surface to draw into.
SkImageInfo dst_info =
SkImageInfo::MakeN32Premul(dst_rect.width(), dst_rect.height());
- skia::RefPtr<SkSurface> surface = skia::AdoptRef(SkSurface::NewRenderTarget(
- use_gr_context->context(), SkBudgeted::kYes, dst_info, 0));
+ sk_sp<SkSurface> surface = SkSurface::MakeRenderTarget(
+ use_gr_context->context(), SkBudgeted::kYes, dst_info);
if (!surface) {
TRACE_EVENT_INSTANT0("cc", "ApplyImageFilter surface allocation failed",
TRACE_EVENT_SCOPE_THREAD);
« no previous file with comments | « cc/layers/picture_image_layer_unittest.cc ('k') | cc/output/renderer_pixeltest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698