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

Side by Side Diff: cc/output/renderer.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/output/output_surface_unittest.cc ('k') | cc/output/software_renderer.h » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_OUTPUT_RENDERER_H_ 5 #ifndef CC_OUTPUT_RENDERER_H_
6 #define CC_OUTPUT_RENDERER_H_ 6 #define CC_OUTPUT_RENDERER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "cc/base/cc_export.h" 9 #include "cc/base/cc_export.h"
10 #include "cc/quads/render_pass.h" 10 #include "cc/quads/render_pass.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 virtual void GetFramebufferPixels(void* pixels, gfx::Rect rect) = 0; 65 virtual void GetFramebufferPixels(void* pixels, gfx::Rect rect) = 0;
66 66
67 virtual bool IsContextLost(); 67 virtual bool IsContextLost();
68 68
69 virtual void SetVisible(bool visible) = 0; 69 virtual void SetVisible(bool visible) = 0;
70 70
71 virtual void SendManagedMemoryStats(size_t bytes_visible, 71 virtual void SendManagedMemoryStats(size_t bytes_visible,
72 size_t bytes_visible_and_nearby, 72 size_t bytes_visible_and_nearby,
73 size_t bytes_allocated) = 0; 73 size_t bytes_allocated) = 0;
74 74
75 virtual void SetDiscardBackBufferWhenNotVisible(bool discard) = 0;
76
77 protected: 75 protected:
78 explicit Renderer(RendererClient* client, const LayerTreeSettings* settings) 76 explicit Renderer(RendererClient* client, const LayerTreeSettings* settings)
79 : client_(client), settings_(settings) {} 77 : client_(client), settings_(settings) {}
80 78
81 RendererClient* client_; 79 RendererClient* client_;
82 const LayerTreeSettings* settings_; 80 const LayerTreeSettings* settings_;
83 81
84 private: 82 private:
85 DISALLOW_COPY_AND_ASSIGN(Renderer); 83 DISALLOW_COPY_AND_ASSIGN(Renderer);
86 }; 84 };
87 85
88 } // namespace cc 86 } // namespace cc
89 87
90 #endif // CC_OUTPUT_RENDERER_H_ 88 #endif // CC_OUTPUT_RENDERER_H_
OLDNEW
« no previous file with comments | « cc/output/output_surface_unittest.cc ('k') | cc/output/software_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698