summaryrefslogtreecommitdiffstats
path: root/cc/picture_pile_impl.h
diff options
context:
space:
mode:
authorvmpstr@chromium.org <vmpstr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-06 02:13:58 +0000
committervmpstr@chromium.org <vmpstr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-06 02:13:58 +0000
commit78c64d77fe3aa64f628215cd3ac80ba788c8dbc8 (patch)
tree849f7e501a9cc56dfdf168f52d0ec9e0bcb07562 /cc/picture_pile_impl.h
parent0d4dba1552f4852c07de0113430c56cf1e73ca9d (diff)
downloadchromium_src-78c64d77fe3aa64f628215cd3ac80ba788c8dbc8.zip
chromium_src-78c64d77fe3aa64f628215cd3ac80ba788c8dbc8.tar.gz
chromium_src-78c64d77fe3aa64f628215cd3ac80ba788c8dbc8.tar.bz2
cc: Add cheapness predictor success histogram
For picture piles that are fairly cheap to rasterize, we want to do the step on the same thread (instead of dispatching it to a different thread). As a first step, this change adds an accuracy metric for the predictor. Three new histograms are added: CheapPredictorAccuracy measures overall success rate of the predictor; CheapPredictorSafelyWrong counts the number of times the prediction was "this is a slow raster", but in reality it was fast; CheapPredictorBadlyWrong counts the number of times the prediction was "this is a fast raster", but in reality it was slow. BUG=173426 Review URL: https://chromiumcodereview.appspot.com/12192025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180863 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/picture_pile_impl.h')
-rw-r--r--cc/picture_pile_impl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cc/picture_pile_impl.h b/cc/picture_pile_impl.h
index 2911977..157f9e2 100644
--- a/cc/picture_pile_impl.h
+++ b/cc/picture_pile_impl.h
@@ -49,6 +49,8 @@ class CC_EXPORT PicturePileImpl : public PicturePileBase {
slow_down_raster_scale_factor_for_debug_ = factor;
}
+ bool IsCheapInRect(gfx::Rect content_rect, float contents_scale) const;
+
protected:
friend class PicturePile;