| 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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 SkAutoTUnref<SkCanvas> fCanvas; | 402 SkAutoTUnref<SkCanvas> fCanvas; |
| 403 SkAutoTUnref<SkPicture> fPicture; | 403 SkAutoTUnref<SkPicture> fPicture; |
| 404 bool fUseChecksumBasedFilenames; | 404 bool fUseChecksumBasedFilenames; |
| 405 ImageResultsSummary* fJsonSummaryPtr; | 405 ImageResultsSummary* fJsonSummaryPtr; |
| 406 SkDeviceTypes fDeviceType; | 406 SkDeviceTypes fDeviceType; |
| 407 BBoxHierarchyType fBBoxHierarchyType; | 407 BBoxHierarchyType fBBoxHierarchyType; |
| 408 DrawFilterFlags fDrawFilters[SkDrawFilter::kTypeCount]; | 408 DrawFilterFlags fDrawFilters[SkDrawFilter::kTypeCount]; |
| 409 SkString fDrawFiltersConfig; | 409 SkString fDrawFiltersConfig; |
| 410 SkString fOutputDir; | 410 SkString fOutputDir; |
| 411 SkString fInputFilename; | 411 SkString fInputFilename; |
| 412 SkTileGridPicture::TileGridInfo fGridInfo; // used when fBBoxHierarchyType i
s TileGrid | 412 SkTileGridFactory::TileGridInfo fGridInfo; // used when fBBoxHierarchyType i
s TileGrid |
| 413 | 413 |
| 414 void buildBBoxHierarchy(); | 414 void buildBBoxHierarchy(); |
| 415 | 415 |
| 416 /** | 416 /** |
| 417 * Return the total width that should be drawn. If the viewport width has be
en set greater than | 417 * Return the total width that should be drawn. If the viewport width has be
en set greater than |
| 418 * 0, this will be the minimum of the current SkPicture's width and the view
port's width. | 418 * 0, this will be the minimum of the current SkPicture's width and the view
port's width. |
| 419 */ | 419 */ |
| 420 int getViewWidth(); | 420 int getViewWidth(); |
| 421 | 421 |
| 422 /** | 422 /** |
| 423 * Return the total height that should be drawn. If the viewport height has
been set greater | 423 * Return the total height that should be drawn. If the viewport height has
been set greater |
| 424 * than 0, this will be the minimum of the current SkPicture's height and th
e viewport's height. | 424 * than 0, this will be the minimum of the current SkPicture's height and th
e viewport's height. |
| 425 */ | 425 */ |
| 426 int getViewHeight(); | 426 int getViewHeight(); |
| 427 | 427 |
| 428 /** | 428 /** |
| 429 * Scales the provided canvas to the scale factor set by setScaleFactor. | 429 * Scales the provided canvas to the scale factor set by setScaleFactor. |
| 430 */ | 430 */ |
| 431 void scaleToScaleFactor(SkCanvas*); | 431 void scaleToScaleFactor(SkCanvas*); |
| 432 | 432 |
| 433 SkPictureFactory* getFactory(); | 433 SkBBHFactory* getFactory(); |
| 434 uint32_t recordFlags(); | 434 uint32_t recordFlags(); |
| 435 SkCanvas* setupCanvas(); | 435 SkCanvas* setupCanvas(); |
| 436 virtual SkCanvas* setupCanvas(int width, int height); | 436 virtual SkCanvas* setupCanvas(int width, int height); |
| 437 | 437 |
| 438 /** | 438 /** |
| 439 * Copy src to dest; if src==NULL, set dest to empty string. | 439 * Copy src to dest; if src==NULL, set dest to empty string. |
| 440 */ | 440 */ |
| 441 static void CopyString(SkString* dest, const SkString* src); | 441 static void CopyString(SkString* dest, const SkString* src); |
| 442 | 442 |
| 443 private: | 443 private: |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 670 | 670 |
| 671 typedef PictureRenderer INHERITED; | 671 typedef PictureRenderer INHERITED; |
| 672 }; | 672 }; |
| 673 | 673 |
| 674 extern PictureRenderer* CreateGatherPixelRefsRenderer(); | 674 extern PictureRenderer* CreateGatherPixelRefsRenderer(); |
| 675 extern PictureRenderer* CreatePictureCloneRenderer(); | 675 extern PictureRenderer* CreatePictureCloneRenderer(); |
| 676 | 676 |
| 677 } | 677 } |
| 678 | 678 |
| 679 #endif // PictureRenderer_DEFINED | 679 #endif // PictureRenderer_DEFINED |
| OLD | NEW |