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

Side by Side Diff: content/public/common/content_switches.cc

Issue 479653003: Replace enable-compositing-for-fixed-position with prefer-compositing-to-lcd-text. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm-fixedpos: exportswitches Created 6 years, 4 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
« no previous file with comments | « content/public/common/content_switches.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/public/common/content_switches.h" 5 #include "content/public/common/content_switches.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 8
9 namespace switches { 9 namespace switches {
10 10
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 const char kDisableAcceleratedVideoDecode[] = 98 const char kDisableAcceleratedVideoDecode[] =
99 "disable-accelerated-video-decode"; 99 "disable-accelerated-video-decode";
100 100
101 // Disable the ApplicationCache. 101 // Disable the ApplicationCache.
102 const char kDisableApplicationCache[] = "disable-application-cache"; 102 const char kDisableApplicationCache[] = "disable-application-cache";
103 103
104 // Disable limits on the number of backing stores. Can prevent blinking for 104 // Disable limits on the number of backing stores. Can prevent blinking for
105 // users with many windows/tabs and lots of memory. 105 // users with many windows/tabs and lots of memory.
106 const char kDisableBackingStoreLimit[] = "disable-backing-store-limit"; 106 const char kDisableBackingStoreLimit[] = "disable-backing-store-limit";
107 107
108 // See comment for kEnableCompositingForFixedPosition. 108 // Disable the creation of compositing layers when it would prevent LCD text.
109 const char kDisableCompositingForFixedPosition[] = 109 const char kDisablePreferCompositingToLCDText[] =
110 "disable-fixed-position-compositing"; 110 "disable-prefer-compositing-to-lcd-text";
111 111
112 // See comment for kEnableCompositingForTransition. 112 // See comment for kEnableCompositingForTransition.
113 const char kDisableCompositingForTransition[] = 113 const char kDisableCompositingForTransition[] =
114 "disable-transition-compositing"; 114 "disable-transition-compositing";
115 115
116 // Disables HTML5 DB support. 116 // Disables HTML5 DB support.
117 const char kDisableDatabases[] = "disable-databases"; 117 const char kDisableDatabases[] = "disable-databases";
118 118
119 // Disables delegated renderer. 119 // Disables delegated renderer.
120 const char kDisableDelegatedRenderer[] = "disable-delegated-renderer"; 120 const char kDisableDelegatedRenderer[] = "disable-delegated-renderer";
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 // one composited layer to avoid pathological layer counts. 304 // one composited layer to avoid pathological layer counts.
305 const char kEnableLayerSquashing[] = 305 const char kEnableLayerSquashing[] =
306 "enable-layer-squashing"; 306 "enable-layer-squashing";
307 307
308 // Enable experimental container node culling. 308 // Enable experimental container node culling.
309 const char kEnableContainerCulling[] = "enable-container-culling"; 309 const char kEnableContainerCulling[] = "enable-container-culling";
310 310
311 // Use a BeginFrame signal from browser to renderer to schedule rendering. 311 // Use a BeginFrame signal from browser to renderer to schedule rendering.
312 const char kEnableBeginFrameScheduling[] = "enable-begin-frame-scheduling"; 312 const char kEnableBeginFrameScheduling[] = "enable-begin-frame-scheduling";
313 313
314 // Enable the creation of compositing layers for fixed position 314 // Enable the creation of compositing layers when it would prevent LCD text.
315 // elements. Three options are needed to support four possible scenarios: 315 const char kEnablePreferCompositingToLCDText[] =
316 // 1. Default (disabled) 316 "enable-prefer-compositing-to-lcd-text";
317 // 2. Enabled always (to allow dogfooding)
318 // 3. Disabled always (to give safety fallback for users)
319 // 4. Enabled only if we detect a highDPI display
320 //
321 // Option #4 may soon be the default, because the feature is needed soon for
322 // high DPI, but cannot be used (yet) for low DPI. Options #2 and #3 will
323 // override Option #4.
324 const char kEnableCompositingForFixedPosition[] =
325 "enable-fixed-position-compositing";
326 317
327 // Enable/Disable the creation of compositing layers for RenderLayers with a 318 // Enable/Disable the creation of compositing layers for RenderLayers with a
328 // transition on a property that supports accelerated animation (that is, 319 // transition on a property that supports accelerated animation (that is,
329 // opacity, -webkit-transform, and -webkit-filter), even when no animation is 320 // opacity, -webkit-transform, and -webkit-filter), even when no animation is
330 // running. These options allow for three possible scenarios: 321 // running. These options allow for three possible scenarios:
331 // 1. Default (enabled only if we dectect a highDPI display) 322 // 1. Default (enabled only if we dectect a highDPI display)
332 // 2. Enabled always. 323 // 2. Enabled always.
333 // 3. Disabled always. 324 // 3. Disabled always.
334 const char kEnableCompositingForTransition[] = 325 const char kEnableCompositingForTransition[] =
335 "enable-transition-compositing"; 326 "enable-transition-compositing";
(...skipping 30 matching lines...) Expand all
366 357
367 // Allow heuristics to determine when a layer tile should be drawn with the 358 // Allow heuristics to determine when a layer tile should be drawn with the
368 // Skia GPU backend. Only valid with GPU accelerated compositing + 359 // Skia GPU backend. Only valid with GPU accelerated compositing +
369 // impl-side painting. 360 // impl-side painting.
370 const char kEnableGpuRasterization[] = "enable-gpu-rasterization"; 361 const char kEnableGpuRasterization[] = "enable-gpu-rasterization";
371 362
372 // When using CPU rasterizing generate low resolution tiling. Low res 363 // When using CPU rasterizing generate low resolution tiling. Low res
373 // tiles may be displayed during fast scrolls especially on slower devices. 364 // tiles may be displayed during fast scrolls especially on slower devices.
374 const char kEnableLowResTiling[] = "enable-low-res-tiling"; 365 const char kEnableLowResTiling[] = "enable-low-res-tiling";
375 366
376 // See comment for kEnableCompositingForFixedPosition.
377 const char kEnableHighDpiCompositingForFixedPosition[] =
378 "enable-high-dpi-fixed-position-compositing";
379
380 // Paint content on the compositor thread instead of the main thread. 367 // Paint content on the compositor thread instead of the main thread.
381 const char kEnableImplSidePainting[] = "enable-impl-side-painting"; 368 const char kEnableImplSidePainting[] = "enable-impl-side-painting";
382 369
383 // Enables support for inband text tracks in media content. 370 // Enables support for inband text tracks in media content.
384 const char kEnableInbandTextTracks[] = "enable-inband-text-tracks"; 371 const char kEnableInbandTextTracks[] = "enable-inband-text-tracks";
385 372
386 // Force logging to be enabled. Logging is disabled by default in release 373 // Force logging to be enabled. Logging is disabled by default in release
387 // builds. 374 // builds.
388 const char kEnableLogging[] = "enable-logging"; 375 const char kEnableLogging[] = "enable-logging";
389 376
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
940 // Enable the Win32K process mitigation policy for renderer processes which 927 // Enable the Win32K process mitigation policy for renderer processes which
941 // prevents them from invoking user32 and gdi32 system calls which enter 928 // prevents them from invoking user32 and gdi32 system calls which enter
942 // the kernel. This is only supported on Windows 8 and beyond. 929 // the kernel. This is only supported on Windows 8 and beyond.
943 const char kEnableWin32kRendererLockDown[] 930 const char kEnableWin32kRendererLockDown[]
944 = "enable_win32k_renderer_lockdown"; 931 = "enable_win32k_renderer_lockdown";
945 #endif 932 #endif
946 933
947 // Don't dump stuff here, follow the same order as the header. 934 // Don't dump stuff here, follow the same order as the header.
948 935
949 } // namespace switches 936 } // namespace switches
OLDNEW
« no previous file with comments | « content/public/common/content_switches.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698