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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 } | 101 } |
102 | 102 |
103 virtual void SetUp() OVERRIDE { | 103 virtual void SetUp() OVERRIDE { |
104 CreateHostImpl(DefaultSettings(), CreateOutputSurface()); | 104 CreateHostImpl(DefaultSettings(), CreateOutputSurface()); |
105 } | 105 } |
106 | 106 |
107 virtual void TearDown() OVERRIDE {} | 107 virtual void TearDown() OVERRIDE {} |
108 | 108 |
109 virtual void UpdateRendererCapabilitiesOnImplThread() OVERRIDE {} | 109 virtual void UpdateRendererCapabilitiesOnImplThread() OVERRIDE {} |
110 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE {} | 110 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE {} |
| 111 virtual void CommitVSyncParameters(base::TimeTicks timebase, |
| 112 base::TimeDelta interval) OVERRIDE {} |
| 113 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) OVERRIDE {} |
111 virtual void SetMaxSwapsPendingOnImplThread(int max) OVERRIDE {} | 114 virtual void SetMaxSwapsPendingOnImplThread(int max) OVERRIDE {} |
112 virtual void DidSwapBuffersOnImplThread() OVERRIDE {} | 115 virtual void DidSwapBuffersOnImplThread() OVERRIDE {} |
113 virtual void DidSwapBuffersCompleteOnImplThread() OVERRIDE {} | 116 virtual void DidSwapBuffersCompleteOnImplThread() OVERRIDE {} |
114 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE {} | 117 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE {} |
115 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE { | 118 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE { |
116 on_can_draw_state_changed_called_ = true; | 119 on_can_draw_state_changed_called_ = true; |
117 } | 120 } |
118 virtual void NotifyReadyToActivate() OVERRIDE { | 121 virtual void NotifyReadyToActivate() OVERRIDE { |
119 did_notify_ready_to_activate_ = true; | 122 did_notify_ready_to_activate_ = true; |
120 host_impl_->ActivatePendingTree(); | 123 host_impl_->ActivatePendingTree(); |
(...skipping 6225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6346 EXPECT_EQ(host_impl_->global_tile_state().hard_memory_limit_in_bytes, | 6349 EXPECT_EQ(host_impl_->global_tile_state().hard_memory_limit_in_bytes, |
6347 300u * 1024u * 1024u); | 6350 300u * 1024u * 1024u); |
6348 EXPECT_EQ(host_impl_->global_tile_state().soft_memory_limit_in_bytes, | 6351 EXPECT_EQ(host_impl_->global_tile_state().soft_memory_limit_in_bytes, |
6349 150u * 1024u * 1024u); | 6352 150u * 1024u * 1024u); |
6350 EXPECT_EQ(host_impl_->global_tile_state().unused_memory_limit_in_bytes, | 6353 EXPECT_EQ(host_impl_->global_tile_state().unused_memory_limit_in_bytes, |
6351 75u * 1024u * 1024u); | 6354 75u * 1024u * 1024u); |
6352 } | 6355 } |
6353 | 6356 |
6354 } // namespace | 6357 } // namespace |
6355 } // namespace cc | 6358 } // namespace cc |
OLD | NEW |