| 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/single_thread_proxy.h" | 5 #include "cc/trees/single_thread_proxy.h" |
| 6 | 6 |
| 7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
| 8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
| 9 #include "cc/base/thread.h" | 9 #include "cc/base/thread.h" |
| 10 #include "cc/output/context_provider.h" | 10 #include "cc/output/context_provider.h" |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 | 275 |
| 276 void SingleThreadProxy::DidInitializeVisibleTileOnImplThread() { | 276 void SingleThreadProxy::DidInitializeVisibleTileOnImplThread() { |
| 277 // Impl-side painting only. | 277 // Impl-side painting only. |
| 278 NOTREACHED(); | 278 NOTREACHED(); |
| 279 } | 279 } |
| 280 | 280 |
| 281 void SingleThreadProxy::SetNeedsCommitOnImplThread() { | 281 void SingleThreadProxy::SetNeedsCommitOnImplThread() { |
| 282 layer_tree_host_->ScheduleComposite(); | 282 layer_tree_host_->ScheduleComposite(); |
| 283 } | 283 } |
| 284 | 284 |
| 285 void SingleThreadProxy::SetNeedsManageTilesOnImplThread() { | |
| 286 layer_tree_host_->ScheduleComposite(); | |
| 287 } | |
| 288 | |
| 289 void SingleThreadProxy::PostAnimationEventsToMainThreadOnImplThread( | 285 void SingleThreadProxy::PostAnimationEventsToMainThreadOnImplThread( |
| 290 scoped_ptr<AnimationEventsVector> events, | 286 scoped_ptr<AnimationEventsVector> events, |
| 291 base::Time wall_clock_time) { | 287 base::Time wall_clock_time) { |
| 292 DCHECK(Proxy::IsImplThread()); | 288 DCHECK(Proxy::IsImplThread()); |
| 293 DebugScopedSetMainThread main(this); | 289 DebugScopedSetMainThread main(this); |
| 294 layer_tree_host_->SetAnimationEvents(events.Pass(), wall_clock_time); | 290 layer_tree_host_->SetAnimationEvents(events.Pass(), wall_clock_time); |
| 295 } | 291 } |
| 296 | 292 |
| 297 bool SingleThreadProxy::ReduceContentsTextureMemoryOnImplThread( | 293 bool SingleThreadProxy::ReduceContentsTextureMemoryOnImplThread( |
| 298 size_t limit_bytes, | 294 size_t limit_bytes, |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 | 486 |
| 491 bool SingleThreadProxy::CommitPendingForTesting() { return false; } | 487 bool SingleThreadProxy::CommitPendingForTesting() { return false; } |
| 492 | 488 |
| 493 skia::RefPtr<SkPicture> SingleThreadProxy::CapturePicture() { | 489 skia::RefPtr<SkPicture> SingleThreadProxy::CapturePicture() { |
| 494 // Impl-side painting only. | 490 // Impl-side painting only. |
| 495 NOTREACHED(); | 491 NOTREACHED(); |
| 496 return skia::RefPtr<SkPicture>(); | 492 return skia::RefPtr<SkPicture>(); |
| 497 } | 493 } |
| 498 | 494 |
| 499 } // namespace cc | 495 } // namespace cc |
| OLD | NEW |