| Index: content/browser/renderer_host/render_message_filter.cc
|
| diff --git a/content/browser/renderer_host/render_message_filter.cc b/content/browser/renderer_host/render_message_filter.cc
|
| index 435f1a0e0bdac3c6c9793b03fd1ad1149a766fbd..62fb96d0ba9b1e862ea20116e9398530125d416c 100644
|
| --- a/content/browser/renderer_host/render_message_filter.cc
|
| +++ b/content/browser/renderer_host/render_message_filter.cc
|
| @@ -73,7 +73,6 @@
|
| #include "ui/gfx/color_profile.h"
|
|
|
| #if defined(OS_MACOSX)
|
| -#include "content/common/gpu/client/gpu_memory_buffer_impl_io_surface.h"
|
| #include "content/common/mac/font_descriptor.h"
|
| #else
|
| #include "gpu/GLES2/gl2extchromium.h"
|
| @@ -228,23 +227,6 @@ class OpenChannelToPpapiBrokerCallback
|
| };
|
| #endif // defined(ENABLE_PLUGINS)
|
|
|
| -#if defined(OS_MACOSX)
|
| -void AddBooleanValue(CFMutableDictionaryRef dictionary,
|
| - const CFStringRef key,
|
| - bool value) {
|
| - CFDictionaryAddValue(
|
| - dictionary, key, value ? kCFBooleanTrue : kCFBooleanFalse);
|
| -}
|
| -
|
| -void AddIntegerValue(CFMutableDictionaryRef dictionary,
|
| - const CFStringRef key,
|
| - int32 value) {
|
| - base::ScopedCFTypeRef<CFNumberRef> number(
|
| - CFNumberCreate(NULL, kCFNumberSInt32Type, &value));
|
| - CFDictionaryAddValue(dictionary, key, number.get());
|
| -}
|
| -#endif
|
| -
|
| } // namespace
|
|
|
| class RenderMessageFilter::OpenChannelToNpapiPluginCallback
|
| @@ -1302,46 +1284,6 @@ void RenderMessageFilter::OnAllocateGpuMemoryBuffer(uint32 width,
|
| return;
|
| }
|
|
|
| -#if defined(OS_MACOSX)
|
| - // TODO(reveman): This should be moved to
|
| - // GpuMemoryBufferImpl::AllocateForChildProcess and
|
| - // GpuMemoryBufferImplIOSurface. crbug.com/325045, crbug.com/323304
|
| - if (GpuMemoryBufferImplIOSurface::IsConfigurationSupported(internalformat,
|
| - usage)) {
|
| - base::ScopedCFTypeRef<CFMutableDictionaryRef> properties;
|
| - properties.reset(
|
| - CFDictionaryCreateMutable(kCFAllocatorDefault,
|
| - 0,
|
| - &kCFTypeDictionaryKeyCallBacks,
|
| - &kCFTypeDictionaryValueCallBacks));
|
| - AddIntegerValue(properties, kIOSurfaceWidth, width);
|
| - AddIntegerValue(properties, kIOSurfaceHeight, height);
|
| - AddIntegerValue(properties,
|
| - kIOSurfaceBytesPerElement,
|
| - GpuMemoryBufferImpl::BytesPerPixel(internalformat));
|
| - AddIntegerValue(properties,
|
| - kIOSurfacePixelFormat,
|
| - GpuMemoryBufferImplIOSurface::PixelFormat(internalformat));
|
| - // TODO(reveman): Remove this when using a mach_port_t to transfer
|
| - // IOSurface to renderer process. crbug.com/323304
|
| - AddBooleanValue(properties, kIOSurfaceIsGlobal, true);
|
| -
|
| - base::ScopedCFTypeRef<IOSurfaceRef> io_surface(IOSurfaceCreate(properties));
|
| - if (io_surface) {
|
| - gfx::GpuMemoryBufferHandle handle;
|
| - handle.type = gfx::IO_SURFACE_BUFFER;
|
| - handle.io_surface_id = IOSurfaceGetID(io_surface);
|
| -
|
| - // TODO(reveman): This makes the assumption that the renderer will
|
| - // grab a reference to the surface before sending another message.
|
| - // crbug.com/325045
|
| - last_io_surface_ = io_surface;
|
| - GpuMemoryBufferAllocated(reply, handle);
|
| - return;
|
| - }
|
| - }
|
| -#endif
|
| -
|
| #if defined(OS_ANDROID)
|
| // TODO(reveman): This should be moved to
|
| // GpuMemoryBufferImpl::AllocateForChildProcess and
|
|
|