| commit | 111fd11e11cbc296c97225ea16b7ff174a4bcdb5 | [log] [tgz] |
|---|---|---|
| author | scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed Sep 25 21:42:12 2013 +0000 |
| committer | scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed Sep 25 21:42:12 2013 +0000 |
| tree | 1d7bb5d480fb78b7fa637a27c04485f357d3326a | |
| parent | b5571b3324cf18629a255ec85e189447069c9b14 [diff] [blame] |
Bench baseline for mostly 0 image. Add a baseline for decoding a mostly 0 image. This is in advance of https://codereview.chromium.org/24269006/ which provides an option to skip writing those 0s (as part of BUG=skia:1661). On my Nexus 4, the benchmark does not slow down after that change. As suggested in https://codereview.chromium.org/24269006/ add a resourcePath flag to bench. Will require a change in buildbot in order to actually use the flag. Add an image used by the test. Until https://codereview.chromium.org/24448002 is submitted, the test will not actually be run by the bots (since it won't know where to find the file). BUG=skia:1661 R=djsollen@google.com, mtklein@google.com Review URL: https://codereview.chromium.org/24440002 git-svn-id: http://skia.googlecode.com/svn/trunk@11461 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/bench/SkBenchmark.cpp b/bench/SkBenchmark.cpp index 4d361e7..e11ebcf 100644 --- a/bench/SkBenchmark.cpp +++ b/bench/SkBenchmark.cpp
@@ -1,4 +1,3 @@ - /* * Copyright 2011 Google Inc. * @@ -15,6 +14,8 @@ template BenchRegistry* BenchRegistry::gHead; +SkString SkBenchmark::gResourcePath; + SkBenchmark::SkBenchmark() { fForceAlpha = 0xFF; fForceAA = true;