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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 return NULL; | 333 return NULL; |
334 } | 334 } |
335 return fGrContextFactory.getGLContext(glContextType); | 335 return fGrContextFactory.getGLContext(glContextType); |
336 } | 336 } |
337 | 337 |
338 GrContext* getGrContext() { | 338 GrContext* getGrContext() { |
339 return fGrContext; | 339 return fGrContext; |
340 } | 340 } |
341 #endif | 341 #endif |
342 | 342 |
| 343 SkCanvas* getCanvas() { |
| 344 return fCanvas; |
| 345 } |
| 346 |
343 PictureRenderer() | 347 PictureRenderer() |
344 : fPicture(NULL) | 348 : fPicture(NULL) |
345 , fJsonSummaryPtr(NULL) | 349 , fJsonSummaryPtr(NULL) |
346 , fDeviceType(kBitmap_DeviceType) | 350 , fDeviceType(kBitmap_DeviceType) |
347 , fBBoxHierarchyType(kNone_BBoxHierarchyType) | 351 , fBBoxHierarchyType(kNone_BBoxHierarchyType) |
348 , fScaleFactor(SK_Scalar1) | 352 , fScaleFactor(SK_Scalar1) |
349 #if SK_SUPPORT_GPU | 353 #if SK_SUPPORT_GPU |
350 , fGrContext(NULL) | 354 , fGrContext(NULL) |
351 , fSampleCount(0) | 355 , fSampleCount(0) |
352 #endif | 356 #endif |
(...skipping 271 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 |