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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h

Issue 2518413002: Add validation to the mailbox functions in the passthrough cmd decoder. (Closed)
Patch Set: Fix explicit. 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h b/gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h
index 05c70693791ff5d76091a2f23ca4bed1378b4f61..b69598763f309804dd3c04ce113184437af2a6ff 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h
@@ -287,6 +287,8 @@ class GLES2DecoderPassthroughImpl : public GLES2Decoder {
bool IsEmulatedQueryTarget(GLenum target) const;
error::Error ProcessQueries(bool did_finish);
+ void UpdateTextureBinding(GLenum target, GLuint client_id, GLuint service_id);
+
int commands_to_process_;
DebugMarkerManager debug_marker_manager_;
@@ -347,7 +349,7 @@ class GLES2DecoderPassthroughImpl : public GLES2Decoder {
// State tracking of currently bound 2D textures (client IDs)
size_t active_texture_unit_;
- std::vector<GLuint> bound_textures_;
+ std::unordered_map<GLenum, std::vector<GLuint>> bound_textures_;
// Track the service-id to type of all queries for validation
struct QueryInfo {
« 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