aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/GrDrawTargetTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/GrDrawTargetTest.cpp')
-rw-r--r--tests/GrDrawTargetTest.cpp20
1 files changed, 3 insertions, 17 deletions
diff --git a/tests/GrDrawTargetTest.cpp b/tests/GrDrawTargetTest.cpp
index ce3da8098e..bbc2b9146b 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