skia2/debugger/QT
Brian Salomon 48825b11ad Redefine the meaning of sample counts in GPU backend.
Old: 0  -> nonMSAA
     1+ -> MSAA

New:
     0  -> error/unsupported
     1  -> nonMSAA
     2+ -> MSAA

We still allow 0 to mean nonMSAA in three sets of public APIs for backwards compatibility:

1) SkSurface factories
2) GrBackendRenderTarget constructors
3) GrCaps::getSampleCnt()'s requestedCount parameter

However, we immediately clamp to 1 and treat 0 as invalid/non-renderable internally.

This also changes the behavior when using a large sample count. We now fail in that case rather than using the largest sample available sample count. GrCaps::getSampleCount() will return 0 in this case.


Bug: skia:
Change-Id: Ida22c6b22c1365e563c9046b611e88bf5eb3ff33
Reviewed-on: https://skia-review.googlesource.com/101560
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
2018-02-01 18:16:58 +00:00
..
Icons Remove carriage returns. 2017-10-09 20:41:14 +00:00
qrc_SkIcons.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkCanvasWidget.cpp Unbust the old debugger 2016-03-01 09:34:38 -08:00
SkCanvasWidget.h Unbust the old debugger 2016-03-01 09:34:38 -08:00
SkDebuggerGUI.cpp remove deprecated SkPixelSerializer 2017-12-16 14:21:32 +00:00
SkDebuggerGUI.h Unbust the old debugger 2016-03-01 09:34:38 -08:00
SkDrawCommandGeometryWidget.cpp Fix debugger w.r.t. sk_sp changes 2016-03-24 08:29:41 -07:00
SkDrawCommandGeometryWidget.h Fix debugger w.r.t. sk_sp changes 2016-03-24 08:29:41 -07:00
SkGLWidget.cpp Redefine the meaning of sample counts in GPU backend. 2018-02-01 18:16:58 +00:00
SkGLWidget.h Revert "Revert "Revert "Revert "Remove GrBackendRenderTargetDesc in favor of GrBackendRenderTarget."""" 2017-08-31 20:04:12 +00:00
SkIcons.qrc clt debugger 2012-06-29 14:21:22 +00:00
SkInspectorWidget.cpp debugger: Make inspector widget smaller 2015-01-02 06:35:43 -08:00
SkInspectorWidget.h debugger: Make inspector widget smaller 2015-01-02 06:35:43 -08:00
SkListWidget.cpp Debugger: remove dead feature (SkPicture offset display) & fix bug (unbalanced indents) 2015-03-26 10:08:04 -07:00
SkListWidget.h Style Change: NULL->nullptr 2015-08-27 07:41:16 -07:00
SkRasterWidget.cpp Fix debugger w.r.t. sk_sp changes 2016-03-24 08:29:41 -07:00
SkRasterWidget.h Fix debugger w.r.t. sk_sp changes 2016-03-24 08:29:41 -07:00
SkSettingsWidget.cpp Add gpu implementation of OverdrawXfermode 2016-01-27 05:00:04 -08:00
SkSettingsWidget.h Unbust the old debugger 2016-03-01 09:34:38 -08:00