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.h" | 5 #include "cc/trees/layer_tree_host.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 | 554 |
555 void LayerTreeHost::SetNeedsFullTreeSync() { | 555 void LayerTreeHost::SetNeedsFullTreeSync() { |
556 needs_full_tree_sync_ = true; | 556 needs_full_tree_sync_ = true; |
557 SetNeedsCommit(); | 557 SetNeedsCommit(); |
558 } | 558 } |
559 | 559 |
560 void LayerTreeHost::SetNeedsRedraw() { | 560 void LayerTreeHost::SetNeedsRedraw() { |
561 SetNeedsRedrawRect(gfx::Rect(device_viewport_size_)); | 561 SetNeedsRedrawRect(gfx::Rect(device_viewport_size_)); |
562 } | 562 } |
563 | 563 |
564 void LayerTreeHost::SetNeedsRedrawRect(const gfx::Rect& damage_rect) { | 564 void LayerTreeHost::SetNeedsRedrawRect(gfx::Rect damage_rect) { |
565 proxy_->SetNeedsRedraw(damage_rect); | 565 proxy_->SetNeedsRedraw(damage_rect); |
566 if (!proxy_->ImplThread()) | 566 if (!proxy_->ImplThread()) |
567 client_->ScheduleComposite(); | 567 client_->ScheduleComposite(); |
568 } | 568 } |
569 | 569 |
570 bool LayerTreeHost::CommitRequested() const { | 570 bool LayerTreeHost::CommitRequested() const { |
571 return proxy_->CommitRequested(); | 571 return proxy_->CommitRequested(); |
572 } | 572 } |
573 | 573 |
574 void LayerTreeHost::SetAnimationEvents(scoped_ptr<AnimationEventsVector> events, | 574 void LayerTreeHost::SetAnimationEvents(scoped_ptr<AnimationEventsVector> events, |
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1095 bool start_ready_animations = true; | 1095 bool start_ready_animations = true; |
1096 (*iter).second->UpdateState(start_ready_animations, NULL); | 1096 (*iter).second->UpdateState(start_ready_animations, NULL); |
1097 } | 1097 } |
1098 } | 1098 } |
1099 | 1099 |
1100 skia::RefPtr<SkPicture> LayerTreeHost::CapturePicture() { | 1100 skia::RefPtr<SkPicture> LayerTreeHost::CapturePicture() { |
1101 return proxy_->CapturePicture(); | 1101 return proxy_->CapturePicture(); |
1102 } | 1102 } |
1103 | 1103 |
1104 } // namespace cc | 1104 } // namespace cc |
OLD | NEW |