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

Side by Side Diff: cc/trees/draw_property_utils.cc

Issue 1639363002: Move have_wheel_event_handlers to WebLayerTreeView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase (resolve scroll blocks removal) conflicts Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/trees/draw_property_utils.h" 5 #include "cc/trees/draw_property_utils.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 // case where we may animate to a non-singular transform and wish to 304 // case where we may animate to a non-singular transform and wish to
305 // pre-raster. 305 // pre-raster.
306 if (!HasInvertibleOrAnimatedTransform(layer)) 306 if (!HasInvertibleOrAnimatedTransform(layer))
307 return true; 307 return true;
308 308
309 // When we need to do a readback/copy of a layer's output, we can not skip 309 // When we need to do a readback/copy of a layer's output, we can not skip
310 // it or any of its ancestors. 310 // it or any of its ancestors.
311 if (layer->num_copy_requests_in_target_subtree() > 0) 311 if (layer->num_copy_requests_in_target_subtree() > 0)
312 return false; 312 return false;
313 313
314 // We cannot skip the the subtree if a descendant has a wheel or touch handler 314 // We cannot skip the the subtree if a descendant has a touch handler
315 // or the hit testing code will break (it requires fresh transforms, etc). 315 // or the hit testing code will break (it requires fresh transforms, etc).
316 // Though we don't need visible rect for hit testing, we need render surface's 316 // Though we don't need visible rect for hit testing, we need render surface's
317 // drawable content rect which depends on layer's drawable content rect which 317 // drawable content rect which depends on layer's drawable content rect which
318 // in turn depends on layer's clip rect that is computed while computing 318 // in turn depends on layer's clip rect that is computed while computing
319 // visible rects. 319 // visible rects.
320 if (layer->layer_or_descendant_has_input_handler()) 320 if (layer->layer_or_descendant_has_touch_handler())
321 return false; 321 return false;
322 322
323 // If the layer is not drawn, then skip it and its subtree. 323 // If the layer is not drawn, then skip it and its subtree.
324 if (!layer_is_drawn) 324 if (!layer_is_drawn)
325 return true; 325 return true;
326 326
327 if (layer->render_surface() && !layer->double_sided() && 327 if (layer->render_surface() && !layer->double_sided() &&
328 IsSurfaceBackFaceVisible(layer, tree)) 328 IsSurfaceBackFaceVisible(layer, tree))
329 return true; 329 return true;
330 330
(...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after
1176 1176
1177 void UpdateElasticOverscrollInPropertyTrees( 1177 void UpdateElasticOverscrollInPropertyTrees(
1178 PropertyTrees* property_trees, 1178 PropertyTrees* property_trees,
1179 const Layer* overscroll_elasticity_layer, 1179 const Layer* overscroll_elasticity_layer,
1180 const gfx::Vector2dF& elastic_overscroll) { 1180 const gfx::Vector2dF& elastic_overscroll) {
1181 UpdateElasticOverscrollInPropertyTreesInternal( 1181 UpdateElasticOverscrollInPropertyTreesInternal(
1182 property_trees, overscroll_elasticity_layer, elastic_overscroll); 1182 property_trees, overscroll_elasticity_layer, elastic_overscroll);
1183 } 1183 }
1184 1184
1185 } // namespace cc 1185 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698