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

Side by Side Diff: gm/gm.cpp

Issue 23587029: gm: add a flag to force perspective usage in all gms (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: gm test Created 7 years, 2 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 | Annotate | Revision Log
« gm/gm.h ('K') | « gm/gm.h ('k') | gyp/SampleApp.gyp » ('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 2011 Google Inc. 2 * Copyright 2011 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 "gm.h" 8 #include "gm.h"
9 using namespace skiagm; 9 using namespace skiagm;
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 SkASSERT(NULL != canvas); 69 SkASSERT(NULL != canvas);
70 SkBaseDevice* device = canvas->getTopDevice(); 70 SkBaseDevice* device = canvas->getTopDevice();
71 GrRenderTarget* renderTarget = device->accessRenderTarget(); 71 GrRenderTarget* renderTarget = device->accessRenderTarget();
72 if (NULL != renderTarget) { 72 if (NULL != renderTarget) {
73 return renderTarget->getContext(); 73 return renderTarget->getContext();
74 } 74 }
75 return NULL; 75 return NULL;
76 } 76 }
77 #endif 77 #endif
78 78
79 DEFINE_bool(forcePerspectiveMatrix, false, "Force a perspective matrix.");
80
79 // need to explicitly declare this, or we get some weird infinite loop llist 81 // need to explicitly declare this, or we get some weird infinite loop llist
80 template GMRegistry* SkTRegistry<GM*(*)(void*)>::gHead; 82 template GMRegistry* SkTRegistry<GM*(*)(void*)>::gHead;
OLDNEW
« gm/gm.h ('K') | « gm/gm.h ('k') | gyp/SampleApp.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698