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

Side by Side Diff: content/renderer/render_thread_impl.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/render_thread_impl.h" 5 #include "content/renderer/render_thread_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 404
405 GetContentClient()->renderer()->RenderThreadStarted(); 405 GetContentClient()->renderer()->RenderThreadStarted();
406 406
407 InitSkiaEventTracer(); 407 InitSkiaEventTracer();
408 408
409 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 409 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
410 if (command_line.HasSwitch(cc::switches::kEnableGpuBenchmarking)) 410 if (command_line.HasSwitch(cc::switches::kEnableGpuBenchmarking))
411 RegisterExtension(GpuBenchmarkingExtension::Get()); 411 RegisterExtension(GpuBenchmarkingExtension::Get());
412 412
413 is_impl_side_painting_enabled_ = 413 is_impl_side_painting_enabled_ =
414 command_line.HasSwitch(switches::kEnableImplSidePainting) && 414 command_line.HasSwitch(switches::kEnableImplSidePainting);
415 !command_line.HasSwitch(switches::kDisableImplSidePainting);
416 webkit::WebLayerImpl::SetImplSidePaintingEnabled( 415 webkit::WebLayerImpl::SetImplSidePaintingEnabled(
417 is_impl_side_painting_enabled_); 416 is_impl_side_painting_enabled_);
418 417
419 is_map_image_enabled_ = 418 is_map_image_enabled_ =
420 command_line.HasSwitch(switches::kEnableMapImage) && 419 command_line.HasSwitch(switches::kEnableMapImage) &&
421 !command_line.HasSwitch(switches::kDisableMapImage); 420 !command_line.HasSwitch(switches::kDisableMapImage);
422 421
423 if (command_line.HasSwitch(switches::kDisableLCDText)) { 422 if (command_line.HasSwitch(switches::kDisableLCDText)) {
424 is_lcd_text_enabled_ = false; 423 is_lcd_text_enabled_ = false;
425 } else if (command_line.HasSwitch(switches::kEnableLCDText)) { 424 } else if (command_line.HasSwitch(switches::kEnableLCDText)) {
(...skipping 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after
1522 hidden_widget_count_--; 1521 hidden_widget_count_--;
1523 1522
1524 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { 1523 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) {
1525 return; 1524 return;
1526 } 1525 }
1527 1526
1528 ScheduleIdleHandler(kLongIdleHandlerDelayMs); 1527 ScheduleIdleHandler(kLongIdleHandlerDelayMs);
1529 } 1528 }
1530 1529
1531 } // namespace content 1530 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698