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

Unified Diff: content/browser/renderer_host/render_widget_host_view_android.cc

Issue 212003002: Re-land: content: Avoid duplicating the logic used to determine GPU features. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use IsDelegatedRendererEnabled in RenderWidgetHostViewAndroid Created 6 years, 9 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
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_android.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc
index f661e646292e444893aa6149fd4784302600ec81..e76c3eda16257f9de0f28ba7e194abc40e257ff1 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -32,6 +32,7 @@
#include "content/browser/android/in_process/synchronous_compositor_impl.h"
#include "content/browser/android/overscroll_glow.h"
#include "content/browser/devtools/render_view_devtools_agent_host.h"
+#include "content/browser/gpu/compositor_util.h"
#include "content/browser/gpu/gpu_data_manager_impl.h"
#include "content/browser/gpu/gpu_process_host_ui_shim.h"
#include "content/browser/gpu/gpu_surface_tracker.h"
@@ -152,10 +153,7 @@ RenderWidgetHostViewAndroid::RenderWidgetHostViewAndroid(
widget_host->GetProcess()->GetID(),
widget_host->GetRoutingID()) != NULL),
frame_evictor_(new DelegatedFrameEvictor(this)),
- using_delegated_renderer_(CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableDelegatedRenderer) &&
- !CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDisableDelegatedRenderer)),
+ using_delegated_renderer_(IsDelegatedRendererEnabled()),
reveman 2014/03/28 16:50:33 FYI, previous patch was broken as it was using the
locks_on_frame_count_(0),
root_window_destroyed_(false) {
if (!using_delegated_renderer_) {
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698