OLD | NEW |
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 Loading... |
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; |
OLD | NEW |