| Index: android_webview/browser/deferred_gpu_command_service.cc
|
| diff --git a/android_webview/browser/deferred_gpu_command_service.cc b/android_webview/browser/deferred_gpu_command_service.cc
|
| index cb31954c182cf83334f9d7012d695a78619e35d5..e96dbca5c7f1d4666b3851344ad6d24a7d4bbf12 100644
|
| --- a/android_webview/browser/deferred_gpu_command_service.cc
|
| +++ b/android_webview/browser/deferred_gpu_command_service.cc
|
| @@ -6,6 +6,8 @@
|
|
|
| #include "android_webview/browser/gl_view_renderer_manager.h"
|
| #include "android_webview/browser/shared_renderer_state.h"
|
| +#include "android_webview/common/aw_switches.h"
|
| +#include "base/command_line.h"
|
| #include "base/synchronization/lock.h"
|
| #include "content/public/browser/android/synchronous_compositor.h"
|
| #include "gpu/command_buffer/service/shader_translator_cache.h"
|
| @@ -75,6 +77,10 @@ void DeferredGpuCommandService::SetInstance() {
|
| if (!g_service.Get()) {
|
| g_service.Get() = new DeferredGpuCommandService;
|
| content::SynchronousCompositor::SetGpuService(g_service.Get());
|
| + if (CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kDisableRecordDocumentWorkaround)) {
|
| + content::SynchronousCompositor::DisableRecordDocumentWorkaround();
|
| + }
|
|
|
| // Initialize global booleans.
|
| g_request_pending.Get().Set(false);
|
|
|