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 93 matching lines...) Loading... |
104 } | 104 } |
105 | 105 |
106 virtual void SetUp() OVERRIDE { | 106 virtual void SetUp() OVERRIDE { |
107 CreateHostImpl(DefaultSettings(), CreateOutputSurface()); | 107 CreateHostImpl(DefaultSettings(), CreateOutputSurface()); |
108 } | 108 } |
109 | 109 |
110 virtual void TearDown() OVERRIDE {} | 110 virtual void TearDown() OVERRIDE {} |
111 | 111 |
112 virtual void UpdateRendererCapabilitiesOnImplThread() OVERRIDE {} | 112 virtual void UpdateRendererCapabilitiesOnImplThread() OVERRIDE {} |
113 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE {} | 113 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE {} |
114 virtual void CommitVSyncParameters(base::TimeTicks timebase, | |
115 base::TimeDelta interval) OVERRIDE {} | |
116 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) OVERRIDE {} | 114 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) OVERRIDE {} |
117 virtual void SetMaxSwapsPendingOnImplThread(int max) OVERRIDE {} | 115 virtual void SetMaxSwapsPendingOnImplThread(int max) OVERRIDE {} |
118 virtual void DidSwapBuffersOnImplThread() OVERRIDE {} | 116 virtual void DidSwapBuffersOnImplThread() OVERRIDE {} |
119 virtual void DidSwapBuffersCompleteOnImplThread() OVERRIDE {} | 117 virtual void DidSwapBuffersCompleteOnImplThread() OVERRIDE {} |
120 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE {} | |
121 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE { | 118 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE { |
122 on_can_draw_state_changed_called_ = true; | 119 on_can_draw_state_changed_called_ = true; |
123 } | 120 } |
124 virtual void NotifyReadyToActivate() OVERRIDE { | 121 virtual void NotifyReadyToActivate() OVERRIDE { |
125 did_notify_ready_to_activate_ = true; | 122 did_notify_ready_to_activate_ = true; |
126 host_impl_->ActivatePendingTree(); | 123 host_impl_->ActivatePendingTree(); |
127 } | 124 } |
128 virtual void SetNeedsRedrawOnImplThread() OVERRIDE { | 125 virtual void SetNeedsRedrawOnImplThread() OVERRIDE { |
129 did_request_redraw_ = true; | 126 did_request_redraw_ = true; |
130 } | 127 } |
(...skipping 6354 matching lines...) Loading... |
6485 // Verify implicit limits are calculated correctly with no overflows | 6482 // Verify implicit limits are calculated correctly with no overflows |
6486 host_impl_->SetMemoryPolicy(mem_policy); | 6483 host_impl_->SetMemoryPolicy(mem_policy); |
6487 EXPECT_EQ(host_impl_->global_tile_state().hard_memory_limit_in_bytes, | 6484 EXPECT_EQ(host_impl_->global_tile_state().hard_memory_limit_in_bytes, |
6488 300u * 1024u * 1024u); | 6485 300u * 1024u * 1024u); |
6489 EXPECT_EQ(host_impl_->global_tile_state().soft_memory_limit_in_bytes, | 6486 EXPECT_EQ(host_impl_->global_tile_state().soft_memory_limit_in_bytes, |
6490 150u * 1024u * 1024u); | 6487 150u * 1024u * 1024u); |
6491 } | 6488 } |
6492 | 6489 |
6493 } // namespace | 6490 } // namespace |
6494 } // namespace cc | 6491 } // namespace cc |
OLD | NEW |