| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 const std::string& shader)> ShaderCacheCallback; | 52 const std::string& shader)> ShaderCacheCallback; |
| 53 | 53 |
| 54 // This class implements the AsyncAPIInterface interface, decoding GLES2 | 54 // This class implements the AsyncAPIInterface interface, decoding GLES2 |
| 55 // commands and calling GL. | 55 // commands and calling GL. |
| 56 class GPU_EXPORT GLES2Decoder : public base::SupportsWeakPtr<GLES2Decoder>, | 56 class GPU_EXPORT GLES2Decoder : public base::SupportsWeakPtr<GLES2Decoder>, |
| 57 public CommonDecoder { | 57 public CommonDecoder { |
| 58 public: | 58 public: |
| 59 typedef error::Error Error; | 59 typedef error::Error Error; |
| 60 typedef base::Callback<bool(uint32 id)> WaitSyncPointCallback; | 60 typedef base::Callback<bool(uint32 id)> WaitSyncPointCallback; |
| 61 | 61 |
| 62 // The default stencil mask, which has all bits set. This really should be a |
| 63 // GLuint, but we can't #include gl_bindings.h in this file without causing |
| 64 // macro redefinitions. |
| 65 static const unsigned int kDefaultStencilMask; |
| 66 |
| 62 // Creates a decoder. | 67 // Creates a decoder. |
| 63 static GLES2Decoder* Create(ContextGroup* group); | 68 static GLES2Decoder* Create(ContextGroup* group); |
| 64 | 69 |
| 65 virtual ~GLES2Decoder(); | 70 virtual ~GLES2Decoder(); |
| 66 | 71 |
| 67 bool initialized() const { | 72 bool initialized() const { |
| 68 return initialized_; | 73 return initialized_; |
| 69 } | 74 } |
| 70 | 75 |
| 71 void set_initialized() { | 76 void set_initialized() { |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 bool debug_; | 248 bool debug_; |
| 244 bool log_commands_; | 249 bool log_commands_; |
| 245 | 250 |
| 246 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 251 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
| 247 }; | 252 }; |
| 248 | 253 |
| 249 } // namespace gles2 | 254 } // namespace gles2 |
| 250 } // namespace gpu | 255 } // namespace gpu |
| 251 | 256 |
| 252 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 257 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
| OLD | NEW |