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

Unified Diff: cc/trees/layer_tree_host_common.cc

Issue 139383006: Pass allow_delayed_resize in CompositorFrameMetadata (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Pass allow_delayed_resize in CompositorFrameMetadata Created 6 years, 11 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/trees/layer_tree_host_common.h ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_common.cc
diff --git a/cc/trees/layer_tree_host_common.cc b/cc/trees/layer_tree_host_common.cc
index 5e97f14437a1d00c8dcfc3789e157dd2ac17f545..0fdcefee8449b91f9b1cd3b06e92070cd4b67713 100644
--- a/cc/trees/layer_tree_host_common.cc
+++ b/cc/trees/layer_tree_host_common.cc
@@ -1128,6 +1128,7 @@ struct SubtreeGlobals {
const LayerType* page_scale_application_layer;
bool can_adjust_raster_scales;
bool can_render_to_separate_surface;
+ bool* has_fixed_to_bottom_edge_layer;
};
template<typename LayerType>
@@ -1426,6 +1427,11 @@ static void CalculateDrawPropertiesInternal(
DCHECK(globals.page_scale_application_layer ||
(globals.page_scale_factor == 1.f));
+ if (globals.has_fixed_to_bottom_edge_layer) {
+ *globals.has_fixed_to_bottom_edge_layer |=
+ layer->position_constraint().is_fixed_to_bottom_edge();
+ }
+
DataForRecursion<LayerType> data_for_children;
typename LayerType::RenderSurfaceType*
nearest_occlusion_immune_ancestor_surface =
@@ -2153,6 +2159,10 @@ void LayerTreeHostCommon::CalculateDrawProperties(
globals.can_render_to_separate_surface =
inputs->can_render_to_separate_surface;
globals.can_adjust_raster_scales = inputs->can_adjust_raster_scales;
+ globals.has_fixed_to_bottom_edge_layer =
+ inputs->has_fixed_to_bottom_edge_layer;
+ if (globals.has_fixed_to_bottom_edge_layer)
+ *globals.has_fixed_to_bottom_edge_layer = false;
DataForRecursion<Layer> data_for_recursion;
data_for_recursion.parent_matrix = scaled_device_transform;
@@ -2211,6 +2221,10 @@ void LayerTreeHostCommon::CalculateDrawProperties(
globals.can_render_to_separate_surface =
inputs->can_render_to_separate_surface;
globals.can_adjust_raster_scales = inputs->can_adjust_raster_scales;
+ globals.has_fixed_to_bottom_edge_layer =
+ inputs->has_fixed_to_bottom_edge_layer;
+ if (globals.has_fixed_to_bottom_edge_layer)
+ *globals.has_fixed_to_bottom_edge_layer = false;
DataForRecursion<LayerImpl> data_for_recursion;
data_for_recursion.parent_matrix = scaled_device_transform;
« no previous file with comments | « cc/trees/layer_tree_host_common.h ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698