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 #include <stack> | 8 #include <stack> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 DCHECK(proxy_->IsImplThread()); | 218 DCHECK(proxy_->IsImplThread()); |
219 if (contents_texture_manager_) | 219 if (contents_texture_manager_) |
220 contents_texture_manager_->ClearAllMemory(resource_provider); | 220 contents_texture_manager_->ClearAllMemory(resource_provider); |
221 } | 221 } |
222 | 222 |
223 void LayerTreeHost::AcquireLayerTextures() { | 223 void LayerTreeHost::AcquireLayerTextures() { |
224 DCHECK(proxy_->IsMainThread()); | 224 DCHECK(proxy_->IsMainThread()); |
225 proxy_->AcquireLayerTextures(); | 225 proxy_->AcquireLayerTextures(); |
226 } | 226 } |
227 | 227 |
228 void LayerTreeHost::DidBeginFrame() { | 228 void LayerTreeHost::DidBeginMainFrame() { |
229 client_->DidBeginFrame(); | 229 client_->DidBeginMainFrame(); |
230 } | 230 } |
231 | 231 |
232 void LayerTreeHost::UpdateClientAnimations(base::TimeTicks frame_begin_time) { | 232 void LayerTreeHost::UpdateClientAnimations(base::TimeTicks frame_begin_time) { |
233 animating_ = true; | 233 animating_ = true; |
234 client_->Animate((frame_begin_time - base::TimeTicks()).InSecondsF()); | 234 client_->Animate((frame_begin_time - base::TimeTicks()).InSecondsF()); |
235 animating_ = false; | 235 animating_ = false; |
236 } | 236 } |
237 | 237 |
238 void LayerTreeHost::DidStopFlinging() { | 238 void LayerTreeHost::DidStopFlinging() { |
239 proxy_->MainThreadHasStoppedFlinging(); | 239 proxy_->MainThreadHasStoppedFlinging(); |
(...skipping 855 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 |