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

Unified Diff: cc/trees/draw_property_utils.cc

Issue 2795963002: cc: Reduce surface contents scale adjustments. (Closed)
Patch Set: apply scale for copy requests Created 3 years, 8 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/draw_property_utils.h ('k') | cc/trees/layer_tree_host_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/draw_property_utils.cc
diff --git a/cc/trees/draw_property_utils.cc b/cc/trees/draw_property_utils.cc
index 1bcf17944720d8349de31abc8c676029ebd706e8..27eb425da9995d22ce9b3ac02f1f37b16c99cbdf 100644
--- a/cc/trees/draw_property_utils.cc
+++ b/cc/trees/draw_property_utils.cc
@@ -899,7 +899,8 @@ void UpdatePropertyTrees(LayerTreeHost* layer_tree_host,
void UpdatePropertyTreesAndRenderSurfaces(LayerImpl* root_layer,
PropertyTrees* property_trees,
- bool can_render_to_separate_surface) {
+ bool can_render_to_separate_surface,
+ bool can_adjust_raster_scales) {
bool render_surfaces_need_update = false;
if (property_trees->non_root_surfaces_enabled !=
can_render_to_separate_surface) {
@@ -907,6 +908,11 @@ void UpdatePropertyTreesAndRenderSurfaces(LayerImpl* root_layer,
property_trees->transform_tree.set_needs_update(true);
render_surfaces_need_update = true;
}
+ if (property_trees->can_adjust_raster_scales != can_adjust_raster_scales) {
+ property_trees->can_adjust_raster_scales = can_adjust_raster_scales;
+ property_trees->transform_tree.set_needs_update(true);
+ render_surfaces_need_update = true;
+ }
if (property_trees->transform_tree.needs_update()) {
property_trees->clip_tree.set_needs_update(true);
property_trees->effect_tree.set_needs_update(true);
« no previous file with comments | « cc/trees/draw_property_utils.h ('k') | cc/trees/layer_tree_host_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698