| 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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 | 358 |
| 359 GrContext* getGrContext() { | 359 GrContext* getGrContext() { |
| 360 return fGrContext; | 360 return fGrContext; |
| 361 } | 361 } |
| 362 #endif | 362 #endif |
| 363 | 363 |
| 364 SkCanvas* getCanvas() { | 364 SkCanvas* getCanvas() { |
| 365 return fCanvas; | 365 return fCanvas; |
| 366 } | 366 } |
| 367 | 367 |
| 368 SkPicture* getPicture() { |
| 369 return fPicture; |
| 370 } |
| 371 |
| 368 PictureRenderer() | 372 PictureRenderer() |
| 369 : fPicture(NULL) | 373 : fPicture(NULL) |
| 370 , fJsonSummaryPtr(NULL) | 374 , fJsonSummaryPtr(NULL) |
| 371 , fDeviceType(kBitmap_DeviceType) | 375 , fDeviceType(kBitmap_DeviceType) |
| 372 , fBBoxHierarchyType(kNone_BBoxHierarchyType) | 376 , fBBoxHierarchyType(kNone_BBoxHierarchyType) |
| 373 , fScaleFactor(SK_Scalar1) | 377 , fScaleFactor(SK_Scalar1) |
| 374 #if SK_SUPPORT_GPU | 378 #if SK_SUPPORT_GPU |
| 375 , fGrContext(NULL) | 379 , fGrContext(NULL) |
| 376 , fSampleCount(0) | 380 , fSampleCount(0) |
| 377 #endif | 381 #endif |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 661 | 665 |
| 662 typedef PictureRenderer INHERITED; | 666 typedef PictureRenderer INHERITED; |
| 663 }; | 667 }; |
| 664 | 668 |
| 665 extern PictureRenderer* CreateGatherPixelRefsRenderer(); | 669 extern PictureRenderer* CreateGatherPixelRefsRenderer(); |
| 666 extern PictureRenderer* CreatePictureCloneRenderer(); | 670 extern PictureRenderer* CreatePictureCloneRenderer(); |
| 667 | 671 |
| 668 } | 672 } |
| 669 | 673 |
| 670 #endif // PictureRenderer_DEFINED | 674 #endif // PictureRenderer_DEFINED |
| OLD | NEW |