| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 } | 102 } |
| 103 | 103 |
| 104 virtual void SetUp() OVERRIDE { | 104 virtual void SetUp() OVERRIDE { |
| 105 CreateHostImpl(DefaultSettings(), CreateOutputSurface()); | 105 CreateHostImpl(DefaultSettings(), CreateOutputSurface()); |
| 106 } | 106 } |
| 107 | 107 |
| 108 virtual void TearDown() OVERRIDE {} | 108 virtual void TearDown() OVERRIDE {} |
| 109 | 109 |
| 110 virtual void UpdateRendererCapabilitiesOnImplThread() OVERRIDE {} | 110 virtual void UpdateRendererCapabilitiesOnImplThread() OVERRIDE {} |
| 111 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE {} | 111 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE {} |
| 112 virtual void CommitVSyncParameters(base::TimeTicks timebase, |
| 113 base::TimeDelta interval) OVERRIDE {} |
| 114 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) OVERRIDE {} |
| 112 virtual void SetMaxSwapsPendingOnImplThread(int max) OVERRIDE {} | 115 virtual void SetMaxSwapsPendingOnImplThread(int max) OVERRIDE {} |
| 113 virtual void DidSwapBuffersOnImplThread() OVERRIDE {} | 116 virtual void DidSwapBuffersOnImplThread() OVERRIDE {} |
| 114 virtual void DidSwapBuffersCompleteOnImplThread() OVERRIDE {} | 117 virtual void DidSwapBuffersCompleteOnImplThread() OVERRIDE {} |
| 115 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE {} | 118 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE {} |
| 116 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE { | 119 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE { |
| 117 on_can_draw_state_changed_called_ = true; | 120 on_can_draw_state_changed_called_ = true; |
| 118 } | 121 } |
| 119 virtual void NotifyReadyToActivate() OVERRIDE { | 122 virtual void NotifyReadyToActivate() OVERRIDE { |
| 120 did_notify_ready_to_activate_ = true; | 123 did_notify_ready_to_activate_ = true; |
| 121 host_impl_->ActivatePendingTree(); | 124 host_impl_->ActivatePendingTree(); |
| (...skipping 6264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6386 EXPECT_EQ(host_impl_->global_tile_state().hard_memory_limit_in_bytes, | 6389 EXPECT_EQ(host_impl_->global_tile_state().hard_memory_limit_in_bytes, |
| 6387 300u * 1024u * 1024u); | 6390 300u * 1024u * 1024u); |
| 6388 EXPECT_EQ(host_impl_->global_tile_state().soft_memory_limit_in_bytes, | 6391 EXPECT_EQ(host_impl_->global_tile_state().soft_memory_limit_in_bytes, |
| 6389 150u * 1024u * 1024u); | 6392 150u * 1024u * 1024u); |
| 6390 EXPECT_EQ(host_impl_->global_tile_state().unused_memory_limit_in_bytes, | 6393 EXPECT_EQ(host_impl_->global_tile_state().unused_memory_limit_in_bytes, |
| 6391 75u * 1024u * 1024u); | 6394 75u * 1024u * 1024u); |
| 6392 } | 6395 } |
| 6393 | 6396 |
| 6394 } // namespace | 6397 } // namespace |
| 6395 } // namespace cc | 6398 } // namespace cc |
| OLD | NEW |