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

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

Issue 841773006: Extract WebGraphicsContext3DInProcessCommandBufferImpl from webkit/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « content/renderer/android/synchronous_compositor_factory.h ('k') | gpu/blink/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_blink_platform_impl.h" 5 #include "content/renderer/renderer_blink_platform_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/logging.h" 10 #include "base/logging.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 #include "third_party/WebKit/public/platform/WebPluginListBuilder.h" 77 #include "third_party/WebKit/public/platform/WebPluginListBuilder.h"
78 #include "third_party/WebKit/public/platform/WebURL.h" 78 #include "third_party/WebKit/public/platform/WebURL.h"
79 #include "third_party/WebKit/public/platform/WebVector.h" 79 #include "third_party/WebKit/public/platform/WebVector.h"
80 #include "ui/gfx/color_profile.h" 80 #include "ui/gfx/color_profile.h"
81 #include "url/gurl.h" 81 #include "url/gurl.h"
82 #include "webkit/common/gpu/context_provider_web_context.h" 82 #include "webkit/common/gpu/context_provider_web_context.h"
83 83
84 #if defined(OS_ANDROID) 84 #if defined(OS_ANDROID)
85 #include "content/renderer/android/synchronous_compositor_factory.h" 85 #include "content/renderer/android/synchronous_compositor_factory.h"
86 #include "content/renderer/media/android/audio_decoder_android.h" 86 #include "content/renderer/media/android/audio_decoder_android.h"
87 #include "webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl. h" 87 #include "gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.h"
88 #endif 88 #endif
89 89
90 #if defined(OS_MACOSX) 90 #if defined(OS_MACOSX)
91 #include "content/common/mac/font_descriptor.h" 91 #include "content/common/mac/font_descriptor.h"
92 #include "content/common/mac/font_loader.h" 92 #include "content/common/mac/font_loader.h"
93 #include "content/renderer/webscrollbarbehavior_impl_mac.h" 93 #include "content/renderer/webscrollbarbehavior_impl_mac.h"
94 #include "third_party/WebKit/public/platform/mac/WebSandboxSupport.h" 94 #include "third_party/WebKit/public/platform/mac/WebSandboxSupport.h"
95 #endif 95 #endif
96 96
97 #if defined(OS_POSIX) 97 #if defined(OS_POSIX)
(...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after
957 RendererBlinkPlatformImpl::createOffscreenGraphicsContext3D( 957 RendererBlinkPlatformImpl::createOffscreenGraphicsContext3D(
958 const blink::WebGraphicsContext3D::Attributes& attributes, 958 const blink::WebGraphicsContext3D::Attributes& attributes,
959 blink::WebGraphicsContext3D* share_context, 959 blink::WebGraphicsContext3D* share_context,
960 blink::WebGLInfo* gl_info) { 960 blink::WebGLInfo* gl_info) {
961 if (!RenderThreadImpl::current()) 961 if (!RenderThreadImpl::current())
962 return NULL; 962 return NULL;
963 963
964 #if defined(OS_ANDROID) 964 #if defined(OS_ANDROID)
965 if (SynchronousCompositorFactory* factory = 965 if (SynchronousCompositorFactory* factory =
966 SynchronousCompositorFactory::GetInstance()) { 966 SynchronousCompositorFactory::GetInstance()) {
967 scoped_ptr<webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl> 967 scoped_ptr<gpu_blink::WebGraphicsContext3DInProcessCommandBufferImpl>
968 in_process_context( 968 in_process_context(
969 factory->CreateOffscreenGraphicsContext3D(attributes)); 969 factory->CreateOffscreenGraphicsContext3D(attributes));
970 if (!in_process_context || 970 if (!in_process_context ||
971 !in_process_context->InitializeOnCurrentThread()) 971 !in_process_context->InitializeOnCurrentThread())
972 return NULL; 972 return NULL;
973 return in_process_context.release(); 973 return in_process_context.release();
974 } 974 }
975 #endif 975 #endif
976 976
977 scoped_refptr<GpuChannelHost> gpu_channel_host( 977 scoped_refptr<GpuChannelHost> gpu_channel_host(
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
1224 //------------------------------------------------------------------------------ 1224 //------------------------------------------------------------------------------
1225 1225
1226 void RendererBlinkPlatformImpl::MockBatteryStatusChangedForTesting( 1226 void RendererBlinkPlatformImpl::MockBatteryStatusChangedForTesting(
1227 const blink::WebBatteryStatus& status) { 1227 const blink::WebBatteryStatus& status) {
1228 if (!g_test_battery_status_listener) 1228 if (!g_test_battery_status_listener)
1229 return; 1229 return;
1230 g_test_battery_status_listener->updateBatteryStatus(status); 1230 g_test_battery_status_listener->updateBatteryStatus(status);
1231 } 1231 }
1232 1232
1233 } // namespace content 1233 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/android/synchronous_compositor_factory.h ('k') | gpu/blink/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698