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 CopyTilesRenderer_DEFINED | 8 #ifndef CopyTilesRenderer_DEFINED |
9 #define CopyTilesRenderer_DEFINED | 9 #define CopyTilesRenderer_DEFINED |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 #if SK_SUPPORT_GPU | 25 #if SK_SUPPORT_GPU |
26 CopyTilesRenderer(const GrContext::Options &opts, int x, int y); | 26 CopyTilesRenderer(const GrContext::Options &opts, int x, int y); |
27 #else | 27 #else |
28 CopyTilesRenderer(int x, int y); | 28 CopyTilesRenderer(int x, int y); |
29 #endif | 29 #endif |
30 virtual void init(const SkPicture* pict, | 30 virtual void init(const SkPicture* pict, |
31 const SkString* writePath, | 31 const SkString* writePath, |
32 const SkString* mismatchPath, | 32 const SkString* mismatchPath, |
33 const SkString* inputFilename, | 33 const SkString* inputFilename, |
34 bool useChecksumBasedFilenames, | 34 bool useChecksumBasedFilenames, |
35 bool useMultiPictureDraw) SK_OVERRIDE; | 35 bool useMultiPictureDraw) override; |
36 | 36 |
37 /** | 37 /** |
38 * Similar to TiledPictureRenderer, this will draw a PNG for each tile.
However, the | 38 * Similar to TiledPictureRenderer, this will draw a PNG for each tile.
However, the |
39 * numbering (and actual tiles) will be different. | 39 * numbering (and actual tiles) will be different. |
40 */ | 40 */ |
41 bool render(SkBitmap** out) SK_OVERRIDE; | 41 bool render(SkBitmap** out) override; |
42 | 42 |
43 bool supportsTimingIndividualTiles() SK_OVERRIDE { return false; } | 43 bool supportsTimingIndividualTiles() override { return false; } |
44 | 44 |
45 private: | 45 private: |
46 int fXTilesPerLargeTile; | 46 int fXTilesPerLargeTile; |
47 int fYTilesPerLargeTile; | 47 int fYTilesPerLargeTile; |
48 | 48 |
49 int fLargeTileWidth; | 49 int fLargeTileWidth; |
50 int fLargeTileHeight; | 50 int fLargeTileHeight; |
51 | 51 |
52 SkString getConfigNameInternal() SK_OVERRIDE; | 52 SkString getConfigNameInternal() override; |
53 | 53 |
54 typedef TiledPictureRenderer INHERITED; | 54 typedef TiledPictureRenderer INHERITED; |
55 }; | 55 }; |
56 } // sk_tools | 56 } // sk_tools |
57 #endif // CopyTilesRenderer_DEFINED | 57 #endif // CopyTilesRenderer_DEFINED |
OLD | NEW |