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 22 matching lines...) Expand all Loading... |
33 : multisampling(false), | 33 : multisampling(false), |
34 driver_bug_workarounds(false) { | 34 driver_bug_workarounds(false) { |
35 } | 35 } |
36 | 36 |
37 bool multisampling; | 37 bool multisampling; |
38 bool driver_bug_workarounds; | 38 bool driver_bug_workarounds; |
39 }; | 39 }; |
40 | 40 |
41 // This class implements the AsyncAPIInterface interface, decoding GLES2 | 41 // This class implements the AsyncAPIInterface interface, decoding GLES2 |
42 // commands and calling GL. | 42 // commands and calling GL. |
43 class GLES2Decoder : public CommonDecoder { | 43 class GPU_EXPORT GLES2Decoder : public CommonDecoder { |
44 public: | 44 public: |
45 typedef error::Error Error; | 45 typedef error::Error Error; |
46 typedef base::Callback<void(int32 id, const std::string& msg)> MsgCallback; | 46 typedef base::Callback<void(int32 id, const std::string& msg)> MsgCallback; |
47 | 47 |
48 // Creates a decoder. | 48 // Creates a decoder. |
49 static GLES2Decoder* Create(ContextGroup* group); | 49 static GLES2Decoder* Create(ContextGroup* group); |
50 | 50 |
51 virtual ~GLES2Decoder(); | 51 virtual ~GLES2Decoder(); |
52 | 52 |
53 bool debug() const { | 53 bool debug() const { |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 bool log_synthesized_gl_errors_; | 171 bool log_synthesized_gl_errors_; |
172 static bool testing_force_is_angle_; | 172 static bool testing_force_is_angle_; |
173 | 173 |
174 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 174 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
175 }; | 175 }; |
176 | 176 |
177 } // namespace gles2 | 177 } // namespace gles2 |
178 } // namespace gpu | 178 } // namespace gpu |
179 | 179 |
180 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 180 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
OLD | NEW |