| Index: android_webview/browser/aw_browser_main_parts.cc
|
| diff --git a/android_webview/browser/aw_browser_main_parts.cc b/android_webview/browser/aw_browser_main_parts.cc
|
| index c018d1e8927e032fbe22db869ed84c6274c3b1a8..653f8c5f90816c7d1c6d1554ebdfe84fb7244c6d 100644
|
| --- a/android_webview/browser/aw_browser_main_parts.cc
|
| +++ b/android_webview/browser/aw_browser_main_parts.cc
|
| @@ -8,12 +8,15 @@
|
| #include "android_webview/browser/aw_result_codes.h"
|
| #include "base/android/build_info.h"
|
| #include "base/android/memory_pressure_listener_android.h"
|
| +#include "base/command_line.h"
|
| #include "base/files/file_path.h"
|
| #include "base/path_service.h"
|
| #include "content/public/browser/render_process_host.h"
|
| #include "content/public/common/content_client.h"
|
| +#include "content/public/common/content_switches.h"
|
| #include "content/public/common/result_codes.h"
|
| #include "content/public/common/url_utils.h"
|
| +#include "gpu/command_buffer/service/mailbox_synchronizer.h"
|
| #include "net/android/network_change_notifier_factory_android.h"
|
| #include "net/base/network_change_notifier.h"
|
| #include "ui/base/l10n/l10n_util_android.h"
|
| @@ -59,6 +62,11 @@ int AwBrowserMainParts::PreCreateThreads() {
|
| }
|
|
|
| void AwBrowserMainParts::PreMainMessageLoopRun() {
|
| + if (!gpu::gles2::MailboxSynchronizer::Initialize()) {
|
| + CommandLine::ForCurrentProcess()->AppendSwitch(
|
| + switches::kDisableAccelerated2dCanvas);
|
| + }
|
| +
|
| browser_context_->PreMainMessageLoopRun();
|
| // This is needed for WebView Classic backwards compatibility
|
| // See crbug.com/298495
|
|
|