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

Side by Side Diff: cc/base/switches.cc

Issue 15567005: Plumb pinch virtual viewport flag to CC. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Revised to share setting with Blink also. Created 7 years, 7 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 "cc/base/switches.h" 5 #include "cc/base/switches.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 8
9 namespace cc { 9 namespace cc {
10 namespace switches { 10 namespace switches {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 // Causes the compositor to render to textures which are then sent to the parent 70 // Causes the compositor to render to textures which are then sent to the parent
71 // through the texture mailbox mechanism. 71 // through the texture mailbox mechanism.
72 // Requires --enable-compositor-frame-message. 72 // Requires --enable-compositor-frame-message.
73 const char kCompositeToMailbox[] = "composite-to-mailbox"; 73 const char kCompositeToMailbox[] = "composite-to-mailbox";
74 74
75 // Check that property changes during paint do not occur. 75 // Check that property changes during paint do not occur.
76 const char kStrictLayerPropertyChangeChecking[] = 76 const char kStrictLayerPropertyChangeChecking[] =
77 "strict-layer-property-change-checking"; 77 "strict-layer-property-change-checking";
78 78
79 // Virtual viewport for fixed-position elements, scrollbars during pinch.
80 const char kEnablePinchVirtualViewport[] = "enable-pinch-virtual-viewport";
81
79 const char kEnablePartialSwap[] = "enable-partial-swap"; 82 const char kEnablePartialSwap[] = "enable-partial-swap";
80 // Disable partial swap which is needed for some OpenGL drivers / emulators. 83 // Disable partial swap which is needed for some OpenGL drivers / emulators.
81 const char kUIDisablePartialSwap[] = "ui-disable-partial-swap"; 84 const char kUIDisablePartialSwap[] = "ui-disable-partial-swap";
82 85
83 const char kEnablePerTilePainting[] = "enable-per-tile-painting"; 86 const char kEnablePerTilePainting[] = "enable-per-tile-painting";
84 const char kUIEnablePerTilePainting[] = "ui-enable-per-tile-painting"; 87 const char kUIEnablePerTilePainting[] = "ui-enable-per-tile-painting";
85 88
86 // Renders a border around compositor layers to help debug and study 89 // Renders a border around compositor layers to help debug and study
87 // layer compositing. 90 // layer compositing.
88 const char kShowCompositedLayerBorders[] = "show-composited-layer-borders"; 91 const char kShowCompositedLayerBorders[] = "show-composited-layer-borders";
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 return false; 152 return false;
150 #elif defined(OS_ANDROID) 153 #elif defined(OS_ANDROID)
151 return true; 154 return true;
152 #else 155 #else
153 return false; 156 return false;
154 #endif 157 #endif
155 } 158 }
156 159
157 } // namespace switches 160 } // namespace switches
158 } // namespace cc 161 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698