| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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> |
| 11 | 11 |
| 12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 14 #include "gpu/command_buffer/service/common_decoder.h" | 14 #include "gpu/command_buffer/service/common_decoder.h" |
| 15 #include "ui/gfx/size.h" | 15 #include "ui/gfx/size.h" |
| 16 | 16 |
| 17 namespace gfx { | 17 namespace gfx { |
| 18 class GLContext; | 18 class GLContext; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace gpu { | 21 namespace gpu { |
| 22 | 22 |
| 23 namespace gles2 { | 23 namespace gles2 { |
| 24 | 24 |
| 25 class ContextGroup; | 25 class ContextGroup; |
| 26 class GLES2Util; | 26 class GLES2Util; |
| 27 | 27 |
| 28 struct DisallowedExtensions { | 28 struct DisallowedExtensions { |
| 29 DisallowedExtensions() : multisampling(false) {} |
| 30 |
| 29 bool multisampling; | 31 bool multisampling; |
| 30 }; | 32 }; |
| 31 | 33 |
| 32 // This class implements the AsyncAPIInterface interface, decoding GLES2 | 34 // This class implements the AsyncAPIInterface interface, decoding GLES2 |
| 33 // commands and calling GL. | 35 // commands and calling GL. |
| 34 class GLES2Decoder : public CommonDecoder { | 36 class GLES2Decoder : public CommonDecoder { |
| 35 public: | 37 public: |
| 36 typedef error::Error Error; | 38 typedef error::Error Error; |
| 37 | 39 |
| 38 // Creates a decoder. | 40 // Creates a decoder. |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 private: | 114 private: |
| 113 bool debug_; | 115 bool debug_; |
| 114 | 116 |
| 115 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 117 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
| 116 }; | 118 }; |
| 117 | 119 |
| 118 } // namespace gles2 | 120 } // namespace gles2 |
| 119 } // namespace gpu | 121 } // namespace gpu |
| 120 | 122 |
| 121 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 123 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
| OLD | NEW |