Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: tests/GrDrawTargetTest.cpp

Issue 1873313002: Convert some unit tests from running on GL contexts to running on all contexts (Closed) Base URL: https://skia.googlesource.com/skia.git@vkcfg
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tests/GpuColorFilterTest.cpp ('k') | tests/TessellatingPathRendererTests.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_GL_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.fGrContext->caps()->dump();
18 SkASSERT(!result.isEmpty()); 18 SkASSERT(!result.isEmpty());
19 SkString shaderResult = ctxInfo.fGrContext->caps()->shaderCaps()->dump(); 19 SkString shaderResult = ctxInfo.fGrContext->caps()->shaderCaps()->dump();
20 SkASSERT(!shaderResult.isEmpty()); 20 SkASSERT(!shaderResult.isEmpty());
21 } 21 }
22 22
23 #endif 23 #endif
OLDNEW
« no previous file with comments | « tests/GpuColorFilterTest.cpp ('k') | tests/TessellatingPathRendererTests.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698