Index: tests/FloatingPointTextureTest.cpp |
diff --git a/tests/FloatingPointTextureTest.cpp b/tests/FloatingPointTextureTest.cpp |
index 9f543667f1c601d892a5f3d135a0fc7c66fcc0bb..2e79c35d102887970fb4611ba1dd7e2d96b992c7 100644 |
--- a/tests/FloatingPointTextureTest.cpp |
+++ b/tests/FloatingPointTextureTest.cpp |
@@ -69,7 +69,18 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(FloatingPointTextureTest, reporter, ctxInfo) |
static const int HALF_ALPHA_CONTROL_ARRAY_SIZE = DEV_W * DEV_H * 1 /*alpha-only*/; |
static const SkHalf kMaxIntegerRepresentableInHalfFloatingPoint = 0x6800; // 2 ^ 11 |
-DEF_GPUTEST_FOR_RENDERING_CONTEXTS(HalfFloatAlphaTextureTest, reporter, ctxInfo) { |
+// The half float tests currently fail on ES3 ANGLE. |
+static bool is_rendering_and_not_angle_es3(sk_gpu_test::GrContextFactory::ContextType type) { |
+ if (type == sk_gpu_test::GrContextFactory::kANGLE_D3D11_ES3_ContextType || |
+ type == sk_gpu_test::GrContextFactory::kANGLE_GL_ES3_ContextType) { |
+ return false; |
+ } |
+ return sk_gpu_test::GrContextFactory::IsRenderingContext(type); |
+} |
+ |
+DEF_GPUTEST_FOR_CONTEXTS(HalfFloatAlphaTextureTest, |
+ &is_rendering_and_not_angle_es3, |
+ reporter, ctxInfo) { |
runFPTest<SkHalf>(reporter, ctxInfo.grContext(), SK_HalfMin, SK_HalfMax, SK_HalfEpsilon, |
kMaxIntegerRepresentableInHalfFloatingPoint, |
HALF_ALPHA_CONTROL_ARRAY_SIZE, kAlpha_half_GrPixelConfig); |
@@ -77,7 +88,9 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(HalfFloatAlphaTextureTest, reporter, ctxInfo) |
static const int HALF_RGBA_CONTROL_ARRAY_SIZE = DEV_W * DEV_H * 4 /*RGBA*/; |
-DEF_GPUTEST_FOR_RENDERING_CONTEXTS(HalfFloatRGBATextureTest, reporter, ctxInfo) { |
+DEF_GPUTEST_FOR_CONTEXTS(HalfFloatRGBATextureTest, |
+ &is_rendering_and_not_angle_es3, |
+ reporter, ctxInfo) { |
runFPTest<SkHalf>(reporter, ctxInfo.grContext(), SK_HalfMin, SK_HalfMax, SK_HalfEpsilon, |
kMaxIntegerRepresentableInHalfFloatingPoint, |
HALF_RGBA_CONTROL_ARRAY_SIZE, kRGBA_half_GrPixelConfig); |