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

Side by Side Diff: tests/ClipCacheTest.cpp

Issue 319043005: Support using OpenGL ES context on desktop (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 6 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
OLDNEW
1 /* 1 /*
2 * Copyright 2012 Google Inc. 2 * Copyright 2012 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 // This is a GR test 9 // This is a GR test
10 #if SK_SUPPORT_GPU 10 #if SK_SUPPORT_GPU
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 check_empty_state(reporter, cache); 218 check_empty_state(reporter, cache);
219 #endif 219 #endif
220 } 220 }
221 221
222 DEF_GPUTEST(ClipCache, reporter, factory) { 222 DEF_GPUTEST(ClipCache, reporter, factory) {
223 for (int type = 0; type < GrContextFactory::kLastGLContextType; ++type) { 223 for (int type = 0; type < GrContextFactory::kLastGLContextType; ++type) {
224 GrContextFactory::GLContextType glType = static_cast<GrContextFactory::G LContextType>(type); 224 GrContextFactory::GLContextType glType = static_cast<GrContextFactory::G LContextType>(type);
225 if (!GrContextFactory::IsRenderingGLContext(glType)) { 225 if (!GrContextFactory::IsRenderingGLContext(glType)) {
226 continue; 226 continue;
227 } 227 }
228 GrContext* context = factory->get(glType); 228 GrContext* context = factory->get(glType, kNone_GrGLStandard);
229 if (NULL == context) { 229 if (NULL == context) {
230 continue; 230 continue;
231 } 231 }
232 232
233 test_cache(reporter, context); 233 test_cache(reporter, context);
234 test_clip_bounds(reporter, context); 234 test_clip_bounds(reporter, context);
235 } 235 }
236 } 236 }
237 237
238 #endif 238 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698