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

Side by Side Diff: cc/layer_tree_host_impl.h

Issue 11637022: Send memory management policies to the tile manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporate review feedback Created 7 years, 12 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
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_LAYER_TREE_HOST_IMPL_H_ 5 #ifndef CC_LAYER_TREE_HOST_IMPL_H_
6 #define CC_LAYER_TREE_HOST_IMPL_H_ 6 #define CC_LAYER_TREE_HOST_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 virtual void setFullRootLayerDamage() OVERRIDE; 172 virtual void setFullRootLayerDamage() OVERRIDE;
173 virtual void setManagedMemoryPolicy(const ManagedMemoryPolicy& policy) OVERR IDE; 173 virtual void setManagedMemoryPolicy(const ManagedMemoryPolicy& policy) OVERR IDE;
174 virtual void enforceManagedMemoryPolicy(const ManagedMemoryPolicy& policy) O VERRIDE; 174 virtual void enforceManagedMemoryPolicy(const ManagedMemoryPolicy& policy) O VERRIDE;
175 virtual bool hasImplThread() const OVERRIDE; 175 virtual bool hasImplThread() const OVERRIDE;
176 virtual bool shouldClearRootRenderPass() const OVERRIDE; 176 virtual bool shouldClearRootRenderPass() const OVERRIDE;
177 virtual CompositorFrameMetadata makeCompositorFrameMetadata() const OVERRIDE ; 177 virtual CompositorFrameMetadata makeCompositorFrameMetadata() const OVERRIDE ;
178 178
179 // TileManagerClient implementation. 179 // TileManagerClient implementation.
180 virtual void ScheduleManageTiles() OVERRIDE; 180 virtual void ScheduleManageTiles() OVERRIDE;
181 virtual void ScheduleCheckForCompletedSetPixels() OVERRIDE; 181 virtual void ScheduleCheckForCompletedSetPixels() OVERRIDE;
182 virtual void SendTileManagerMemoryStats(
183 size_t memoryRequiredBytes,
184 size_t memoryNiceToHaveBytes,
185 size_t memoryUsedBytes) OVERRIDE;
182 186
183 // OutputSurfaceClient implementation. 187 // OutputSurfaceClient implementation.
184 virtual void OnVSyncParametersChanged(base::TimeTicks timebase, base::TimeDe lta interval) OVERRIDE; 188 virtual void OnVSyncParametersChanged(base::TimeTicks timebase, base::TimeDe lta interval) OVERRIDE;
185 virtual void OnSendFrameToParentCompositorAck(const CompositorFrameAck&) OVE RRIDE; 189 virtual void OnSendFrameToParentCompositorAck(const CompositorFrameAck&) OVE RRIDE;
186 190
187 // Called from LayerTreeImpl. 191 // Called from LayerTreeImpl.
188 void OnCanDrawStateChangedForTree(LayerTreeImpl*); 192 void OnCanDrawStateChangedForTree(LayerTreeImpl*);
189 193
190 // Implementation 194 // Implementation
191 bool canDraw(); 195 bool canDraw();
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 size_t m_lastSentMemoryUseBytes; 410 size_t m_lastSentMemoryUseBytes;
407 411
408 scoped_ptr<AnimationRegistrar> m_animationRegistrar; 412 scoped_ptr<AnimationRegistrar> m_animationRegistrar;
409 413
410 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 414 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
411 }; 415 };
412 416
413 } // namespace cc 417 } // namespace cc
414 418
415 #endif // CC_LAYER_TREE_HOST_IMPL_H_ 419 #endif // CC_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/gl_renderer.cc ('k') | cc/layer_tree_host_impl.cc » ('j') | cc/thread_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698