Index: tests/ClipBoundsTest.cpp |
diff --git a/tests/ClipBoundsTest.cpp b/tests/ClipBoundsTest.cpp |
index 781ee877a6cab9237dc7ac4a99d64eb85c477e6d..d8df62ecadad0ad290e77d083e1606d54ceba58c 100644 |
--- a/tests/ClipBoundsTest.cpp |
+++ b/tests/ClipBoundsTest.cpp |
@@ -10,13 +10,11 @@ |
// This is a GR test |
#if SK_SUPPORT_GPU |
#include "GrClipMaskManager.h" |
-#include "GrContextFactory.h" |
-#include "SkGpuDevice.h" |
+#include "GrContext.h" |
// Ensure that the 'getConservativeBounds' calls are returning bounds clamped |
// to the render target |
-static void test_clip_bounds(skiatest::Reporter* reporter, GrContext* context) { |
- |
+DEF_GPUTEST_FOR_RENDERING_CONTEXTS(GrClipBounds, reporter, context) { |
static const int kXSize = 100; |
static const int kYSize = 100; |
@@ -68,18 +66,4 @@ static void test_clip_bounds(skiatest::Reporter* reporter, GrContext* context) { |
REPORTER_ASSERT(reporter, isIntersectionOfRects); |
} |
-DEF_GPUTEST(GrClipBounds, reporter, factory) { |
- for (int type = 0; type < GrContextFactory::kLastGLContextType; ++type) { |
- GrContextFactory::GLContextType glType = static_cast<GrContextFactory::GLContextType>(type); |
- if (!GrContextFactory::IsRenderingGLContext(glType)) { |
- continue; |
- } |
- GrContext* context = factory->get(glType); |
- if (nullptr == context) { |
- continue; |
- } |
- test_clip_bounds(reporter, context); |
- } |
-} |
- |
#endif |