content: Refactor GPU memory buffer framework.
commit6793758806a04923501fb76dc39d040c48f76980
authorreveman <reveman@chromium.org>
Mon, 24 Nov 2014 21:51:48 +0000 (24 13:51 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 24 Nov 2014 21:52:50 +0000 (24 21:52 +0000)
tree24e61a3d736f3f83bfc90572dc779487c705fe7d
parent216e9820a0f122fd0d32aff111715548dff6b298
content: Refactor GPU memory buffer framework.

This reduces the complexity of the framework by removing
the indirection between GpuMemoryBufferImpl class and
GpuMemoryBufferFactory and limiting the number of
native GPU memory buffer types that can be used at
run time to one.

GpuMemoryBufferFactory is now used to allocate all native
GPU memory buffer types. The shared memory backed type is
unique in that it's the only type that can be allocated
without going through the factory.

BUG=

Review URL: https://codereview.chromium.org/732283002

Cr-Commit-Position: refs/heads/master@{#305502}
52 files changed:
content/browser/gpu/browser_gpu_channel_host_factory.cc
content/browser/gpu/browser_gpu_channel_host_factory.h
content/browser/gpu/browser_gpu_memory_buffer_manager.cc
content/browser/gpu/browser_gpu_memory_buffer_manager.h
content/browser/gpu/gpu_process_host.cc
content/browser/gpu/gpu_process_host.h
content/common/BUILD.gn
content/common/child_process_host_impl.cc
content/common/child_process_host_impl.h
content/common/gpu/client/gpu_memory_buffer_factory_host.cc [deleted file]
content/common/gpu/client/gpu_memory_buffer_factory_host.h
content/common/gpu/client/gpu_memory_buffer_impl.cc
content/common/gpu/client/gpu_memory_buffer_impl.h
content/common/gpu/client/gpu_memory_buffer_impl_android.cc [deleted file]
content/common/gpu/client/gpu_memory_buffer_impl_io_surface.cc
content/common/gpu/client/gpu_memory_buffer_impl_io_surface.h
content/common/gpu/client/gpu_memory_buffer_impl_linux.cc [deleted file]
content/common/gpu/client/gpu_memory_buffer_impl_mac.cc [deleted file]
content/common/gpu/client/gpu_memory_buffer_impl_ozone.cc [deleted file]
content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.cc
content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.h
content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.cc
content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.h
content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc
content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.h
content/common/gpu/client/gpu_memory_buffer_impl_unittest.cc
content/common/gpu/client/gpu_memory_buffer_impl_win.cc [deleted file]
content/common/gpu/gpu_channel.cc
content/common/gpu/gpu_channel.h
content/common/gpu/gpu_channel_manager.cc
content/common/gpu/gpu_channel_manager.h
content/common/gpu/gpu_command_buffer_stub.cc
content/common/gpu/gpu_memory_buffer_factory.cc [new file with mode: 0644]
content/common/gpu/gpu_memory_buffer_factory.h
content/common/gpu/gpu_memory_buffer_factory_android.cc [deleted file]
content/common/gpu/gpu_memory_buffer_factory_io_surface.cc
content/common/gpu/gpu_memory_buffer_factory_io_surface.h
content/common/gpu/gpu_memory_buffer_factory_linux.cc [deleted file]
content/common/gpu/gpu_memory_buffer_factory_mac.cc [deleted file]
content/common/gpu/gpu_memory_buffer_factory_ozone.cc [deleted file]
content/common/gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc [new file with mode: 0644]
content/common/gpu/gpu_memory_buffer_factory_ozone_native_buffer.h [new file with mode: 0644]
content/common/gpu/gpu_memory_buffer_factory_shared_memory.cc [new file with mode: 0644]
content/common/gpu/gpu_memory_buffer_factory_shared_memory.h [new file with mode: 0644]
content/common/gpu/gpu_memory_buffer_factory_surface_texture.cc
content/common/gpu/gpu_memory_buffer_factory_surface_texture.h
content/common/gpu/gpu_memory_buffer_factory_unittest.cc [new file with mode: 0644]
content/common/gpu/gpu_memory_buffer_factory_win.cc [deleted file]
content/common/gpu/gpu_messages.h
content/content_common.gypi
content/content_tests.gypi
content/test/content_test_suite.cc