| * Copyright 2013 Google Inc. |
| * Use of this source code is governed by a BSD-style license that can be |
| * found in the LICENSE file. |
| #include "GrContextFactory.h" |
| #include "GrDrawTargetCaps.h" |
| static void test_print(skiatest::Reporter*, const GrDrawTargetCaps* caps) { |
| SkString result = caps->dump(); |
| SkASSERT(!result.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); |
| test_print(reporter, grContext->getGpu()->caps()); |