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

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

Issue 19267016: Add a flag to allow renderer to use software compositor when GL compositor doesn't work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 "content/public/common/content_switches.h" 5 #include "content/public/common/content_switches.h"
6 6
7 namespace switches { 7 namespace switches {
8 8
9 // By default, file:// URIs cannot read other file:// URIs. This is an 9 // By default, file:// URIs cannot read other file:// URIs. This is an
10 // override for developers who need the old behavior for testing. 10 // override for developers who need the old behavior for testing.
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 // testing changes locally. The argument is a list of name and value pairs, 513 // testing changes locally. The argument is a list of name and value pairs,
514 // separated by slashes. See FieldTrialList::CreateTrialsFromString() in 514 // separated by slashes. See FieldTrialList::CreateTrialsFromString() in
515 // field_trial.h for details. 515 // field_trial.h for details.
516 const char kForceFieldTrials[] = "force-fieldtrials"; 516 const char kForceFieldTrials[] = "force-fieldtrials";
517 517
518 // Force renderer accessibility to be on instead of enabling it on demand when 518 // Force renderer accessibility to be on instead of enabling it on demand when
519 // a screen reader is detected. The disable-renderer-accessibility switch 519 // a screen reader is detected. The disable-renderer-accessibility switch
520 // overrides this if present. 520 // overrides this if present.
521 const char kForceRendererAccessibility[] = "force-renderer-accessibility"; 521 const char kForceRendererAccessibility[] = "force-renderer-accessibility";
522 522
523 // Force the compositor to use its software implementation instead of GL. 523 // Allow the compositor to use its software implementation if GL fails.
524 const char kEnableSoftwareCompositingGLAdapter[] = 524 const char kEnableSoftwareCompositing[] = "enable-software-compositing";
525 "enable-software-compositing-gl-adapter"; 525
526 // Prevent the compositor from using its GPU implementation.
527 const char kDisableGpuCompositing[] = "disable-gpu-compositing";
piman 2013/07/26 03:36:36 nit: can you also add those to kForwardSwitches in
526 528
527 // Passes gpu device_id from browser process to GPU process. 529 // Passes gpu device_id from browser process to GPU process.
528 const char kGpuDeviceID[] = "gpu-device-id"; 530 const char kGpuDeviceID[] = "gpu-device-id";
529 531
530 // Passes gpu driver_vendor from browser process to GPU process. 532 // Passes gpu driver_vendor from browser process to GPU process.
531 const char kGpuDriverVendor[] = "gpu-driver-vendor"; 533 const char kGpuDriverVendor[] = "gpu-driver-vendor";
532 534
533 // Passes gpu driver_version from browser process to GPU process. 535 // Passes gpu driver_version from browser process to GPU process.
534 const char kGpuDriverVersion[] = "gpu-driver-version"; 536 const char kGpuDriverVersion[] = "gpu-driver-version";
535 537
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
900 const char kEnableWebGLDraftExtensions[] = "enable-webgl-draft-extensions"; 902 const char kEnableWebGLDraftExtensions[] = "enable-webgl-draft-extensions";
901 903
902 // Enables/disables accelerated compositing for backgrounds of root layers with 904 // Enables/disables accelerated compositing for backgrounds of root layers with
903 // background-attachment: fixed. Requires kForceCompositingMode. 905 // background-attachment: fixed. Requires kForceCompositingMode.
904 const char kDisableAcceleratedFixedRootBackground[] = 906 const char kDisableAcceleratedFixedRootBackground[] =
905 "disable-accelerated-fixed-root-background"; 907 "disable-accelerated-fixed-root-background";
906 const char kEnableAcceleratedFixedRootBackground[] = 908 const char kEnableAcceleratedFixedRootBackground[] =
907 "enable-accelerated-fixed-root-background"; 909 "enable-accelerated-fixed-root-background";
908 910
909 } // namespace switches 911 } // namespace switches
OLDNEW
« no previous file with comments | « content/public/common/content_switches.h ('k') | content/renderer/gpu/render_widget_compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698