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

Side by Side Diff: tests/GLProgramsTest.cpp

Issue 1306823003: skia: add ability to load command_buffer_gles2 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: and NULL->nullptr, just because. Created 5 years, 3 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') | tests/SkpSkGrTest.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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 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 // This is a GPU-backend specific test. It relies on static intializers to work 9 // This is a GPU-backend specific test. It relies on static intializers to work
10 10
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 maxStages = 1; 288 maxStages = 1;
289 } else { 289 } else {
290 return; 290 return;
291 } 291 }
292 #if SK_ANGLE 292 #if SK_ANGLE
293 // Some long shaders run out of temporary registers in the D3D compi ler on ANGLE. 293 // Some long shaders run out of temporary registers in the D3D compi ler on ANGLE.
294 if (type == GrContextFactory::kANGLE_GLContextType) { 294 if (type == GrContextFactory::kANGLE_GLContextType) {
295 maxStages = 2; 295 maxStages = 2;
296 } 296 }
297 #endif 297 #endif
298 #if SK_COMMAND_BUFFER
299 // Some long shaders run out of temporary registers in the D3D compi ler on ANGLE.
300 // TODO(hendrikw): This only needs to happen with the ANGLE comand b uffer backend.
301 if (type == GrContextFactory::kCommandBuffer_GLContextType) {
302 maxStages = 2;
303 }
304 #endif
298 GrTestTarget target; 305 GrTestTarget target;
299 context->getTestTarget(&target); 306 context->getTestTarget(&target);
300 REPORTER_ASSERT(reporter, target.target()->programUnitTest(context, maxStages)); 307 REPORTER_ASSERT(reporter, target.target()->programUnitTest(context, maxStages));
301 } 308 }
302 } 309 }
303 } 310 }
304 311
305 #endif 312 #endif
OLDNEW
« no previous file with comments | « src/views/win/SkOSWindow_win.cpp ('k') | tests/SkpSkGrTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698