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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 88 |
89 virtual void TearDown() OVERRIDE {} | 89 virtual void TearDown() OVERRIDE {} |
90 | 90 |
91 virtual void DidTryInitializeRendererOnImplThread( | 91 virtual void DidTryInitializeRendererOnImplThread( |
92 bool success, | 92 bool success, |
93 scoped_refptr<ContextProvider> offscreen_context_provider) OVERRIDE { | 93 scoped_refptr<ContextProvider> offscreen_context_provider) OVERRIDE { |
94 did_try_initialize_renderer_ = true; | 94 did_try_initialize_renderer_ = true; |
95 } | 95 } |
96 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE {} | 96 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE {} |
97 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE {} | 97 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE {} |
98 virtual void OnVSyncParametersChanged(base::TimeTicks timebase, | |
99 base::TimeDelta interval) OVERRIDE {} | |
100 virtual void BeginFrameOnImplThread(base::TimeTicks frame_time) | 98 virtual void BeginFrameOnImplThread(base::TimeTicks frame_time) |
101 OVERRIDE {} | 99 OVERRIDE {} |
102 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE { | 100 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE { |
103 on_can_draw_state_changed_called_ = true; | 101 on_can_draw_state_changed_called_ = true; |
104 } | 102 } |
105 virtual void OnHasPendingTreeStateChanged(bool has_pending_tree) OVERRIDE { | 103 virtual void OnHasPendingTreeStateChanged(bool has_pending_tree) OVERRIDE { |
106 has_pending_tree_ = has_pending_tree; | 104 has_pending_tree_ = has_pending_tree; |
107 } | 105 } |
108 virtual void SetNeedsRedrawOnImplThread() OVERRIDE { | 106 virtual void SetNeedsRedrawOnImplThread() OVERRIDE { |
109 did_request_redraw_ = true; | 107 did_request_redraw_ = true; |
(...skipping 5757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5867 EXPECT_FALSE(did_try_initialize_renderer_); | 5865 EXPECT_FALSE(did_try_initialize_renderer_); |
5868 host_impl_->DeferredInitialize(scoped_refptr<ContextProvider>()); | 5866 host_impl_->DeferredInitialize(scoped_refptr<ContextProvider>()); |
5869 EXPECT_TRUE(did_try_initialize_renderer_); | 5867 EXPECT_TRUE(did_try_initialize_renderer_); |
5870 | 5868 |
5871 // Defer intialized GL draw. | 5869 // Defer intialized GL draw. |
5872 DrawFrame(); | 5870 DrawFrame(); |
5873 } | 5871 } |
5874 | 5872 |
5875 } // namespace | 5873 } // namespace |
5876 } // namespace cc | 5874 } // namespace cc |
OLD | NEW |