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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 } | 113 } |
114 virtual void SetNeedsRedrawRectOnImplThread(gfx::Rect damage_rect) OVERRIDE { | 114 virtual void SetNeedsRedrawRectOnImplThread(gfx::Rect damage_rect) OVERRIDE { |
115 did_request_redraw_ = true; | 115 did_request_redraw_ = true; |
116 } | 116 } |
117 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE { | 117 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE { |
118 did_upload_visible_tile_ = true; | 118 did_upload_visible_tile_ = true; |
119 } | 119 } |
120 virtual void SetNeedsCommitOnImplThread() OVERRIDE { | 120 virtual void SetNeedsCommitOnImplThread() OVERRIDE { |
121 did_request_commit_ = true; | 121 did_request_commit_ = true; |
122 } | 122 } |
123 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE {} | |
124 virtual void PostAnimationEventsToMainThreadOnImplThread( | 123 virtual void PostAnimationEventsToMainThreadOnImplThread( |
125 scoped_ptr<AnimationEventsVector> events, | 124 scoped_ptr<AnimationEventsVector> events, |
126 base::Time wall_clock_time) OVERRIDE {} | 125 base::Time wall_clock_time) OVERRIDE {} |
127 virtual bool ReduceContentsTextureMemoryOnImplThread( | 126 virtual bool ReduceContentsTextureMemoryOnImplThread( |
128 size_t limit_bytes, int priority_cutoff) OVERRIDE { | 127 size_t limit_bytes, int priority_cutoff) OVERRIDE { |
129 return reduce_memory_result_; | 128 return reduce_memory_result_; |
130 } | 129 } |
131 virtual void ReduceWastedContentsTextureMemoryOnImplThread() OVERRIDE {} | 130 virtual void ReduceWastedContentsTextureMemoryOnImplThread() OVERRIDE {} |
132 virtual void SendManagedMemoryStats() OVERRIDE {} | 131 virtual void SendManagedMemoryStats() OVERRIDE {} |
133 virtual bool IsInsideDraw() OVERRIDE { return false; } | 132 virtual bool IsInsideDraw() OVERRIDE { return false; } |
(...skipping 5740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5874 EXPECT_FALSE(did_try_initialize_renderer_); | 5873 EXPECT_FALSE(did_try_initialize_renderer_); |
5875 host_impl_->DeferredInitialize(scoped_refptr<ContextProvider>()); | 5874 host_impl_->DeferredInitialize(scoped_refptr<ContextProvider>()); |
5876 EXPECT_TRUE(did_try_initialize_renderer_); | 5875 EXPECT_TRUE(did_try_initialize_renderer_); |
5877 | 5876 |
5878 // Defer intialized GL draw. | 5877 // Defer intialized GL draw. |
5879 DrawFrame(); | 5878 DrawFrame(); |
5880 } | 5879 } |
5881 | 5880 |
5882 } // namespace | 5881 } // namespace |
5883 } // namespace cc | 5882 } // namespace cc |
OLD | NEW |