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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 } | 99 } |
100 | 100 |
101 virtual void SetUp() OVERRIDE { | 101 virtual void SetUp() OVERRIDE { |
102 CreateHostImpl(DefaultSettings(), CreateOutputSurface()); | 102 CreateHostImpl(DefaultSettings(), CreateOutputSurface()); |
103 } | 103 } |
104 | 104 |
105 virtual void TearDown() OVERRIDE {} | 105 virtual void TearDown() OVERRIDE {} |
106 | 106 |
107 virtual void UpdateRendererCapabilitiesOnImplThread() OVERRIDE {} | 107 virtual void UpdateRendererCapabilitiesOnImplThread() OVERRIDE {} |
108 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE {} | 108 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE {} |
| 109 virtual void SetMaxSwapsPending(int max) OVERRIDE {} |
109 virtual void DidSwapBuffersOnImplThread() OVERRIDE {} | 110 virtual void DidSwapBuffersOnImplThread() OVERRIDE {} |
110 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE {} | 111 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE {} |
111 virtual void BeginImplFrame(const BeginFrameArgs& args) OVERRIDE {} | 112 virtual void BeginImplFrame(const BeginFrameArgs& args) OVERRIDE {} |
112 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE { | 113 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE { |
113 on_can_draw_state_changed_called_ = true; | 114 on_can_draw_state_changed_called_ = true; |
114 } | 115 } |
115 virtual void NotifyReadyToActivate() OVERRIDE { | 116 virtual void NotifyReadyToActivate() OVERRIDE { |
116 did_notify_ready_to_activate_ = true; | 117 did_notify_ready_to_activate_ = true; |
117 host_impl_->ActivatePendingTree(); | 118 host_impl_->ActivatePendingTree(); |
118 } | 119 } |
(...skipping 6059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6178 EXPECT_EQ(host_impl_->global_tile_state().hard_memory_limit_in_bytes, | 6179 EXPECT_EQ(host_impl_->global_tile_state().hard_memory_limit_in_bytes, |
6179 300u * 1024u * 1024u); | 6180 300u * 1024u * 1024u); |
6180 EXPECT_EQ(host_impl_->global_tile_state().soft_memory_limit_in_bytes, | 6181 EXPECT_EQ(host_impl_->global_tile_state().soft_memory_limit_in_bytes, |
6181 150u * 1024u * 1024u); | 6182 150u * 1024u * 1024u); |
6182 EXPECT_EQ(host_impl_->global_tile_state().unused_memory_limit_in_bytes, | 6183 EXPECT_EQ(host_impl_->global_tile_state().unused_memory_limit_in_bytes, |
6183 75u * 1024u * 1024u); | 6184 75u * 1024u * 1024u); |
6184 } | 6185 } |
6185 | 6186 |
6186 } // namespace | 6187 } // namespace |
6187 } // namespace cc | 6188 } // namespace cc |
OLD | NEW |