summaryrefslogtreecommitdiffstats
path: root/cc/resources/tile.h
diff options
context:
space:
mode:
authorernstm@chromium.org <ernstm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-17 06:34:12 +0000
committerernstm@chromium.org <ernstm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-17 06:34:12 +0000
commit206a3926590cbf7e9d92fa15cade21f20f9245d7 (patch)
treeafb2060ab5edc3889900c206d4ecc5874355bb20 /cc/resources/tile.h
parent884e4d7aee2c082df99654b60e82b47194ed1242 (diff)
downloadchromium_src-206a3926590cbf7e9d92fa15cade21f20f9245d7.zip
chromium_src-206a3926590cbf7e9d92fa15cade21f20f9245d7.tar.gz
chromium_src-206a3926590cbf7e9d92fa15cade21f20f9245d7.tar.bz2
cc: Added features for more accurate raster benchmark
- Added debug switch to rasterize only visible tiles - Tagged all tiles and raster tasks with their source frame number BUG=226489 Review URL: https://chromiumcodereview.appspot.com/14975007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200736 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/resources/tile.h')
-rw-r--r--cc/resources/tile.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/cc/resources/tile.h b/cc/resources/tile.h
index f68fdf1..fa75bb0 100644
--- a/cc/resources/tile.h
+++ b/cc/resources/tile.h
@@ -28,7 +28,8 @@ class CC_EXPORT Tile : public base::RefCounted<Tile> {
gfx::Rect content_rect,
gfx::Rect opaque_rect,
float contents_scale,
- int layer_id);
+ int layer_id,
+ int source_frame_number);
PicturePileImpl* picture_pile() {
return picture_pile_.get();
@@ -64,6 +65,8 @@ class CC_EXPORT Tile : public base::RefCounted<Tile> {
int layer_id() const { return layer_id_; }
+ int source_frame_number() const { return source_frame_number_; }
+
void set_picture_pile(scoped_refptr<PicturePileImpl> pile) {
DCHECK(pile->CanRaster(contents_scale_, content_rect_));
picture_pile_ = pile;
@@ -99,6 +102,7 @@ class CC_EXPORT Tile : public base::RefCounted<Tile> {
TilePriority priority_[NUM_BIN_PRIORITIES];
ManagedTileState managed_state_;
int layer_id_;
+ int source_frame_number_;
DISALLOW_COPY_AND_ASSIGN(Tile);
};