| 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 // This file contains the GLES2Decoder class. | 5 // This file contains the GLES2Decoder class. |
| 6 | 6 |
| 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
| 8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
| 9 | 9 |
| 10 #include <stdint.h> | 10 #include <stdint.h> |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 // Set the surface associated with the default FBO. | 165 // Set the surface associated with the default FBO. |
| 166 virtual void SetSurface(const scoped_refptr<gl::GLSurface>& surface) = 0; | 166 virtual void SetSurface(const scoped_refptr<gl::GLSurface>& surface) = 0; |
| 167 // Releases the surface associated with the GL context. | 167 // Releases the surface associated with the GL context. |
| 168 // The decoder should not be used until a new surface is set. | 168 // The decoder should not be used until a new surface is set. |
| 169 virtual void ReleaseSurface() = 0; | 169 virtual void ReleaseSurface() = 0; |
| 170 | 170 |
| 171 virtual void TakeFrontBuffer(const Mailbox& mailbox) = 0; | 171 virtual void TakeFrontBuffer(const Mailbox& mailbox) = 0; |
| 172 virtual void ReturnFrontBuffer(const Mailbox& mailbox, bool is_lost) = 0; | 172 virtual void ReturnFrontBuffer(const Mailbox& mailbox, bool is_lost) = 0; |
| 173 | 173 |
| 174 // Resize an offscreen frame buffer. | 174 // Resize an offscreen frame buffer. |
| 175 virtual bool ResizeOffscreenFrameBuffer(const gfx::Size& size) = 0; | 175 virtual bool ResizeOffscreenFramebuffer(const gfx::Size& size) = 0; |
| 176 | 176 |
| 177 // Make this decoder's GL context current. | 177 // Make this decoder's GL context current. |
| 178 virtual bool MakeCurrent() = 0; | 178 virtual bool MakeCurrent() = 0; |
| 179 | 179 |
| 180 // Gets the GLES2 Util which holds info. | 180 // Gets the GLES2 Util which holds info. |
| 181 virtual GLES2Util* GetGLES2Util() = 0; | 181 virtual GLES2Util* GetGLES2Util() = 0; |
| 182 | 182 |
| 183 // Gets the associated GLContext. | 183 // Gets the associated GLContext. |
| 184 virtual gl::GLContext* GetGLContext() = 0; | 184 virtual gl::GLContext* GetGLContext() = 0; |
| 185 | 185 |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 bool debug_; | 349 bool debug_; |
| 350 bool log_commands_; | 350 bool log_commands_; |
| 351 bool unsafe_es3_apis_enabled_; | 351 bool unsafe_es3_apis_enabled_; |
| 352 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 352 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
| 353 }; | 353 }; |
| 354 | 354 |
| 355 } // namespace gles2 | 355 } // namespace gles2 |
| 356 } // namespace gpu | 356 } // namespace gpu |
| 357 | 357 |
| 358 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 358 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
| OLD | NEW |