| Index: webkit/support/test_webkit_platform_support.cc
|
| diff --git a/webkit/support/test_webkit_platform_support.cc b/webkit/support/test_webkit_platform_support.cc
|
| index 546fa7ec4128f68520bc5c8880d57b8d9a15f512..41cdc8e9064c88bb0f6b46f006c0c37e42b50907 100644
|
| --- a/webkit/support/test_webkit_platform_support.cc
|
| +++ b/webkit/support/test_webkit_platform_support.cc
|
| @@ -387,6 +387,25 @@ TestWebKitPlatformSupport::createGraphicsContext3D() {
|
| }
|
| }
|
|
|
| +WebKit::WebGraphicsContext3D*
|
| +TestWebKitPlatformSupport::createOffscreenGraphicsContext3D(
|
| + const WebKit::WebGraphicsContext3D::Attributes& attributes) {
|
| + scoped_ptr<WebKit::WebGraphicsContext3D> context;
|
| + switch (webkit_support::GetGraphicsContext3DImplementation()) {
|
| + case webkit_support::IN_PROCESS:
|
| + context.reset(new webkit::gpu::WebGraphicsContext3DInProcessImpl(
|
| + gfx::kNullPluginWindow, NULL));
|
| + break;
|
| + case webkit_support::IN_PROCESS_COMMAND_BUFFER:
|
| + context.reset(
|
| + new webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl());
|
| + break;
|
| + }
|
| + if (!context->initialize(attributes, NULL, false))
|
| + return NULL;
|
| + return context.release();
|
| +}
|
| +
|
| double TestWebKitPlatformSupport::audioHardwareSampleRate() {
|
| return 44100.0;
|
| }
|
|
|