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

Side by Side Diff: android_webview/lib/main/aw_main_delegate.cc

Issue 20017005: gpu: Refactor GpuMemoryBuffer framework for multi-process support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 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 | « no previous file | cc/resources/image_raster_worker_pool.h » ('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 "android_webview/lib/main/aw_main_delegate.h" 5 #include "android_webview/lib/main/aw_main_delegate.h"
6 6
7 #include "android_webview/browser/aw_content_browser_client.h" 7 #include "android_webview/browser/aw_content_browser_client.h"
8 #include "android_webview/browser/gpu_memory_buffer_factory_impl.h" 8 #include "android_webview/browser/gpu_memory_buffer_factory_impl.h"
9 #include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h" 9 #include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h"
10 #include "android_webview/lib/aw_browser_dependency_factory_impl.h" 10 #include "android_webview/lib/aw_browser_dependency_factory_impl.h"
(...skipping 28 matching lines...) Expand all
39 AwMainDelegate::AwMainDelegate() 39 AwMainDelegate::AwMainDelegate()
40 : gpu_memory_buffer_factory_(new GpuMemoryBufferFactoryImpl) { 40 : gpu_memory_buffer_factory_(new GpuMemoryBufferFactoryImpl) {
41 } 41 }
42 42
43 AwMainDelegate::~AwMainDelegate() { 43 AwMainDelegate::~AwMainDelegate() {
44 } 44 }
45 45
46 bool AwMainDelegate::BasicStartupComplete(int* exit_code) { 46 bool AwMainDelegate::BasicStartupComplete(int* exit_code) {
47 content::SetContentClient(&content_client_); 47 content::SetContentClient(&content_client_);
48 48
49 gpu::GLInProcessContext::SetGpuMemoryBufferFactory( 49 gpu::InProcessCommandBuffer::SetGpuMemoryBufferFactory(
50 gpu_memory_buffer_factory_.get()); 50 gpu_memory_buffer_factory_.get());
51 gpu::InProcessCommandBuffer::EnableVirtualizedContext(); 51 gpu::InProcessCommandBuffer::EnableVirtualizedContext();
52 52
53 CommandLine* cl = CommandLine::ForCurrentProcess(); 53 CommandLine* cl = CommandLine::ForCurrentProcess();
54 cl->AppendSwitch(switches::kEnableBeginFrameScheduling); 54 cl->AppendSwitch(switches::kEnableBeginFrameScheduling);
55 if (!cl->HasSwitch("disable-map-image")) 55 if (!cl->HasSwitch("disable-map-image"))
56 cl->AppendSwitch(cc::switches::kUseMapImage); 56 cl->AppendSwitch(cc::switches::kUseMapImage);
57 57
58 // WebView uses the Android system's scrollbars and overscroll glow. 58 // WebView uses the Android system's scrollbars and overscroll glow.
59 cl->AppendSwitch(switches::kHideScrollbars); 59 cl->AppendSwitch(switches::kHideScrollbars);
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 AwBrowserContext* browser_context) { 123 AwBrowserContext* browser_context) {
124 return AwGeolocationPermissionContext::Create(browser_context); 124 return AwGeolocationPermissionContext::Create(browser_context);
125 } 125 }
126 126
127 content::WebContentsViewDelegate* AwMainDelegate::CreateViewDelegate( 127 content::WebContentsViewDelegate* AwMainDelegate::CreateViewDelegate(
128 content::WebContents* web_contents) { 128 content::WebContents* web_contents) {
129 return AwWebContentsViewDelegate::Create(web_contents); 129 return AwWebContentsViewDelegate::Create(web_contents);
130 } 130 }
131 131
132 } // namespace android_webview 132 } // namespace android_webview
OLDNEW
« no previous file with comments | « no previous file | cc/resources/image_raster_worker_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698