Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(267)

Side by Side Diff: cc/trees/layer_tree_host_impl.h

Issue 13947038: Retry tree activation if raster tasks finish during first half of vsync interval (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/resources/tile_manager.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 base::Time wall_clock_time) = 0; 64 base::Time wall_clock_time) = 0;
65 // Returns true if resources were deleted by this call. 65 // Returns true if resources were deleted by this call.
66 virtual bool ReduceContentsTextureMemoryOnImplThread( 66 virtual bool ReduceContentsTextureMemoryOnImplThread(
67 size_t limit_bytes, 67 size_t limit_bytes,
68 int priority_cutoff) = 0; 68 int priority_cutoff) = 0;
69 virtual void ReduceWastedContentsTextureMemoryOnImplThread() = 0; 69 virtual void ReduceWastedContentsTextureMemoryOnImplThread() = 0;
70 virtual void SendManagedMemoryStats() = 0; 70 virtual void SendManagedMemoryStats() = 0;
71 virtual bool IsInsideDraw() = 0; 71 virtual bool IsInsideDraw() = 0;
72 virtual void RenewTreePriority() = 0; 72 virtual void RenewTreePriority() = 0;
73 virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay) = 0; 73 virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay) = 0;
74 virtual void DidFinishTileRasterTasks() = 0;
74 75
75 protected: 76 protected:
76 virtual ~LayerTreeHostImplClient() {} 77 virtual ~LayerTreeHostImplClient() {}
77 }; 78 };
78 79
79 // LayerTreeHostImpl owns the LayerImpl trees as well as associated rendering 80 // LayerTreeHostImpl owns the LayerImpl trees as well as associated rendering
80 // state. 81 // state.
81 class CC_EXPORT LayerTreeHostImpl : public InputHandlerClient, 82 class CC_EXPORT LayerTreeHostImpl : public InputHandlerClient,
82 public RendererClient, 83 public RendererClient,
83 public TileManagerClient, 84 public TileManagerClient,
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 virtual void EnforceManagedMemoryPolicy(const ManagedMemoryPolicy& policy) 177 virtual void EnforceManagedMemoryPolicy(const ManagedMemoryPolicy& policy)
177 OVERRIDE; 178 OVERRIDE;
178 virtual bool HasImplThread() const OVERRIDE; 179 virtual bool HasImplThread() const OVERRIDE;
179 virtual bool ShouldClearRootRenderPass() const OVERRIDE; 180 virtual bool ShouldClearRootRenderPass() const OVERRIDE;
180 virtual CompositorFrameMetadata MakeCompositorFrameMetadata() const OVERRIDE; 181 virtual CompositorFrameMetadata MakeCompositorFrameMetadata() const OVERRIDE;
181 virtual bool AllowPartialSwap() const OVERRIDE; 182 virtual bool AllowPartialSwap() const OVERRIDE;
182 183
183 // TileManagerClient implementation. 184 // TileManagerClient implementation.
184 virtual void ScheduleManageTiles() OVERRIDE; 185 virtual void ScheduleManageTiles() OVERRIDE;
185 virtual void DidInitializeVisibleTile() OVERRIDE; 186 virtual void DidInitializeVisibleTile() OVERRIDE;
187 virtual void DidFinishTileRasterTasks() OVERRIDE;
186 188
187 // OutputSurfaceClient implementation. 189 // OutputSurfaceClient implementation.
188 virtual void OnVSyncParametersChanged(base::TimeTicks timebase, 190 virtual void OnVSyncParametersChanged(base::TimeTicks timebase,
189 base::TimeDelta interval) OVERRIDE; 191 base::TimeDelta interval) OVERRIDE;
190 virtual void DidVSync(base::TimeTicks frame_time) OVERRIDE; 192 virtual void DidVSync(base::TimeTicks frame_time) OVERRIDE;
191 virtual void OnSendFrameToParentCompositorAck(const CompositorFrameAck& ack) 193 virtual void OnSendFrameToParentCompositorAck(const CompositorFrameAck& ack)
192 OVERRIDE; 194 OVERRIDE;
193 195
194 // Called from LayerTreeImpl. 196 // Called from LayerTreeImpl.
195 void OnCanDrawStateChangedForTree(); 197 void OnCanDrawStateChangedForTree();
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 scoped_ptr<AnimationRegistrar> animation_registrar_; 471 scoped_ptr<AnimationRegistrar> animation_registrar_;
470 472
471 RenderingStatsInstrumentation* rendering_stats_instrumentation_; 473 RenderingStatsInstrumentation* rendering_stats_instrumentation_;
472 474
473 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 475 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
474 }; 476 };
475 477
476 } // namespace cc 478 } // namespace cc
477 479
478 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 480 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/resources/tile_manager.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698