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

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

Issue 2503453005: Patch the results of queries that return object IDs in the passthrough cmd decoder. (Closed)
Patch Set: Created 4 years, 1 month 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
OLDNEW
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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 GLES2DecoderPassthroughImpl class. 5 // This file contains the GLES2DecoderPassthroughImpl class.
6 6
7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_ 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_
8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_ 8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 232
233 // Lose this context. 233 // Lose this context.
234 void MarkContextLost(error::ContextLostReason reason) override; 234 void MarkContextLost(error::ContextLostReason reason) override;
235 235
236 Logger* GetLogger() override; 236 Logger* GetLogger() override;
237 237
238 const ContextState* GetContextState() override; 238 const ContextState* GetContextState() override;
239 scoped_refptr<ShaderTranslatorInterface> GetTranslator(GLenum type) override; 239 scoped_refptr<ShaderTranslatorInterface> GetTranslator(GLenum type) override;
240 240
241 private: 241 private:
242 template <typename T>
243 error::Error PatchGetNumericResults(GLenum pname, GLsizei length, T* params);
244 error::Error PatchGetFramebufferAttachmentParameter(GLenum target,
245 GLenum attachment,
246 GLenum pname,
247 GLsizei length,
248 GLint* params);
249
242 void BuildExtensionsString(); 250 void BuildExtensionsString();
243 251
244 int commands_to_process_; 252 int commands_to_process_;
245 253
246 DebugMarkerManager debug_marker_manager_; 254 DebugMarkerManager debug_marker_manager_;
247 Logger logger_; 255 Logger logger_;
248 256
249 #define GLES2_CMD_OP(name) \ 257 #define GLES2_CMD_OP(name) \
250 Error Handle##name(uint32_t immediate_data_size, const volatile void* data); 258 Error Handle##name(uint32_t immediate_data_size, const volatile void* data);
251 259
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 316
309 // Include the prototypes of all the doer functions from a separate header to 317 // Include the prototypes of all the doer functions from a separate header to
310 // keep this file clean. 318 // keep this file clean.
311 #include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doer_prototyp es.h" 319 #include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doer_prototyp es.h"
312 }; 320 };
313 321
314 } // namespace gles2 322 } // namespace gles2
315 } // namespace gpu 323 } // namespace gpu
316 324
317 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_ 325 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698