| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 settings.texture_id_allocation_chunk_size = 1; | 97 settings.texture_id_allocation_chunk_size = 1; |
| 98 return settings; | 98 return settings; |
| 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 DidLoseOutputSurfaceOnImplThread() OVERRIDE {} | 108 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE {} |
| 108 virtual void DidSwapBuffersOnImplThread() OVERRIDE {} | 109 virtual void DidSwapBuffersOnImplThread() OVERRIDE {} |
| 109 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE {} | 110 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE {} |
| 110 virtual void BeginImplFrame(const BeginFrameArgs& args) OVERRIDE {} | 111 virtual void BeginImplFrame(const BeginFrameArgs& args) OVERRIDE {} |
| 111 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE { | 112 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE { |
| 112 on_can_draw_state_changed_called_ = true; | 113 on_can_draw_state_changed_called_ = true; |
| 113 } | 114 } |
| 114 virtual void NotifyReadyToActivate() OVERRIDE { | 115 virtual void NotifyReadyToActivate() OVERRIDE { |
| 115 did_notify_ready_to_activate_ = true; | 116 did_notify_ready_to_activate_ = true; |
| 116 host_impl_->ActivatePendingTree(); | 117 host_impl_->ActivatePendingTree(); |
| (...skipping 5651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5768 &set_needs_redraw_count)); | 5769 &set_needs_redraw_count)); |
| 5769 // Empty damage rect won't signal the monitor. | 5770 // Empty damage rect won't signal the monitor. |
| 5770 host_impl_->SetNeedsRedrawRect(gfx::Rect()); | 5771 host_impl_->SetNeedsRedrawRect(gfx::Rect()); |
| 5771 EXPECT_EQ(0, set_needs_commit_count); | 5772 EXPECT_EQ(0, set_needs_commit_count); |
| 5772 EXPECT_EQ(2, set_needs_redraw_count); | 5773 EXPECT_EQ(2, set_needs_redraw_count); |
| 5773 } | 5774 } |
| 5774 } | 5775 } |
| 5775 | 5776 |
| 5776 } // namespace | 5777 } // namespace |
| 5777 } // namespace cc | 5778 } // namespace cc |
| OLD | NEW |