Go to file
Mike Klein 47cf048abe Revert "alternate approach to unpremul scalePixels()"
This reverts commit c4616804bb.

Reason for revert: screwed up the guard I think

Original change's description:
> alternate approach to unpremul scalePixels()
> 
> We want to keep the clamps in SkImageShader, and keep unpremul
> scalePixels() happy too.
> 
> So we extend SkImageShader's internal API to allow specifying an output
> alpha type, which controls whether we premul or unpremul and how we
> clamp.  scalePixels() uses this to draw instead of a drawBitmap() call.
> 
> Sort of backwards of usual, we opt our local builds into
> SK_LEGACY_HIGH_QUALITY_SCALING_CLAMP (and Google3 is already defining
> this).  Then to rebase Chromium we will _define_ this in Chromium's user
> config, fold it through as if always defined in Skia, then finally
> remove the definition from Chromium's user config.
> 
> Change-Id: I38035f0886f79700e7301c3c6042ce362c771d96
> Reviewed-on: https://skia-review.googlesource.com/90480
> Reviewed-by: Brian Osman <brianosman@google.com>
> Commit-Queue: Mike Klein <mtklein@chromium.org>

TBR=mtklein@chromium.org,mtklein@google.com,brianosman@google.com,reed@google.com

Change-Id: Ib53a7f29c25310b667f9a61f67f8638403ec9da3
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/106220
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Mike Klein <mtklein@chromium.org>
2018-02-09 18:58:02 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench Move control of explicit GPU resource allocation to GrContextOptions 2018-02-08 12:36:29 +00:00
bin fetch-clang-format: better error checking 2018-01-22 20:33:49 +00:00
debugger Revert "Revert "Revert "Revert "Revert "Revert "Redefine the meaning of sample counts in GPU backend."""""" 2018-02-03 01:59:59 +00:00
dm Revert "Revert "Revert "Revert "Revert "Revert "Redefine the meaning of sample counts in GPU backend."""""" 2018-02-03 01:59:59 +00:00
docs Revert "Revert "Remove SkImage deferred texture image data APIs."" 2018-02-09 14:19:51 +00:00
example Revert "Revert "Revert "Revert "Revert "Revert "Redefine the meaning of sample counts in GPU backend."""""" 2018-02-03 01:59:59 +00:00
experimental Delete GLFWTest 2018-02-08 22:45:20 +00:00
fuzz Break some fuzzer targets out so oss-fuzz can use them 2018-02-09 14:37:41 +00:00
gm Revert "Revert "Remove SkImage deferred texture image data APIs."" 2018-02-09 14:19:51 +00:00
gn Create sksl_enums.inc with UNIX line endings (even on Windows) 2018-02-09 15:13:11 +00:00
include When querying mipmapped on proxies return targets state if possible 2018-02-09 16:14:51 +00:00
infra Upgrade Mac bots. 2018-02-09 17:39:31 +00:00
platform_tools Remove ConstraintLayout from skqp app 2018-02-06 18:59:55 +00:00
resources Make SkAndroidCodec (optionally) respect origin 2018-01-26 22:13:34 +00:00
samplecode Revert "use SkShaper instead of SkTextBox" 2018-02-09 03:38:31 +00:00
site Order the API reference. 2018-02-09 17:11:41 +00:00
src Revert "alternate approach to unpremul scalePixels()" 2018-02-09 18:58:02 +00:00
tests Revert "Revert "Remove SkImage deferred texture image data APIs."" 2018-02-09 14:19:51 +00:00
third_party ICU on windows 2018-02-08 19:36:49 +00:00
tools [skottie] Fix viewer slide sizing on Android 2018-02-09 16:40:41 +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 Add link annotation support to SkSVGDevice. 2018-02-06 23:35:16 +00:00
BUILD.gn Revert "alternate approach to unpremul scalePixels()" 2018-02-09 18:58:02 +00:00
codereview.settings Make uploading to Gerrit the default for Skia 2016-11-09 19:07:56 +00:00
CONTRIBUTING Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
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/skcms/ 5884a65a6..88dee8ac3 (1 commit) 2018-02-09 16:24:51 +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 Remove unused SkpSkGrTest.cpp 2018-02-08 15:05:44 +00:00
README Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
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.