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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 host_impl_ = LayerTreeHostImpl::Create(settings, | 83 host_impl_ = LayerTreeHostImpl::Create(settings, |
84 this, | 84 this, |
85 &proxy_, | 85 &proxy_, |
86 &stats_instrumentation_); | 86 &stats_instrumentation_); |
87 host_impl_->InitializeRenderer(CreateOutputSurface()); | 87 host_impl_->InitializeRenderer(CreateOutputSurface()); |
88 host_impl_->SetViewportSize(gfx::Size(10, 10)); | 88 host_impl_->SetViewportSize(gfx::Size(10, 10)); |
89 } | 89 } |
90 | 90 |
91 virtual void TearDown() OVERRIDE {} | 91 virtual void TearDown() OVERRIDE {} |
92 | 92 |
| 93 virtual void DidTryInitializeRendererOnImplThread( |
| 94 bool success, |
| 95 scoped_refptr<ContextProvider> offscreen_context_provider) OVERRIDE {} |
93 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE {} | 96 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE {} |
94 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE {} | 97 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE {} |
95 virtual void OnVSyncParametersChanged(base::TimeTicks timebase, | 98 virtual void OnVSyncParametersChanged(base::TimeTicks timebase, |
96 base::TimeDelta interval) OVERRIDE {} | 99 base::TimeDelta interval) OVERRIDE {} |
97 virtual void BeginFrameOnImplThread(base::TimeTicks frame_time) | 100 virtual void BeginFrameOnImplThread(base::TimeTicks frame_time) |
98 OVERRIDE {} | 101 OVERRIDE {} |
99 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE { | 102 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE { |
100 on_can_draw_state_changed_called_ = true; | 103 on_can_draw_state_changed_called_ = true; |
101 } | 104 } |
102 virtual void OnHasPendingTreeStateChanged(bool has_pending_tree) OVERRIDE { | 105 virtual void OnHasPendingTreeStateChanged(bool has_pending_tree) OVERRIDE { |
(...skipping 5595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5698 EXPECT_EQ(1, software_device->frames_began_); | 5701 EXPECT_EQ(1, software_device->frames_began_); |
5699 EXPECT_EQ(1, software_device->frames_ended_); | 5702 EXPECT_EQ(1, software_device->frames_ended_); |
5700 | 5703 |
5701 // Call other API methods that are likely to hit NULL pointer in this mode. | 5704 // Call other API methods that are likely to hit NULL pointer in this mode. |
5702 EXPECT_TRUE(host_impl_->AsValue()); | 5705 EXPECT_TRUE(host_impl_->AsValue()); |
5703 EXPECT_TRUE(host_impl_->ActivationStateAsValue()); | 5706 EXPECT_TRUE(host_impl_->ActivationStateAsValue()); |
5704 } | 5707 } |
5705 | 5708 |
5706 } // namespace | 5709 } // namespace |
5707 } // namespace cc | 5710 } // namespace cc |
OLD | NEW |