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

Side by Side Diff: cc/output/software_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/renderer.h ('k') | cc/output/software_renderer.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 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_SOFTWARE_RENDERER_H_ 5 #ifndef CC_OUTPUT_SOFTWARE_RENDERER_H_
6 #define CC_OUTPUT_SOFTWARE_RENDERER_H_ 6 #define CC_OUTPUT_SOFTWARE_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/output/compositor_frame.h" 10 #include "cc/output/compositor_frame.h"
(...skipping 27 matching lines...) Expand all
38 virtual void Finish() OVERRIDE; 38 virtual void Finish() OVERRIDE;
39 virtual void SwapBuffers() OVERRIDE; 39 virtual void SwapBuffers() OVERRIDE;
40 virtual void GetFramebufferPixels(void* pixels, gfx::Rect rect) OVERRIDE; 40 virtual void GetFramebufferPixels(void* pixels, gfx::Rect rect) OVERRIDE;
41 virtual void SetVisible(bool visible) OVERRIDE; 41 virtual void SetVisible(bool visible) OVERRIDE;
42 virtual void SendManagedMemoryStats( 42 virtual void SendManagedMemoryStats(
43 size_t bytes_visible, 43 size_t bytes_visible,
44 size_t bytes_visible_and_nearby, 44 size_t bytes_visible_and_nearby,
45 size_t bytes_allocated) OVERRIDE {} 45 size_t bytes_allocated) OVERRIDE {}
46 virtual void ReceiveSwapBuffersAck( 46 virtual void ReceiveSwapBuffersAck(
47 const CompositorFrameAck& ack) OVERRIDE; 47 const CompositorFrameAck& ack) OVERRIDE;
48 virtual void SetDiscardBackBufferWhenNotVisible(bool discard) OVERRIDE;
49 virtual void DiscardBackbuffer() OVERRIDE; 48 virtual void DiscardBackbuffer() OVERRIDE;
50 virtual void EnsureBackbuffer() OVERRIDE; 49 virtual void EnsureBackbuffer() OVERRIDE;
51 50
52 protected: 51 protected:
53 virtual void BindFramebufferToOutputSurface(DrawingFrame* frame) OVERRIDE; 52 virtual void BindFramebufferToOutputSurface(DrawingFrame* frame) OVERRIDE;
54 virtual bool BindFramebufferToTexture( 53 virtual bool BindFramebufferToTexture(
55 DrawingFrame* frame, 54 DrawingFrame* frame,
56 const ScopedResource* texture, 55 const ScopedResource* texture,
57 gfx::Rect target_rect) OVERRIDE; 56 gfx::Rect target_rect) OVERRIDE;
58 virtual void SetDrawViewport(gfx::Rect window_space_viewport) OVERRIDE; 57 virtual void SetDrawViewport(gfx::Rect window_space_viewport) OVERRIDE;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 scoped_ptr<ResourceProvider::ScopedWriteLockSoftware> 110 scoped_ptr<ResourceProvider::ScopedWriteLockSoftware>
112 current_framebuffer_lock_; 111 current_framebuffer_lock_;
113 scoped_ptr<SoftwareFrameData> current_frame_data_; 112 scoped_ptr<SoftwareFrameData> current_frame_data_;
114 113
115 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); 114 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer);
116 }; 115 };
117 116
118 } // namespace cc 117 } // namespace cc
119 118
120 #endif // CC_OUTPUT_SOFTWARE_RENDERER_H_ 119 #endif // CC_OUTPUT_SOFTWARE_RENDERER_H_
OLDNEW
« no previous file with comments | « cc/output/renderer.h ('k') | cc/output/software_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698