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

Unified Diff: gpu/command_buffer/client/gles2_implementation_unittest.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/build_gles2_cmd_buffer.py ('k') | gpu/command_buffer/common/gles2_cmd_format_autogen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/gles2_implementation_unittest.cc
diff --git a/gpu/command_buffer/client/gles2_implementation_unittest.cc b/gpu/command_buffer/client/gles2_implementation_unittest.cc
index c491a7617816b3de5d6e90a4216d29e440c24db7..33b4eda5be9178b189a39205193d8b61d72f7653 100644
--- a/gpu/command_buffer/client/gles2_implementation_unittest.cc
+++ b/gpu/command_buffer/client/gles2_implementation_unittest.cc
@@ -3721,7 +3721,7 @@ TEST_F(GLES2ImplementationTest, Enable) {
TEST_F(GLES2ImplementationTest, ConsumeTextureCHROMIUM) {
struct Cmds {
cmds::ConsumeTextureCHROMIUMImmediate cmd;
- GLbyte data[64];
+ GLbyte data[GL_MAILBOX_SIZE_CHROMIUM];
};
Mailbox mailbox = Mailbox::Generate();
@@ -3734,7 +3734,7 @@ TEST_F(GLES2ImplementationTest, ConsumeTextureCHROMIUM) {
TEST_F(GLES2ImplementationTest, CreateAndConsumeTextureCHROMIUM) {
struct Cmds {
cmds::CreateAndConsumeTextureINTERNALImmediate cmd;
- GLbyte data[64];
+ GLbyte data[GL_MAILBOX_SIZE_CHROMIUM];
};
Mailbox mailbox = Mailbox::Generate();
@@ -3748,7 +3748,7 @@ TEST_F(GLES2ImplementationTest, CreateAndConsumeTextureCHROMIUM) {
TEST_F(GLES2ImplementationTest, ProduceTextureCHROMIUM) {
struct Cmds {
cmds::ProduceTextureCHROMIUMImmediate cmd;
- GLbyte data[64];
+ GLbyte data[GL_MAILBOX_SIZE_CHROMIUM];
};
Mailbox mailbox = Mailbox::Generate();
@@ -3761,7 +3761,7 @@ TEST_F(GLES2ImplementationTest, ProduceTextureCHROMIUM) {
TEST_F(GLES2ImplementationTest, ProduceTextureDirectCHROMIUM) {
struct Cmds {
cmds::ProduceTextureDirectCHROMIUMImmediate cmd;
- GLbyte data[64];
+ GLbyte data[GL_MAILBOX_SIZE_CHROMIUM];
};
Mailbox mailbox = Mailbox::Generate();
« no previous file with comments | « gpu/command_buffer/build_gles2_cmd_buffer.py ('k') | gpu/command_buffer/common/gles2_cmd_format_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698