OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
3 * | 3 * |
4 * 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 |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "Test.h" | 8 #include "Test.h" |
9 #if SK_SUPPORT_GPU | 9 #if SK_SUPPORT_GPU |
10 | 10 |
11 #include "GrCaps.h" | 11 #include "GrCaps.h" |
12 #include "GrContext.h" | 12 #include "GrContext.h" |
13 #include "GrGpu.h" | 13 #include "GrGpu.h" |
14 | 14 |
15 DEF_GPUTEST_FOR_ALL_CONTEXTS(GrDrawTargetPrint, reporter, ctxInfo) { | 15 DEF_GPUTEST_FOR_ALL_CONTEXTS(GrDrawTargetPrint, reporter, ctxInfo) { |
16 // This used to assert. | 16 // This used to assert. |
17 SkString result = ctxInfo.fGrContext->caps()->dump(); | 17 SkString result = ctxInfo.grContext()->caps()->dump(); |
18 SkASSERT(!result.isEmpty()); | 18 SkASSERT(!result.isEmpty()); |
19 SkString shaderResult = ctxInfo.fGrContext->caps()->shaderCaps()->dump(); | 19 SkString shaderResult = ctxInfo.grContext()->caps()->shaderCaps()->dump(); |
20 SkASSERT(!shaderResult.isEmpty()); | 20 SkASSERT(!shaderResult.isEmpty()); |
21 } | 21 } |
22 | 22 |
23 #endif | 23 #endif |
OLD | NEW |