| 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_impl.h" | 5 #include "cc/trees/layer_tree_host_impl.h" |
| 6 | 6 |
| 7 #include <cmath> | 7 #include <cmath> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 using ::testing::_; | 54 using ::testing::_; |
| 55 using media::VideoFrame; | 55 using media::VideoFrame; |
| 56 | 56 |
| 57 namespace cc { | 57 namespace cc { |
| 58 namespace { | 58 namespace { |
| 59 | 59 |
| 60 class LayerTreeHostImplTest : public testing::Test, | 60 class LayerTreeHostImplTest : public testing::Test, |
| 61 public LayerTreeHostImplClient { | 61 public LayerTreeHostImplClient { |
| 62 public: | 62 public: |
| 63 LayerTreeHostImplTest() | 63 LayerTreeHostImplTest() |
| 64 : proxy_(scoped_ptr<Thread>()), | 64 : proxy_(), |
| 65 always_impl_thread_(&proxy_), | 65 always_impl_thread_(&proxy_), |
| 66 always_main_thread_blocked_(&proxy_), | 66 always_main_thread_blocked_(&proxy_), |
| 67 did_try_initialize_renderer_(false), | 67 did_try_initialize_renderer_(false), |
| 68 on_can_draw_state_changed_called_(false), | 68 on_can_draw_state_changed_called_(false), |
| 69 has_pending_tree_(false), | 69 has_pending_tree_(false), |
| 70 did_request_commit_(false), | 70 did_request_commit_(false), |
| 71 did_request_redraw_(false), | 71 did_request_redraw_(false), |
| 72 did_upload_visible_tile_(false), | 72 did_upload_visible_tile_(false), |
| 73 reduce_memory_result_(true) { | 73 reduce_memory_result_(true) { |
| 74 media::InitializeMediaLibraryForTesting(); | 74 media::InitializeMediaLibraryForTesting(); |
| (...skipping 5939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6014 EXPECT_FALSE(did_try_initialize_renderer_); | 6014 EXPECT_FALSE(did_try_initialize_renderer_); |
| 6015 host_impl_->DeferredInitialize(scoped_refptr<ContextProvider>()); | 6015 host_impl_->DeferredInitialize(scoped_refptr<ContextProvider>()); |
| 6016 EXPECT_TRUE(did_try_initialize_renderer_); | 6016 EXPECT_TRUE(did_try_initialize_renderer_); |
| 6017 | 6017 |
| 6018 // Defer intialized GL draw. | 6018 // Defer intialized GL draw. |
| 6019 DrawFrame(); | 6019 DrawFrame(); |
| 6020 } | 6020 } |
| 6021 | 6021 |
| 6022 } // namespace | 6022 } // namespace |
| 6023 } // namespace cc | 6023 } // namespace cc |
| OLD | NEW |