| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 host_impl_ = LayerTreeHostImpl::Create(settings, | 85 host_impl_ = LayerTreeHostImpl::Create(settings, |
| 86 this, | 86 this, |
| 87 &proxy_, | 87 &proxy_, |
| 88 &stats_instrumentation_); | 88 &stats_instrumentation_); |
| 89 host_impl_->InitializeRenderer(CreateOutputSurface()); | 89 host_impl_->InitializeRenderer(CreateOutputSurface()); |
| 90 host_impl_->SetViewportSize(gfx::Size(10, 10)); | 90 host_impl_->SetViewportSize(gfx::Size(10, 10)); |
| 91 } | 91 } |
| 92 | 92 |
| 93 virtual void TearDown() OVERRIDE {} | 93 virtual void TearDown() OVERRIDE {} |
| 94 | 94 |
| 95 virtual void DidUpdateCapabilitiesOnImplThread() OVERRIDE {} |
| 95 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE {} | 96 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE {} |
| 96 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE {} | 97 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE {} |
| 97 virtual void OnVSyncParametersChanged(base::TimeTicks timebase, | 98 virtual void OnVSyncParametersChanged(base::TimeTicks timebase, |
| 98 base::TimeDelta interval) OVERRIDE {} | 99 base::TimeDelta interval) OVERRIDE {} |
| 99 virtual void DidVSync(base::TimeTicks frame_time) OVERRIDE {} | 100 virtual void DidVSync(base::TimeTicks frame_time) OVERRIDE {} |
| 100 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE { | 101 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE { |
| 101 on_can_draw_state_changed_called_ = true; | 102 on_can_draw_state_changed_called_ = true; |
| 102 } | 103 } |
| 103 virtual void OnHasPendingTreeStateChanged(bool has_pending_tree) OVERRIDE { | 104 virtual void OnHasPendingTreeStateChanged(bool has_pending_tree) OVERRIDE { |
| 104 has_pending_tree_ = has_pending_tree; | 105 has_pending_tree_ = has_pending_tree; |
| (...skipping 5408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5513 host_impl_->DrawLayers(&frame, base::TimeTicks()); | 5514 host_impl_->DrawLayers(&frame, base::TimeTicks()); |
| 5514 host_impl_->DidDrawAllLayers(frame); | 5515 host_impl_->DidDrawAllLayers(frame); |
| 5515 } | 5516 } |
| 5516 CompositorFrameAck ack; | 5517 CompositorFrameAck ack; |
| 5517 host_impl_->OnSendFrameToParentCompositorAck(ack); | 5518 host_impl_->OnSendFrameToParentCompositorAck(ack); |
| 5518 EXPECT_EQ(swap_buffers_complete_, 1); | 5519 EXPECT_EQ(swap_buffers_complete_, 1); |
| 5519 } | 5520 } |
| 5520 | 5521 |
| 5521 } // namespace | 5522 } // namespace |
| 5522 } // namespace cc | 5523 } // namespace cc |
| OLD | NEW |