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

Side by Side Diff: tests/VkWrapTests.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/VkUploadPixelsTests.cpp ('k') | tools/flags/SkCommonFlagsConfig.h » ('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 2016 Google Inc. 2 * Copyright 2016 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 REPORTER_ASSERT(reporter, tex); 155 REPORTER_ASSERT(reporter, tex);
156 tex->unref(); 156 tex->unref();
157 157
158 gpu->deleteTestingOnlyBackendTexture(backendObj, true); 158 gpu->deleteTestingOnlyBackendTexture(backendObj, true);
159 } 159 }
160 160
161 DEF_GPUTEST(VkWrapTests, reporter, factory) { 161 DEF_GPUTEST(VkWrapTests, reporter, factory) {
162 GrContextOptions opts; 162 GrContextOptions opts;
163 opts.fSuppressPrints = true; 163 opts.fSuppressPrints = true;
164 GrContextFactory debugFactory(opts); 164 GrContextFactory debugFactory(opts);
165 for (int type = 0; type < GrContextFactory::kLastGLContextType; ++type) { 165 for (int type = 0; type < GrContextFactory::kLastContextType; ++type) {
166 if (static_cast<GrContextFactory::GLContextType>(type) != 166 if (static_cast<GrContextFactory::ContextType>(type) !=
167 GrContextFactory::kNative_GLContextType) { 167 GrContextFactory::kNativeGL_ContextType) {
168 continue; 168 continue;
169 } 169 }
170 GrContext* context = debugFactory.get(static_cast<GrContextFactory::GLCo ntextType>(type)); 170 GrContext* context = debugFactory.get(static_cast<GrContextFactory::Cont extType>(type));
171 if (context) { 171 if (context) {
172 wrap_tex_test(reporter, context); 172 wrap_tex_test(reporter, context);
173 wrap_rt_test(reporter, context); 173 wrap_rt_test(reporter, context);
174 wrap_trt_test(reporter, context); 174 wrap_trt_test(reporter, context);
175 } 175 }
176 176
177 } 177 }
178 } 178 }
179 179
180 #endif 180 #endif
OLDNEW
« no previous file with comments | « tests/VkUploadPixelsTests.cpp ('k') | tools/flags/SkCommonFlagsConfig.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698