skia2/include/gpu
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
..
gl eliminate SK_BUILD_FOR_WIN32 2018-01-26 19:52:04 +00:00
mock Add unit test for SkDeferredDisplayLists (take 2) 2017-12-04 18:37:29 +00:00
mtl Add placeholder GrMtlTypes in include/gpu/mtl 2017-07-28 17:11:51 +00:00
vk eliminate SK_BUILD_FOR_WIN32 2018-01-26 19:52:04 +00:00
GrBackendSemaphore.h Revert "Add support for semaphores to be inserted on GrContext flush" 2017-07-22 17:34:00 +00:00
GrBackendSurface.h Add lazy proxy's for wrapping backend textures 2018-01-24 15:12:30 +00:00
GrBlend.h constexprify GrBlend.h and GrPorterDuffXferProcessor.cpp 2017-04-10 16:27:36 +00:00
GrCaps.h Revert "Redefine the meaning of sample counts in GPU backend." 2018-02-01 18:34:40 +00:00
GrColor.h Remove trailing whitespace. 2017-10-09 21:20:34 +00:00
GrConfig.h eliminate SK_BUILD_FOR_WIN32 2018-01-26 19:52:04 +00:00
GrContext.h Revert "Redefine the meaning of sample counts in GPU backend." 2018-02-01 18:34:40 +00:00
GrContextOptions.h Start of adding GrContextOption that overrides driver workarounds. 2018-01-23 18:33:49 +00:00
GrGpuResource.h MakeBackendTextureFromSkImage 2017-10-12 20:05:31 +00:00
GrRenderTarget.h Revert "Redefine the meaning of sample counts in GPU backend." 2018-02-01 18:34:40 +00:00
GrResourceKey.h Convert NULL and 0 to nullptr. 2017-08-28 17:48:57 +00:00
GrSamplerState.h Rework GrSamplerParams to be more compact and use its own wrap mode enum. 2017-09-07 16:58:31 +00:00
GrShaderCaps.h Revert "Drop support for unused MSAA extensions" 2018-01-30 13:13:56 +00:00
GrSurface.h Add hint to SkSurface::MakeRenderTarget that we will use mips 2017-10-23 20:25:59 +00:00
GrTexture.h Add ref counted wrapped around GrTexture ReleaseProc 2018-01-30 14:50:00 +00:00
GrTypes.h Revert "Redefine the meaning of sample counts in GPU backend." 2018-02-01 18:34:40 +00:00