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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers_autogen.cc

Issue 2461003003: Reduce GPU mailbox size to 16 bytes (Closed)
Patch Set: fix tests Created 4 years, 2 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/service/gles2_cmd_decoder_autogen.h ('k') | gpu/ipc/common/mailbox.mojom » ('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_handlers_autogen.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers_autogen.cc b/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers_autogen.cc
index 919963bb08a0c4eafe6b5bc5473349d00086f316..6f3935fa187b1465cba240030dd98a714faa14a9 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers_autogen.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers_autogen.cc
@@ -3744,7 +3744,7 @@ error::Error GLES2DecoderPassthroughImpl::HandleProduceTextureCHROMIUMImmediate(
const volatile gles2::cmds::ProduceTextureCHROMIUMImmediate*>(cmd_data);
GLenum target = static_cast<GLenum>(c.target);
uint32_t data_size;
- if (!GLES2Util::ComputeDataSize(1, sizeof(GLbyte), 64, &data_size)) {
+ if (!GLES2Util::ComputeDataSize(1, sizeof(GLbyte), 16, &data_size)) {
return error::kOutOfBounds;
}
if (data_size > immediate_data_size) {
@@ -3770,7 +3770,7 @@ GLES2DecoderPassthroughImpl::HandleProduceTextureDirectCHROMIUMImmediate(
GLuint texture = c.texture;
GLenum target = static_cast<GLenum>(c.target);
uint32_t data_size;
- if (!GLES2Util::ComputeDataSize(1, sizeof(GLbyte), 64, &data_size)) {
+ if (!GLES2Util::ComputeDataSize(1, sizeof(GLbyte), 16, &data_size)) {
return error::kOutOfBounds;
}
if (data_size > immediate_data_size) {
@@ -3792,7 +3792,7 @@ error::Error GLES2DecoderPassthroughImpl::HandleConsumeTextureCHROMIUMImmediate(
const volatile gles2::cmds::ConsumeTextureCHROMIUMImmediate*>(cmd_data);
GLenum target = static_cast<GLenum>(c.target);
uint32_t data_size;
- if (!GLES2Util::ComputeDataSize(1, sizeof(GLbyte), 64, &data_size)) {
+ if (!GLES2Util::ComputeDataSize(1, sizeof(GLbyte), 16, &data_size)) {
return error::kOutOfBounds;
}
if (data_size > immediate_data_size) {
@@ -3817,7 +3817,7 @@ GLES2DecoderPassthroughImpl::HandleCreateAndConsumeTextureINTERNALImmediate(
GLenum target = static_cast<GLenum>(c.target);
GLuint texture = static_cast<GLuint>(c.texture);
uint32_t data_size;
- if (!GLES2Util::ComputeDataSize(1, sizeof(GLbyte), 64, &data_size)) {
+ if (!GLES2Util::ComputeDataSize(1, sizeof(GLbyte), 16, &data_size)) {
return error::kOutOfBounds;
}
if (data_size > immediate_data_size) {
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_autogen.h ('k') | gpu/ipc/common/mailbox.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698