| 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 virtual SkString getNormalTimeFormat() { return SkString("%6.2f"); } | 227 virtual SkString getNormalTimeFormat() { return SkString("%6.2f"); } |
| 228 | 228 |
| 229 /** | 229 /** |
| 230 * Reports the configuration of this PictureRenderer. | 230 * Reports the configuration of this PictureRenderer. |
| 231 */ | 231 */ |
| 232 SkString getConfigName() { | 232 SkString getConfigName() { |
| 233 SkString config = this->getConfigNameInternal(); | 233 SkString config = this->getConfigNameInternal(); |
| 234 if (!fViewport.isEmpty()) { | 234 if (!fViewport.isEmpty()) { |
| 235 config.appendf("_viewport_%ix%i", fViewport.width(), fViewport.heigh
t()); | 235 config.appendf("_viewport_%ix%i", fViewport.width(), fViewport.heigh
t()); |
| 236 } | 236 } |
| 237 if (fScaleFactor != SK_Scalar1) { |
| 238 config.appendf("_scalar_%f", SkScalarToFloat(fScaleFactor)); |
| 239 } |
| 237 if (kRTree_BBoxHierarchyType == fBBoxHierarchyType) { | 240 if (kRTree_BBoxHierarchyType == fBBoxHierarchyType) { |
| 238 config.append("_rtree"); | 241 config.append("_rtree"); |
| 239 } else if (kTileGrid_BBoxHierarchyType == fBBoxHierarchyType) { | 242 } else if (kTileGrid_BBoxHierarchyType == fBBoxHierarchyType) { |
| 240 config.append("_grid"); | 243 config.append("_grid"); |
| 241 } | 244 } |
| 242 #if SK_SUPPORT_GPU | 245 #if SK_SUPPORT_GPU |
| 243 switch (fDeviceType) { | 246 switch (fDeviceType) { |
| 244 case kGPU_DeviceType: | 247 case kGPU_DeviceType: |
| 245 if (fSampleCount) { | 248 if (fSampleCount) { |
| 246 config.appendf("_msaa%d", fSampleCount); | 249 config.appendf("_msaa%d", fSampleCount); |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 583 | 586 |
| 584 typedef PictureRenderer INHERITED; | 587 typedef PictureRenderer INHERITED; |
| 585 }; | 588 }; |
| 586 | 589 |
| 587 extern PictureRenderer* CreateGatherPixelRefsRenderer(); | 590 extern PictureRenderer* CreateGatherPixelRefsRenderer(); |
| 588 extern PictureRenderer* CreatePictureCloneRenderer(); | 591 extern PictureRenderer* CreatePictureCloneRenderer(); |
| 589 | 592 |
| 590 } | 593 } |
| 591 | 594 |
| 592 #endif // PictureRenderer_DEFINED | 595 #endif // PictureRenderer_DEFINED |
| OLD | NEW |