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

Unified Diff: tests/TessellatingPathRendererTests.cpp

Issue 2186073002: Rename GrContext's newDrawContext & drawContext to makeDrawContext (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 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 | « tests/SRGBMipMapTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/TessellatingPathRendererTests.cpp
diff --git a/tests/TessellatingPathRendererTests.cpp b/tests/TessellatingPathRendererTests.cpp
index 5e8d952f329fe7f8fd41f6bce16f1cd9cb20e96d..d9afcc4d3d798d76595d572a00cc161112d89159 100644
--- a/tests/TessellatingPathRendererTests.cpp
+++ b/tests/TessellatingPathRendererTests.cpp
@@ -254,35 +254,35 @@ static void test_path(GrDrawContext* drawContext, GrResourceProvider* rp, const
}
DEF_GPUTEST_FOR_ALL_CONTEXTS(TessellatingPathRendererTests, reporter, ctxInfo) {
- sk_sp<GrDrawContext> drawContext(ctxInfo.grContext()->newDrawContext(SkBackingFit::kApprox,
- 800, 800,
- kSkia8888_GrPixelConfig,
- nullptr,
- 0,
- kTopLeft_GrSurfaceOrigin));
- if (!drawContext) {
+ sk_sp<GrDrawContext> dc(ctxInfo.grContext()->makeDrawContext(SkBackingFit::kApprox,
+ 800, 800,
+ kSkia8888_GrPixelConfig,
+ nullptr,
+ 0,
+ kTopLeft_GrSurfaceOrigin));
+ if (!dc) {
return;
}
GrTestTarget tt;
- ctxInfo.grContext()->getTestTarget(&tt, drawContext);
+ ctxInfo.grContext()->getTestTarget(&tt, dc);
GrResourceProvider* rp = tt.resourceProvider();
- test_path(drawContext.get(), rp, create_path_0());
- test_path(drawContext.get(), rp, create_path_1());
- test_path(drawContext.get(), rp, create_path_2());
- test_path(drawContext.get(), rp, create_path_3());
- test_path(drawContext.get(), rp, create_path_4());
- test_path(drawContext.get(), rp, create_path_5());
- test_path(drawContext.get(), rp, create_path_6());
- test_path(drawContext.get(), rp, create_path_7());
- test_path(drawContext.get(), rp, create_path_8());
- test_path(drawContext.get(), rp, create_path_9());
- test_path(drawContext.get(), rp, create_path_10());
- test_path(drawContext.get(), rp, create_path_11());
- test_path(drawContext.get(), rp, create_path_12());
- test_path(drawContext.get(), rp, create_path_13());
- test_path(drawContext.get(), rp, create_path_14());
- test_path(drawContext.get(), rp, create_path_15());
+ test_path(dc.get(), rp, create_path_0());
+ test_path(dc.get(), rp, create_path_1());
+ test_path(dc.get(), rp, create_path_2());
+ test_path(dc.get(), rp, create_path_3());
+ test_path(dc.get(), rp, create_path_4());
+ test_path(dc.get(), rp, create_path_5());
+ test_path(dc.get(), rp, create_path_6());
+ test_path(dc.get(), rp, create_path_7());
+ test_path(dc.get(), rp, create_path_8());
+ test_path(dc.get(), rp, create_path_9());
+ test_path(dc.get(), rp, create_path_10());
+ test_path(dc.get(), rp, create_path_11());
+ test_path(dc.get(), rp, create_path_12());
+ test_path(dc.get(), rp, create_path_13());
+ test_path(dc.get(), rp, create_path_14());
+ test_path(dc.get(), rp, create_path_15());
}
#endif
« no previous file with comments | « tests/SRGBMipMapTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698