| 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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 const WaitSyncPointCallback& callback) = 0; | 234 const WaitSyncPointCallback& callback) = 0; |
| 235 | 235 |
| 236 virtual void WaitForReadPixels(base::Closure callback) = 0; | 236 virtual void WaitForReadPixels(base::Closure callback) = 0; |
| 237 virtual uint32 GetTextureUploadCount() = 0; | 237 virtual uint32 GetTextureUploadCount() = 0; |
| 238 virtual base::TimeDelta GetTotalTextureUploadTime() = 0; | 238 virtual base::TimeDelta GetTotalTextureUploadTime() = 0; |
| 239 virtual base::TimeDelta GetTotalProcessingCommandsTime() = 0; | 239 virtual base::TimeDelta GetTotalProcessingCommandsTime() = 0; |
| 240 virtual void AddProcessingCommandsTime(base::TimeDelta) = 0; | 240 virtual void AddProcessingCommandsTime(base::TimeDelta) = 0; |
| 241 | 241 |
| 242 // Returns true if the context was lost either by GL_ARB_robustness, forced | 242 // Returns true if the context was lost either by GL_ARB_robustness, forced |
| 243 // context loss or command buffer parse error. | 243 // context loss or command buffer parse error. |
| 244 virtual bool WasContextLost() = 0; | 244 virtual bool WasContextLost() const = 0; |
| 245 | 245 |
| 246 // Returns true if the context was lost specifically by GL_ARB_robustness. | 246 // Returns true if the context was lost specifically by GL_ARB_robustness. |
| 247 virtual bool WasContextLostByRobustnessExtension() = 0; | 247 virtual bool WasContextLostByRobustnessExtension() const = 0; |
| 248 | 248 |
| 249 // Lose this context. | 249 // Lose this context. |
| 250 virtual void LoseContext(uint32 reset_status) = 0; | 250 virtual void MarkContextLost(error::ContextLostReason reason) = 0; |
| 251 | 251 |
| 252 virtual Logger* GetLogger() = 0; | 252 virtual Logger* GetLogger() = 0; |
| 253 | 253 |
| 254 virtual void BeginDecoding(); | 254 virtual void BeginDecoding(); |
| 255 virtual void EndDecoding(); | 255 virtual void EndDecoding(); |
| 256 | 256 |
| 257 virtual const ContextState* GetContextState() = 0; | 257 virtual const ContextState* GetContextState() = 0; |
| 258 | 258 |
| 259 protected: | 259 protected: |
| 260 GLES2Decoder(); | 260 GLES2Decoder(); |
| 261 | 261 |
| 262 private: | 262 private: |
| 263 bool initialized_; | 263 bool initialized_; |
| 264 bool debug_; | 264 bool debug_; |
| 265 bool log_commands_; | 265 bool log_commands_; |
| 266 bool unsafe_es3_apis_enabled_; | 266 bool unsafe_es3_apis_enabled_; |
| 267 | 267 |
| 268 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 268 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
| 269 }; | 269 }; |
| 270 | 270 |
| 271 } // namespace gles2 | 271 } // namespace gles2 |
| 272 } // namespace gpu | 272 } // namespace gpu |
| 273 | 273 |
| 274 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 274 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
| OLD | NEW |