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

Unified Diff: tests/ReadPixelsTest.cpp

Issue 638403003: Remove uses of GrAutoScratchTexture. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 2 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 | « src/image/SkSurface_Gpu.cpp ('k') | tests/WritePixelsTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/ReadPixelsTest.cpp
diff --git a/tests/ReadPixelsTest.cpp b/tests/ReadPixelsTest.cpp
index 77aac1fdd50a382dce7465e226884d08aa0054e5..b2f3c7fa833390b28729be81f2b1039bbb00c0eb 100644
--- a/tests/ReadPixelsTest.cpp
+++ b/tests/ReadPixelsTest.cpp
@@ -318,9 +318,9 @@ DEF_GPUTEST(ReadPixels, reporter, factory) {
desc.fHeight = DEV_H;
desc.fConfig = kSkia8888_GrPixelConfig;
desc.fOrigin = 1 == dtype ? kBottomLeft_GrSurfaceOrigin : kTopLeft_GrSurfaceOrigin;
- GrAutoScratchTexture ast(context, desc, GrContext::kExact_ScratchTexMatch);
- SkAutoTUnref<GrTexture> tex(ast.detach());
- surface.reset(SkSurface::NewRenderTargetDirect(tex->asRenderTarget()));
+ SkAutoTUnref<GrTexture> texture(
+ context->refScratchTexture(desc, GrContext::kExact_ScratchTexMatch));
+ surface.reset(SkSurface::NewRenderTargetDirect(texture->asRenderTarget()));
#else
continue;
#endif
« no previous file with comments | « src/image/SkSurface_Gpu.cpp ('k') | tests/WritePixelsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698