| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 host_impl_->InitializeRenderer(CreateOutputSurface()); | 84 host_impl_->InitializeRenderer(CreateOutputSurface()); |
| 85 host_impl_->SetViewportSize(gfx::Size(10, 10), gfx::Size(10, 10)); | 85 host_impl_->SetViewportSize(gfx::Size(10, 10), gfx::Size(10, 10)); |
| 86 } | 86 } |
| 87 | 87 |
| 88 virtual void TearDown() OVERRIDE {} | 88 virtual void TearDown() OVERRIDE {} |
| 89 | 89 |
| 90 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE {} | 90 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE {} |
| 91 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE {} | 91 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE {} |
| 92 virtual void OnVSyncParametersChanged(base::TimeTicks timebase, | 92 virtual void OnVSyncParametersChanged(base::TimeTicks timebase, |
| 93 base::TimeDelta interval) OVERRIDE {} | 93 base::TimeDelta interval) OVERRIDE {} |
| 94 virtual void DidVSync(base::TimeTicks frame_time) OVERRIDE {} |
| 94 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE { | 95 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE { |
| 95 on_can_draw_state_changed_called_ = true; | 96 on_can_draw_state_changed_called_ = true; |
| 96 } | 97 } |
| 97 virtual void OnHasPendingTreeStateChanged(bool has_pending_tree) OVERRIDE { | 98 virtual void OnHasPendingTreeStateChanged(bool has_pending_tree) OVERRIDE { |
| 98 has_pending_tree_ = has_pending_tree; | 99 has_pending_tree_ = has_pending_tree; |
| 99 } | 100 } |
| 100 virtual void SetNeedsRedrawOnImplThread() OVERRIDE { | 101 virtual void SetNeedsRedrawOnImplThread() OVERRIDE { |
| 101 did_request_redraw_ = true; | 102 did_request_redraw_ = true; |
| 102 } | 103 } |
| 103 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE { | 104 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE { |
| (...skipping 4852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4956 EXPECT_EQ(gfx::RectF(0.f, 0.f, 1.f, 1.f).ToString(), | 4957 EXPECT_EQ(gfx::RectF(0.f, 0.f, 1.f, 1.f).ToString(), |
| 4957 render_pass_quad->mask_uv_rect.ToString()); | 4958 render_pass_quad->mask_uv_rect.ToString()); |
| 4958 | 4959 |
| 4959 host_impl_->DrawLayers(&frame, base::TimeTicks::Now()); | 4960 host_impl_->DrawLayers(&frame, base::TimeTicks::Now()); |
| 4960 host_impl_->DidDrawAllLayers(frame); | 4961 host_impl_->DidDrawAllLayers(frame); |
| 4961 } | 4962 } |
| 4962 } | 4963 } |
| 4963 | 4964 |
| 4964 } // namespace | 4965 } // namespace |
| 4965 } // namespace cc | 4966 } // namespace cc |
| OLD | NEW |