| 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 virtual Capabilities GetCapabilities() = 0; | 174 virtual Capabilities GetCapabilities() = 0; |
| 175 | 175 |
| 176 // Restores all of the decoder GL state. | 176 // Restores all of the decoder GL state. |
| 177 virtual void RestoreState(const ContextState* prev_state) = 0; | 177 virtual void RestoreState(const ContextState* prev_state) = 0; |
| 178 | 178 |
| 179 // Restore States. | 179 // Restore States. |
| 180 virtual void RestoreActiveTexture() const = 0; | 180 virtual void RestoreActiveTexture() const = 0; |
| 181 virtual void RestoreAllTextureUnitBindings( | 181 virtual void RestoreAllTextureUnitBindings( |
| 182 const ContextState* prev_state) const = 0; | 182 const ContextState* prev_state) const = 0; |
| 183 virtual void RestoreActiveTextureUnitBinding(unsigned int target) const = 0; | 183 virtual void RestoreActiveTextureUnitBinding(unsigned int target) const = 0; |
| 184 virtual void RestoreBufferBinding(unsigned int target) const = 0; | 184 virtual void RestoreBufferBinding(unsigned int target) = 0; |
| 185 virtual void RestoreBufferBindings() const = 0; | 185 virtual void RestoreBufferBindings() const = 0; |
| 186 virtual void RestoreFramebufferBindings() const = 0; | 186 virtual void RestoreFramebufferBindings() const = 0; |
| 187 virtual void RestoreRenderbufferBindings() = 0; | 187 virtual void RestoreRenderbufferBindings() = 0; |
| 188 virtual void RestoreGlobalState() const = 0; | 188 virtual void RestoreGlobalState() const = 0; |
| 189 virtual void RestoreProgramBindings() const = 0; | 189 virtual void RestoreProgramBindings() const = 0; |
| 190 virtual void RestoreTextureState(unsigned service_id) const = 0; | 190 virtual void RestoreTextureState(unsigned service_id) const = 0; |
| 191 virtual void RestoreTextureUnitBindings(unsigned unit) const = 0; | 191 virtual void RestoreTextureUnitBindings(unsigned unit) const = 0; |
| 192 virtual void RestoreVertexAttribArray(unsigned index) = 0; | 192 virtual void RestoreVertexAttribArray(unsigned index) = 0; |
| 193 virtual void RestoreAllExternalTextureBindingsIfNeeded() = 0; | 193 virtual void RestoreAllExternalTextureBindingsIfNeeded() = 0; |
| 194 | 194 |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 bool initialized_; | 335 bool initialized_; |
| 336 bool debug_; | 336 bool debug_; |
| 337 bool log_commands_; | 337 bool log_commands_; |
| 338 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 338 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
| 339 }; | 339 }; |
| 340 | 340 |
| 341 } // namespace gles2 | 341 } // namespace gles2 |
| 342 } // namespace gpu | 342 } // namespace gpu |
| 343 | 343 |
| 344 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 344 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
| OLD | NEW |