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) { |
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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 bool log_commands_; | 270 bool log_commands_; |
269 bool unsafe_es3_apis_enabled_; | 271 bool unsafe_es3_apis_enabled_; |
270 | 272 |
271 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 273 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
272 }; | 274 }; |
273 | 275 |
274 } // namespace gles2 | 276 } // namespace gles2 |
275 } // namespace gpu | 277 } // namespace gpu |
276 | 278 |
277 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 279 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
OLD | NEW |