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 <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <cmath> | 10 #include <cmath> |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 void SetUp() override { | 124 void SetUp() override { |
125 CreateHostImpl(DefaultSettings(), CreateOutputSurface()); | 125 CreateHostImpl(DefaultSettings(), CreateOutputSurface()); |
126 } | 126 } |
127 | 127 |
128 void TearDown() override { | 128 void TearDown() override { |
129 if (host_impl_) | 129 if (host_impl_) |
130 host_impl_->ReleaseOutputSurface(); | 130 host_impl_->ReleaseOutputSurface(); |
131 } | 131 } |
132 | 132 |
133 void DidLoseOutputSurfaceOnImplThread() override {} | 133 void DidLoseOutputSurfaceOnImplThread() override {} |
134 void CommitVSyncParameters(base::TimeTicks timebase, | |
135 base::TimeDelta interval) override {} | |
136 void SetBeginFrameSource(BeginFrameSource* source) override {} | 134 void SetBeginFrameSource(BeginFrameSource* source) override {} |
137 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override {} | 135 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override {} |
138 void DidSwapBuffersCompleteOnImplThread() override {} | 136 void DidSwapBuffersCompleteOnImplThread() override {} |
139 void OnCanDrawStateChanged(bool can_draw) override { | 137 void OnCanDrawStateChanged(bool can_draw) override { |
140 on_can_draw_state_changed_called_ = true; | 138 on_can_draw_state_changed_called_ = true; |
141 } | 139 } |
142 void NotifyReadyToActivate() override { | 140 void NotifyReadyToActivate() override { |
143 did_notify_ready_to_activate_ = true; | 141 did_notify_ready_to_activate_ = true; |
144 host_impl_->ActivateSyncTree(); | 142 host_impl_->ActivateSyncTree(); |
145 } | 143 } |
(...skipping 11016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11162 EXPECT_TRUE(host_impl_->use_gpu_rasterization()); | 11160 EXPECT_TRUE(host_impl_->use_gpu_rasterization()); |
11163 | 11161 |
11164 // Re-initialize with a software output surface. | 11162 // Re-initialize with a software output surface. |
11165 output_surface_ = FakeOutputSurface::CreateDelegatingSoftware(); | 11163 output_surface_ = FakeOutputSurface::CreateDelegatingSoftware(); |
11166 host_impl_->InitializeRenderer(output_surface_.get()); | 11164 host_impl_->InitializeRenderer(output_surface_.get()); |
11167 EXPECT_FALSE(host_impl_->use_gpu_rasterization()); | 11165 EXPECT_FALSE(host_impl_->use_gpu_rasterization()); |
11168 } | 11166 } |
11169 | 11167 |
11170 } // namespace | 11168 } // namespace |
11171 } // namespace cc | 11169 } // namespace cc |
OLD | NEW |