3 * Copyright 2013 Google Inc.
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
11 #include "GrContext.h"
12 #include "GrContextFactory.h"
13 #include "GrDrawTargetCaps.h"
17 static void test_print(skiatest::Reporter*, const GrDrawTargetCaps* caps) {
18 // This used to assert.
19 SkString result = caps->dump();
20 SkASSERT(!result.isEmpty());
23 DEF_GPUTEST(GrDrawTarget, reporter, factory) {
24 for (int type = 0; type < GrContextFactory::kLastGLContextType; ++type) {
25 GrContextFactory::GLContextType glType = static_cast<GrContextFactory::GLContextType>(type);
27 GrContext* grContext = factory->get(glType);
28 if (NULL == grContext) {
32 test_print(reporter, grContext->getGpu()->caps());