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

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

Issue 846813002: Revert "Remove impl-side-painting from about:flags" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
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 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 AddFilter((new EmbeddedWorkerContextMessageFilter())->GetFilter()); 516 AddFilter((new EmbeddedWorkerContextMessageFilter())->GetFilter());
517 517
518 GetContentClient()->renderer()->RenderThreadStarted(); 518 GetContentClient()->renderer()->RenderThreadStarted();
519 519
520 InitSkiaEventTracer(); 520 InitSkiaEventTracer();
521 521
522 const base::CommandLine& command_line = 522 const base::CommandLine& command_line =
523 *base::CommandLine::ForCurrentProcess(); 523 *base::CommandLine::ForCurrentProcess();
524 524
525 is_impl_side_painting_enabled_ = 525 is_impl_side_painting_enabled_ =
526 !command_line.HasSwitch(switches::kDisableImplSidePainting); 526 command_line.HasSwitch(switches::kEnableImplSidePainting);
527 cc_blink::WebLayerImpl::SetImplSidePaintingEnabled( 527 cc_blink::WebLayerImpl::SetImplSidePaintingEnabled(
528 is_impl_side_painting_enabled_); 528 is_impl_side_painting_enabled_);
529 529
530 is_zero_copy_enabled_ = command_line.HasSwitch(switches::kEnableZeroCopy); 530 is_zero_copy_enabled_ = command_line.HasSwitch(switches::kEnableZeroCopy);
531 531
532 #if defined(OS_MACOSX) || defined(OS_ANDROID) 532 #if defined(OS_MACOSX) || defined(OS_ANDROID)
533 // TODO(danakj): If changing these also update NumberOfRendererRasterThreads 533 // TODO(danakj): If changing these also update NumberOfRendererRasterThreads
534 // in compositor_util.cc. We should be using methods from compositor_util here 534 // in compositor_util.cc. We should be using methods from compositor_util here
535 // instead of inspecting flags. 535 // instead of inspecting flags.
536 is_one_copy_enabled_ = command_line.HasSwitch(switches::kEnableOneCopy); 536 is_one_copy_enabled_ = command_line.HasSwitch(switches::kEnableOneCopy);
(...skipping 1232 matching lines...) Expand 10 before | Expand all | Expand 10 after
1769 hidden_widget_count_--; 1769 hidden_widget_count_--;
1770 1770
1771 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { 1771 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) {
1772 return; 1772 return;
1773 } 1773 }
1774 1774
1775 ScheduleIdleHandler(kLongIdleHandlerDelayMs); 1775 ScheduleIdleHandler(kLongIdleHandlerDelayMs);
1776 } 1776 }
1777 1777
1778 } // namespace content 1778 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/content_switches.cc ('k') | content/renderer/render_thread_impl_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698