| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, | 114 virtual void CommitVSyncParameters(base::TimeTicks timebase, |
| 115 base::TimeDelta interval) OVERRIDE {} | 115 base::TimeDelta interval) OVERRIDE {} |
| 116 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) OVERRIDE {} | 116 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) OVERRIDE {} |
| 117 virtual void SetMaxSwapsPendingOnImplThread(int max) OVERRIDE {} | 117 virtual void SetMaxSwapsPendingOnImplThread(int max) OVERRIDE {} |
| 118 virtual void DidSwapBuffersOnImplThread() OVERRIDE {} | 118 virtual void DidSwapBuffersOnImplThread() OVERRIDE {} |
| 119 virtual void DidSwapBuffersCompleteOnImplThread() OVERRIDE {} | 119 virtual void DidSwapBuffersCompleteOnImplThread() OVERRIDE {} |
| 120 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE {} | |
| 121 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE { | 120 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE { |
| 122 on_can_draw_state_changed_called_ = true; | 121 on_can_draw_state_changed_called_ = true; |
| 123 } | 122 } |
| 124 virtual void NotifyReadyToActivate() OVERRIDE { | 123 virtual void NotifyReadyToActivate() OVERRIDE { |
| 125 did_notify_ready_to_activate_ = true; | 124 did_notify_ready_to_activate_ = true; |
| 126 host_impl_->ActivatePendingTree(); | 125 host_impl_->ActivatePendingTree(); |
| 127 } | 126 } |
| 128 virtual void SetNeedsRedrawOnImplThread() OVERRIDE { | 127 virtual void SetNeedsRedrawOnImplThread() OVERRIDE { |
| 129 did_request_redraw_ = true; | 128 did_request_redraw_ = true; |
| 130 } | 129 } |
| (...skipping 6436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6567 FakePictureLayerImpl* active_mask_content = | 6566 FakePictureLayerImpl* active_mask_content = |
| 6568 static_cast<FakePictureLayerImpl*>( | 6567 static_cast<FakePictureLayerImpl*>( |
| 6569 host_impl_->active_tree()->root_layer()->children()[0]->mask_layer()); | 6568 host_impl_->active_tree()->root_layer()->children()[0]->mask_layer()); |
| 6570 gfx::Rect r2 = active_mask_content->visible_rect_for_tile_priority(); | 6569 gfx::Rect r2 = active_mask_content->visible_rect_for_tile_priority(); |
| 6571 | 6570 |
| 6572 ASSERT_TRUE(!r2.IsEmpty()); | 6571 ASSERT_TRUE(!r2.IsEmpty()); |
| 6573 } | 6572 } |
| 6574 | 6573 |
| 6575 } // namespace | 6574 } // namespace |
| 6576 } // namespace cc | 6575 } // namespace cc |
| OLD | NEW |