Lines Matching refs:layer_impl

35 #include "cc/layers/layer_impl.h"
443 LayerImpl* layer_impl =
448 device_viewport_point, type, layer_impl, &scroll_on_main_thread, NULL);
458 LayerImpl* layer_impl =
462 return layer_impl != NULL;
1288 LayerImpl* layer_impl =
1290 if (layer_impl)
1291 layer_impl->NotifyTileStateChanged(tile);
1295 LayerImpl* layer_impl =
1297 if (layer_impl)
1298 layer_impl->NotifyTileStateChanged(tile);
1708 static LayerImpl* FindScrollLayerForContentLayer(LayerImpl* layer_impl) {
1709 if (!layer_impl)
1712 if (layer_impl->scrollable())
1713 return layer_impl;
1715 if (layer_impl->DrawsContent() &&
1716 layer_impl->parent() &&
1717 layer_impl->parent()->scrollable())
1718 return layer_impl->parent();
2236 LayerImpl* layer_impl,
2243 for (; layer_impl; layer_impl = NextScrollLayer(layer_impl)) {
2246 ScrollStatus status = layer_impl->TryScroll(device_viewport_point, type);
2252 LayerImpl* scroll_layer_impl = FindScrollLayerForContentLayer(layer_impl);
2306 LayerImpl* layer_impl =
2309 if (layer_impl) {
2313 if (scroll_layer_impl && !HasScrollAncestor(layer_impl, scroll_layer_impl))
2321 layer_impl,
2344 if (LayerImpl* layer_impl = CurrentlyScrollingLayer()) {
2346 layer_impl->layer_animation_controller()->GetAnimation(
2356 new_target.SetToMin(layer_impl->MaxScrollOffset());
2370 for (LayerImpl* layer_impl = CurrentlyScrollingLayer(); layer_impl;
2371 layer_impl = layer_impl->parent()) {
2372 if (!layer_impl->scrollable())
2375 gfx::Vector2dF current_offset = layer_impl->TotalScrollOffset();
2378 target_offset.SetToMin(layer_impl->MaxScrollOffset());
2386 layer_impl->ScrollBy(actual_delta);
2391 active_tree_->SetCurrentlyScrollingLayer(layer_impl);
2405 layer_impl->layer_animation_controller()->AddAnimation(animation.Pass());
2416 LayerImpl* layer_impl,
2422 DCHECK(layer_impl->screen_space_transform().IsInvertible());
2425 bool did_invert = layer_impl->screen_space_transform().GetInverse(
2458 float width_scale = 1.f / layer_impl->contents_scale_x();
2459 float height_scale = 1.f / layer_impl->contents_scale_y();
2464 gfx::Vector2dF previous_delta = layer_impl->ScrollDelta();
2465 layer_impl->ScrollBy(local_end_point - local_start_point);
2470 layer_impl->ScrollDelta() -
2479 MathUtil::MapPoint(layer_impl->screen_space_transform(),
2491 static gfx::Vector2dF ScrollLayerWithLocalDelta(LayerImpl* layer_impl,
2493 gfx::Vector2dF previous_delta(layer_impl->ScrollDelta());
2494 layer_impl->ScrollBy(local_delta);
2495 return layer_impl->ScrollDelta() - previous_delta;
2518 for (LayerImpl* layer_impl = CurrentlyScrollingLayer();
2519 layer_impl;
2520 layer_impl = layer_impl->parent()) {
2521 if (!layer_impl->scrollable())
2524 if (layer_impl == InnerViewportScrollLayer()) {
2536 layer_impl->ScrollbarParametersDidChange();
2551 ScrollLayerWithViewportSpaceDelta(layer_impl,
2555 applied_delta = ScrollLayerWithLocalDelta(layer_impl, pending_delta);
2559 if (layer_impl == InnerViewportScrollLayer()) {
2582 layer_impl == OuterViewportScrollLayer())
2590 active_tree_->SetCurrentlyScrollingLayer(layer_impl);
2648 for (LayerImpl* layer_impl = CurrentlyScrollingLayer();
2649 layer_impl;
2650 layer_impl = layer_impl->parent()) {
2651 if (!layer_impl->scrollable())
2654 if (!layer_impl->HasScrollbar(VERTICAL))
2657 float height = layer_impl->clip_height();
2667 gfx::Vector2dF applied_delta = ScrollLayerWithLocalDelta(layer_impl, delta);
2676 active_tree_->SetCurrentlyScrollingLayer(layer_impl);
2731 LayerImpl* layer_impl) {
2732 if (!layer_impl)
2736 layer_impl->content_bounds());
2739 layer_impl->screen_space_transform(),
2749 LayerImpl* layer_impl =
2751 if (HandleMouseOverScrollbar(layer_impl, device_viewport_point))
2773 layer_impl,
2798 bool LayerTreeHostImpl::HandleMouseOverScrollbar(LayerImpl* layer_impl,
2800 if (layer_impl && layer_impl->ToScrollbarLayer()) {
2801 int scroll_layer_id = layer_impl->ToScrollbarLayer()->ScrollLayerId();
2802 layer_impl = active_tree_->LayerById(scroll_layer_id);
2803 if (layer_impl && layer_impl->scrollbar_animation_controller()) {
2805 layer_impl->scrollbar_animation_controller()->DidMouseMoveNear(0);
2905 LayerImpl* layer_impl) {
2906 if (!layer_impl)
2910 gfx::ToFlooredVector2d(layer_impl->ScrollDelta());
2913 scroll.layer_id = layer_impl->id();
2916 layer_impl->SetSentScrollDelta(scroll_delta);
2919 for (size_t i = 0; i < layer_impl->children().size(); ++i)
2920 CollectScrollDeltas(scroll_info, layer_impl->children()[i]);