Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Side by Side Diff: tools/PictureRenderer.h

Issue 12801002: Modifying the behavior of render_pictures --validate to test the effect of bbh. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/render_pictures_main.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | tools/render_pictures_main.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698