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

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, 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
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 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 // testing changes locally. The argument is a list of name and value pairs, 508 // testing changes locally. The argument is a list of name and value pairs,
509 // separated by slashes. See FieldTrialList::CreateTrialsFromString() in 509 // separated by slashes. See FieldTrialList::CreateTrialsFromString() in
510 // field_trial.h for details. 510 // field_trial.h for details.
511 const char kForceFieldTrials[] = "force-fieldtrials"; 511 const char kForceFieldTrials[] = "force-fieldtrials";
512 512
513 // Force renderer accessibility to be on instead of enabling it on demand when 513 // Force renderer accessibility to be on instead of enabling it on demand when
514 // a screen reader is detected. The disable-renderer-accessibility switch 514 // a screen reader is detected. The disable-renderer-accessibility switch
515 // overrides this if present. 515 // overrides this if present.
516 const char kForceRendererAccessibility[] = "force-renderer-accessibility"; 516 const char kForceRendererAccessibility[] = "force-renderer-accessibility";
517 517
518 // Force the compositor to use its software implementation instead of GL. 518 // Allow the compositor to use its software implementation if GL fails.
519 const char kEnableSoftwareCompositingGLAdapter[] = 519 const char kEnableSoftwareCompositing[] = "enable-software-compositing";
520 "enable-software-compositing-gl-adapter"; 520
521 // Prevent the compositor from using its GPU implementation.
522 const char kDisableGpuCompositing[] = "disable-gpu-compositing";
521 523
522 // Passes gpu device_id from browser process to GPU process. 524 // Passes gpu device_id from browser process to GPU process.
523 const char kGpuDeviceID[] = "gpu-device-id"; 525 const char kGpuDeviceID[] = "gpu-device-id";
524 526
525 // Passes gpu driver_vendor from browser process to GPU process. 527 // Passes gpu driver_vendor from browser process to GPU process.
526 const char kGpuDriverVendor[] = "gpu-driver-vendor"; 528 const char kGpuDriverVendor[] = "gpu-driver-vendor";
527 529
528 // Passes gpu driver_version from browser process to GPU process. 530 // Passes gpu driver_version from browser process to GPU process.
529 const char kGpuDriverVersion[] = "gpu-driver-version"; 531 const char kGpuDriverVersion[] = "gpu-driver-version";
530 532
(...skipping 369 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