Index: content/browser/renderer_host/compositor_impl_android.cc |
diff --git a/content/browser/renderer_host/compositor_impl_android.cc b/content/browser/renderer_host/compositor_impl_android.cc |
index aabebfbc9058f2ab724be8a74921aba5e627c490..2cb2e659ecbceab93a9328df48950da290fd718c 100644 |
--- a/content/browser/renderer_host/compositor_impl_android.cc |
+++ b/content/browser/renderer_host/compositor_impl_android.cc |
@@ -17,6 +17,7 @@ |
#include "base/single_thread_task_runner.h" |
#include "base/synchronization/lock.h" |
#include "base/threading/thread.h" |
+#include "cc/base/switches.h" |
#include "cc/input/input_handler.h" |
#include "cc/layers/layer.h" |
#include "cc/output/compositor_frame.h" |
@@ -34,7 +35,6 @@ |
#include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
#include "content/common/gpu/gpu_process_launch_causes.h" |
#include "content/public/browser/android/compositor_client.h" |
-#include "content/public/common/content_switches.h" |
#include "gpu/command_buffer/client/gles2_interface.h" |
#include "third_party/khronos/GLES2/gl2.h" |
#include "third_party/khronos/GLES2/gl2ext.h" |
@@ -267,6 +267,10 @@ void CompositorImpl::SetVisible(bool visible) { |
settings.use_memory_management = false; |
settings.highp_threshold_min = 2048; |
+ CommandLine* command_line = CommandLine::ForCurrentProcess(); |
+ settings.initial_debug_state.SetRecordRenderingStats( |
+ command_line->HasSwitch(cc::switches::kEnableGpuBenchmarking)); |
+ |
host_ = cc::LayerTreeHost::CreateSingleThreaded(this, this, NULL, settings); |
host_->SetRootLayer(root_layer_); |