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

Unified Diff: cc/layers/draw_properties.h

Issue 265883013: cc: Add a flag to layers that returns true if the layer is in RSLL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | « no previous file | cc/layers/layer_impl.h » ('j') | cc/layers/layer_impl.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/draw_properties.h
diff --git a/cc/layers/draw_properties.h b/cc/layers/draw_properties.h
index 5fd42a49e94ca673599a1841e116fa45238ce26a..2f0179c2420557eff96913ad5c4194f23772cb87 100644
--- a/cc/layers/draw_properties.h
+++ b/cc/layers/draw_properties.h
@@ -34,7 +34,8 @@ struct CC_EXPORT DrawProperties {
index_of_first_descendants_addition(0),
num_descendants_added(0),
index_of_first_render_surface_layer_list_addition(0),
- num_render_surfaces_added(0) {}
+ num_render_surfaces_added(0),
+ last_valid_render_surface_list_id(0) {}
// Transforms objects from content space to target surface space, where
// this layer would be drawn.
@@ -118,6 +119,13 @@ struct CC_EXPORT DrawProperties {
size_t num_descendants_added;
size_t index_of_first_render_surface_layer_list_addition;
size_t num_render_surfaces_added;
+
+ // Each time we generate a new render surface layer list, and ID is used to
danakj 2014/05/06 19:21:31 and->an
vmpstr 2014/05/06 20:52:14 Done.
+ // identify it. |last_valid_render_surface_list_id| is set to the ID that
+ // marked the render surface layer list generation which last updated these
+ // draw properties. If these draw properties are not a part of the render
+ // surface layer list, then this ID will either be out of date or 0.
+ int last_valid_render_surface_list_id;
danakj 2014/05/06 19:21:31 s/surface_list/surface_layer_list/
vmpstr 2014/05/06 20:52:14 Done.
};
} // namespace cc
« no previous file with comments | « no previous file | cc/layers/layer_impl.h » ('j') | cc/layers/layer_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698