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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 } | 253 } |
254 if (fScaleFactor != SK_Scalar1) { | 254 if (fScaleFactor != SK_Scalar1) { |
255 config.appendf("_scalar_%f", SkScalarToFloat(fScaleFactor)); | 255 config.appendf("_scalar_%f", SkScalarToFloat(fScaleFactor)); |
256 } | 256 } |
257 if (kRTree_BBoxHierarchyType == fBBoxHierarchyType) { | 257 if (kRTree_BBoxHierarchyType == fBBoxHierarchyType) { |
258 config.append("_rtree"); | 258 config.append("_rtree"); |
259 } else if (kQuadTree_BBoxHierarchyType == fBBoxHierarchyType) { | 259 } else if (kQuadTree_BBoxHierarchyType == fBBoxHierarchyType) { |
260 config.append("_quadtree"); | 260 config.append("_quadtree"); |
261 } else if (kTileGrid_BBoxHierarchyType == fBBoxHierarchyType) { | 261 } else if (kTileGrid_BBoxHierarchyType == fBBoxHierarchyType) { |
262 config.append("_grid"); | 262 config.append("_grid"); |
| 263 config.append("_"); |
| 264 config.appendS32(fGridInfo.fTileInterval.width()); |
| 265 config.append("x"); |
| 266 config.appendS32(fGridInfo.fTileInterval.height()); |
263 } | 267 } |
264 #if SK_SUPPORT_GPU | 268 #if SK_SUPPORT_GPU |
265 switch (fDeviceType) { | 269 switch (fDeviceType) { |
266 case kGPU_DeviceType: | 270 case kGPU_DeviceType: |
267 if (fSampleCount) { | 271 if (fSampleCount) { |
268 config.appendf("_msaa%d", fSampleCount); | 272 config.appendf("_msaa%d", fSampleCount); |
269 } else { | 273 } else { |
270 config.append("_gpu"); | 274 config.append("_gpu"); |
271 } | 275 } |
272 break; | 276 break; |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
648 | 652 |
649 typedef PictureRenderer INHERITED; | 653 typedef PictureRenderer INHERITED; |
650 }; | 654 }; |
651 | 655 |
652 extern PictureRenderer* CreateGatherPixelRefsRenderer(); | 656 extern PictureRenderer* CreateGatherPixelRefsRenderer(); |
653 extern PictureRenderer* CreatePictureCloneRenderer(); | 657 extern PictureRenderer* CreatePictureCloneRenderer(); |
654 | 658 |
655 } | 659 } |
656 | 660 |
657 #endif // PictureRenderer_DEFINED | 661 #endif // PictureRenderer_DEFINED |
OLD | NEW |