OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
4 * | 3 * |
5 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
7 */ | 6 */ |
8 | 7 |
9 #include "Test.h" | 8 #include "Test.h" |
10 #if SK_SUPPORT_GPU | 9 #if SK_SUPPORT_GPU |
11 | 10 |
12 #include "GrCaps.h" | 11 #include "GrCaps.h" |
13 #include "GrContext.h" | 12 #include "GrContext.h" |
14 #include "GrGpu.h" | 13 #include "GrGpu.h" |
15 | 14 |
16 DEF_GPUTEST_FOR_ALL_CONTEXTS(GrDrawTargetPrint, reporter, context) { | 15 DEF_GPUTEST_FOR_ALL_CONTEXTS(GrDrawTargetPrint, reporter, context) { |
17 // This used to assert. | 16 // This used to assert. |
18 SkString result = context->caps()->dump(); | 17 SkString result = context->caps()->dump(); |
19 SkASSERT(!result.isEmpty()); | 18 SkASSERT(!result.isEmpty()); |
20 SkString shaderResult = context->caps()->shaderCaps()->dump(); | 19 SkString shaderResult = context->caps()->shaderCaps()->dump(); |
21 SkASSERT(!shaderResult.isEmpty()); | 20 SkASSERT(!shaderResult.isEmpty()); |
22 } | 21 } |
23 | 22 |
24 #endif | 23 #endif |
OLD | NEW |