| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_ |
| 6 #define GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 // bound image, 0x00 if not. | 293 // bound image, 0x00 if not. |
| 294 uint32_t draw_buffer_bound_mask_; | 294 uint32_t draw_buffer_bound_mask_; |
| 295 // This is the mask for the actual draw buffers sent to driver. | 295 // This is the mask for the actual draw buffers sent to driver. |
| 296 uint32_t adjusted_draw_buffer_bound_mask_; | 296 uint32_t adjusted_draw_buffer_bound_mask_; |
| 297 | 297 |
| 298 GLenum read_buffer_; | 298 GLenum read_buffer_; |
| 299 | 299 |
| 300 DISALLOW_COPY_AND_ASSIGN(Framebuffer); | 300 DISALLOW_COPY_AND_ASSIGN(Framebuffer); |
| 301 }; | 301 }; |
| 302 | 302 |
| 303 struct DecoderFramebufferState { | 303 struct GPU_EXPORT DecoderFramebufferState { |
| 304 DecoderFramebufferState(); | 304 DecoderFramebufferState(); |
| 305 ~DecoderFramebufferState(); | 305 ~DecoderFramebufferState(); |
| 306 | 306 |
| 307 // State saved for clearing so we can clear render buffers and then | 307 // State saved for clearing so we can clear render buffers and then |
| 308 // restore to these values. | 308 // restore to these values. |
| 309 bool clear_state_dirty; | 309 bool clear_state_dirty; |
| 310 | 310 |
| 311 // The currently bound framebuffers | 311 // The currently bound framebuffers |
| 312 scoped_refptr<Framebuffer> bound_read_framebuffer; | 312 scoped_refptr<Framebuffer> bound_read_framebuffer; |
| 313 scoped_refptr<Framebuffer> bound_draw_framebuffer; | 313 scoped_refptr<Framebuffer> bound_draw_framebuffer; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 | 383 |
| 384 scoped_refptr<FramebufferCompletenessCache> framebuffer_combo_complete_cache_; | 384 scoped_refptr<FramebufferCompletenessCache> framebuffer_combo_complete_cache_; |
| 385 | 385 |
| 386 DISALLOW_COPY_AND_ASSIGN(FramebufferManager); | 386 DISALLOW_COPY_AND_ASSIGN(FramebufferManager); |
| 387 }; | 387 }; |
| 388 | 388 |
| 389 } // namespace gles2 | 389 } // namespace gles2 |
| 390 } // namespace gpu | 390 } // namespace gpu |
| 391 | 391 |
| 392 #endif // GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_ | 392 #endif // GPU_COMMAND_BUFFER_SERVICE_FRAMEBUFFER_MANAGER_H_ |
| OLD | NEW |