| 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 <vector> | 10 #include <vector> |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 | 134 |
| 135 virtual Capabilities GetCapabilities() = 0; | 135 virtual Capabilities GetCapabilities() = 0; |
| 136 | 136 |
| 137 // Restores all of the decoder GL state. | 137 // Restores all of the decoder GL state. |
| 138 virtual void RestoreState(const ContextState* prev_state) const = 0; | 138 virtual void RestoreState(const ContextState* prev_state) const = 0; |
| 139 | 139 |
| 140 // Restore States. | 140 // Restore States. |
| 141 virtual void RestoreActiveTexture() const = 0; | 141 virtual void RestoreActiveTexture() const = 0; |
| 142 virtual void RestoreAllTextureUnitBindings( | 142 virtual void RestoreAllTextureUnitBindings( |
| 143 const ContextState* prev_state) const = 0; | 143 const ContextState* prev_state) const = 0; |
| 144 virtual void RestoreActiveTextureUnitBinding(unsigned int target) const = 0; |
| 144 virtual void RestoreAttribute(unsigned index) const = 0; | 145 virtual void RestoreAttribute(unsigned index) const = 0; |
| 145 virtual void RestoreBufferBindings() const = 0; | 146 virtual void RestoreBufferBindings() const = 0; |
| 146 virtual void RestoreFramebufferBindings() const = 0; | 147 virtual void RestoreFramebufferBindings() const = 0; |
| 147 virtual void RestoreGlobalState() const = 0; | 148 virtual void RestoreGlobalState() const = 0; |
| 148 virtual void RestoreProgramBindings() const = 0; | 149 virtual void RestoreProgramBindings() const = 0; |
| 149 virtual void RestoreTextureState(unsigned service_id) const = 0; | 150 virtual void RestoreTextureState(unsigned service_id) const = 0; |
| 150 virtual void RestoreTextureUnitBindings(unsigned unit) const = 0; | 151 virtual void RestoreTextureUnitBindings(unsigned unit) const = 0; |
| 151 | 152 |
| 152 virtual void ClearAllAttributes() const = 0; | 153 virtual void ClearAllAttributes() const = 0; |
| 153 virtual void RestoreAllAttributes() const = 0; | 154 virtual void RestoreAllAttributes() const = 0; |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 bool debug_; | 241 bool debug_; |
| 241 bool log_commands_; | 242 bool log_commands_; |
| 242 | 243 |
| 243 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 244 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
| 244 }; | 245 }; |
| 245 | 246 |
| 246 } // namespace gles2 | 247 } // namespace gles2 |
| 247 } // namespace gpu | 248 } // namespace gpu |
| 248 | 249 |
| 249 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 250 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
| OLD | NEW |