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

Side by Side Diff: tests/TestConfigParsing.cpp

Issue 1684413003: Implement support for using GL ES 3.0 with command buffer (Closed) Base URL: https://skia.googlesource.com/skia.git@no-texture-rectangle-gles
Patch Set: comment wording Created 4 years, 9 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 | « src/views/win/SkOSWindow_win.cpp ('k') | tools/flags/SkCommonFlagsConfig.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 #include "SkCommonFlagsConfig.h" 8 #include "SkCommonFlagsConfig.h"
9 #include "Test.h" 9 #include "Test.h"
10 #include <initializer_list> 10 #include <initializer_list>
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 REPORTER_ASSERT(reporter, !configs[2]->asConfigGpu()); 162 REPORTER_ASSERT(reporter, !configs[2]->asConfigGpu());
163 #endif 163 #endif
164 #if SK_MESA 164 #if SK_MESA
165 REPORTER_ASSERT(reporter, configs[3]->asConfigGpu()->getContextType() == 165 REPORTER_ASSERT(reporter, configs[3]->asConfigGpu()->getContextType() ==
166 GrContextFactory::kMESA_GLContextType); 166 GrContextFactory::kMESA_GLContextType);
167 #else 167 #else
168 REPORTER_ASSERT(reporter, !configs[3]->asConfigGpu()); 168 REPORTER_ASSERT(reporter, !configs[3]->asConfigGpu());
169 #endif 169 #endif
170 #if SK_COMMAND_BUFFER 170 #if SK_COMMAND_BUFFER
171 REPORTER_ASSERT(reporter, configs[4]->asConfigGpu()->getContextType() == 171 REPORTER_ASSERT(reporter, configs[4]->asConfigGpu()->getContextType() ==
172 GrContextFactory::kCommandBuffer_GLContextType); 172 GrContextFactory::kCommandBufferES2_GLContextType);
173 173
174 #else 174 #else
175 REPORTER_ASSERT(reporter, !configs[4]->asConfigGpu()); 175 REPORTER_ASSERT(reporter, !configs[4]->asConfigGpu());
176 #endif 176 #endif
177 REPORTER_ASSERT(reporter, configs[5]->asConfigGpu()->getContextType() == 177 REPORTER_ASSERT(reporter, configs[5]->asConfigGpu()->getContextType() ==
178 GrContextFactory::kNative_GLContextType); 178 GrContextFactory::kNative_GLContextType);
179 REPORTER_ASSERT(reporter, !configs[5]->asConfigGpu()->getUseNVPR()); 179 REPORTER_ASSERT(reporter, !configs[5]->asConfigGpu()->getUseNVPR());
180 REPORTER_ASSERT(reporter, !configs[5]->asConfigGpu()->getUseDIText()); 180 REPORTER_ASSERT(reporter, !configs[5]->asConfigGpu()->getUseDIText());
181 REPORTER_ASSERT(reporter, configs[5]->asConfigGpu()->getSamples() == 0); 181 REPORTER_ASSERT(reporter, configs[5]->asConfigGpu()->getSamples() == 0);
182 REPORTER_ASSERT(reporter, configs[6]->asConfigGpu()->getContextType() == 182 REPORTER_ASSERT(reporter, configs[6]->asConfigGpu()->getContextType() ==
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 REPORTER_ASSERT(reporter, 307 REPORTER_ASSERT(reporter,
308 configs[i]->getViaParts()[j].equals(expectedConfigs[ i].vias[j])); 308 configs[i]->getViaParts()[j].equals(expectedConfigs[ i].vias[j]));
309 } 309 }
310 } 310 }
311 #if SK_SUPPORT_GPU 311 #if SK_SUPPORT_GPU
312 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()); 312 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu());
313 REPORTER_ASSERT(reporter, !configs[1]->asConfigGpu()); 313 REPORTER_ASSERT(reporter, !configs[1]->asConfigGpu());
314 REPORTER_ASSERT(reporter, !configs[2]->asConfigGpu()); 314 REPORTER_ASSERT(reporter, !configs[2]->asConfigGpu());
315 #endif 315 #endif
316 } 316 }
OLDNEW
« no previous file with comments | « src/views/win/SkOSWindow_win.cpp ('k') | tools/flags/SkCommonFlagsConfig.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698