summaryrefslogtreecommitdiffstats
path: root/cc/resources
diff options
context:
space:
mode:
authorpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-15 00:23:26 +0000
committerpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-15 00:23:26 +0000
commite0a4d737b5a2e1efb828e371f905aced30ea7904 (patch)
treeda9e4310d08c09539901260385249bbf0595418b /cc/resources
parentbed35e9b0ff888aae4af54cfbcaac19905ef09ec (diff)
downloadchromium_src-e0a4d737b5a2e1efb828e371f905aced30ea7904.zip
chromium_src-e0a4d737b5a2e1efb828e371f905aced30ea7904.tar.gz
chromium_src-e0a4d737b5a2e1efb828e371f905aced30ea7904.tar.bz2
Fix (or tag) uses of explicit '64' instead of GL_MAILBOX_SIZE_CHROMIUM
That way we can easily change the size later. Security says 64 may be overkill. BUG=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251306 R=danakj@chromium.org Review URL: https://codereview.chromium.org/138763009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251453 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/resources')
-rw-r--r--cc/resources/resource_provider_unittest.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/cc/resources/resource_provider_unittest.cc b/cc/resources/resource_provider_unittest.cc
index 07247c6..7c2edf0 100644
--- a/cc/resources/resource_provider_unittest.cc
+++ b/cc/resources/resource_provider_unittest.cc
@@ -105,7 +105,7 @@ class ContextSharedData {
uint32 InsertSyncPoint() { return next_sync_point_++; }
void GenMailbox(GLbyte* mailbox) {
- memset(mailbox, 0, sizeof(GLbyte[64]));
+ memset(mailbox, 0, GL_MAILBOX_SIZE_CHROMIUM);
memcpy(mailbox, &next_mailbox_, sizeof(next_mailbox_));
++next_mailbox_;
}
@@ -322,7 +322,7 @@ class ResourceProviderContext : public TestWebGraphicsContext3D {
}
struct PendingProduceTexture {
- GLbyte mailbox[64];
+ GLbyte mailbox[GL_MAILBOX_SIZE_CHROMIUM];
scoped_refptr<TestTexture> texture;
};
typedef ScopedPtrDeque<PendingProduceTexture> PendingProduceTextureList;
@@ -346,7 +346,7 @@ class TestSharedBitmapManager : public SharedBitmapManager {
OVERRIDE {
scoped_ptr<base::SharedMemory> memory(new base::SharedMemory);
memory->CreateAndMapAnonymous(size.GetArea() * 4);
- int8 name[64] = { 0 };
+ int8 name[GL_MAILBOX_SIZE_CHROMIUM] = {0};
name[0] = count_++;
SharedBitmapId id;
id.SetName(name);
@@ -366,7 +366,7 @@ class TestSharedBitmapManager : public SharedBitmapManager {
virtual scoped_ptr<SharedBitmap> GetBitmapForSharedMemory(
base::SharedMemory* memory) OVERRIDE {
- int8 name[64] = { 0 };
+ int8 name[GL_MAILBOX_SIZE_CHROMIUM] = {0};
name[0] = count_++;
SharedBitmapId id;
id.SetName(name);