Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Side by Side Diff: content/renderer/renderer_webkitplatformsupport_impl.cc

Issue 126093010: Use ContextProvider subclass to provide WGC3D pointers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "content/renderer/renderer_webkitplatformsupport_impl.h" 5 #include "content/renderer/renderer_webkitplatformsupport_impl.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
(...skipping 30 matching lines...) Expand all
41 #include "content/renderer/media/audio_decoder.h" 41 #include "content/renderer/media/audio_decoder.h"
42 #include "content/renderer/media/crypto/key_systems.h" 42 #include "content/renderer/media/crypto/key_systems.h"
43 #include "content/renderer/media/media_stream_dependency_factory.h" 43 #include "content/renderer/media/media_stream_dependency_factory.h"
44 #include "content/renderer/media/renderer_webaudiodevice_impl.h" 44 #include "content/renderer/media/renderer_webaudiodevice_impl.h"
45 #include "content/renderer/media/renderer_webmidiaccessor_impl.h" 45 #include "content/renderer/media/renderer_webmidiaccessor_impl.h"
46 #include "content/renderer/media/webcontentdecryptionmodule_impl.h" 46 #include "content/renderer/media/webcontentdecryptionmodule_impl.h"
47 #include "content/renderer/render_thread_impl.h" 47 #include "content/renderer/render_thread_impl.h"
48 #include "content/renderer/renderer_clipboard_client.h" 48 #include "content/renderer/renderer_clipboard_client.h"
49 #include "content/renderer/webclipboard_impl.h" 49 #include "content/renderer/webclipboard_impl.h"
50 #include "content/renderer/webcrypto/webcrypto_impl.h" 50 #include "content/renderer/webcrypto/webcrypto_impl.h"
51 #include "content/renderer/webgraphicscontext3d_provider_impl.h"
51 #include "content/renderer/webpublicsuffixlist_impl.h" 52 #include "content/renderer/webpublicsuffixlist_impl.h"
52 #include "gpu/config/gpu_info.h" 53 #include "gpu/config/gpu_info.h"
53 #include "ipc/ipc_sync_message_filter.h" 54 #include "ipc/ipc_sync_message_filter.h"
54 #include "media/audio/audio_output_device.h" 55 #include "media/audio/audio_output_device.h"
55 #include "media/base/audio_hardware_config.h" 56 #include "media/base/audio_hardware_config.h"
56 #include "media/filters/stream_parser_factory.h" 57 #include "media/filters/stream_parser_factory.h"
57 #include "net/base/mime_util.h" 58 #include "net/base/mime_util.h"
58 #include "net/base/net_util.h" 59 #include "net/base/net_util.h"
59 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" 60 #include "third_party/WebKit/public/platform/WebBlobRegistry.h"
60 #include "third_party/WebKit/public/platform/WebDeviceMotionListener.h" 61 #include "third_party/WebKit/public/platform/WebDeviceMotionListener.h"
61 #include "third_party/WebKit/public/platform/WebDeviceOrientationListener.h" 62 #include "third_party/WebKit/public/platform/WebDeviceOrientationListener.h"
62 #include "third_party/WebKit/public/platform/WebFileInfo.h" 63 #include "third_party/WebKit/public/platform/WebFileInfo.h"
63 #include "third_party/WebKit/public/platform/WebGamepads.h" 64 #include "third_party/WebKit/public/platform/WebGamepads.h"
64 #include "third_party/WebKit/public/platform/WebMediaStreamCenter.h" 65 #include "third_party/WebKit/public/platform/WebMediaStreamCenter.h"
65 #include "third_party/WebKit/public/platform/WebMediaStreamCenterClient.h" 66 #include "third_party/WebKit/public/platform/WebMediaStreamCenterClient.h"
66 #include "third_party/WebKit/public/platform/WebPluginListBuilder.h" 67 #include "third_party/WebKit/public/platform/WebPluginListBuilder.h"
67 #include "third_party/WebKit/public/platform/WebURL.h" 68 #include "third_party/WebKit/public/platform/WebURL.h"
68 #include "third_party/WebKit/public/platform/WebVector.h" 69 #include "third_party/WebKit/public/platform/WebVector.h"
69 #include "third_party/WebKit/public/web/WebFrame.h" 70 #include "third_party/WebKit/public/web/WebFrame.h"
70 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" 71 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h"
71 #include "ui/gfx/color_profile.h" 72 #include "ui/gfx/color_profile.h"
72 #include "url/gurl.h" 73 #include "url/gurl.h"
73 #include "webkit/common/gpu/webgraphicscontext3d_provider_impl.h" 74 #include "webkit/common/gpu/context_provider_web_context.h"
74 #include "webkit/common/quota/quota_types.h" 75 #include "webkit/common/quota/quota_types.h"
75 #include "webkit/glue/simple_webmimeregistry_impl.h" 76 #include "webkit/glue/simple_webmimeregistry_impl.h"
76 #include "webkit/glue/webfileutilities_impl.h" 77 #include "webkit/glue/webfileutilities_impl.h"
77 #include "webkit/glue/webkit_glue.h" 78 #include "webkit/glue/webkit_glue.h"
78 79
79 #if defined(OS_WIN) 80 #if defined(OS_WIN)
80 #include "content/common/child_process_messages.h" 81 #include "content/common/child_process_messages.h"
81 #include "third_party/WebKit/public/platform/win/WebSandboxSupport.h" 82 #include "third_party/WebKit/public/platform/win/WebSandboxSupport.h"
82 #endif 83 #endif
83 84
(...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after
961 gpu_channel_host.get(), 962 gpu_channel_host.get(),
962 attributes, 963 attributes,
963 GURL(attributes.topDocumentURL), 964 GURL(attributes.topDocumentURL),
964 limits); 965 limits);
965 } 966 }
966 967
967 //------------------------------------------------------------------------------ 968 //------------------------------------------------------------------------------
968 969
969 blink::WebGraphicsContext3DProvider* RendererWebKitPlatformSupportImpl:: 970 blink::WebGraphicsContext3DProvider* RendererWebKitPlatformSupportImpl::
970 createSharedOffscreenGraphicsContext3DProvider() { 971 createSharedOffscreenGraphicsContext3DProvider() {
971 scoped_refptr<cc::ContextProvider> provider = 972 scoped_refptr<webkit::gpu::ContextProviderWebContext> provider =
972 RenderThreadImpl::current()->SharedMainThreadContextProvider(); 973 RenderThreadImpl::current()->SharedMainThreadContextProvider();
973 if (!provider) 974 if (!provider)
974 return NULL; 975 return NULL;
975 return new webkit::gpu::WebGraphicsContext3DProviderImpl(provider); 976 return new WebGraphicsContext3DProviderImpl(provider);
976 } 977 }
977 978
978 //------------------------------------------------------------------------------ 979 //------------------------------------------------------------------------------
979 980
980 blink::WebCompositorSupport* 981 blink::WebCompositorSupport*
981 RendererWebKitPlatformSupportImpl::compositorSupport() { 982 RendererWebKitPlatformSupportImpl::compositorSupport() {
982 return &compositor_support_; 983 return &compositor_support_;
983 } 984 }
984 985
985 //------------------------------------------------------------------------------ 986 //------------------------------------------------------------------------------
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
1073 return; 1074 return;
1074 QuotaDispatcher::ThreadSpecificInstance( 1075 QuotaDispatcher::ThreadSpecificInstance(
1075 thread_safe_sender_.get(), 1076 thread_safe_sender_.get(),
1076 quota_message_filter_.get())->QueryStorageUsageAndQuota( 1077 quota_message_filter_.get())->QueryStorageUsageAndQuota(
1077 storage_partition, 1078 storage_partition,
1078 static_cast<quota::StorageType>(type), 1079 static_cast<quota::StorageType>(type),
1079 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); 1080 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks));
1080 } 1081 }
1081 1082
1082 } // namespace content 1083 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/webgraphicscontext3d_provider_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698