summaryrefslogtreecommitdiffstats
path: root/cc/base/switches.cc
Commit message (Collapse)AuthorAgeFilesLines
* CC: Add command-line flag to disable AA.epenner@chromium.org2013-07-221-0/+4
| | | | | | | | | | | | | This has helped a lot in finding the recent issues with AA. It's also always disabled on the Android browser compositor since we do our own feathered edges there. BUG=233101,256474,259154 Review URL: https://chromiumcodereview.appspot.com/19236005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212990 0039d316-1c4b-4281-b951-d872f2087c98
* Allow tracing to console everywhere.vollick@chromium.org2013-07-111-4/+0
| | | | | | | | | | | | This patch gets rid of the cc-only trace-to-vlog stuff and replaces it with a general trace-to-console approach that can be used everywhere, even the browser. BUG=None Review URL: https://chromiumcodereview.appspot.com/18174006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211245 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Made use color estimator a const instead of a flag.vmpstr@chromium.org2013-07-021-3/+0
| | | | | | | | | | | | Color estimator has been running for some time now, and it seems to be stable. This change removes the piping of the flag down to where it's used. The flag is still in the code for easy debugging. R=reveman@chromium.org Review URL: https://chromiumcodereview.appspot.com/18370002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209568 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Delete LayerTreeAsText / ShowPlatformLayerTreeenne@chromium.org2013-06-201-5/+0
| | | | | | | | | | | | | | | | | CC currently has three (3) ways to dump layers: LayerTreeAsText, LayerTreeAsJSON, and AsValue. LayerTreeAsText is the least useful due to the fact that if you have more than a few layers it falls off the bottom of the screen. Its layer printing abilities have been entirely replaced (in my opinion) with TraceViewer's ability to capture frames. R=nduca@chromium.org BUG=none Review URL: https://chromiumcodereview.appspot.com/17351009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207596 0039d316-1c4b-4281-b951-d872f2087c98
* Revert impl-side painting setting for GoogleTVjinsukkim@chromium.org2013-06-171-6/+1
| | | | | | | | | | Disabling impl-side painting in general on GoogleTV (https://codereview.chromium.org/14190008) is causing a problem loading pages. This CL reverts the change. Review URL: https://chromiumcodereview.appspot.com/16879005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206803 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unused (as of r206108) kEnableCompositorFrameMessagesievers@chromium.org2013-06-141-3/+0
| | | | | | Review URL: https://chromiumcodereview.appspot.com/16844016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206232 0039d316-1c4b-4281-b951-d872f2087c98
* Create content switches for frame scheduling and input managerjdduke@chromium.org2013-05-291-3/+0
| | | | | | | | | | | | The new scheduling approach consists of both changes to how frames are scheduled and when input events are processed. This patch renames a switch for the former and adds a switch for the latter, to be used for ongoing development. BUG=240945 Review URL: https://chromiumcodereview.appspot.com/16043002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202993 0039d316-1c4b-4281-b951-d872f2087c98
* Plumb pinch virtual viewport flag to CC.wjmaclean@chromium.org2013-05-271-0/+3
| | | | | | | | | | | | This flag will protect the refactoring work for the pinch virtual viewport. TBR=cevans@chromium.org BUG=none NOTRY=true Review URL: https://chromiumcodereview.appspot.com/15567005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202453 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Changes to use GL API for GpuMemoryBufferskaanb@chromium.org2013-05-231-0/+3
| | | | | | | | | | | Corresponding gpu changes are here: https://codereview.chromium.org/14456004/ BUG=175012 Review URL: https://chromiumcodereview.appspot.com/14409006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201718 0039d316-1c4b-4281-b951-d872f2087c98
* Add flag for drawing layers to screen with Ganeshenne@chromium.org2013-05-211-0/+5
| | | | | | | | | | | | | | | | The --force-direct-layer-drawing flag causes any layer that could be drawn direct to the backbuffer to be drawn to the backbuffer using Ganesh. This flag also requires both the --enable-threaded-compositing flag and the --enable-impl-side-painting flag to have any effect. This patch also turns on testing for PictureDrawQuad using Ganesh in the cc pixeltests. BUG=none Review URL: https://chromiumcodereview.appspot.com/13863015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201362 0039d316-1c4b-4281-b951-d872f2087c98
* Remove enable-pinch-zoom-scrollbars flag.wjmaclean@chromium.org2013-05-171-4/+0
| | | | | | | | | | | As part of the cleanup before re-factoring code to implement the pinch virtual viewport for fixed position elements and pinch-zoom scrollbars, we need to remove this now-obsolete flag. BUG=none Review URL: https://chromiumcodereview.appspot.com/15139006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200922 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Remove predictor benchmarkvmpstr@chromium.org2013-05-161-3/+0
| | | | | | | | | | | | | | | The predictor benchmark is currently not correct. However, it's also not used. It's not a part of telemetry, or UMA. I'd like to remove it in hopes of cleaning up the code. If we do want this measurement I propose we find a good spot for it so that it doesn't add too much code complexity. BUG=240500 Review URL: https://chromiumcodereview.appspot.com/14587011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200557 0039d316-1c4b-4281-b951-d872f2087c98
* Remove --trace-all-rendered-frames in favour of disabled-by-default.dsinclair@chromium.org2013-05-151-3/+0
| | | | | | | | | | | | | | With this CL the trace events that were previously behind the --trace-all-rendered-frames will now be available through the trace-event UI as disabled-by-default elements. They will only show up in the trace files if explicitly selected in the tracing UI. BUG= R=enne@chromium.org, nduca@chromium.org, piman@chromium.org Review URL: https://codereview.chromium.org/14886018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200339 0039d316-1c4b-4281-b951-d872f2087c98
* Disables impl-side painting on TV devicejinsukkim@chromium.org2013-05-021-1/+6
| | | | | | | | | | | | | Impl-side painting mechanism was playing a part in rendering contents on 1080p resolution in less responsive manner. This CL disables it to address the issue. As the device is mostly controlled with keyboard as opposed to touch like on mobile/tablets, this is acceptable. BUG=235347 Review URL: https://chromiumcodereview.appspot.com/14190008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197809 0039d316-1c4b-4281-b951-d872f2087c98
* Add a command line flag for dumping trace events to VLOGvollick@chromium.org2013-04-291-0/+7
| | | | | | | | | | | Only affects cc_unittests at the moment. BUG=None TBR=nduca@chromium.org Review URL: https://chromiumcodereview.appspot.com/14275006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197141 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 197024 "Add a command line flag for dumping trace events ..."vollick@chromium.org2013-04-291-7/+0
| | | | | | | | | | | | | | | | | > Add a command line flag for dumping trace events to VLOG > > Only affects cc_unittests at the moment. > > BUG=None > R=danakj@chromium.org, jar@chromium.org, nduca@chromium.org > > Review URL: https://codereview.chromium.org/14474006 TBR=vollick@chromium.org Review URL: https://codereview.chromium.org/14449006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197025 0039d316-1c4b-4281-b951-d872f2087c98
* Add a command line flag for dumping trace events to VLOGvollick@chromium.org2013-04-291-0/+7
| | | | | | | | | | | Only affects cc_unittests at the moment. BUG=None R=danakj@chromium.org, jar@chromium.org, nduca@chromium.org Review URL: https://codereview.chromium.org/14474006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197024 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Remove cheapness estimator usage from tile manager.reveman@chromium.org2013-04-281-5/+1
| | | | | | | | | BUG=235995 TBR=nduca@chromium.org, vmpstr@chromium.org Review URL: https://codereview.chromium.org/13859012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196975 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Add strict layer property change checking and handle bounds changes ↵reveman@chromium.org2013-04-161-0/+4
| | | | | | | | | | | | | | | | | | | | during paint. This fixes a problem where paint would cause layer bounds to change and Layer::PushProperties to push an non-empty picture layer without a recording to the impl side. This also adds a new command line switch that make layer property changes during paint cause a CHECK() to fail. This can be used to diagnose situations where paint is incorrectly causing layer properties to change. BUG=229179 TEST=cc_unittests --gtest_filter=LayerTreeHostTestChangeLayerPropertiesInPaintContents.RunSingleThread Review URL: https://codereview.chromium.org/13939005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194269 0039d316-1c4b-4281-b951-d872f2087c98
* Adding new switch to get OpenGL emulation / some drivers to work againskuhne@chromium.org2013-04-131-0/+2
| | | | | | | | | | | Added "--ui-disable-partial-swap" command line option to get some OpenGL drivers back to work by allowing to disable the partial swap again. BUG=230946 TEST=visual Review URL: https://chromiumcodereview.appspot.com/14064003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194089 0039d316-1c4b-4281-b951-d872f2087c98
* Aura: Use --ui-enable-partial-swap by default.backer@chromium.org2013-04-111-1/+0
| | | | | | | | | | | | | | | | | | We still require driver support for this, so this is really just a CrOS and test change (osmesa supports partial swap). We've been passing this flag on CrOS via session_manager_setup.sh since about M19. This gives us a 3x speed-up on many unittests that that use osmesa (LayerWithRealCompositorTest, GpuFeatureTest, WebGLMultisamplingTest). This speed-up is necessary to prevent test timeouts with --ui-enable-threaded-compositing. BUG=173417 Review URL: https://chromiumcodereview.appspot.com/13880015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193763 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Remove max-prepaint-tile-distance constant.reveman@chromium.org2013-04-111-3/+0
| | | | | | | | | | | | | max-tiles-for-interest-area provide a better limit to how far ahead we will prepaint. BUG=230095 R=enne@chromium.org Review URL: https://chromiumcodereview.appspot.com/14105002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193545 0039d316-1c4b-4281-b951-d872f2087c98
* Enable pinch & pinch-zoom scrollbars by default for CrOS.wjmaclean@chromium.org2013-04-101-0/+4
| | | | | | | | | BUG=none Review URL: https://chromiumcodereview.appspot.com/12722002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193387 0039d316-1c4b-4281-b951-d872f2087c98
* Re-land: cc: Enable solid color prediction by defaultvmpstr@chromium.org2013-04-011-3/+3
| | | | | | | | | | | | | | | | | This change flips the "use-color-estimator" flag to become "disable-color-estimator" flag and enables color prediction by default. BUG=181619 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=188467 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=190067 Review URL: https://chromiumcodereview.appspot.com/12408011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191691 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Add command line switch to control resource usage for impl-side painting.reveman@chromium.org2013-03-281-0/+4
| | | | | | | | | | Reduce unused resource pool memory to a percentage of memory limit. BUG=179460 Review URL: https://chromiumcodereview.appspot.com/12502016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191239 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Add command line switches for impl-side painting constants.reveman@chromium.org2013-03-281-0/+6
| | | | | | | | | | | | This adds necessary command line switches for adjusting the amount of prepainting allowed with impl-side painting. BUG=178317 Review URL: https://chromiumcodereview.appspot.com/12594033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191112 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 190067 "Re-land: cc: Enable solid color prediction by def..."reveman@chromium.org2013-03-251-3/+3
| | | | | | | | | | | | | | | | | | | | | | This is causing a high crash rate on ChromeOS: crbug.com/223607 > Re-land: cc: Enable solid color prediction by default > > This change flips the "use-color-estimator" flag to become > "disable-color-estimator" flag and enables color prediction > by default. > > BUG=181619 > > > Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=188467 > > Review URL: https://chromiumcodereview.appspot.com/12408011 TBR=vmpstr@chromium.org Review URL: https://codereview.chromium.org/12968005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190490 0039d316-1c4b-4281-b951-d872f2087c98
* Turn on cheapness estimator for impl-side paintingskyostil@chromium.org2013-03-251-2/+3
| | | | | | | | | | | | | | Now that the improved cheapness estimator[1] has landed, turn it on by default if we are using impl-side painting. BUG=222695 [1] https://chromiumcodereview.appspot.com/12620013 Review URL: https://chromiumcodereview.appspot.com/12594012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190388 0039d316-1c4b-4281-b951-d872f2087c98
* Re-land: cc: Enable solid color prediction by defaultvmpstr@chromium.org2013-03-231-3/+3
| | | | | | | | | | | | | | | This change flips the "use-color-estimator" flag to become "disable-color-estimator" flag and enables color prediction by default. BUG=181619 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=188467 Review URL: https://chromiumcodereview.appspot.com/12408011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190067 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Add --ui-foo flags for all compositor debug visualizations.danakj@chromium.org2013-03-191-29/+52
| | | | | | | | | | | | | | | | | | | | | For every --show-debug-thing flag, we should have a mirrored --ui-show-debug-thing flag to show the same information in the UI compositor. Move the current ui-compositor flags to cc/base/switches.h where the renderer-compositor flags are, so that the mirrored nature is easily seen and maintained. Also move the few renderer-compositor flags for these compositor features to cc/base/switches.h. The only flag that can't move is kShowPaintRects, as it is also used for the software non-compositing path. So instead we mirror this flag in the ui-compositor switches. R=piman Review URL: https://codereview.chromium.org/12909003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189062 0039d316-1c4b-4281-b951-d872f2087c98
* Part 1 of cc/ directory shuffles: basejamesr@chromium.org2013-03-181-0/+120
This establishes cc/base/ as discussed in https://groups.google.com/a/chromium.org/d/msg/graphics-dev/wNRsl3BwU_Y/jFXeRQq7e30J. This patch will likely touch the most locations since it moves cc/switches.h BUG=190824 TBR=piman@chromium.org, thakis@chromium.org Review URL: https://codereview.chromium.org/12472028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188681 0039d316-1c4b-4281-b951-d872f2087c98