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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 } | 105 } |
106 | 106 |
107 virtual void SetUp() OVERRIDE { | 107 virtual void SetUp() OVERRIDE { |
108 CreateHostImpl(DefaultSettings(), CreateOutputSurface()); | 108 CreateHostImpl(DefaultSettings(), CreateOutputSurface()); |
109 } | 109 } |
110 | 110 |
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, | |
116 base::TimeDelta interval) OVERRIDE {} | |
117 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) OVERRIDE {} | 115 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) OVERRIDE {} |
118 virtual void SetMaxSwapsPendingOnImplThread(int max) OVERRIDE {} | 116 virtual void SetMaxSwapsPendingOnImplThread(int max) OVERRIDE {} |
119 virtual void DidSwapBuffersOnImplThread() OVERRIDE {} | 117 virtual void DidSwapBuffersOnImplThread() OVERRIDE {} |
120 virtual void DidSwapBuffersCompleteOnImplThread() OVERRIDE {} | 118 virtual void DidSwapBuffersCompleteOnImplThread() OVERRIDE {} |
121 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE { | 119 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE { |
122 on_can_draw_state_changed_called_ = true; | 120 on_can_draw_state_changed_called_ = true; |
123 } | 121 } |
124 virtual void NotifyReadyToActivate() OVERRIDE { | 122 virtual void NotifyReadyToActivate() OVERRIDE { |
125 did_notify_ready_to_activate_ = true; | 123 did_notify_ready_to_activate_ = true; |
126 host_impl_->ActivateSyncTree(); | 124 host_impl_->ActivateSyncTree(); |
(...skipping 6973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7100 // surface. | 7098 // surface. |
7101 EXPECT_EQ(0, num_lost_surfaces_); | 7099 EXPECT_EQ(0, num_lost_surfaces_); |
7102 host_impl_->DidLoseOutputSurface(); | 7100 host_impl_->DidLoseOutputSurface(); |
7103 EXPECT_EQ(1, num_lost_surfaces_); | 7101 EXPECT_EQ(1, num_lost_surfaces_); |
7104 host_impl_->DidLoseOutputSurface(); | 7102 host_impl_->DidLoseOutputSurface(); |
7105 EXPECT_LE(1, num_lost_surfaces_); | 7103 EXPECT_LE(1, num_lost_surfaces_); |
7106 } | 7104 } |
7107 | 7105 |
7108 } // namespace | 7106 } // namespace |
7109 } // namespace cc | 7107 } // namespace cc |
OLD | NEW |