| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 settings.texture_id_allocation_chunk_size = 1; | 96 settings.texture_id_allocation_chunk_size = 1; |
| 97 return settings; | 97 return settings; |
| 98 } | 98 } |
| 99 | 99 |
| 100 virtual void SetUp() OVERRIDE { | 100 virtual void SetUp() OVERRIDE { |
| 101 CreateHostImpl(DefaultSettings(), CreateOutputSurface()); | 101 CreateHostImpl(DefaultSettings(), CreateOutputSurface()); |
| 102 } | 102 } |
| 103 | 103 |
| 104 virtual void TearDown() OVERRIDE {} | 104 virtual void TearDown() OVERRIDE {} |
| 105 | 105 |
| 106 virtual void UpdateRendererCapabilitiesOnImplThread() OVERRIDE {} |
| 106 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE {} | 107 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE {} |
| 107 virtual void DidSwapBuffersOnImplThread() OVERRIDE {} | 108 virtual void DidSwapBuffersOnImplThread() OVERRIDE {} |
| 108 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE {} | 109 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE {} |
| 109 virtual void BeginImplFrame(const BeginFrameArgs& args) OVERRIDE {} | 110 virtual void BeginImplFrame(const BeginFrameArgs& args) OVERRIDE {} |
| 110 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE { | 111 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE { |
| 111 on_can_draw_state_changed_called_ = true; | 112 on_can_draw_state_changed_called_ = true; |
| 112 } | 113 } |
| 113 virtual void NotifyReadyToActivate() OVERRIDE { | 114 virtual void NotifyReadyToActivate() OVERRIDE { |
| 114 did_notify_ready_to_activate_ = true; | 115 did_notify_ready_to_activate_ = true; |
| 115 host_impl_->ActivatePendingTree(); | 116 host_impl_->ActivatePendingTree(); |
| (...skipping 5340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5456 &set_needs_redraw_count)); | 5457 &set_needs_redraw_count)); |
| 5457 // Empty damage rect won't signal the monitor. | 5458 // Empty damage rect won't signal the monitor. |
| 5458 host_impl_->SetNeedsRedrawRect(gfx::Rect()); | 5459 host_impl_->SetNeedsRedrawRect(gfx::Rect()); |
| 5459 EXPECT_EQ(0, set_needs_commit_count); | 5460 EXPECT_EQ(0, set_needs_commit_count); |
| 5460 EXPECT_EQ(2, set_needs_redraw_count); | 5461 EXPECT_EQ(2, set_needs_redraw_count); |
| 5461 } | 5462 } |
| 5462 } | 5463 } |
| 5463 | 5464 |
| 5464 } // namespace | 5465 } // namespace |
| 5465 } // namespace cc | 5466 } // namespace cc |
| OLD | NEW |