| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 if (host_impl_) | 126 if (host_impl_) |
| 127 host_impl_->ReleaseOutputSurface(); | 127 host_impl_->ReleaseOutputSurface(); |
| 128 } | 128 } |
| 129 | 129 |
| 130 void UpdateRendererCapabilitiesOnImplThread() override {} | 130 void UpdateRendererCapabilitiesOnImplThread() override {} |
| 131 void DidLoseOutputSurfaceOnImplThread() override {} | 131 void DidLoseOutputSurfaceOnImplThread() override {} |
| 132 void CommitVSyncParameters(base::TimeTicks timebase, | 132 void CommitVSyncParameters(base::TimeTicks timebase, |
| 133 base::TimeDelta interval) override {} | 133 base::TimeDelta interval) override {} |
| 134 void SetBeginFrameSource(BeginFrameSource* source) override {} | 134 void SetBeginFrameSource(BeginFrameSource* source) override {} |
| 135 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override {} | 135 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override {} |
| 136 void DidSwapBuffersOnImplThread() override {} | |
| 137 void DidSwapBuffersCompleteOnImplThread() override {} | 136 void DidSwapBuffersCompleteOnImplThread() override {} |
| 138 void OnCanDrawStateChanged(bool can_draw) override { | 137 void OnCanDrawStateChanged(bool can_draw) override { |
| 139 on_can_draw_state_changed_called_ = true; | 138 on_can_draw_state_changed_called_ = true; |
| 140 } | 139 } |
| 141 void NotifyReadyToActivate() override { | 140 void NotifyReadyToActivate() override { |
| 142 did_notify_ready_to_activate_ = true; | 141 did_notify_ready_to_activate_ = true; |
| 143 host_impl_->ActivateSyncTree(); | 142 host_impl_->ActivateSyncTree(); |
| 144 } | 143 } |
| 145 void NotifyReadyToDraw() override {} | 144 void NotifyReadyToDraw() override {} |
| 146 void SetNeedsRedrawOnImplThread() override { did_request_redraw_ = true; } | 145 void SetNeedsRedrawOnImplThread() override { did_request_redraw_ = true; } |
| (...skipping 10899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11046 | 11045 |
| 11047 // Re-initialize with a software output surface. | 11046 // Re-initialize with a software output surface. |
| 11048 output_surface_ = FakeOutputSurface::CreateSoftware( | 11047 output_surface_ = FakeOutputSurface::CreateSoftware( |
| 11049 base::WrapUnique(new SoftwareOutputDevice)); | 11048 base::WrapUnique(new SoftwareOutputDevice)); |
| 11050 host_impl_->InitializeRenderer(output_surface_.get()); | 11049 host_impl_->InitializeRenderer(output_surface_.get()); |
| 11051 EXPECT_FALSE(host_impl_->use_gpu_rasterization()); | 11050 EXPECT_FALSE(host_impl_->use_gpu_rasterization()); |
| 11052 } | 11051 } |
| 11053 | 11052 |
| 11054 } // namespace | 11053 } // namespace |
| 11055 } // namespace cc | 11054 } // namespace cc |
| OLD | NEW |