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

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

Issue 53633003: Do not give GPU memory to backgrounded compositors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove test Created 7 years, 1 month 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/test/test_context_provider.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 <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 virtual void BeginImplFrame(const BeginFrameArgs& args) OVERRIDE; 223 virtual void BeginImplFrame(const BeginFrameArgs& args) OVERRIDE;
224 virtual void SetExternalDrawConstraints( 224 virtual void SetExternalDrawConstraints(
225 const gfx::Transform& transform, 225 const gfx::Transform& transform,
226 gfx::Rect viewport, 226 gfx::Rect viewport,
227 gfx::Rect clip, 227 gfx::Rect clip,
228 bool valid_for_tile_management) OVERRIDE; 228 bool valid_for_tile_management) OVERRIDE;
229 virtual void DidLoseOutputSurface() OVERRIDE; 229 virtual void DidLoseOutputSurface() OVERRIDE;
230 virtual void OnSwapBuffersComplete() OVERRIDE; 230 virtual void OnSwapBuffersComplete() OVERRIDE;
231 virtual void ReclaimResources(const CompositorFrameAck* ack) OVERRIDE; 231 virtual void ReclaimResources(const CompositorFrameAck* ack) OVERRIDE;
232 virtual void SetMemoryPolicy(const ManagedMemoryPolicy& policy) OVERRIDE; 232 virtual void SetMemoryPolicy(const ManagedMemoryPolicy& policy) OVERRIDE;
233 virtual void SetDiscardBackBufferWhenNotVisible(bool discard) OVERRIDE;
234 virtual void SetTreeActivationCallback(const base::Closure& callback) 233 virtual void SetTreeActivationCallback(const base::Closure& callback)
235 OVERRIDE; 234 OVERRIDE;
236 235
237 // Called from LayerTreeImpl. 236 // Called from LayerTreeImpl.
238 void OnCanDrawStateChangedForTree(); 237 void OnCanDrawStateChangedForTree();
239 238
240 // Implementation. 239 // Implementation.
241 bool CanDraw() const; 240 bool CanDraw() const;
242 OutputSurface* output_surface() const { return output_surface_.get(); } 241 OutputSurface* output_surface() const { return output_surface_.get(); }
243 242
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 base::Closure tree_activation_callback_; 624 base::Closure tree_activation_callback_;
626 625
627 SharedBitmapManager* shared_bitmap_manager_; 626 SharedBitmapManager* shared_bitmap_manager_;
628 627
629 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 628 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
630 }; 629 };
631 630
632 } // namespace cc 631 } // namespace cc
633 632
634 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 633 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/test/test_context_provider.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698