Index: ui/gfx/compositor/compositor_cc.cc |
diff --git a/ui/gfx/compositor/compositor_cc.cc b/ui/gfx/compositor/compositor_cc.cc |
index 8957990c10b3f8402a424f2117bb22355afe298c..91b2cb6bee4bf4445b346b17ab2447c408e9016c 100644 |
--- a/ui/gfx/compositor/compositor_cc.cc |
+++ b/ui/gfx/compositor/compositor_cc.cc |
@@ -264,10 +264,19 @@ WebKit::WebGraphicsContext3D* CompositorCC::createContext3D() { |
// Use context that results in no rendering to the screen. |
context = new TestWebGraphicsContext3D(); |
} else { |
+#if defined(OS_MACOSX) && !defined(USE_AURA) |
+ // Non-Aura builds compile this code but doesn't call it. Unfortunately |
+ // this is where we translate gfx::AcceleratedWidget to |
+ // gfx::PluginWindowHandle, and they are different on non-Aura Mac. |
+ // TODO(piman): remove ifdefs when AcceleratedWidget is rationalized on Mac. |
+ NOTIMPLEMENTED(); |
+ return NULL; |
+#else |
gfx::GLShareGroup* share_group = |
SharedResourcesCC::GetInstance()->GetShareGroup(); |
context = new webkit::gpu::WebGraphicsContext3DInProcessImpl( |
widget_, share_group); |
+#endif |
} |
WebKit::WebGraphicsContext3D::Attributes attrs; |
context->initialize(attrs, 0, true); |