Index: tests/GrDrawTargetTest.cpp |
diff --git a/tests/GrDrawTargetTest.cpp b/tests/GrDrawTargetTest.cpp |
index ce3da8098e5573c702300fb0ab76ca852ca0e59c..bbc2b9146bc59e6c4c0228c5f53237a2b616d352 100644 |
--- a/tests/GrDrawTargetTest.cpp |
+++ b/tests/GrDrawTargetTest.cpp |
@@ -11,28 +11,14 @@ |
#include "GrCaps.h" |
#include "GrContext.h" |
-#include "GrContextFactory.h" |
#include "GrGpu.h" |
-static void test_print(skiatest::Reporter*, const GrCaps* caps) { |
+DEF_GPUTEST_FOR_ALL_CONTEXTS(GrDrawTargetPrint, reporter, context) { |
// This used to assert. |
- SkString result = caps->dump(); |
+ SkString result = context->caps()->dump(); |
SkASSERT(!result.isEmpty()); |
- SkString shaderResult = caps->shaderCaps()->dump(); |
+ SkString shaderResult = context->caps()->shaderCaps()->dump(); |
SkASSERT(!shaderResult.isEmpty()); |
} |
-DEF_GPUTEST(GrDrawTarget, reporter, factory) { |
- for (int type = 0; type < GrContextFactory::kLastGLContextType; ++type) { |
- GrContextFactory::GLContextType glType = static_cast<GrContextFactory::GLContextType>(type); |
- |
- GrContext* grContext = factory->get(glType); |
- if (nullptr == grContext) { |
- continue; |
- } |
- |
- test_print(reporter, grContext->caps()); |
- } |
-} |
- |
#endif |