| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "webkit/support/webkit_support.h" | 5 #include "webkit/support/webkit_support.h" |
| 6 | 6 |
| 7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
| 8 #include "base/base64.h" | 8 #include "base/base64.h" |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 #include "ui/gl/gl_surface.h" | 51 #include "ui/gl/gl_surface.h" |
| 52 #include "webkit/appcache/web_application_cache_host_impl.h" | 52 #include "webkit/appcache/web_application_cache_host_impl.h" |
| 53 #include "webkit/base/file_path_string_conversions.h" | 53 #include "webkit/base/file_path_string_conversions.h" |
| 54 #include "webkit/compositor_bindings/web_compositor_support_impl.h" | 54 #include "webkit/compositor_bindings/web_compositor_support_impl.h" |
| 55 #include "webkit/compositor_bindings/web_layer_tree_view_impl_for_testing.h" | 55 #include "webkit/compositor_bindings/web_layer_tree_view_impl_for_testing.h" |
| 56 #include "webkit/fileapi/isolated_context.h" | 56 #include "webkit/fileapi/isolated_context.h" |
| 57 #include "webkit/glue/webkit_constants.h" | 57 #include "webkit/glue/webkit_constants.h" |
| 58 #include "webkit/glue/webkit_glue.h" | 58 #include "webkit/glue/webkit_glue.h" |
| 59 #include "webkit/glue/webkitplatformsupport_impl.h" | 59 #include "webkit/glue/webkitplatformsupport_impl.h" |
| 60 #include "webkit/glue/weburlrequest_extradata_impl.h" | 60 #include "webkit/glue/weburlrequest_extradata_impl.h" |
| 61 #include "webkit/gpu/test_context_provider_factory.h" |
| 61 #include "webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h" | 62 #include "webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h" |
| 62 #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h" | 63 #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h" |
| 63 #if defined(OS_ANDROID) | 64 #if defined(OS_ANDROID) |
| 64 #include "webkit/media/android/media_player_bridge_manager_impl.h" | 65 #include "webkit/media/android/media_player_bridge_manager_impl.h" |
| 65 #include "webkit/media/android/webmediaplayer_in_process_android.h" | 66 #include "webkit/media/android/webmediaplayer_in_process_android.h" |
| 66 #include "webkit/media/android/webmediaplayer_manager_android.h" | 67 #include "webkit/media/android/webmediaplayer_manager_android.h" |
| 67 #endif | 68 #endif |
| 68 #include "webkit/media/media_stream_client.h" | 69 #include "webkit/media/media_stream_client.h" |
| 69 #include "webkit/media/webmediaplayer_impl.h" | 70 #include "webkit/media/webmediaplayer_impl.h" |
| 70 #include "webkit/media/webmediaplayer_ms.h" | 71 #include "webkit/media/webmediaplayer_ms.h" |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 switch (bindingPref) { | 485 switch (bindingPref) { |
| 485 case GL_BINDING_DEFAULT: | 486 case GL_BINDING_DEFAULT: |
| 486 gfx::GLSurface::InitializeOneOff(); | 487 gfx::GLSurface::InitializeOneOff(); |
| 487 break; | 488 break; |
| 488 case GL_BINDING_SOFTWARE_RENDERER: | 489 case GL_BINDING_SOFTWARE_RENDERER: |
| 489 gfx::InitializeGLBindings(gfx::kGLImplementationOSMesaGL); | 490 gfx::InitializeGLBindings(gfx::kGLImplementationOSMesaGL); |
| 490 break; | 491 break; |
| 491 default: | 492 default: |
| 492 NOTREACHED(); | 493 NOTREACHED(); |
| 493 } | 494 } |
| 495 webkit::gpu::TestContextProviderFactory::SetUpFactoryForTesting( |
| 496 g_graphics_context_3d_implementation); |
| 494 } | 497 } |
| 495 | 498 |
| 496 void SetGraphicsContext3DImplementation(GraphicsContext3DImplementation impl) { | 499 void SetGraphicsContext3DImplementation(GraphicsContext3DImplementation impl) { |
| 497 g_graphics_context_3d_implementation = impl; | 500 g_graphics_context_3d_implementation = impl; |
| 498 } | 501 } |
| 499 | 502 |
| 500 GraphicsContext3DImplementation GetGraphicsContext3DImplementation() { | 503 GraphicsContext3DImplementation GetGraphicsContext3DImplementation() { |
| 501 return g_graphics_context_3d_implementation; | 504 return g_graphics_context_3d_implementation; |
| 502 } | 505 } |
| 503 | 506 |
| (...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 916 // Logging | 919 // Logging |
| 917 void EnableWebCoreLogChannels(const std::string& channels) { | 920 void EnableWebCoreLogChannels(const std::string& channels) { |
| 918 webkit_glue::EnableWebCoreLogChannels(channels); | 921 webkit_glue::EnableWebCoreLogChannels(channels); |
| 919 } | 922 } |
| 920 | 923 |
| 921 void SetGamepadData(const WebKit::WebGamepads& pads) { | 924 void SetGamepadData(const WebKit::WebGamepads& pads) { |
| 922 test_environment->webkit_platform_support()->setGamepadData(pads); | 925 test_environment->webkit_platform_support()->setGamepadData(pads); |
| 923 } | 926 } |
| 924 | 927 |
| 925 } // namespace webkit_support | 928 } // namespace webkit_support |
| OLD | NEW |