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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 int level, | 138 int level, |
139 unsigned format, | 139 unsigned format, |
140 unsigned type, | 140 unsigned type, |
141 int width, | 141 int width, |
142 int height, | 142 int height, |
143 bool is_texture_immutable) = 0; | 143 bool is_texture_immutable) = 0; |
144 | 144 |
145 // A callback for messages from the decoder. | 145 // A callback for messages from the decoder. |
146 virtual void SetMsgCallback(const MsgCallback& callback) = 0; | 146 virtual void SetMsgCallback(const MsgCallback& callback) = 0; |
147 | 147 |
| 148 static bool IsAngle(); |
| 149 |
| 150 // Used for testing only |
| 151 static void set_testing_force_is_angle(bool force); |
| 152 |
148 protected: | 153 protected: |
149 GLES2Decoder(); | 154 GLES2Decoder(); |
150 | 155 |
151 private: | 156 private: |
152 bool debug_; | 157 bool debug_; |
153 bool log_commands_; | 158 bool log_commands_; |
| 159 static bool testing_force_is_angle_; |
154 | 160 |
155 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 161 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
156 }; | 162 }; |
157 | 163 |
158 } // namespace gles2 | 164 } // namespace gles2 |
159 } // namespace gpu | 165 } // namespace gpu |
160 | 166 |
161 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 167 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
OLD | NEW |