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

Side by Side Diff: tests/VkClearTests.cpp

Issue 1845923004: Rename enums in GrContextFactory to remove "GL" (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase 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/TestConfigParsing.cpp ('k') | tests/VkUploadPixelsTests.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 2015 Google Inc. 2 * Copyright 2015 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 // This is a GPU-backend specific test. It relies on static intializers to work 8 // This is a GPU-backend specific test. It relies on static intializers to work
9 9
10 #include "SkTypes.h" 10 #include "SkTypes.h"
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 subColor4, 193 subColor4,
194 config, 194 config,
195 subWidth, 195 subWidth,
196 subHeight)) ; 196 subHeight)) ;
197 } 197 }
198 198
199 DEF_GPUTEST(VkClearTests, reporter, factory) { 199 DEF_GPUTEST(VkClearTests, reporter, factory) {
200 GrContextOptions opts; 200 GrContextOptions opts;
201 opts.fSuppressPrints = true; 201 opts.fSuppressPrints = true;
202 GrContextFactory debugFactory(opts); 202 GrContextFactory debugFactory(opts);
203 for (int type = 0; type < GrContextFactory::kLastGLContextType; ++type) { 203 for (int type = 0; type < GrContextFactory::kContextTypeCnt; ++type) {
204 if (static_cast<GrContextFactory::GLContextType>(type) != 204 if (static_cast<GrContextFactory::ContextType>(type) !=
205 GrContextFactory::kNative_GLContextType) { 205 GrContextFactory::kNativeGL_ContextType) {
206 continue; 206 continue;
207 } 207 }
208 GrContext* context = debugFactory.get(static_cast<GrContextFactory::GLCo ntextType>(type)); 208 GrContext* context = debugFactory.get(static_cast<GrContextFactory::Cont extType>(type));
209 if (context) { 209 if (context) {
210 basic_clear_test(reporter, context, kRGBA_8888_GrPixelConfig); 210 basic_clear_test(reporter, context, kRGBA_8888_GrPixelConfig);
211 basic_clear_test(reporter, context, kBGRA_8888_GrPixelConfig); 211 basic_clear_test(reporter, context, kBGRA_8888_GrPixelConfig);
212 sub_clear_test(reporter, context, kRGBA_8888_GrPixelConfig); 212 sub_clear_test(reporter, context, kRGBA_8888_GrPixelConfig);
213 sub_clear_test(reporter, context, kBGRA_8888_GrPixelConfig); 213 sub_clear_test(reporter, context, kBGRA_8888_GrPixelConfig);
214 } 214 }
215 215
216 } 216 }
217 } 217 }
218 218
219 #endif 219 #endif
OLDNEW
« no previous file with comments | « tests/TestConfigParsing.cpp ('k') | tests/VkUploadPixelsTests.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698