Chromium Code Reviews| 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 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 564 delegating_renderer_ = delegating_renderer; | 564 delegating_renderer_ = delegating_renderer; |
| 565 | 565 |
| 566 // Spend less time waiting for BeginFrame because the output is | 566 // Spend less time waiting for BeginFrame because the output is |
| 567 // mocked out. | 567 // mocked out. |
| 568 settings_.refresh_rate = 200.0; | 568 settings_.refresh_rate = 200.0; |
| 569 if (impl_side_painting) { | 569 if (impl_side_painting) { |
| 570 DCHECK(threaded) << | 570 DCHECK(threaded) << |
| 571 "Don't run single thread + impl side painting, it doesn't exist."; | 571 "Don't run single thread + impl side painting, it doesn't exist."; |
| 572 settings_.impl_side_painting = true; | 572 settings_.impl_side_painting = true; |
| 573 } | 573 } |
| 574 settings_.max_transfer_buffer_usage_bytes | |
| 575 = std::numeric_limits<size_t>::max(); | |
|
danakj
2013/08/23 01:21:46
nit: = goes on the previous line.
kaanb
2013/08/23 01:37:31
Done.
| |
| 574 InitializeSettings(&settings_); | 576 InitializeSettings(&settings_); |
| 575 | 577 |
| 576 main_task_runner_->PostTask( | 578 main_task_runner_->PostTask( |
| 577 FROM_HERE, | 579 FROM_HERE, |
| 578 base::Bind(&LayerTreeTest::DoBeginTest, base::Unretained(this))); | 580 base::Bind(&LayerTreeTest::DoBeginTest, base::Unretained(this))); |
| 579 | 581 |
| 580 if (timeout_seconds_) { | 582 if (timeout_seconds_) { |
| 581 timeout_.Reset(base::Bind(&LayerTreeTest::Timeout, base::Unretained(this))); | 583 timeout_.Reset(base::Bind(&LayerTreeTest::Timeout, base::Unretained(this))); |
| 582 main_task_runner_->PostDelayedTask( | 584 main_task_runner_->PostDelayedTask( |
| 583 FROM_HERE, | 585 FROM_HERE, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 624 | 626 |
| 625 scoped_refptr<cc::ContextProvider> LayerTreeTest:: | 627 scoped_refptr<cc::ContextProvider> LayerTreeTest:: |
| 626 OffscreenContextProviderForCompositorThread() { | 628 OffscreenContextProviderForCompositorThread() { |
| 627 if (!compositor_thread_contexts_.get() || | 629 if (!compositor_thread_contexts_.get() || |
| 628 compositor_thread_contexts_->DestroyedOnMainThread()) | 630 compositor_thread_contexts_->DestroyedOnMainThread()) |
| 629 compositor_thread_contexts_ = TestContextProvider::Create(); | 631 compositor_thread_contexts_ = TestContextProvider::Create(); |
| 630 return compositor_thread_contexts_; | 632 return compositor_thread_contexts_; |
| 631 } | 633 } |
| 632 | 634 |
| 633 } // namespace cc | 635 } // namespace cc |
| OLD | NEW |