Chromium Code Reviews| 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 27 matching lines...) Expand all Loading... | |
| 38 class ImageManager; | 38 class ImageManager; |
| 39 class Logger; | 39 class Logger; |
| 40 class QueryManager; | 40 class QueryManager; |
| 41 class Texture; | 41 class Texture; |
| 42 class VertexArrayManager; | 42 class VertexArrayManager; |
| 43 class ValuebufferManager; | 43 class ValuebufferManager; |
| 44 struct ContextState; | 44 struct ContextState; |
| 45 | 45 |
| 46 struct DisallowedFeatures { | 46 struct DisallowedFeatures { |
| 47 DisallowedFeatures() | 47 DisallowedFeatures() |
| 48 : gpu_memory_manager(false) { | 48 : gpu_memory_manager(false), |
| 49 npot_support(false) { | |
|
piman
2015/06/08 21:40:21
So, if we add this to the FeatureInfo, that could
Zhenyao Mo
2015/06/08 22:23:22
I remember we decided each WebGL is in it's own co
| |
| 49 } | 50 } |
| 50 | 51 |
| 51 bool gpu_memory_manager; | 52 bool gpu_memory_manager; |
| 53 bool npot_support; | |
| 52 }; | 54 }; |
| 53 | 55 |
| 54 typedef base::Callback<void(const std::string& key, | 56 typedef base::Callback<void(const std::string& key, |
| 55 const std::string& shader)> ShaderCacheCallback; | 57 const std::string& shader)> ShaderCacheCallback; |
| 56 | 58 |
| 57 // This class implements the AsyncAPIInterface interface, decoding GLES2 | 59 // This class implements the AsyncAPIInterface interface, decoding GLES2 |
| 58 // commands and calling GL. | 60 // commands and calling GL. |
| 59 class GPU_EXPORT GLES2Decoder : public base::SupportsWeakPtr<GLES2Decoder>, | 61 class GPU_EXPORT GLES2Decoder : public base::SupportsWeakPtr<GLES2Decoder>, |
| 60 public CommonDecoder { | 62 public CommonDecoder { |
| 61 public: | 63 public: |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 269 bool log_commands_; | 271 bool log_commands_; |
| 270 bool unsafe_es3_apis_enabled_; | 272 bool unsafe_es3_apis_enabled_; |
| 271 | 273 |
| 272 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 274 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
| 273 }; | 275 }; |
| 274 | 276 |
| 275 } // namespace gles2 | 277 } // namespace gles2 |
| 276 } // namespace gpu | 278 } // namespace gpu |
| 277 | 279 |
| 278 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 280 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
| OLD | NEW |