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

Side by Side Diff: tests/GpuColorFilterTest.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 /* 2 /*
3 * Copyright 2013 Google Inc. 3 * Copyright 2013 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #if SK_SUPPORT_GPU 9 #if SK_SUPPORT_GPU
10 10
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 REPORTER_ASSERT(reporter, filterColor(color, components) == test.outputC olor); 106 REPORTER_ASSERT(reporter, filterColor(color, components) == test.outputC olor);
107 REPORTER_ASSERT(reporter, test.outputComponents == components); 107 REPORTER_ASSERT(reporter, test.outputComponents == components);
108 } 108 }
109 } 109 }
110 110
111 DEF_GPUTEST(GpuColorFilter, reporter, factory) { 111 DEF_GPUTEST(GpuColorFilter, reporter, factory) {
112 for (int type = 0; type < GrContextFactory::kLastGLContextType; ++type) { 112 for (int type = 0; type < GrContextFactory::kLastGLContextType; ++type) {
113 GrContextFactory::GLContextType glType = static_cast<GrContextFactory::G LContextType>(type); 113 GrContextFactory::GLContextType glType = static_cast<GrContextFactory::G LContextType>(type);
114 114
115 GrContext* grContext = factory->get(glType); 115 GrContext* grContext = factory->get(glType, kNone_GrGLStandard);
116 if (NULL == grContext) { 116 if (NULL == grContext) {
117 continue; 117 continue;
118 } 118 }
119 119
120 test_getConstantColorComponents(reporter, grContext); 120 test_getConstantColorComponents(reporter, grContext);
121 } 121 }
122 } 122 }
123 123
124 #endif 124 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698