diff options
author | weiliangc <weiliangc@chromium.org> | 2015-04-20 22:38:11 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-21 05:38:49 +0000 |
commit | ee6eff90528b8c5b0c10e6faf643edac074ff4b7 (patch) | |
tree | 79cbdded01dd5a702bfa25f0b55d00b3dbd6c4ad /ui/compositor | |
parent | 0e7b421ffa8b86f1a250ed31a7262b58ba64c538 (diff) | |
download | chromium_src-ee6eff90528b8c5b0c10e6faf643edac074ff4b7.zip chromium_src-ee6eff90528b8c5b0c10e6faf643edac074ff4b7.tar.gz chromium_src-ee6eff90528b8c5b0c10e6faf643edac074ff4b7.tar.bz2 |
[Temporary On will revert on Fri]UI impl side painting default on
Turn on Impl Side Painting on Aura browser compositor by default
and add a disable compositor switch.
Temporarily turn on this patch to flush out potential bugs. Will
revert on Friday.
R=danakj
BUG=314185
Review URL: https://codereview.chromium.org/962833003
Cr-Commit-Position: refs/heads/master@{#325985}
Diffstat (limited to 'ui/compositor')
-rw-r--r-- | ui/compositor/compositor_switches.cc | 5 | ||||
-rw-r--r-- | ui/compositor/compositor_switches.h | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/ui/compositor/compositor_switches.cc b/ui/compositor/compositor_switches.cc index 7b8fed3..f003e9d 100644 --- a/ui/compositor/compositor_switches.cc +++ b/ui/compositor/compositor_switches.cc @@ -20,7 +20,7 @@ const char kUIDisableThreadedCompositing[] = "ui-disable-threaded-compositing"; const char kUIEnableCompositorAnimationTimelines[] = "ui-enable-compositor-animation-timelines"; -const char kUIEnableImplSidePainting[] = "ui-enable-impl-side-painting"; +const char kUIDisableImplSidePainting[] = "ui-disable-impl-side-painting"; const char kUIEnableSlimmingPaint[] = "ui-enable-slimming-paint"; @@ -35,7 +35,8 @@ namespace ui { bool IsUIImplSidePaintingEnabled() { const base::CommandLine& command_line = *base::CommandLine::ForCurrentProcess(); - return command_line.HasSwitch(switches::kUIEnableImplSidePainting); + + return !command_line.HasSwitch(switches::kUIDisableImplSidePainting); } bool IsUIZeroCopyEnabled() { diff --git a/ui/compositor/compositor_switches.h b/ui/compositor/compositor_switches.h index a6ffba8..2812d62 100644 --- a/ui/compositor/compositor_switches.h +++ b/ui/compositor/compositor_switches.h @@ -13,8 +13,8 @@ COMPOSITOR_EXPORT extern const char kEnableHardwareOverlays[]; COMPOSITOR_EXPORT extern const char kEnablePixelOutputInTests[]; COMPOSITOR_EXPORT extern const char kUIDisableThreadedCompositing[]; COMPOSITOR_EXPORT extern const char kUIEnableCompositorAnimationTimelines[]; -COMPOSITOR_EXPORT extern const char kUIEnableImplSidePainting[]; COMPOSITOR_EXPORT extern const char kUIEnableSlimmingPaint[]; +COMPOSITOR_EXPORT extern const char kUIDisableImplSidePainting[]; COMPOSITOR_EXPORT extern const char kUIEnableZeroCopy[]; COMPOSITOR_EXPORT extern const char kUIShowPaintRects[]; |