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

Side by Side Diff: tests/Test.h

Issue 2381033002: Explicit control in tools of ANGLE frontend and backend (Closed)
Patch Set: rebase infra training Created 4 years, 2 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/ResourceCacheTest.cpp ('k') | tests/TestConfigParsing.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 2011 Google Inc. 2 * Copyright 2011 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 #ifndef skiatest_Test_DEFINED 7 #ifndef skiatest_Test_DEFINED
8 #define skiatest_Test_DEFINED 8 #define skiatest_Test_DEFINED
9 9
10 #include "SkString.h" 10 #include "SkString.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 using GrContextFactoryContextType = int; 85 using GrContextFactoryContextType = int;
86 #endif 86 #endif
87 87
88 typedef void GrContextTestFn(Reporter*, const sk_gpu_test::ContextInfo&); 88 typedef void GrContextTestFn(Reporter*, const sk_gpu_test::ContextInfo&);
89 typedef bool GrContextTypeFilterFn(GrContextFactoryContextType); 89 typedef bool GrContextTypeFilterFn(GrContextFactoryContextType);
90 90
91 extern bool IsGLContextType(GrContextFactoryContextType); 91 extern bool IsGLContextType(GrContextFactoryContextType);
92 extern bool IsVulkanContextType(GrContextFactoryContextType); 92 extern bool IsVulkanContextType(GrContextFactoryContextType);
93 extern bool IsRenderingGLContextType(GrContextFactoryContextType); 93 extern bool IsRenderingGLContextType(GrContextFactoryContextType);
94 extern bool IsNullGLContextType(GrContextFactoryContextType); 94 extern bool IsNullGLContextType(GrContextFactoryContextType);
95
96 void RunWithGPUTestContexts(GrContextTestFn*, GrContextTypeFilterFn*, 95 void RunWithGPUTestContexts(GrContextTestFn*, GrContextTypeFilterFn*,
97 Reporter*, sk_gpu_test::GrContextFactory*); 96 Reporter*, sk_gpu_test::GrContextFactory*);
98 97
99 /** Timer provides wall-clock duration since its creation. */ 98 /** Timer provides wall-clock duration since its creation. */
100 class Timer { 99 class Timer {
101 public: 100 public:
102 /** Starts the timer. */ 101 /** Starts the timer. */
103 Timer(); 102 Timer();
104 103
105 /** Nanoseconds since creation. */ 104 /** Nanoseconds since creation. */
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 do { \ 186 do { \
188 SkDynamicMemoryWStream testStream; \ 187 SkDynamicMemoryWStream testStream; \
189 sk_sp<SkDocument> testDoc(SkDocument::MakePDF(&testStream)); \ 188 sk_sp<SkDocument> testDoc(SkDocument::MakePDF(&testStream)); \
190 if (!testDoc) { \ 189 if (!testDoc) { \
191 INFOF(REPORTER, "PDF disabled; %s test skipped.", #TEST_NAME); \ 190 INFOF(REPORTER, "PDF disabled; %s test skipped.", #TEST_NAME); \
192 return; \ 191 return; \
193 } \ 192 } \
194 } while (false) 193 } while (false)
195 194
196 #endif 195 #endif
OLDNEW
« no previous file with comments | « tests/ResourceCacheTest.cpp ('k') | tests/TestConfigParsing.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698