| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 virtual void TearDown() OVERRIDE {} | 111 virtual void TearDown() OVERRIDE {} |
| 112 | 112 |
| 113 virtual void UpdateRendererCapabilitiesOnImplThread() OVERRIDE {} | 113 virtual void UpdateRendererCapabilitiesOnImplThread() OVERRIDE {} |
| 114 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE {} | 114 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE {} |
| 115 virtual void CommitVSyncParameters(base::TimeTicks timebase, | 115 virtual void CommitVSyncParameters(base::TimeTicks timebase, |
| 116 base::TimeDelta interval) OVERRIDE {} | 116 base::TimeDelta interval) OVERRIDE {} |
| 117 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) OVERRIDE {} | 117 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) OVERRIDE {} |
| 118 virtual void SetMaxSwapsPendingOnImplThread(int max) OVERRIDE {} | 118 virtual void SetMaxSwapsPendingOnImplThread(int max) OVERRIDE {} |
| 119 virtual void DidSwapBuffersOnImplThread() OVERRIDE {} | 119 virtual void DidSwapBuffersOnImplThread() OVERRIDE {} |
| 120 virtual void DidSwapBuffersCompleteOnImplThread() OVERRIDE {} | 120 virtual void DidSwapBuffersCompleteOnImplThread() OVERRIDE {} |
| 121 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE {} | |
| 122 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE { | 121 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE { |
| 123 on_can_draw_state_changed_called_ = true; | 122 on_can_draw_state_changed_called_ = true; |
| 124 } | 123 } |
| 125 virtual void NotifyReadyToActivate() OVERRIDE { | 124 virtual void NotifyReadyToActivate() OVERRIDE { |
| 126 did_notify_ready_to_activate_ = true; | 125 did_notify_ready_to_activate_ = true; |
| 127 host_impl_->ActivateSyncTree(); | 126 host_impl_->ActivateSyncTree(); |
| 128 } | 127 } |
| 129 virtual void SetNeedsRedrawOnImplThread() OVERRIDE { | 128 virtual void SetNeedsRedrawOnImplThread() OVERRIDE { |
| 130 did_request_redraw_ = true; | 129 did_request_redraw_ = true; |
| 131 } | 130 } |
| (...skipping 6980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7112 // surface. | 7111 // surface. |
| 7113 EXPECT_EQ(0, num_lost_surfaces_); | 7112 EXPECT_EQ(0, num_lost_surfaces_); |
| 7114 host_impl_->DidLoseOutputSurface(); | 7113 host_impl_->DidLoseOutputSurface(); |
| 7115 EXPECT_EQ(1, num_lost_surfaces_); | 7114 EXPECT_EQ(1, num_lost_surfaces_); |
| 7116 host_impl_->DidLoseOutputSurface(); | 7115 host_impl_->DidLoseOutputSurface(); |
| 7117 EXPECT_LE(1, num_lost_surfaces_); | 7116 EXPECT_LE(1, num_lost_surfaces_); |
| 7118 } | 7117 } |
| 7119 | 7118 |
| 7120 } // namespace | 7119 } // namespace |
| 7121 } // namespace cc | 7120 } // namespace cc |
| OLD | NEW |