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

Unified Diff: android_webview/browser/deferred_gpu_command_service.cc

Issue 361073002: Add switch to disable recording whole document (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698