summaryrefslogtreecommitdiffstats
path: root/cc/debug/rendering_stats_instrumentation.cc
diff options
context:
space:
mode:
authorenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-07 11:57:21 +0000
committerenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-07 11:57:21 +0000
commit674bd3f43ca17ad5e0c506b561d4846d15c14c5a (patch)
treead8509d00bc74249749ce65d957da24fd557ce85 /cc/debug/rendering_stats_instrumentation.cc
parentfec9a648c3e71ab58742b55a7df6fc9827e14fd8 (diff)
downloadchromium_src-674bd3f43ca17ad5e0c506b561d4846d15c14c5a.zip
chromium_src-674bd3f43ca17ad5e0c506b561d4846d15c14c5a.tar.gz
chromium_src-674bd3f43ca17ad5e0c506b561d4846d15c14c5a.tar.bz2
cc: Combine analysis and raster
This changes the analysis of PicturePiles from optimistic (hoping to save raster work by checking if a rastered bitmap would be a solid color) to pessimistic (assuming most bitmaps are not solid colors and just checking afterwards). It does this by rastering to both an AnalysisCanvas and a normal SkCanvas via SkNWayCanvas and then checking the results afterwards. R=reveman@chromium.org, senorblanco@chromium.org BUG=310796 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=234641 Review URL: https://codereview.chromium.org/63443003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243268 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/debug/rendering_stats_instrumentation.cc')
-rw-r--r--cc/debug/rendering_stats_instrumentation.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/cc/debug/rendering_stats_instrumentation.cc b/cc/debug/rendering_stats_instrumentation.cc
index 63840a3..3987b7e 100644
--- a/cc/debug/rendering_stats_instrumentation.cc
+++ b/cc/debug/rendering_stats_instrumentation.cc
@@ -99,13 +99,4 @@ void RenderingStatsInstrumentation::AddRaster(base::TimeDelta duration,
impl_stats_.rasterized_pixel_count += pixels;
}
-void RenderingStatsInstrumentation::AddAnalysis(base::TimeDelta duration,
- int64 pixels) {
- if (!record_rendering_stats_)
- return;
-
- base::AutoLock scoped_lock(lock_);
- impl_stats_.analysis_time += duration;
-}
-
} // namespace cc