OLD | NEW |
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 #ifndef PictureRenderer_DEFINED | 8 #ifndef PictureRenderer_DEFINED |
9 #define PictureRenderer_DEFINED | 9 #define PictureRenderer_DEFINED |
10 | 10 |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 #endif | 302 #endif |
303 #if SK_MESA | 303 #if SK_MESA |
304 case kMesa_DeviceType: | 304 case kMesa_DeviceType: |
305 #endif | 305 #endif |
306 return true; | 306 return true; |
307 default: | 307 default: |
308 return false; | 308 return false; |
309 } | 309 } |
310 } | 310 } |
311 | 311 |
| 312 SkCanvas* getCanvas() { |
| 313 return fCanvas; |
| 314 } |
| 315 |
312 SkGLContextHelper* getGLContext() { | 316 SkGLContextHelper* getGLContext() { |
313 GrContextFactory::GLContextType glContextType | 317 GrContextFactory::GLContextType glContextType |
314 = GrContextFactory::kNull_GLContextType; | 318 = GrContextFactory::kNull_GLContextType; |
315 switch(fDeviceType) { | 319 switch(fDeviceType) { |
316 case kGPU_DeviceType: | 320 case kGPU_DeviceType: |
317 glContextType = GrContextFactory::kNative_GLContextType; | 321 glContextType = GrContextFactory::kNative_GLContextType; |
318 break; | 322 break; |
319 case kNVPR_DeviceType: | 323 case kNVPR_DeviceType: |
320 glContextType = GrContextFactory::kNVPR_GLContextType; | 324 glContextType = GrContextFactory::kNVPR_GLContextType; |
321 break; | 325 break; |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 | 628 |
625 typedef PictureRenderer INHERITED; | 629 typedef PictureRenderer INHERITED; |
626 }; | 630 }; |
627 | 631 |
628 extern PictureRenderer* CreateGatherPixelRefsRenderer(); | 632 extern PictureRenderer* CreateGatherPixelRefsRenderer(); |
629 extern PictureRenderer* CreatePictureCloneRenderer(); | 633 extern PictureRenderer* CreatePictureCloneRenderer(); |
630 | 634 |
631 } | 635 } |
632 | 636 |
633 #endif // PictureRenderer_DEFINED | 637 #endif // PictureRenderer_DEFINED |
OLD | NEW |