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

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

Issue 9667012: Fix --single-process mode issues with GpuChannelHostFactory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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
« no previous file with comments | « content/renderer/renderer_webkitplatformsupport_impl.h ('k') | no next file » | 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_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/file_path.h" 8 #include "base/file_path.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/platform_file.h" 10 #include "base/platform_file.h"
(...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 RendererWebKitPlatformSupportImpl::createPeerConnectionHandler( 652 RendererWebKitPlatformSupportImpl::createPeerConnectionHandler(
653 WebKit::WebPeerConnectionHandlerClient* client) { 653 WebKit::WebPeerConnectionHandlerClient* client) {
654 WebFrame* web_frame = WebFrame::frameForCurrentContext(); 654 WebFrame* web_frame = WebFrame::frameForCurrentContext();
655 if (!web_frame) 655 if (!web_frame)
656 return NULL; 656 return NULL;
657 RenderViewImpl* render_view = RenderViewImpl::FromWebView(web_frame->view()); 657 RenderViewImpl* render_view = RenderViewImpl::FromWebView(web_frame->view());
658 if (!render_view) 658 if (!render_view)
659 return NULL; 659 return NULL;
660 return render_view->CreatePeerConnectionHandler(client); 660 return render_view->CreatePeerConnectionHandler(client);
661 } 661 }
662
663 GpuChannelHostFactory*
664 RendererWebKitPlatformSupportImpl::GetGpuChannelHostFactory() {
665 return RenderThreadImpl::current();
666 }
OLDNEW
« no previous file with comments | « content/renderer/renderer_webkitplatformsupport_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698