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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder_mock.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_mock.h
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_mock.h b/gpu/command_buffer/service/gles2_cmd_decoder_mock.h
index 9dfab4d0fbc0c463bcca5afe03a7e9cca69d6f72..65d9275109099c52d6c74b40e186bceacf0162ea 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_mock.h
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_mock.h
@@ -41,7 +41,7 @@ class MockGLES2Decoder : public GLES2Decoder {
virtual ~MockGLES2Decoder();
error::Error FakeDoCommands(unsigned int num_commands,
- const void* buffer,
+ const volatile void* buffer,
int num_entries,
int* entries_processed);
@@ -102,12 +102,13 @@ class MockGLES2Decoder : public GLES2Decoder {
MOCK_METHOD1(SetIgnoreCachedStateForTest, void(bool ignore));
MOCK_METHOD1(SetForceShaderNameHashingForTest, void(bool force));
MOCK_METHOD1(SetAllowExit, void(bool allow));
- MOCK_METHOD3(DoCommand, error::Error(unsigned int command,
- unsigned int arg_count,
- const void* cmd_data));
+ MOCK_METHOD3(DoCommand,
+ error::Error(unsigned int command,
+ unsigned int arg_count,
+ const volatile void* cmd_data));
MOCK_METHOD4(DoCommands,
error::Error(unsigned int num_commands,
- const void* buffer,
+ const volatile void* buffer,
int num_entries,
int* entries_processed));
MOCK_METHOD2(GetServiceTextureId,
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_autogen.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698