| 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 virtual void RestoreGlobalState() const = 0; | 164 virtual void RestoreGlobalState() const = 0; |
| 165 virtual void RestoreProgramBindings() const = 0; | 165 virtual void RestoreProgramBindings() const = 0; |
| 166 virtual void RestoreTextureState(unsigned service_id) const = 0; | 166 virtual void RestoreTextureState(unsigned service_id) const = 0; |
| 167 virtual void RestoreTextureUnitBindings(unsigned unit) const = 0; | 167 virtual void RestoreTextureUnitBindings(unsigned unit) const = 0; |
| 168 | 168 |
| 169 virtual void ClearAllAttributes() const = 0; | 169 virtual void ClearAllAttributes() const = 0; |
| 170 virtual void RestoreAllAttributes() const = 0; | 170 virtual void RestoreAllAttributes() const = 0; |
| 171 | 171 |
| 172 virtual void SetIgnoreCachedStateForTest(bool ignore) = 0; | 172 virtual void SetIgnoreCachedStateForTest(bool ignore) = 0; |
| 173 | 173 |
| 174 // Allow the decoder to exit the current process. |
| 175 // Defaults to |false|. |
| 176 virtual void SetAllowExit(bool allow_exit) = 0; |
| 177 |
| 174 // Gets the QueryManager for this context. | 178 // Gets the QueryManager for this context. |
| 175 virtual QueryManager* GetQueryManager() = 0; | 179 virtual QueryManager* GetQueryManager() = 0; |
| 176 | 180 |
| 177 // Gets the VertexArrayManager for this context. | 181 // Gets the VertexArrayManager for this context. |
| 178 virtual VertexArrayManager* GetVertexArrayManager() = 0; | 182 virtual VertexArrayManager* GetVertexArrayManager() = 0; |
| 179 | 183 |
| 180 // Gets the ImageManager for this context. | 184 // Gets the ImageManager for this context. |
| 181 virtual ImageManager* GetImageManager() = 0; | 185 virtual ImageManager* GetImageManager() = 0; |
| 182 | 186 |
| 183 // Gets the ValuebufferManager for this context. | 187 // Gets the ValuebufferManager for this context. |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 bool log_commands_; | 269 bool log_commands_; |
| 266 bool unsafe_es3_apis_enabled_; | 270 bool unsafe_es3_apis_enabled_; |
| 267 | 271 |
| 268 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 272 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
| 269 }; | 273 }; |
| 270 | 274 |
| 271 } // namespace gles2 | 275 } // namespace gles2 |
| 272 } // namespace gpu | 276 } // namespace gpu |
| 273 | 277 |
| 274 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 278 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
| OLD | NEW |