| Index: content/common/sandbox_mac.mm
|
| diff --git a/content/common/sandbox_mac.mm b/content/common/sandbox_mac.mm
|
| index a9f42e2ec925dc5010fb5b8124cd71a32d7ae0de..0baa2756bddf49775ca6b7829c786e0246f3d048 100644
|
| --- a/content/common/sandbox_mac.mm
|
| +++ b/content/common/sandbox_mac.mm
|
| @@ -36,6 +36,7 @@ extern "C" {
|
| #include "third_party/icu/source/common/unicode/uchar.h"
|
| #include "ui/base/layout.h"
|
| #include "ui/gl/gl_surface.h"
|
| +#include "ui/gl/io_surface_support_mac.h"
|
|
|
| namespace content {
|
| namespace {
|
| @@ -307,6 +308,15 @@ void Sandbox::SandboxWarmup(int sandbox_type) {
|
| base::GetUrandomFD();
|
| }
|
|
|
| + { // IOSurfaceLookup() - 10.7
|
| + // Needed by zero-copy texture update framework - crbug.com/323338
|
| + IOSurfaceSupport* io_surface_support = IOSurfaceSupport::Initialize();
|
| + if (io_surface_support) {
|
| + base::ScopedCFTypeRef<CFTypeRef> io_surface(
|
| + io_surface_support->IOSurfaceLookup(0));
|
| + }
|
| + }
|
| +
|
| // Process-type dependent warm-up.
|
| if (sandbox_type == SANDBOX_TYPE_UTILITY) {
|
| // CFTimeZoneCopyZone() tries to read /etc and /private/etc/localtime - 10.8
|
|
|