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 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
586 } | 586 } |
587 | 587 |
588 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_ = | 588 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_ = |
589 base::MessageLoopProxy::current(); | 589 base::MessageLoopProxy::current(); |
590 | 590 |
591 delegating_renderer_ = delegating_renderer; | 591 delegating_renderer_ = delegating_renderer; |
592 | 592 |
593 // Spend less time waiting for BeginFrame because the output is | 593 // Spend less time waiting for BeginFrame because the output is |
594 // mocked out. | 594 // mocked out. |
595 settings_.refresh_rate = 200.0; | 595 settings_.refresh_rate = 200.0; |
| 596 settings_.force_rgba_textures = true; |
596 if (impl_side_painting) { | 597 if (impl_side_painting) { |
597 DCHECK(threaded) << | 598 DCHECK(threaded) << |
598 "Don't run single thread + impl side painting, it doesn't exist."; | 599 "Don't run single thread + impl side painting, it doesn't exist."; |
599 settings_.impl_side_painting = true; | 600 settings_.impl_side_painting = true; |
600 } | 601 } |
601 InitializeSettings(&settings_); | 602 InitializeSettings(&settings_); |
602 | 603 |
603 main_task_runner_->PostTask( | 604 main_task_runner_->PostTask( |
604 FROM_HERE, | 605 FROM_HERE, |
605 base::Bind(&LayerTreeTest::DoBeginTest, base::Unretained(this))); | 606 base::Bind(&LayerTreeTest::DoBeginTest, base::Unretained(this))); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
651 | 652 |
652 scoped_refptr<cc::ContextProvider> LayerTreeTest:: | 653 scoped_refptr<cc::ContextProvider> LayerTreeTest:: |
653 OffscreenContextProviderForCompositorThread() { | 654 OffscreenContextProviderForCompositorThread() { |
654 if (!compositor_thread_contexts_.get() || | 655 if (!compositor_thread_contexts_.get() || |
655 compositor_thread_contexts_->DestroyedOnMainThread()) | 656 compositor_thread_contexts_->DestroyedOnMainThread()) |
656 compositor_thread_contexts_ = TestContextProvider::Create(); | 657 compositor_thread_contexts_ = TestContextProvider::Create(); |
657 return compositor_thread_contexts_; | 658 return compositor_thread_contexts_; |
658 } | 659 } |
659 | 660 |
660 } // namespace cc | 661 } // namespace cc |
OLD | NEW |