skia2/tools/fiddle
Brian Salomon c1ce2f7966 Revert "Redefine the meaning of sample counts in GPU backend."
This reverts commit 48825b11ad.

Reason for revert: nanobench

Original change's description:
> 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>

TBR=egdaniel@google.com,bsalomon@google.com

Change-Id: Ic257619a8a5ee9ac15419ecf10259e42daed7f82
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: skia:
Reviewed-on: https://skia-review.googlesource.com/102662
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
2018-02-01 18:34:40 +00:00
..
.gitignore experimental/fiddle -> tools/fiddle 2016-04-18 11:50:07 -07:00
animate.sh [fiddle] Add simple animation support. 2017-04-19 18:46:52 +00:00
draw.cpp Update SkSurface MakeFromBackend* factories to take an SkColorType. 2017-12-19 18:41:36 +00:00
egl_context.cpp Add GrGLMakeNativeInterface factory that returns sk_sp<const GrGLInterface>. 2017-12-11 17:54:38 +00:00
fiddle_main.cpp Revert "Redefine the meaning of sample counts in GPU backend." 2018-02-01 18:34:40 +00:00
fiddle_main.h Add Fiddle DrawOptions for the backend objects 2017-11-27 17:22:26 +00:00
null_context.cpp [fiddle] Report GL driver info. 2017-06-01 18:03:45 +00:00
parse-fiddle-output [fiddle] Report GL driver info. 2017-06-01 18:03:45 +00:00