| Index: cc/resources/resource_provider_unittest.cc
|
| diff --git a/cc/resources/resource_provider_unittest.cc b/cc/resources/resource_provider_unittest.cc
|
| index 7c2edf038ba90e56ac88f9d5784946790b9ee7b9..07247c687a5b268fec573db948836573eb0c4438 100644
|
| --- a/cc/resources/resource_provider_unittest.cc
|
| +++ b/cc/resources/resource_provider_unittest.cc
|
| @@ -105,7 +105,7 @@
|
| uint32 InsertSyncPoint() { return next_sync_point_++; }
|
|
|
| void GenMailbox(GLbyte* mailbox) {
|
| - memset(mailbox, 0, GL_MAILBOX_SIZE_CHROMIUM);
|
| + memset(mailbox, 0, sizeof(GLbyte[64]));
|
| memcpy(mailbox, &next_mailbox_, sizeof(next_mailbox_));
|
| ++next_mailbox_;
|
| }
|
| @@ -322,7 +322,7 @@
|
| }
|
|
|
| struct PendingProduceTexture {
|
| - GLbyte mailbox[GL_MAILBOX_SIZE_CHROMIUM];
|
| + GLbyte mailbox[64];
|
| scoped_refptr<TestTexture> texture;
|
| };
|
| typedef ScopedPtrDeque<PendingProduceTexture> PendingProduceTextureList;
|
| @@ -346,7 +346,7 @@
|
| OVERRIDE {
|
| scoped_ptr<base::SharedMemory> memory(new base::SharedMemory);
|
| memory->CreateAndMapAnonymous(size.GetArea() * 4);
|
| - int8 name[GL_MAILBOX_SIZE_CHROMIUM] = {0};
|
| + int8 name[64] = { 0 };
|
| name[0] = count_++;
|
| SharedBitmapId id;
|
| id.SetName(name);
|
| @@ -366,7 +366,7 @@
|
|
|
| virtual scoped_ptr<SharedBitmap> GetBitmapForSharedMemory(
|
| base::SharedMemory* memory) OVERRIDE {
|
| - int8 name[GL_MAILBOX_SIZE_CHROMIUM] = {0};
|
| + int8 name[64] = { 0 };
|
| name[0] = count_++;
|
| SharedBitmapId id;
|
| id.SetName(name);
|
|
|