Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(203)

Unified Diff: cc/picture_layer_tiling.cc

Issue 12096112: [cc] Trace detailed tile info when --trace-all-rendered-frames (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Dont expose to extension yet Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/picture_layer_tiling.h ('k') | cc/picture_layer_tiling_set.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/picture_layer_tiling.cc
diff --git a/cc/picture_layer_tiling.cc b/cc/picture_layer_tiling.cc
index ae3afc39d0451f79f96449138fba168f8f90ae2a..a106d26a5bf4150b24824ad729d34bc0bf39b587 100644
--- a/cc/picture_layer_tiling.cc
+++ b/cc/picture_layer_tiling.cc
@@ -340,7 +340,8 @@ void PictureLayerTiling::UpdateTilePriorities(
const gfx::Transform& last_screen_transform,
const gfx::Transform& current_screen_transform,
int current_source_frame_number,
- double current_frame_time) {
+ double current_frame_time,
+ bool store_screen_space_quads_on_tiles) {
TRACE_EVENT0("cc", "PictureLayerTiling::UpdateTilePriorities");
if (ContentRect().IsEmpty())
return;
@@ -443,11 +444,11 @@ void PictureLayerTiling::UpdateTilePriorities(
resolution_,
time_to_visible_in_seconds,
distance_to_visible_in_pixels);
+ if (store_screen_space_quads_on_tiles)
+ priority.set_current_screen_quad(gfx::QuadF(current_screen_rect));
tile->set_priority(tree, priority);
}
- }
- else
- {
+ } else {
for (TilingData::Iterator iter(&tiling_data_, inflated_rect);
iter; ++iter) {
TileMap::iterator find = tiles_.find(iter.index());
@@ -481,6 +482,13 @@ void PictureLayerTiling::UpdateTilePriorities(
resolution_,
time_to_visible_in_seconds,
distance_to_visible_in_pixels);
+ if (store_screen_space_quads_on_tiles) {
+ bool clipped;
+ priority.set_current_screen_quad(
+ MathUtil::mapQuad(current_screen_transform,
+ gfx::QuadF(current_layer_content_rect),
+ clipped));
+ }
tile->set_priority(tree, priority);
}
}
« no previous file with comments | « cc/picture_layer_tiling.h ('k') | cc/picture_layer_tiling_set.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698