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

Side by Side Diff: content/renderer/render_thread_impl.cc

Issue 212863004: Revert of content: Avoid duplicating the logic used to determine GPU features. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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);
415 webkit::WebLayerImpl::SetImplSidePaintingEnabled( 416 webkit::WebLayerImpl::SetImplSidePaintingEnabled(
416 is_impl_side_painting_enabled_); 417 is_impl_side_painting_enabled_);
417 418
418 is_map_image_enabled_ = 419 is_map_image_enabled_ =
419 command_line.HasSwitch(switches::kEnableMapImage) && 420 command_line.HasSwitch(switches::kEnableMapImage) &&
420 !command_line.HasSwitch(switches::kDisableMapImage); 421 !command_line.HasSwitch(switches::kDisableMapImage);
421 422
422 if (command_line.HasSwitch(switches::kDisableLCDText)) { 423 if (command_line.HasSwitch(switches::kDisableLCDText)) {
423 is_lcd_text_enabled_ = false; 424 is_lcd_text_enabled_ = false;
424 } else if (command_line.HasSwitch(switches::kEnableLCDText)) { 425 } else if (command_line.HasSwitch(switches::kEnableLCDText)) {
(...skipping 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after
1521 hidden_widget_count_--; 1522 hidden_widget_count_--;
1522 1523
1523 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { 1524 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) {
1524 return; 1525 return;
1525 } 1526 }
1526 1527
1527 ScheduleIdleHandler(kLongIdleHandlerDelayMs); 1528 ScheduleIdleHandler(kLongIdleHandlerDelayMs);
1528 } 1529 }
1529 1530
1530 } // namespace content 1531 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_android.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698