| 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 RestoreBufferBindings() const = 0; | 184 virtual void RestoreBufferBindings() const = 0; |
| 185 virtual void RestoreFramebufferBindings() const = 0; | 185 virtual void RestoreFramebufferBindings() const = 0; |
| 186 virtual void RestoreRenderbufferBindings() = 0; | 186 virtual void RestoreRenderbufferBindings() = 0; |
| 187 virtual void RestoreGlobalState() const = 0; | 187 virtual void RestoreGlobalState() const = 0; |
| 188 virtual void RestoreProgramBindings() const = 0; | 188 virtual void RestoreProgramBindings() const = 0; |
| 189 virtual void RestoreTextureState(unsigned service_id) const = 0; | 189 virtual void RestoreTextureState(unsigned service_id) const = 0; |
| 190 virtual void RestoreTextureUnitBindings(unsigned unit) const = 0; | 190 virtual void RestoreTextureUnitBindings(unsigned unit) const = 0; |
| 191 virtual void RestoreVertexAttribArray(unsigned index) const = 0; |
| 191 virtual void RestoreAllExternalTextureBindingsIfNeeded() = 0; | 192 virtual void RestoreAllExternalTextureBindingsIfNeeded() = 0; |
| 192 | 193 |
| 193 virtual void ClearAllAttributes() const = 0; | 194 virtual void ClearAllAttributes() const = 0; |
| 194 virtual void RestoreAllAttributes() const = 0; | 195 virtual void RestoreAllAttributes() const = 0; |
| 195 | 196 |
| 196 virtual void SetIgnoreCachedStateForTest(bool ignore) = 0; | 197 virtual void SetIgnoreCachedStateForTest(bool ignore) = 0; |
| 197 virtual void SetForceShaderNameHashingForTest(bool force) = 0; | 198 virtual void SetForceShaderNameHashingForTest(bool force) = 0; |
| 198 virtual uint32_t GetAndClearBackbufferClearBitsForTest(); | 199 virtual uint32_t GetAndClearBackbufferClearBitsForTest(); |
| 199 virtual size_t GetSavedBackTextureCountForTest() = 0; | 200 virtual size_t GetSavedBackTextureCountForTest() = 0; |
| 200 virtual size_t GetCreatedBackTextureCountForTest() = 0; | 201 virtual size_t GetCreatedBackTextureCountForTest() = 0; |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 bool initialized_; | 334 bool initialized_; |
| 334 bool debug_; | 335 bool debug_; |
| 335 bool log_commands_; | 336 bool log_commands_; |
| 336 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 337 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
| 337 }; | 338 }; |
| 338 | 339 |
| 339 } // namespace gles2 | 340 } // namespace gles2 |
| 340 } // namespace gpu | 341 } // namespace gpu |
| 341 | 342 |
| 342 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 343 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
| OLD | NEW |