diff options
author | enne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-20 02:57:27 +0000 |
---|---|---|
committer | enne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-20 02:57:27 +0000 |
commit | 2e7ca42d140fd97197b4c73513197da3855d214c (patch) | |
tree | e9523b9e9fb544ed53652f7029485c634cb73505 /cc/picture_layer_tiling_set.h | |
parent | e8522294bd6a74d665fa8dabf7d8c71e747c67f8 (diff) | |
download | chromium_src-2e7ca42d140fd97197b4c73513197da3855d214c.zip chromium_src-2e7ca42d140fd97197b4c73513197da3855d214c.tar.gz chromium_src-2e7ca42d140fd97197b4c73513197da3855d214c.tar.bz2 |
cc: Add pending tree for impl-side painting
Do tree synchronization to pending tree. Inform scheduler when there is a pending tree so that vsync can continue to be scheduled.
Right now everything is hooked through redraw, so canDraw is true when there is a pending tree, prepareToDraw is the one that checks for tree swap, and TileManager::DidFinishTileInitialization ends up calling setNeedsRedraw. I'm not sure this is ideal, but it's a start.
BUG=155209
Review URL: https://chromiumcodereview.appspot.com/11569040
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174089 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/picture_layer_tiling_set.h')
-rw-r--r-- | cc/picture_layer_tiling_set.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/cc/picture_layer_tiling_set.h b/cc/picture_layer_tiling_set.h index 29ad92f..55bf71e 100644 --- a/cc/picture_layer_tiling_set.h +++ b/cc/picture_layer_tiling_set.h @@ -17,7 +17,7 @@ class CC_EXPORT PictureLayerTilingSet { PictureLayerTilingSet(PictureLayerTilingClient* client); ~PictureLayerTilingSet(); - // Shallow copies all data (except client) from other. + // Shallow copies all data (except client and bounds from other). void CloneAll( const PictureLayerTilingSet& other, const Region& invalidation); @@ -36,12 +36,14 @@ class CC_EXPORT PictureLayerTilingSet { void Reset(); - void UpdateTilePriorities(const gfx::Size& device_viewport, - float layer_content_scale_x, - float layer_content_scale_y, - const gfx::Transform& last_screen_transform, - const gfx::Transform& current_screen_transform, - double time_delta); + void UpdateTilePriorities( + WhichTree tree, + const gfx::Size& device_viewport, + float layer_content_scale_x, + float layer_content_scale_y, + const gfx::Transform& last_screen_transform, + const gfx::Transform& current_screen_transform, + double time_delta); // For a given rect, iterates through tiles that can fill it. If no // set of tiles with resources can fill the rect, then it will iterate |