| 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 | 164 |
| 165 void setDrawFilters(DrawFilterFlags const * const filters, const SkString& c
onfigName) { | 165 void setDrawFilters(DrawFilterFlags const * const filters, const SkString& c
onfigName) { |
| 166 memcpy(fDrawFilters, filters, sizeof(fDrawFilters)); | 166 memcpy(fDrawFilters, filters, sizeof(fDrawFilters)); |
| 167 fDrawFiltersConfig = configName; | 167 fDrawFiltersConfig = configName; |
| 168 } | 168 } |
| 169 | 169 |
| 170 void setBBoxHierarchyType(BBoxHierarchyType bbhType) { | 170 void setBBoxHierarchyType(BBoxHierarchyType bbhType) { |
| 171 fBBoxHierarchyType = bbhType; | 171 fBBoxHierarchyType = bbhType; |
| 172 } | 172 } |
| 173 | 173 |
| 174 BBoxHierarchyType getBBoxHierarchyType() { return fBBoxHierarchyType; } |
| 175 |
| 174 void setGridSize(int width, int height) { | 176 void setGridSize(int width, int height) { |
| 175 fGridInfo.fTileInterval.set(width, height); | 177 fGridInfo.fTileInterval.set(width, height); |
| 176 } | 178 } |
| 177 | 179 |
| 178 bool isUsingBitmapDevice() { | 180 bool isUsingBitmapDevice() { |
| 179 return kBitmap_DeviceType == fDeviceType; | 181 return kBitmap_DeviceType == fDeviceType; |
| 180 } | 182 } |
| 181 | 183 |
| 182 virtual SkString getPerIterTimeFormat() { return SkString("%.2f"); } | 184 virtual SkString getPerIterTimeFormat() { return SkString("%.2f"); } |
| 183 | 185 |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 | 534 |
| 533 typedef PictureRenderer INHERITED; | 535 typedef PictureRenderer INHERITED; |
| 534 }; | 536 }; |
| 535 | 537 |
| 536 extern PictureRenderer* CreateGatherPixelRefsRenderer(); | 538 extern PictureRenderer* CreateGatherPixelRefsRenderer(); |
| 537 extern PictureRenderer* CreatePictureCloneRenderer(); | 539 extern PictureRenderer* CreatePictureCloneRenderer(); |
| 538 | 540 |
| 539 } | 541 } |
| 540 | 542 |
| 541 #endif // PictureRenderer_DEFINED | 543 #endif // PictureRenderer_DEFINED |
| OLD | NEW |