Go to file
Mike Klein c4616804bb 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>
2018-02-09 14:09:01 +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 working on SkImage docs 2018-02-08 20:09: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 Reland "remove SkCanvas::kIsOpaque_SaveLayerFlag" 2018-02-07 18:18:52 +00:00
gm Cleanup of large text rendering, take 2. 2018-02-08 22:42:40 +00:00
gn Remove unused class GrDDLGpu 2018-02-08 20:02:40 +00:00
include Remove EXT_direct_state_access (unused) 2018-02-09 13:51:19 +00:00
infra Use the right keys in trigger_wait_ac_task.py 2018-02-09 12:51:59 +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 Update markdown files 2018-02-09 13:34:19 +00:00
src alternate approach to unpremul scalePixels() 2018-02-09 14:09:01 +00:00
tests Make non-ddl lazy proxys clean-up and delete their callbacks immediately after instanstation. 2018-02-08 20:33:40 +00:00
third_party ICU on windows 2018-02-08 19:36:49 +00:00
tools working on SkImage docs 2018-02-08 20:09:51 +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 alternate approach to unpremul scalePixels() 2018-02-09 14:09:01 +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/angle2/ da91c9a6d..3e520b6f4 (4 commits) 2018-02-09 12:58:49 +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.