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

Side by Side Diff: bench/ChromeBench.cpp

Issue 347823004: Remove Sk prefix from some bench classes. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: SkGMBench -> GMBench Created 6 years, 6 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 | « bench/ChecksumBench.cpp ('k') | bench/CmapBench.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 2011 Google Inc. 2 * Copyright 2011 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 #include "SkBenchmark.h" 7 #include "Benchmark.h"
8 #include "SkCanvas.h" 8 #include "SkCanvas.h"
9 #include "SkPaint.h" 9 #include "SkPaint.h"
10 #include "SkString.h" 10 #include "SkString.h"
11 11
12 /** 12 /**
13 Benchmarks that try to emulate a particular Skia call pattern observed in Chr ome. 13 Benchmarks that try to emulate a particular Skia call pattern observed in Chr ome.
14 */ 14 */
15 15
16 /// blitRect() calls emitted by Chrome while scrolling through gmail: count, wid th, height. 16 /// blitRect() calls emitted by Chrome while scrolling through gmail: count, wid th, height.
17 int gmailScrollingRectSpec [431*3] = { 17 int gmailScrollingRectSpec [431*3] = {
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 17664, 198, 1, 442 17664, 198, 1,
443 17664, 25, 1, 443 17664, 25, 1,
444 17664, 2, 1, 444 17664, 2, 1,
445 17664, 599, 1, 445 17664, 599, 1,
446 17664, 90, 1, 446 17664, 90, 1,
447 17710, 24, 1, 447 17710, 24, 1,
448 35328, 26, 1, 448 35328, 26, 1,
449 }; 449 };
450 450
451 /// Emulates the mix of rects blitted by gmail during scrolling 451 /// Emulates the mix of rects blitted by gmail during scrolling
452 class ScrollGmailBench : public SkBenchmark { 452 class ScrollGmailBench : public Benchmark {
453 enum { 453 enum {
454 W = 1254, 454 W = 1254,
455 H = 1160, 455 H = 1160,
456 N = 431 456 N = 431
457 }; 457 };
458 public: 458 public:
459 ScrollGmailBench() { } 459 ScrollGmailBench() { }
460 460
461 protected: 461 protected:
462 462
(...skipping 18 matching lines...) Expand all
481 } 481 }
482 void validateBounds(SkCanvas* canvas) { 482 void validateBounds(SkCanvas* canvas) {
483 SkIRect bounds; 483 SkIRect bounds;
484 canvas->getClipDeviceBounds(&bounds); 484 canvas->getClipDeviceBounds(&bounds);
485 SkASSERT(bounds.right()-bounds.left() >= W); 485 SkASSERT(bounds.right()-bounds.left() >= W);
486 SkASSERT(bounds.bottom()-bounds.top() >= H); 486 SkASSERT(bounds.bottom()-bounds.top() >= H);
487 } 487 }
488 488
489 489
490 private: 490 private:
491 typedef SkBenchmark INHERITED; 491 typedef Benchmark INHERITED;
492 }; 492 };
493 493
494 // Disabled this benchmark: it takes 15x longer than any other benchmark 494 // Disabled this benchmark: it takes 15x longer than any other benchmark
495 // and is probably not giving us important information. 495 // and is probably not giving us important information.
496 // DEF_BENCH(return SkNEW(ScrollGmailBench)); 496 // DEF_BENCH(return SkNEW(ScrollGmailBench));
OLDNEW
« no previous file with comments | « bench/ChecksumBench.cpp ('k') | bench/CmapBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698