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

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

Issue 846213003: 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 is_one_copy_enabled_ = !command_line.HasSwitch(switches::kDisableOneCopy); 531 is_one_copy_enabled_ = !command_line.HasSwitch(switches::kDisableOneCopy);
532 532
533 #if defined(OS_MACOSX) && !defined(OS_IOS) 533 #if defined(OS_MACOSX) && !defined(OS_IOS)
534 is_elastic_overscroll_enabled_ = 534 is_elastic_overscroll_enabled_ =
535 !base::CommandLine::ForCurrentProcess()->HasSwitch( 535 !base::CommandLine::ForCurrentProcess()->HasSwitch(
536 switches::kDisableThreadedEventHandlingMac) && 536 switches::kDisableThreadedEventHandlingMac) &&
(...skipping 1224 matching lines...) Expand 10 before | Expand all | Expand 10 after
1761 hidden_widget_count_--; 1761 hidden_widget_count_--;
1762 1762
1763 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { 1763 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) {
1764 return; 1764 return;
1765 } 1765 }
1766 1766
1767 ScheduleIdleHandler(kLongIdleHandlerDelayMs); 1767 ScheduleIdleHandler(kLongIdleHandlerDelayMs);
1768 } 1768 }
1769 1769
1770 } // namespace content 1770 } // 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