| 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 <stdint.h> | 10 #include <stdint.h> |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 class Logger; | 47 class Logger; |
| 48 class QueryManager; | 48 class QueryManager; |
| 49 class ShaderTranslatorInterface; | 49 class ShaderTranslatorInterface; |
| 50 class Texture; | 50 class Texture; |
| 51 class TransformFeedbackManager; | 51 class TransformFeedbackManager; |
| 52 class VertexArrayManager; | 52 class VertexArrayManager; |
| 53 struct ContextCreationAttribHelper; | 53 struct ContextCreationAttribHelper; |
| 54 struct ContextState; | 54 struct ContextState; |
| 55 | 55 |
| 56 struct DisallowedFeatures { | 56 struct DisallowedFeatures { |
| 57 DisallowedFeatures() | 57 DisallowedFeatures() {} |
| 58 : gpu_memory_manager(false), | |
| 59 npot_support(false), | |
| 60 chromium_color_buffer_float_rgba(false), | |
| 61 chromium_color_buffer_float_rgb(false), | |
| 62 ext_color_buffer_float(false), | |
| 63 oes_texture_float_linear(false), | |
| 64 oes_texture_half_float_linear(false) { | |
| 65 } | |
| 66 | 58 |
| 67 void AllowExtensions() { | 59 void AllowExtensions() { |
| 68 chromium_color_buffer_float_rgba = false; | 60 chromium_color_buffer_float_rgba = false; |
| 69 chromium_color_buffer_float_rgb = false; | 61 chromium_color_buffer_float_rgb = false; |
| 70 ext_color_buffer_float = false; | 62 ext_color_buffer_float = false; |
| 63 ext_color_buffer_half_float = false; |
| 71 oes_texture_float_linear = false; | 64 oes_texture_float_linear = false; |
| 72 oes_texture_half_float_linear = false; | 65 oes_texture_half_float_linear = false; |
| 73 } | 66 } |
| 74 | 67 |
| 75 bool gpu_memory_manager; | 68 bool gpu_memory_manager = false; |
| 76 bool npot_support; | 69 bool npot_support = false; |
| 77 bool chromium_color_buffer_float_rgba; | 70 bool chromium_color_buffer_float_rgba = false; |
| 78 bool chromium_color_buffer_float_rgb; | 71 bool chromium_color_buffer_float_rgb = false; |
| 79 bool ext_color_buffer_float; | 72 bool ext_color_buffer_float = false; |
| 80 bool oes_texture_float_linear; | 73 bool ext_color_buffer_half_float = false; |
| 81 bool oes_texture_half_float_linear; | 74 bool oes_texture_float_linear = false; |
| 75 bool oes_texture_half_float_linear = false; |
| 82 }; | 76 }; |
| 83 | 77 |
| 84 typedef base::Callback<void(const std::string& key, | 78 typedef base::Callback<void(const std::string& key, |
| 85 const std::string& shader)> ShaderCacheCallback; | 79 const std::string& shader)> ShaderCacheCallback; |
| 86 | 80 |
| 87 // This class implements the AsyncAPIInterface interface, decoding GLES2 | 81 // This class implements the AsyncAPIInterface interface, decoding GLES2 |
| 88 // commands and calling GL. | 82 // commands and calling GL. |
| 89 class GPU_EXPORT GLES2Decoder : public base::SupportsWeakPtr<GLES2Decoder>, | 83 class GPU_EXPORT GLES2Decoder : public base::SupportsWeakPtr<GLES2Decoder>, |
| 90 public CommonDecoder { | 84 public CommonDecoder { |
| 91 public: | 85 public: |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 bool initialized_; | 334 bool initialized_; |
| 341 bool debug_; | 335 bool debug_; |
| 342 bool log_commands_; | 336 bool log_commands_; |
| 343 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 337 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
| 344 }; | 338 }; |
| 345 | 339 |
| 346 } // namespace gles2 | 340 } // namespace gles2 |
| 347 } // namespace gpu | 341 } // namespace gpu |
| 348 | 342 |
| 349 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 343 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
| OLD | NEW |