Go to file
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
animations
bench Revert "hide picture virtuals (no public callers)" 2018-01-27 17:30:15 +00:00
bin fetch-clang-format: better error checking 2018-01-22 20:33:49 +00:00
debugger Redefine the meaning of sample counts in GPU backend. 2018-02-01 18:16:58 +00:00
dm Redefine the meaning of sample counts in GPU backend. 2018-02-01 18:16:58 +00:00
docs auto table generation 2018-02-01 15:09:17 +00:00
example Redefine the meaning of sample counts in GPU backend. 2018-02-01 18:16:58 +00:00
experimental [skottie] Split-position support 2018-02-01 17:48:08 +00:00
fuzz Check for nullptrs when fuzzing region_deserialize 2018-02-01 15:10:43 +00:00
gm Add SkSurface_Gpu::MakeWrappedRenderTarget method 2018-01-31 21:15:45 +00:00
gn No omit-frame-pointer on Win 2018-02-01 17:36:00 +00:00
include Redefine the meaning of sample counts in GPU backend. 2018-02-01 18:16:58 +00:00
infra Fixes to trigger_wait_ac_task.py 2018-02-01 14:43:22 +00:00
platform_tools SkQP: report formatting, junit classname 2018-01-31 18:52:45 +00:00
resources Make SkAndroidCodec (optionally) respect origin 2018-01-26 22:13:34 +00:00
samplecode Simplify SkAnimatedImage 2018-01-30 18:46:35 +00:00
site auto table generation 2018-02-01 15:09:17 +00:00
src Redefine the meaning of sample counts in GPU backend. 2018-02-01 18:16:58 +00:00
tests Redefine the meaning of sample counts in GPU backend. 2018-02-01 18:16:58 +00:00
third_party Revert "remove third_party/etc1" 2018-01-26 22:41:35 +00:00
tools Redefine the meaning of sample counts in GPU backend. 2018-02-01 18:16:58 +00:00
.clang-format Mark flatennable macros as block beginning/ending in .clang-format 2017-01-09 15:31:36 +00:00
.gitignore Ignore generated README.recipes.md 2017-10-26 18:07:27 +00:00
.gn Basic standalone GN configs. 2016-07-21 12:25:45 -07:00
AUTHORS Changes to site documentation 2018-01-11 19:47:58 +00:00
BUILD.gn [sksg] Initial text support 2018-01-31 22:36:05 +00:00
codereview.settings Make uploading to Gerrit the default for Skia 2016-11-09 19:07:56 +00:00
CONTRIBUTING
CQ_COMMITTERS Moved committer list to chrome-infra-auth and deleted it from the repo 2015-09-02 13:37:54 -07:00
DEPS Roll skia/third_party/externals/angle2/ 8efd1268e..c0db9adde (2 commits) 2018-02-01 15:49:43 +00:00
Doxyfile Make the housekeeper upload doxygen to a newer bucket 2016-10-04 13:23:57 -07:00
LICENSE BUG=skia:5602 2016-09-02 11:19:34 -07:00
OWNERS add OWNERS file 2017-12-01 19:50:19 +00:00
PRESUBMIT.py Skip AUTHORS check for Skia service accounts 2018-01-02 18:47:01 +00:00
public.bzl Revert "remove third_party/etc1" 2018-01-26 22:41:35 +00:00
README
README.chromium Update README.chromium. 2015-06-11 13:19:24 -07:00
whitespace.txt Verify Status is showing new commits. 2018-01-22 22:55:36 +00:00

Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.

See full details, and build instructions, at https://skia.org.