| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 <vector> | 10 #include <vector> |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 | 82 |
| 83 // Gets the GLES2 Util which holds info. | 83 // Gets the GLES2 Util which holds info. |
| 84 virtual GLES2Util* GetGLES2Util() = 0; | 84 virtual GLES2Util* GetGLES2Util() = 0; |
| 85 | 85 |
| 86 // Gets the associated GLContext. | 86 // Gets the associated GLContext. |
| 87 virtual gfx::GLContext* GetGLContext() = 0; | 87 virtual gfx::GLContext* GetGLContext() = 0; |
| 88 | 88 |
| 89 // Gets the associated ContextGroup | 89 // Gets the associated ContextGroup |
| 90 virtual ContextGroup* GetContextGroup() = 0; | 90 virtual ContextGroup* GetContextGroup() = 0; |
| 91 | 91 |
| 92 // Sets a callback which is called when a glResizeCHROMIUM command |
| 93 // is processed. |
| 94 virtual void SetResizeCallback(Callback1<gfx::Size>::Type* callback) = 0; |
| 95 |
| 92 // Sets a callback which is called when a SwapBuffers command is processed. | 96 // Sets a callback which is called when a SwapBuffers command is processed. |
| 93 virtual void SetSwapBuffersCallback(Callback0::Type* callback) = 0; | 97 virtual void SetSwapBuffersCallback(Callback0::Type* callback) = 0; |
| 94 | 98 |
| 95 // Get the service texture ID corresponding to a client texture ID. | 99 // Get the service texture ID corresponding to a client texture ID. |
| 96 // If no such record is found then return false. | 100 // If no such record is found then return false. |
| 97 virtual bool GetServiceTextureId(uint32 client_texture_id, | 101 virtual bool GetServiceTextureId(uint32 client_texture_id, |
| 98 uint32* service_texture_id) { | 102 uint32* service_texture_id) { |
| 99 return false; | 103 return false; |
| 100 } | 104 } |
| 101 | 105 |
| 102 protected: | 106 protected: |
| 103 GLES2Decoder(); | 107 GLES2Decoder(); |
| 104 | 108 |
| 105 private: | 109 private: |
| 106 bool debug_; | 110 bool debug_; |
| 107 | 111 |
| 108 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 112 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
| 109 }; | 113 }; |
| 110 | 114 |
| 111 } // namespace gles2 | 115 } // namespace gles2 |
| 112 } // namespace gpu | 116 } // namespace gpu |
| 113 | 117 |
| 114 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 118 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
| OLD | NEW |