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

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

Issue 2275203002: Make command buffer commands and immediate data volatile (Closed)
Patch Set: std::copy->const_cast+memcpy Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
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 c59b9d9de75dc40c9ebb784c3605551daef33918..2c3350bad25be33e18fcd6eec968f967cddd4bc0 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h
@@ -32,7 +32,7 @@ class GLES2DecoderPassthroughImpl : public GLES2Decoder {
~GLES2DecoderPassthroughImpl() override;
Error DoCommands(unsigned int num_commands,
- const void* buffer,
+ const volatile void* buffer,
int num_entries,
int* entries_processed) override;
@@ -217,14 +217,14 @@ class GLES2DecoderPassthroughImpl : public GLES2Decoder {
Logger logger_;
#define GLES2_CMD_OP(name) \
- Error Handle##name(uint32_t immediate_data_size, const void* data);
+ Error Handle##name(uint32_t immediate_data_size, const volatile void* data);
GLES2_COMMAND_LIST(GLES2_CMD_OP)
#undef GLES2_CMD_OP
using CmdHandler =
Error (GLES2DecoderPassthroughImpl::*)(uint32_t immediate_data_size,
- const void* data);
+ const volatile void* data);
// A struct to hold info about each command.
struct CommandInfo {
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_mock.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698