Move Mailbox from cc to gpu, and its traits to gpu/ipc
commit1aca0098c408047b8ddedfc306e8b8163b7b4ec2
authorpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 4 Mar 2013 22:46:03 +0000 (4 22:46 +0000)
committerpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 4 Mar 2013 22:46:03 +0000 (4 22:46 +0000)
tree34e3cc762575da0f6a0243642a3a8d1dc3dc6773
parent35fb693d6565cf0435a11d238df29b62c5668315
Move Mailbox from cc to gpu, and its traits to gpu/ipc

Mailbox is safer to IPC than coaxing it into a string, because otherwise we need
to validate the size when coming from untrusted sources.

This is to enable passing Mailbox through IPC without having to depend on cc.
Among others I will need it to move Pepper to mailboxes, and pepper can't depend
on cc.

BUG=164095

Review URL: https://chromiumcodereview.appspot.com/12378053

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186006 0039d316-1c4b-4281-b951-d872f2087c98
22 files changed:
cc/DEPS
cc/cc.gyp
cc/cc_tests.gyp
cc/gl_frame_data.h
cc/resource_provider_unittest.cc
cc/texture_layer_unittest.cc
cc/texture_mailbox.cc
cc/texture_mailbox.h
cc/transferable_resource.cc
cc/transferable_resource.h
content/browser/renderer_host/render_widget_host_view_aura.cc
content/common/cc_messages.cc
content/common/cc_messages.h
content/common/cc_messages_unittest.cc
content/content_tests.gypi
content/renderer/gpu/mailbox_output_surface.cc
content/renderer/gpu/mailbox_output_surface.h
gpu/command_buffer/common/mailbox.cc [new file with mode: 0644]
gpu/command_buffer/common/mailbox.h [new file with mode: 0644]
gpu/command_buffer_common.gypi
gpu/ipc/gpu_command_buffer_traits.cc
gpu/ipc/gpu_command_buffer_traits.h