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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 * than 0, this will be the minimum of the current SkPicture's height and th
e viewport's height. | 406 * than 0, this will be the minimum of the current SkPicture's height and th
e viewport's height. |
407 */ | 407 */ |
408 int getViewHeight(); | 408 int getViewHeight(); |
409 | 409 |
410 /** | 410 /** |
411 * Scales the provided canvas to the scale factor set by setScaleFactor. | 411 * Scales the provided canvas to the scale factor set by setScaleFactor. |
412 */ | 412 */ |
413 void scaleToScaleFactor(SkCanvas*); | 413 void scaleToScaleFactor(SkCanvas*); |
414 | 414 |
415 SkBBHFactory* getFactory(); | 415 SkBBHFactory* getFactory(); |
416 uint32_t recordFlags(); | 416 uint32_t recordFlags() const { return 0; } |
417 SkCanvas* setupCanvas(); | 417 SkCanvas* setupCanvas(); |
418 virtual SkCanvas* setupCanvas(int width, int height); | 418 virtual SkCanvas* setupCanvas(int width, int height); |
419 | 419 |
420 /** | 420 /** |
421 * Copy src to dest; if src==NULL, set dest to empty string. | 421 * Copy src to dest; if src==NULL, set dest to empty string. |
422 */ | 422 */ |
423 static void CopyString(SkString* dest, const SkString* src); | 423 static void CopyString(SkString* dest, const SkString* src); |
424 | 424 |
425 private: | 425 private: |
426 SkISize fViewport; | 426 SkISize fViewport; |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
652 | 652 |
653 typedef PictureRenderer INHERITED; | 653 typedef PictureRenderer INHERITED; |
654 }; | 654 }; |
655 | 655 |
656 extern PictureRenderer* CreateGatherPixelRefsRenderer(); | 656 extern PictureRenderer* CreateGatherPixelRefsRenderer(); |
657 extern PictureRenderer* CreatePictureCloneRenderer(); | 657 extern PictureRenderer* CreatePictureCloneRenderer(); |
658 | 658 |
659 } | 659 } |
660 | 660 |
661 #endif // PictureRenderer_DEFINED | 661 #endif // PictureRenderer_DEFINED |
OLD | NEW |