Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder.h

Issue 10577037: Add GL_CHROMIUM_get_error_query (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gpu/command_buffer/service/gl_utils.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 unsigned service_id, 160 unsigned service_id,
161 unsigned bind_target, 161 unsigned bind_target,
162 unsigned target, 162 unsigned target,
163 int level, 163 int level,
164 unsigned format, 164 unsigned format,
165 unsigned type, 165 unsigned type,
166 int width, 166 int width,
167 int height, 167 int height,
168 bool is_texture_immutable) = 0; 168 bool is_texture_immutable) = 0;
169 169
170 // Gets the GL error for this context.
171 virtual uint32 GetGLError() = 0;
172
170 // A callback for messages from the decoder. 173 // A callback for messages from the decoder.
171 virtual void SetMsgCallback(const MsgCallback& callback) = 0; 174 virtual void SetMsgCallback(const MsgCallback& callback) = 0;
172 175
173 static bool IsAngle(); 176 static bool IsAngle();
174 177
175 // Used for testing only 178 // Used for testing only
176 static void set_testing_force_is_angle(bool force); 179 static void set_testing_force_is_angle(bool force);
177 180
178 protected: 181 protected:
179 GLES2Decoder(); 182 GLES2Decoder();
180 183
181 private: 184 private:
182 bool debug_; 185 bool debug_;
183 bool log_commands_; 186 bool log_commands_;
184 bool log_synthesized_gl_errors_; 187 bool log_synthesized_gl_errors_;
185 static bool testing_force_is_angle_; 188 static bool testing_force_is_angle_;
186 189
187 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); 190 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder);
188 }; 191 };
189 192
190 } // namespace gles2 193 } // namespace gles2
191 } // namespace gpu 194 } // namespace gpu
192 195
193 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 196 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gl_utils.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698