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/test/layer_tree_test.h" | 5 #include "cc/test/layer_tree_test.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "cc/animation/animation.h" | 8 #include "cc/animation/animation.h" |
9 #include "cc/animation/animation_registrar.h" | 9 #include "cc/animation/animation_registrar.h" |
10 #include "cc/animation/layer_animation_controller.h" | 10 #include "cc/animation/layer_animation_controller.h" |
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 } | 598 } |
599 | 599 |
600 scoped_refptr<cc::ContextProvider> LayerTreeTest:: | 600 scoped_refptr<cc::ContextProvider> LayerTreeTest:: |
601 OffscreenContextProviderForCompositorThread() { | 601 OffscreenContextProviderForCompositorThread() { |
602 if (!compositor_thread_contexts_ || | 602 if (!compositor_thread_contexts_ || |
603 compositor_thread_contexts_->DestroyedOnMainThread()) | 603 compositor_thread_contexts_->DestroyedOnMainThread()) |
604 compositor_thread_contexts_ = FakeContextProvider::Create(); | 604 compositor_thread_contexts_ = FakeContextProvider::Create(); |
605 return compositor_thread_contexts_; | 605 return compositor_thread_contexts_; |
606 } | 606 } |
607 | 607 |
| 608 LayerTreeHost* LayerTreeTest::layer_tree_host() { |
| 609 DCHECK(proxy()->IsMainThread() || proxy()->IsMainThreadBlocked()); |
| 610 return layer_tree_host_.get(); |
| 611 } |
| 612 |
608 } // namespace cc | 613 } // namespace cc |
OLD | NEW |