skia2/tools/viewer
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
..
GMSlide.cpp Add more SampleApp support to viewer. 2017-02-14 21:25:01 +00:00
GMSlide.h Add more SampleApp support to viewer. 2017-02-14 21:25:01 +00:00
ImageSlide.cpp Add onBackendCreated callback to Viewer 2017-02-24 22:37:34 +00:00
ImageSlide.h Simplify viewer's handling of backbuffer surface and color space 2017-02-08 17:34:05 +00:00
ImGuiLayer.cpp Move ImGui support code to ImGuiLayer 2017-12-11 17:37:58 +00:00
ImGuiLayer.h Move ImGui support code to ImGuiLayer 2017-12-11 17:37:58 +00:00
SampleSlide.cpp Fix sample modifier keys for mouse events 2017-12-05 14:05:31 +00:00
SampleSlide.h Add sample mouse support to Viewer 2017-11-02 14:25:21 +00:00
SkottieSlide2.cpp [skottie] Convert SkottieSlide2 to SkSceneGraph animators. 2018-02-01 00:28:32 +00:00
SkottieSlide.cpp Skotty -> Skottie 2018-01-17 14:15:36 +00:00
SkottieSlide.h [skottie] Convert SkottieSlide2 to SkSceneGraph animators. 2018-02-01 00:28:32 +00:00
SKPSlide.cpp SkFontData to use smart pointers. 2016-09-16 06:24:20 -07:00
SKPSlide.h Add samples to Viewer. 2016-06-16 09:52:35 -07:00
Slide.h Add sample mouse support to Viewer 2017-11-02 14:25:21 +00:00
StatsLayer.cpp Move stats code to new layer (with configurable list of timers) 2017-12-20 16:59:04 +00:00
StatsLayer.h Move stats code to new layer (with configurable list of timers) 2017-12-20 16:59:04 +00:00
Viewer.cpp Revert "Redefine the meaning of sample counts in GPU backend." 2018-02-01 18:34:40 +00:00
Viewer.h Fix Viewer slide load on backend change - take 2 2018-01-17 14:19:46 +00:00