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

Side by Side Diff: android_webview/browser/aw_browser_main_parts.cc

Issue 266353003: aw: Ubercomp mega patch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | « android_webview/android_webview.gyp ('k') | android_webview/browser/browser_view_renderer.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/browser/aw_browser_main_parts.h" 5 #include "android_webview/browser/aw_browser_main_parts.h"
6 6
7 #include "android_webview/browser/aw_browser_context.h" 7 #include "android_webview/browser/aw_browser_context.h"
8 #include "android_webview/browser/aw_result_codes.h" 8 #include "android_webview/browser/aw_result_codes.h"
9 #include "base/android/build_info.h" 9 #include "base/android/build_info.h"
10 #include "base/android/memory_pressure_listener_android.h" 10 #include "base/android/memory_pressure_listener_android.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 pak_path.AppendASCII("webviewchromium.pak"), 55 pak_path.AppendASCII("webviewchromium.pak"),
56 ui::SCALE_FACTOR_NONE); 56 ui::SCALE_FACTOR_NONE);
57 57
58 base::android::MemoryPressureListenerAndroid::RegisterSystemCallback( 58 base::android::MemoryPressureListenerAndroid::RegisterSystemCallback(
59 base::android::AttachCurrentThread()); 59 base::android::AttachCurrentThread());
60 60
61 return content::RESULT_CODE_NORMAL_EXIT; 61 return content::RESULT_CODE_NORMAL_EXIT;
62 } 62 }
63 63
64 void AwBrowserMainParts::PreMainMessageLoopRun() { 64 void AwBrowserMainParts::PreMainMessageLoopRun() {
65 if (!gpu::gles2::MailboxSynchronizer::Initialize()) { 65 // if (!gpu::gles2::MailboxSynchronizer::Initialize()) {
66 CommandLine::ForCurrentProcess()->AppendSwitch( 66 CommandLine::ForCurrentProcess()->AppendSwitch(
67 switches::kDisableAccelerated2dCanvas); 67 switches::kDisableAccelerated2dCanvas);
68 } 68 // }
69 69
70 browser_context_->PreMainMessageLoopRun(); 70 browser_context_->PreMainMessageLoopRun();
71 // This is needed for WebView Classic backwards compatibility 71 // This is needed for WebView Classic backwards compatibility
72 // See crbug.com/298495 72 // See crbug.com/298495
73 content::SetMaxURLChars(20 * 1024 * 1024); 73 content::SetMaxURLChars(20 * 1024 * 1024);
74 } 74 }
75 75
76 bool AwBrowserMainParts::MainMessageLoopRun(int* result_code) { 76 bool AwBrowserMainParts::MainMessageLoopRun(int* result_code) {
77 // Android WebView does not use default MessageLoop. It has its own 77 // Android WebView does not use default MessageLoop. It has its own
78 // Android specific MessageLoop. 78 // Android specific MessageLoop.
79 return true; 79 return true;
80 } 80 }
81 81
82 } // namespace android_webview 82 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/android_webview.gyp ('k') | android_webview/browser/browser_view_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698