diff options
author | kloveless@chromium.org <kloveless@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-02 01:04:34 +0000 |
---|---|---|
committer | kloveless@chromium.org <kloveless@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-02 01:04:34 +0000 |
commit | 9d3b2e1e010f698854b61fa45eab6f9649733ebd (patch) | |
tree | ec61edc8030b065475bf17945cee37787f871dc7 /gpu/command_buffer/service/framebuffer_manager.h | |
parent | 4386f075e874d5cebd8eb870599505f70aef328d (diff) | |
download | chromium_src-9d3b2e1e010f698854b61fa45eab6f9649733ebd.zip chromium_src-9d3b2e1e010f698854b61fa45eab6f9649733ebd.tar.gz chromium_src-9d3b2e1e010f698854b61fa45eab6f9649733ebd.tar.bz2 |
Move more framebuffer state out of ContextState and into FramebufferState.
This will us (in future CLs) to not pass in ContextState into FramebufferManager,
but just the FramebufferState.
Review URL: https://codereview.chromium.org/25277005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226374 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/service/framebuffer_manager.h')
-rw-r--r-- | gpu/command_buffer/service/framebuffer_manager.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gpu/command_buffer/service/framebuffer_manager.h b/gpu/command_buffer/service/framebuffer_manager.h index aa11118..7955ac1 100644 --- a/gpu/command_buffer/service/framebuffer_manager.h +++ b/gpu/command_buffer/service/framebuffer_manager.h @@ -181,12 +181,16 @@ class GPU_EXPORT Framebuffer : public base::RefCounted<Framebuffer> { }; struct DecoderFramebufferState { - DecoderFramebufferState(): - clear_state_dirty(true) {} + DecoderFramebufferState(); + ~DecoderFramebufferState(); // State saved for clearing so we can clear render buffers and then // restore to these values. bool clear_state_dirty; + + // The currently bound framebuffers + scoped_refptr<Framebuffer> bound_read_framebuffer; + scoped_refptr<Framebuffer> bound_draw_framebuffer; }; // This class keeps track of the frambebuffers and their attached renderbuffers |