diff options
Diffstat (limited to 'tests/FloatingPointTextureTest.cpp')
-rw-r--r-- | tests/FloatingPointTextureTest.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/FloatingPointTextureTest.cpp b/tests/FloatingPointTextureTest.cpp index 9a06d2dce3..6d2beb33e3 100644 --- a/tests/FloatingPointTextureTest.cpp +++ b/tests/FloatingPointTextureTest.cpp @@ -45,16 +45,15 @@ void runFPTest(skiatest::Reporter* reporter, GrContext* context, T min, T max, T controlPixelData[i + 3] = maxInt; } - for (int origin = 0; origin < 2; ++origin) { + for (auto origin : {kTopLeft_GrSurfaceOrigin, kBottomLeft_GrSurfaceOrigin}) { GrSurfaceDesc desc; desc.fFlags = kRenderTarget_GrSurfaceFlag; - desc.fOrigin = 0 == origin ? kTopLeft_GrSurfaceOrigin : kBottomLeft_GrSurfaceOrigin; desc.fWidth = DEV_W; desc.fHeight = DEV_H; desc.fConfig = GrColorTypeToPixelConfig(colorType, GrSRGBEncoded::kNo); sk_sp<GrTextureProxy> fpProxy = proxyProvider->createTextureProxy( - desc, SkBudgeted::kNo, controlPixelData.begin(), 0); + desc, origin, SkBudgeted::kNo, controlPixelData.begin(), 0); // Floating point textures are NOT supported everywhere if (!fpProxy) { continue; |