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 {} |
98 virtual void BeginFrameOnImplThread(base::TimeTicks frame_time) | 100 virtual void BeginFrameOnImplThread(base::TimeTicks frame_time) |
99 OVERRIDE {} | 101 OVERRIDE {} |
100 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE { | 102 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE { |
101 on_can_draw_state_changed_called_ = true; | 103 on_can_draw_state_changed_called_ = true; |
102 } | 104 } |
103 virtual void OnHasPendingTreeStateChanged(bool has_pending_tree) OVERRIDE { | 105 virtual void OnHasPendingTreeStateChanged(bool has_pending_tree) OVERRIDE { |
104 has_pending_tree_ = has_pending_tree; | 106 has_pending_tree_ = has_pending_tree; |
105 } | 107 } |
106 virtual void SetNeedsRedrawOnImplThread() OVERRIDE { | 108 virtual void SetNeedsRedrawOnImplThread() OVERRIDE { |
107 did_request_redraw_ = true; | 109 did_request_redraw_ = true; |
(...skipping 5906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6014 EXPECT_FALSE(did_try_initialize_renderer_); | 6016 EXPECT_FALSE(did_try_initialize_renderer_); |
6015 host_impl_->DeferredInitialize(scoped_refptr<ContextProvider>()); | 6017 host_impl_->DeferredInitialize(scoped_refptr<ContextProvider>()); |
6016 EXPECT_TRUE(did_try_initialize_renderer_); | 6018 EXPECT_TRUE(did_try_initialize_renderer_); |
6017 | 6019 |
6018 // Defer intialized GL draw. | 6020 // Defer intialized GL draw. |
6019 DrawFrame(); | 6021 DrawFrame(); |
6020 } | 6022 } |
6021 | 6023 |
6022 } // namespace | 6024 } // namespace |
6023 } // namespace cc | 6025 } // namespace cc |
OLD | NEW |