| Index: content/browser/gpu/gpu_process_host.cc
|
| diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc
|
| index dfe06a8f232c6bf00720d4b6e17c8203bb341c40..93ad10fad8a9c1377fee098a9faf27c1929c9073 100644
|
| --- a/content/browser/gpu/gpu_process_host.cc
|
| +++ b/content/browser/gpu/gpu_process_host.cc
|
| @@ -69,11 +69,6 @@
|
| #include "ui/gfx/x/x11_switches.h"
|
| #endif
|
|
|
| -#if defined(OS_MACOSX) && !defined(OS_IOS)
|
| -#include "content/browser/browser_io_surface_manager_mac.h"
|
| -#include "content/common/child_process_messages.h"
|
| -#endif
|
| -
|
| #if defined(OS_MACOSX)
|
| #include "content/browser/renderer_host/render_widget_resize_helper_mac.h"
|
| #endif
|
| @@ -448,13 +443,6 @@ GpuProcessHost::~GpuProcessHost() {
|
| queued_messages_.pop();
|
| }
|
|
|
| -#if defined(OS_MACOSX) && !defined(OS_IOS)
|
| - if (!io_surface_manager_token_.IsZero()) {
|
| - BrowserIOSurfaceManager::GetInstance()->InvalidateGpuProcessToken();
|
| - io_surface_manager_token_.SetZero();
|
| - }
|
| -#endif
|
| -
|
| // This is only called on the IO thread so no race against the constructor
|
| // for another GpuProcessHost.
|
| if (g_gpu_process_hosts[kind_] == this)
|
| @@ -565,14 +553,6 @@ bool GpuProcessHost::Init() {
|
| if (!Send(new GpuMsg_Initialize()))
|
| return false;
|
|
|
| -#if defined(OS_MACOSX) && !defined(OS_IOS)
|
| - io_surface_manager_token_ =
|
| - BrowserIOSurfaceManager::GetInstance()->GenerateGpuProcessToken();
|
| - // Note: A valid IOSurface manager token needs to be sent to the Gpu process
|
| - // before any GpuMemoryBuffer allocation requests can be sent.
|
| - Send(new ChildProcessMsg_SetIOSurfaceManagerToken(io_surface_manager_token_));
|
| -#endif
|
| -
|
| return true;
|
| }
|
|
|
| @@ -934,13 +914,6 @@ void GpuProcessHost::ForceShutdown() {
|
| if (g_gpu_process_hosts[kind_] == this)
|
| g_gpu_process_hosts[kind_] = NULL;
|
|
|
| -#if defined(OS_MACOSX) && !defined(OS_IOS)
|
| - if (!io_surface_manager_token_.IsZero()) {
|
| - BrowserIOSurfaceManager::GetInstance()->InvalidateGpuProcessToken();
|
| - io_surface_manager_token_.SetZero();
|
| - }
|
| -#endif
|
| -
|
| process_->ForceShutdown();
|
| }
|
|
|
|
|