| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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/layer_impl.h" | 5 #include "cc/layer_impl.h" |
| 6 | 6 |
| 7 #include "base/debug/trace_event.h" | 7 #include "base/debug/trace_event.h" |
| 8 #include "base/stringprintf.h" | 8 #include "base/stringprintf.h" |
| 9 #include "cc/debug_border_draw_quad.h" | 9 #include "cc/debug_border_draw_quad.h" |
| 10 #include "cc/debug_colors.h" | 10 #include "cc/debug_colors.h" |
| (...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 673 noteLayerPropertyChangedForSubtree(); | 673 noteLayerPropertyChangedForSubtree(); |
| 674 } | 674 } |
| 675 | 675 |
| 676 Region LayerImpl::visibleContentOpaqueRegion() const | 676 Region LayerImpl::visibleContentOpaqueRegion() const |
| 677 { | 677 { |
| 678 if (contentsOpaque()) | 678 if (contentsOpaque()) |
| 679 return visibleContentRect(); | 679 return visibleContentRect(); |
| 680 return Region(); | 680 return Region(); |
| 681 } | 681 } |
| 682 | 682 |
| 683 void LayerImpl::didLoseContext() | 683 void LayerImpl::didLoseOutputSurface() |
| 684 { | 684 { |
| 685 } | 685 } |
| 686 | 686 |
| 687 void LayerImpl::setMaxScrollOffset(gfx::Vector2d maxScrollOffset) | 687 void LayerImpl::setMaxScrollOffset(gfx::Vector2d maxScrollOffset) |
| 688 { | 688 { |
| 689 m_maxScrollOffset = maxScrollOffset; | 689 m_maxScrollOffset = maxScrollOffset; |
| 690 | 690 |
| 691 if (!m_scrollbarAnimationController) | 691 if (!m_scrollbarAnimationController) |
| 692 return; | 692 return; |
| 693 m_scrollbarAnimationController->updateScrollOffset(this); | 693 m_scrollbarAnimationController->updateScrollOffset(this); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 723 | 723 |
| 724 void LayerImpl::setVerticalScrollbarLayer(ScrollbarLayerImpl* scrollbarLayer) | 724 void LayerImpl::setVerticalScrollbarLayer(ScrollbarLayerImpl* scrollbarLayer) |
| 725 { | 725 { |
| 726 if (!m_scrollbarAnimationController) | 726 if (!m_scrollbarAnimationController) |
| 727 m_scrollbarAnimationController = ScrollbarAnimationController::create(th
is); | 727 m_scrollbarAnimationController = ScrollbarAnimationController::create(th
is); |
| 728 m_scrollbarAnimationController->setVerticalScrollbarLayer(scrollbarLayer); | 728 m_scrollbarAnimationController->setVerticalScrollbarLayer(scrollbarLayer); |
| 729 m_scrollbarAnimationController->updateScrollOffset(this); | 729 m_scrollbarAnimationController->updateScrollOffset(this); |
| 730 } | 730 } |
| 731 | 731 |
| 732 } // namespace cc | 732 } // namespace cc |
| OLD | NEW |