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

Unified Diff: content/browser/gpu/gpu_ipc_browsertests.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 | « content/browser/compositor/software_output_device_win.cc ('k') | skia/config/SkUserConfig.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_ipc_browsertests.cc
diff --git a/content/browser/gpu/gpu_ipc_browsertests.cc b/content/browser/gpu/gpu_ipc_browsertests.cc
index 1d77399e2bbde408c66574bdf3aadb20140abfe5..c9ece28b4c47e59aadf79f517116ccaa7a09aa02 100644
--- a/content/browser/gpu/gpu_ipc_browsertests.cc
+++ b/content/browser/gpu/gpu_ipc_browsertests.cc
@@ -237,16 +237,16 @@ IN_PROC_BROWSER_TEST_F(BrowserGpuChannelHostFactoryTest,
skia::RefPtr<GrContext> gr_context = skia::SharePtr(provider->GrContext());
SkImageInfo info = SkImageInfo::MakeN32Premul(100, 100);
- skia::RefPtr<SkSurface> surface = skia::AdoptRef(SkSurface::NewRenderTarget(
- gr_context.get(), SkBudgeted::kNo, info));
+ sk_sp<SkSurface> surface = SkSurface::MakeRenderTarget(
+ gr_context.get(), SkBudgeted::kNo, info);
EXPECT_TRUE(surface);
// Destroy the GL context after we made a surface.
provider = nullptr;
// New surfaces will fail to create now.
- skia::RefPtr<SkSurface> surface2 = skia::AdoptRef(
- SkSurface::NewRenderTarget(gr_context.get(), SkBudgeted::kNo, info));
+ sk_sp<SkSurface> surface2 =
+ SkSurface::MakeRenderTarget(gr_context.get(), SkBudgeted::kNo, info);
EXPECT_FALSE(surface2);
// Drop our reference to the gr_context also.
« no previous file with comments | « content/browser/compositor/software_output_device_win.cc ('k') | skia/config/SkUserConfig.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698