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

Side by Side Diff: bench/ShapesBench.cpp

Issue 1691813002: Try further reducing the number of primitives in the donut tests. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « no previous file | no next file » | 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 /* 2 /*
3 * Copyright 2016 Google Inc. 3 * Copyright 2016 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "Benchmark.h" 9 #include "Benchmark.h"
10 #include "SkCanvas.h" 10 #include "SkCanvas.h"
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 DEF_BENCH(return new ShapesBench(ShapesBench::kOval_ShapesType, ShapesBench::kNo ne_ShapesType, 269 DEF_BENCH(return new ShapesBench(ShapesBench::kOval_ShapesType, ShapesBench::kNo ne_ShapesType,
270 1000, SkISize::Make(500, 501), false);) 270 1000, SkISize::Make(500, 501), false);)
271 DEF_BENCH(return new ShapesBench(ShapesBench::kRRect_ShapesType, ShapesBench::kN one_ShapesType, 271 DEF_BENCH(return new ShapesBench(ShapesBench::kRRect_ShapesType, ShapesBench::kN one_ShapesType,
272 1000, SkISize::Make(500, 500), false);) 272 1000, SkISize::Make(500, 500), false);)
273 DEF_BENCH(return new ShapesBench(ShapesBench::kMixed_ShapesType, ShapesBench::kN one_ShapesType, 273 DEF_BENCH(return new ShapesBench(ShapesBench::kMixed_ShapesType, ShapesBench::kN one_ShapesType,
274 1000, SkISize::Make(500, 501), false);) 274 1000, SkISize::Make(500, 501), false);)
275 275
276 // Donuts (small and large). These fall-back to path rendering due to non-orthog onal rotation 276 // Donuts (small and large). These fall-back to path rendering due to non-orthog onal rotation
277 // making them quite slow. Thus, reduce the counts substantially: 277 // making them quite slow. Thus, reduce the counts substantially:
278 DEF_BENCH(return new ShapesBench(ShapesBench::kRect_ShapesType, ShapesBench::kRe ct_ShapesType, 278 DEF_BENCH(return new ShapesBench(ShapesBench::kRect_ShapesType, ShapesBench::kRe ct_ShapesType,
279 2000, SkISize::Make(32, 32), false);) 279 500, SkISize::Make(32, 32), false);)
280 DEF_BENCH(return new ShapesBench(ShapesBench::kRRect_ShapesType, ShapesBench::kR Rect_ShapesType, 280 DEF_BENCH(return new ShapesBench(ShapesBench::kRRect_ShapesType, ShapesBench::kR Rect_ShapesType,
281 2000, SkISize::Make(32, 32), false);) 281 500, SkISize::Make(32, 32), false);)
282 DEF_BENCH(return new ShapesBench(ShapesBench::kRect_ShapesType, ShapesBench::kRe ct_ShapesType, 282 DEF_BENCH(return new ShapesBench(ShapesBench::kRect_ShapesType, ShapesBench::kRe ct_ShapesType,
283 200, SkISize::Make(500, 500), false);) 283 50, SkISize::Make(500, 500), false);)
284 DEF_BENCH(return new ShapesBench(ShapesBench::kRRect_ShapesType, ShapesBench::kR Rect_ShapesType, 284 DEF_BENCH(return new ShapesBench(ShapesBench::kRRect_ShapesType, ShapesBench::kR Rect_ShapesType,
285 200, SkISize::Make(500, 500), false);) 285 50, SkISize::Make(500, 500), false);)
286 286
287 #if ENABLE_COMMAND_LINE_SHAPES_BENCH 287 #if ENABLE_COMMAND_LINE_SHAPES_BENCH
288 DEF_BENCH(return new ShapesBench;) 288 DEF_BENCH(return new ShapesBench;)
289 #endif 289 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698