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

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

Issue 2525393002: Use the extensions generated by FeatureInfo in the passthrough cmd decoder. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_decoder_passthrough.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) 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 } 271 }
272 272
273 template <typename T> 273 template <typename T>
274 error::Error PatchGetNumericResults(GLenum pname, GLsizei length, T* params); 274 error::Error PatchGetNumericResults(GLenum pname, GLsizei length, T* params);
275 error::Error PatchGetFramebufferAttachmentParameter(GLenum target, 275 error::Error PatchGetFramebufferAttachmentParameter(GLenum target,
276 GLenum attachment, 276 GLenum attachment,
277 GLenum pname, 277 GLenum pname,
278 GLsizei length, 278 GLsizei length,
279 GLint* params); 279 GLint* params);
280 280
281 void BuildExtensionsString();
282
283 void InsertError(GLenum error, const std::string& message); 281 void InsertError(GLenum error, const std::string& message);
284 GLenum PopError(); 282 GLenum PopError();
285 bool FlushErrors(); 283 bool FlushErrors();
286 284
287 bool IsEmulatedQueryTarget(GLenum target) const; 285 bool IsEmulatedQueryTarget(GLenum target) const;
288 error::Error ProcessQueries(bool did_finish); 286 error::Error ProcessQueries(bool did_finish);
289 287
290 void UpdateTextureBinding(GLenum target, GLuint client_id, GLuint service_id); 288 void UpdateTextureBinding(GLenum target, GLuint client_id, GLuint service_id);
291 289
292 int commands_to_process_; 290 int commands_to_process_;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 // Currently active queries 369 // Currently active queries
372 struct ActiveQuery { 370 struct ActiveQuery {
373 GLuint service_id = 0; 371 GLuint service_id = 0;
374 int32_t shm_id = 0; 372 int32_t shm_id = 0;
375 uint32_t shm_offset = 0; 373 uint32_t shm_offset = 0;
376 }; 374 };
377 std::unordered_map<GLenum, ActiveQuery> active_queries_; 375 std::unordered_map<GLenum, ActiveQuery> active_queries_;
378 376
379 std::set<GLenum> errors_; 377 std::set<GLenum> errors_;
380 378
381 std::vector<std::string> emulated_extensions_;
382 std::string extension_string_;
383
384 // Cache of scratch memory 379 // Cache of scratch memory
385 std::vector<uint8_t> scratch_memory_; 380 std::vector<uint8_t> scratch_memory_;
386 381
387 // Include the prototypes of all the doer functions from a separate header to 382 // Include the prototypes of all the doer functions from a separate header to
388 // keep this file clean. 383 // keep this file clean.
389 #include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doer_prototyp es.h" 384 #include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doer_prototyp es.h"
390 }; 385 };
391 386
392 } // namespace gles2 387 } // namespace gles2
393 } // namespace gpu 388 } // namespace gpu
394 389
395 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_ 390 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698