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/trees/layer_tree_host_impl.h" | 5 #include "cc/trees/layer_tree_host_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
928 | 928 |
929 // Should only have one render pass in resourceless software mode. | 929 // Should only have one render pass in resourceless software mode. |
930 DCHECK(draw_mode != DRAW_MODE_RESOURCELESS_SOFTWARE || | 930 DCHECK(draw_mode != DRAW_MODE_RESOURCELESS_SOFTWARE || |
931 frame->render_passes.size() == 1u) | 931 frame->render_passes.size() == 1u) |
932 << frame->render_passes.size(); | 932 << frame->render_passes.size(); |
933 | 933 |
934 return draw_result; | 934 return draw_result; |
935 } | 935 } |
936 | 936 |
937 void LayerTreeHostImpl::MainThreadHasStoppedFlinging() { | 937 void LayerTreeHostImpl::MainThreadHasStoppedFlinging() { |
938 ScrollEnd(); | |
aelias_OOO_until_Jul13
2015/02/12 00:45:29
Not sure we want the "ClearCurrentlyScrollingLayer
majidvp
2015/02/12 13:51:48
Acknowledged.
| |
938 if (input_handler_client_) | 939 if (input_handler_client_) |
939 input_handler_client_->MainThreadHasStoppedFlinging(); | 940 input_handler_client_->MainThreadHasStoppedFlinging(); |
940 } | 941 } |
941 | 942 |
942 void LayerTreeHostImpl::DidAnimateScrollOffset() { | 943 void LayerTreeHostImpl::DidAnimateScrollOffset() { |
943 client_->SetNeedsCommitOnImplThread(); | 944 client_->SetNeedsCommitOnImplThread(); |
944 client_->RenewTreePriority(); | 945 client_->RenewTreePriority(); |
945 } | 946 } |
946 | 947 |
947 void LayerTreeHostImpl::SetViewportDamage(const gfx::Rect& damage_rect) { | 948 void LayerTreeHostImpl::SetViewportDamage(const gfx::Rect& damage_rect) { |
(...skipping 2553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3501 } | 3502 } |
3502 | 3503 |
3503 void LayerTreeHostImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { | 3504 void LayerTreeHostImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { |
3504 std::vector<PictureLayerImpl*>::iterator it = | 3505 std::vector<PictureLayerImpl*>::iterator it = |
3505 std::find(picture_layers_.begin(), picture_layers_.end(), layer); | 3506 std::find(picture_layers_.begin(), picture_layers_.end(), layer); |
3506 DCHECK(it != picture_layers_.end()); | 3507 DCHECK(it != picture_layers_.end()); |
3507 picture_layers_.erase(it); | 3508 picture_layers_.erase(it); |
3508 } | 3509 } |
3509 | 3510 |
3510 } // namespace cc | 3511 } // namespace cc |
OLD | NEW |