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

Unified Diff: gpu/command_buffer/common/gles2_cmd_format_autogen.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
« no previous file with comments | « gpu/command_buffer/common/cmd_buffer_common.h ('k') | gpu/command_buffer/common/gles2_cmd_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/common/gles2_cmd_format_autogen.h
diff --git a/gpu/command_buffer/common/gles2_cmd_format_autogen.h b/gpu/command_buffer/common/gles2_cmd_format_autogen.h
index c120fe79cc1788d74fd36ab98ae550397d9cba81..fdafab23b0e0d4289a743b5b6748811c7c9dbc6e 100644
--- a/gpu/command_buffer/common/gles2_cmd_format_autogen.h
+++ b/gpu/command_buffer/common/gles2_cmd_format_autogen.h
@@ -1209,7 +1209,7 @@ struct ClientWaitSync {
return NextCmdAddress<ValueType>(cmd);
}
- GLuint64 timeout() const {
+ GLuint64 timeout() const volatile {
return static_cast<GLuint64>(
GLES2Util::MapTwoUint32ToUint64(timeout_0, timeout_1));
}
@@ -10768,7 +10768,7 @@ struct WaitSync {
return NextCmdAddress<ValueType>(cmd);
}
- GLuint64 timeout() const {
+ GLuint64 timeout() const volatile {
return static_cast<GLuint64>(
GLES2Util::MapTwoUint32ToUint64(timeout_0, timeout_1));
}
@@ -13215,7 +13215,7 @@ struct InsertFenceSyncCHROMIUM {
return NextCmdAddress<ValueType>(cmd);
}
- GLuint64 release_count() const {
+ GLuint64 release_count() const volatile {
return static_cast<GLuint64>(
GLES2Util::MapTwoUint32ToUint64(release_count_0, release_count_1));
}
@@ -13266,12 +13266,12 @@ struct WaitSyncTokenCHROMIUM {
return NextCmdAddress<ValueType>(cmd);
}
- GLuint64 command_buffer_id() const {
+ GLuint64 command_buffer_id() const volatile {
return static_cast<GLuint64>(GLES2Util::MapTwoUint32ToUint64(
command_buffer_id_0, command_buffer_id_1));
}
- GLuint64 release_count() const {
+ GLuint64 release_count() const volatile {
return static_cast<GLuint64>(
GLES2Util::MapTwoUint32ToUint64(release_count_0, release_count_1));
}
« no previous file with comments | « gpu/command_buffer/common/cmd_buffer_common.h ('k') | gpu/command_buffer/common/gles2_cmd_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698