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

Unified Diff: tests/ProxyTest.cpp

Issue 1966013002: Turn ContextInfos returned by GrContextFactory into structs. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Address comment Created 4 years, 7 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/PrimitiveProcessorTest.cpp ('k') | tests/ReadPixelsTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/ProxyTest.cpp
diff --git a/tests/ProxyTest.cpp b/tests/ProxyTest.cpp
index e1e5aeb2cf8ccee90ef3766b2d117e59d148307c..5f27b89f5a6c951efa62511e01c6d7e5917f09d6 100644
--- a/tests/ProxyTest.cpp
+++ b/tests/ProxyTest.cpp
@@ -76,7 +76,7 @@ static void check_texture(skiatest::Reporter* reporter,
DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(AllocedProxyTest, reporter, ctxInfo) {
- GrTextureProvider* provider = ctxInfo.fGrContext->textureProvider();
+ GrTextureProvider* provider = ctxInfo.grContext()->textureProvider();
for (auto origin : { kBottomLeft_GrSurfaceOrigin, kTopLeft_GrSurfaceOrigin }) {
for (auto widthHeight : { 100, 128 }) {
@@ -84,9 +84,9 @@ DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(AllocedProxyTest, reporter, ctxInfo) {
for (auto fit : { SkBackingFit::kExact, SkBackingFit::kApprox }) {
for (auto budgeted : { SkBudgeted::kYes, SkBudgeted::kNo }) {
for (auto numSamples : { 0, 4}) {
- bool renderable = ctxInfo.fGrContext->caps()->isConfigRenderable(
+ bool renderable = ctxInfo.grContext()->caps()->isConfigRenderable(
config, numSamples > 0) &&
- numSamples <= ctxInfo.fGrContext->caps()->maxColorSampleCount();
+ numSamples <= ctxInfo.grContext()->caps()->maxColorSampleCount();
GrSurfaceDesc desc;
desc.fOrigin = origin;
@@ -97,7 +97,7 @@ DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(AllocedProxyTest, reporter, ctxInfo) {
if (renderable) {
sk_sp<GrRenderTargetProxy> rtProxy(GrRenderTargetProxy::Make(
- *ctxInfo.fGrContext->caps(),
+ *ctxInfo.grContext()->caps(),
desc,
fit,
budgeted));
@@ -123,7 +123,7 @@ DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(AllocedProxyTest, reporter, ctxInfo) {
}
DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(WrappedProxyTest, reporter, ctxInfo) {
- GrTextureProvider* provider = ctxInfo.fGrContext->textureProvider();
+ GrTextureProvider* provider = ctxInfo.grContext()->textureProvider();
static const int kWidthHeight = 100;
@@ -131,7 +131,7 @@ DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(WrappedProxyTest, reporter, ctxInfo) {
for (auto config : { kAlpha_8_GrPixelConfig, kRGBA_8888_GrPixelConfig }) {
for (auto budgeted : { SkBudgeted::kYes, SkBudgeted::kNo }) {
for (auto numSamples: { 0, 4}) {
- bool renderable = ctxInfo.fGrContext->caps()->isConfigRenderable(
+ bool renderable = ctxInfo.grContext()->caps()->isConfigRenderable(
config, numSamples > 0);
GrSurfaceDesc desc;
« no previous file with comments | « tests/PrimitiveProcessorTest.cpp ('k') | tests/ReadPixelsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698