mtklein [Fri, 22 Jan 2016 19:51:40 +0000 (11:51 -0800)]
Revert of de-proc sk_float_rsqrt (patchset #3 id:40001 of https://codereview.chromium.org/
1616013003/ )
Reason for revert:
This is somehow blocking the Google3 roll in ways neither Ben nor I understand. Precautionary revert... will try again Monday.
Original issue's description:
> de-proc sk_float_rsqrt
>
> This is the first of many little baby steps to have us stop runtime-detecting NEON.
>
> BUG=skia:
> GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1616013003
> CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot
>
> Committed: https://skia.googlesource.com/skia/+/
efcc125acd2d71eb077caf6db65fdd6b9eb1dc0d
TBR=reed@google.com,mtklein@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:
Review URL: https://codereview.chromium.org/
1629503002
fmalita [Fri, 22 Jan 2016 19:45:39 +0000 (11:45 -0800)]
Anisotropic mipmap fixes
1) when selecting a level scale, use max(scaleX, scaleY) instead of
current sqrt(scaleX * scaleY)
2) track and apply non-uniform fixup scales
R=reed@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1617183004
Review URL: https://codereview.chromium.org/
1617183004
joshualitt [Fri, 22 Jan 2016 19:21:43 +0000 (11:21 -0800)]
First rough draft of skiaserve
Please excuse the mess while we iterate
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1621753002
Review URL: https://codereview.chromium.org/
1621753002
joshualitt [Fri, 22 Jan 2016 19:17:46 +0000 (11:17 -0800)]
Update deps to pull microhttpd
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1620813004
Review URL: https://codereview.chromium.org/
1620813004
reed [Fri, 22 Jan 2016 18:35:26 +0000 (10:35 -0800)]
add GM to exercise duplicate color-stops
BUG=skia:4841
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1620423002
TBR=
Review URL: https://codereview.chromium.org/
1620423002
herb [Fri, 22 Jan 2016 18:11:03 +0000 (10:11 -0800)]
Use nextafter instead of nexttoward to avoid using long double calculation.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1621453004
Review URL: https://codereview.chromium.org/
1621453004
msarett [Fri, 22 Jan 2016 17:54:21 +0000 (09:54 -0800)]
Use NEON optimizations for RGB -> RGB(FF) or BGR(FF) in SkSwizzler
Swizzle Bench Runtime Nexus 6P
xxx_xxxa 0.32x
xxx_swaprb_xxxa 0.31x
Swizzle Bench Runtime Nexus 9
xxx_xxxa 1.11x
xxx_swaprb_xxxa 1.14x
(This is a slow down.)
Swizzle Bench Runtime Nexus 5
xxx_xxxa 0.12x
xxx_swaprb 0.12x
RGB PNG Decode Runtime
Nexus 6P 0.94x
Nexus 9 0.98x
I don't know how to explain the fact that the Swizzle Bench was
slower on Nexus 9, but the decode times got faster.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1618003002
CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot
Review URL: https://codereview.chromium.org/
1618003002
mtklein [Fri, 22 Jan 2016 17:50:20 +0000 (09:50 -0800)]
try removing attribute((aligned(16))
CQ_EXTRA_TRYBOTS=client.skia:Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Release-Trybot
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1618873005
TBR=reed@google.com
Review URL: https://codereview.chromium.org/
1618873005
ethannicholas [Fri, 22 Jan 2016 17:45:47 +0000 (09:45 -0800)]
Revert of added support for PLS path rendering (patchset #16 id:360001 of https://codereview.chromium.org/
1541903002/ )
Reason for revert:
ASAN failure at src/gpu/GrXferProcessor.cpp:224
Original issue's description:
> added support for PLS path rendering
>
> BUG=skia:3555
> GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1541903002
>
> Committed: https://skia.googlesource.com/skia/+/
7df3f5e127f8016d17b637cc48a6a4718f1a6822
TBR=bsalomon@google.com,egdaniel@google.com,joshualitt@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:3555
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1626553002
Review URL: https://codereview.chromium.org/
1626553002
benjaminwagner [Fri, 22 Jan 2016 17:45:14 +0000 (09:45 -0800)]
Add SK_SUPPORT_LEGACY_DRAWFILTER guard around calls to SkCanvas::(get|set)DrawFilter.
Fixes Google3 dm build. (Can't enable SK_INTERNAL for Google3 dm without enabling it for all dependents.)
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1626543002
Review URL: https://codereview.chromium.org/
1626543002
rmistry [Fri, 22 Jan 2016 16:57:41 +0000 (08:57 -0800)]
Revert of whitespace change to test bugdroid (patchset #1 id:1 of https://codereview.chromium.org/
1625503002/ )
Reason for revert:
one more test
Original issue's description:
> whitespace change to test bugdroid
>
> NOTRY=true
> TBR=
> BUG=skia:4814
> GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1625503002
>
> Committed: https://skia.googlesource.com/skia/+/
aed5717afddce200b3de88d8dde5252068b131c8
TBR=
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:4814
Review URL: https://codereview.chromium.org/
1626533002
mtklein [Fri, 22 Jan 2016 16:49:26 +0000 (08:49 -0800)]
de-proc sk_float_rsqrt
This is the first of many little baby steps to have us stop runtime-detecting NEON.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1616013003
CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot
Review URL: https://codereview.chromium.org/
1616013003
rmistry [Fri, 22 Jan 2016 16:49:20 +0000 (08:49 -0800)]
whitespace change to test bugdroid
NOTRY=true
TBR=
BUG=skia:4814
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1625503002
Review URL: https://codereview.chromium.org/
1625503002
herb [Fri, 22 Jan 2016 16:34:35 +0000 (08:34 -0800)]
Fix bounds of checking if a radii are too long for a side.
BUG=skia:4692,skia:4413
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1617763003
Review URL: https://codereview.chromium.org/
1617763003
mtklein [Fri, 22 Jan 2016 16:18:14 +0000 (08:18 -0800)]
DM: dump a zero-results .json file right at startup.
This way, if DM runs, the file will be there, even if it crashes before the
first time we'd ordinarily write out the file (currently, any time
the number of tasks remaining to do becomes evenly divisible by 500).
BUG=skia:4839
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1626493002
Review URL: https://codereview.chromium.org/
1626493002
bsalomon [Fri, 22 Jan 2016 16:16:09 +0000 (08:16 -0800)]
Add ability to query read pixels support without a render target.
Add more checks to onGetReadPixelsInfo.
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1615023003
Review URL: https://codereview.chromium.org/
1615023003
mtklein [Fri, 22 Jan 2016 15:54:08 +0000 (07:54 -0800)]
SkBSwap32
Seems handy.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1619923002
Review URL: https://codereview.chromium.org/
1619923002
mtklein [Fri, 22 Jan 2016 15:42:53 +0000 (07:42 -0800)]
Refactor swizzle names and types.
- Plant a flag to say "pretend all the inputs are RGBA".
This is how libpng thinks.
This is the opposite of what the implementation had been doing,
so I've rearranged everything to reflect the new orientation.
- Rewrite the names to be less mysterious looking. No more Xs.
- Make the src type uniformly const void*, to allow for 888 (RGB) srcs.
This should be performance and pixel neutral. (Please revert if it's not.)
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1626463002
CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot
Review URL: https://codereview.chromium.org/
1626463002
bsalomon [Fri, 22 Jan 2016 15:17:34 +0000 (07:17 -0800)]
Make swizzling in read/write pixel copy code more generic
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1617433002
Review URL: https://codereview.chromium.org/
1617433002
scroggo [Fri, 22 Jan 2016 14:58:27 +0000 (06:58 -0800)]
Update libwebp to version 0.5.0
This is the version used by Android.
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1601253003
Review URL: https://codereview.chromium.org/
1601253003
robertphillips [Fri, 22 Jan 2016 14:53:57 +0000 (06:53 -0800)]
Revert of Add gpu implementation of OverdrawXfermode (patchset #6 id:100001 of https://codereview.chromium.org/
1607253002/ )
Reason for revert:
Overdraw Xfer mode using new fangled glsl features
Original issue's description:
> Add gpu implementation of OverdrawXfermode
> GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1607253002
>
> Committed: https://skia.googlesource.com/skia/+/
8bc3cf88bbf5e5d5724356f076931bb70a6117ba
TBR=egdaniel@google.com
# Not skipping CQ checks because original CL landed more than 1 days ago.
Review URL: https://codereview.chromium.org/
1626443002
djsollen [Fri, 22 Jan 2016 14:50:25 +0000 (06:50 -0800)]
Revert of Consolidate SK_CRASH and sk_throw into SK_ABORT (patchset #5 id:80001 of https://codereview.chromium.org/
1610823002/ )
Reason for revert:
Chrome is calling SK_CRASH
Original issue's description:
> Consolidate SK_CRASH and sk_throw into SK_ABORT
> GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1610823002
>
> Committed: https://skia.googlesource.com/skia/+/
4c5cd7d527ed29aabfa72aa47b23a4496eeda357
TBR=reed@google.com
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
Review URL: https://codereview.chromium.org/
1620333002
ethannicholas [Fri, 22 Jan 2016 14:48:46 +0000 (06:48 -0800)]
added support for PLS path rendering
BUG=skia:3555
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1541903002
Review URL: https://codereview.chromium.org/
1541903002
joshualitt [Fri, 22 Jan 2016 14:08:48 +0000 (06:08 -0800)]
Fix GrAtlasTextBlob bounds management
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1605013002
Committed: https://skia.googlesource.com/skia/+/
ae473fdfc3db2d9dd82b05b2568767d6d4038fcd
Review URL: https://codereview.chromium.org/
1605013002
djsollen [Fri, 22 Jan 2016 14:04:55 +0000 (06:04 -0800)]
Consolidate SK_CRASH and sk_throw into SK_ABORT
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1610823002
Review URL: https://codereview.chromium.org/
1610823002
reed [Fri, 22 Jan 2016 09:04:29 +0000 (01:04 -0800)]
Revert[2] of float color components
This reverts commit
2a2bdc698460c38ac9e24ba4abdeefec67bcba37.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1622483002
TBR=
NOTRY=True
Test-Ubuntu-GCC-ShuttleA-GPU-GTX660-x86_64-Release-Trybot seems wicked slow
Review URL: https://codereview.chromium.org/
1622483002
reed [Fri, 22 Jan 2016 08:04:30 +0000 (00:04 -0800)]
Revert of experiment: float color components (patchset #6 id:100001 of https://codereview.chromium.org/
1617813002/ )
Reason for revert:
broke some colormatrix tests
Original issue's description:
> experiment: float color components
>
> BUG=skia:
> GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1617813002
>
> Committed: https://skia.googlesource.com/skia/+/
353c148d8e8c9031daca34c6f9d6bcc6f08706c7
TBR=fmalita@chromium.org,mtklein@google.com,herb@google.com
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:
Review URL: https://codereview.chromium.org/
1623453002
fmalita [Fri, 22 Jan 2016 02:47:11 +0000 (18:47 -0800)]
Hide SkCanvas::{set,get}DrawFilter
Except for Android, which still makes use of it.
BUG=skia:3587
R=reed@google.com,djsollen@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1618843002
Review URL: https://codereview.chromium.org/
1618843002
reed [Thu, 21 Jan 2016 23:29:10 +0000 (15:29 -0800)]
experiment: float color components
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1617813002
Review URL: https://codereview.chromium.org/
1617813002
egdaniel [Thu, 21 Jan 2016 23:21:48 +0000 (15:21 -0800)]
Add setter for GrGLSLShaderVar layout qualifier
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1611423002
Review URL: https://codereview.chromium.org/
1611423002
Ben Wagner [Thu, 21 Jan 2016 22:38:13 +0000 (17:38 -0500)]
Fix CMake build on Mac.
mtklein [Thu, 21 Jan 2016 22:24:10 +0000 (14:24 -0800)]
Stop testing builds with runtime-detected NEON
O frabjous day!
Chrome has switched on requiring NEON globally at head.
Android has always built with NEON as appropriate for each device.
In practice, this switches our Nexus 5 bots from runtime-detected to
building with NEON globally. It also lines a few columns up and makes
equivalent aliases more obviously the same.
We still have Build bots to test we can build on ARMv7 with no NEON. (We even have Build bots to test building ARMv6.)
(It looks like that buildbot_spec.json just hasn't been updated in a while.)
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1612753002
CQ_EXTRA_TRYBOTS=client.skia.android:Perf-Android-GCC-Nexus5-CPU-NEON-Arm7-Release-Trybot,Test-Android-GCC-Nexus5-CPU-NEON-Arm7-Debug-Trybot,Test-Android-GCC-Nexus5-CPU-NEON-Arm7-Release-Trybot
Review URL: https://codereview.chromium.org/
1612753002
bungeman [Thu, 21 Jan 2016 22:17:47 +0000 (14:17 -0800)]
Expose API for gx font variation axes.
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1590223003
Review URL: https://codereview.chromium.org/
1590223003
halcanary [Thu, 21 Jan 2016 22:15:10 +0000 (14:15 -0800)]
SkValue: SkXfermode
Implement:
template<> SkValue SkToValue<SkXfermode>(const SkXfermode*);
template<> bool SkFromValue<SkXfermode*>(const SkValue&, SkXfermode**);
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1585813004
NOTRY=true
Review URL: https://codereview.chromium.org/
1585813004
egdaniel [Thu, 21 Jan 2016 19:19:52 +0000 (11:19 -0800)]
Add ability to add general layout qualifiers GrGLSLShaderVar
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1610853002
Review URL: https://codereview.chromium.org/
1610853002
msarett [Thu, 21 Jan 2016 17:59:38 +0000 (09:59 -0800)]
Use fActualProc to choose fFastProc or fSlowProc in SkSwizzler
(1) We will now (correctly) choose fFastProc if the client
calls setSampleX(1).
(2) The logic to choose between fFastProc and fSlowProc
is now performed once, rather than every time we call
swizzle().
(3) This will be easier to extend when we add
fFastSampleProcs for different sample sizes.
This comes from Leon's suggestion in:
https://codereview.chromium.org/
1582083005
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1616753003
Review URL: https://codereview.chromium.org/
1616753003
senorblanco [Thu, 21 Jan 2016 17:55:47 +0000 (09:55 -0800)]
Fix bounds computations for SkDisplacementMapEffect with negative scale.
BUG=skia:4835
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1616663003
Review URL: https://codereview.chromium.org/
1616663003
mtklein [Thu, 21 Jan 2016 17:39:35 +0000 (09:39 -0800)]
DM: dump images for task failures too (but not skipped tasks)
This will get us back to uploading things like serialize-8888 mismatches.
BUG=skia:4806
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1614443002
Review URL: https://codereview.chromium.org/
1614443002
scroggo [Thu, 21 Jan 2016 17:32:58 +0000 (09:32 -0800)]
Add version number to images tested in DM
BUG=skia:4558
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1619493003
Review URL: https://codereview.chromium.org/
1619493003
mtklein [Thu, 21 Jan 2016 17:25:32 +0000 (09:25 -0800)]
Demo fuzz for Herb
BUG=skia:4692
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1611293002
Review URL: https://codereview.chromium.org/
1611293002
robertphillips [Thu, 21 Jan 2016 17:05:32 +0000 (09:05 -0800)]
Add Lua SkXfermode skp scraping support
This is to answer the question of do any of our skps have SkLerpXfermodes. AFAICT they should not so this is just to verify.
The only controversial part of this is the addition of 'getLuaName' to SkXfermode
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1614923002
Review URL: https://codereview.chromium.org/
1614923002
msarett [Thu, 21 Jan 2016 17:05:23 +0000 (09:05 -0800)]
Rename SkCodec_libpng to SkPngCodec
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1613043003
Review URL: https://codereview.chromium.org/
1613043003
bungeman [Thu, 21 Jan 2016 16:18:42 +0000 (08:18 -0800)]
Implement onMatchFamilyStyle for Mac.
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1612653002
Review URL: https://codereview.chromium.org/
1612653002
caryclark [Thu, 21 Jan 2016 15:07:02 +0000 (07:07 -0800)]
resolution dependent path measure
When a dash is drawn through a canvas with a scaled up
matrix, path measure needs the pixel resolution through
the matrix to construct the dash with sufficient
resolution.
Pass the resolution through to path measure.
Replicate chrome bug in skia GM.
R=reed@google.com
BUG=530095
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1608353002
Review URL: https://codereview.chromium.org/
1608353002
caryclark [Thu, 21 Jan 2016 14:54:46 +0000 (06:54 -0800)]
fix skp fuzz
R=kjlubick@google.com
BUG=skia:4816
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1617033002
Review URL: https://codereview.chromium.org/
1617033002
senorblanco [Thu, 21 Jan 2016 14:49:15 +0000 (06:49 -0800)]
Remove SK_SUPPORT_SRC_BOUNDS_BLOAT_FOR_IMAGEFILTERS (now unused).
BUG=skia:3194
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1616503002
Review URL: https://codereview.chromium.org/
1616503002
reed [Thu, 21 Jan 2016 14:44:18 +0000 (06:44 -0800)]
detect bad/corrupt flattenable factory indices
BUG=skia:4814
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1615883002
Review URL: https://codereview.chromium.org/
1615883002
bsalomon [Thu, 21 Jan 2016 14:44:08 +0000 (06:44 -0800)]
Make colorimagefilter GM not crash when resource path not specified
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1619723002
BUG=skia:
Review URL: https://codereview.chromium.org/
1619723002
mtklein [Thu, 21 Jan 2016 14:13:52 +0000 (06:13 -0800)]
fuzz: list API fuzzing options if -t api and -n matches nothing.
Today we segfault if --name is empty. This fixes that too.
This updates some terms: -t api lets us fuzz an API.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1617713003
Review URL: https://codereview.chromium.org/
1617713003
kjlubick [Thu, 21 Jan 2016 13:03:28 +0000 (05:03 -0800)]
Seperating our fuzzing binary from DM produces a 50x speed increase for decoding images and a 10x speed increase in decoding/rendering Skps.
This also lets us differentiate between the decoding of Skps and the rendering of them, the latter of which may be more interesting for bugs.
BUG=skia:4800
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1591073002
Review URL: https://codereview.chromium.org/
1591073002
reed [Thu, 21 Jan 2016 12:33:07 +0000 (04:33 -0800)]
remove dead code around SK_SUPPORT_LEGACY_TRANSLATEROUNDHACK
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1611183002
TBR=
Review URL: https://codereview.chromium.org/
1611183002
joshualitt [Wed, 20 Jan 2016 21:54:28 +0000 (13:54 -0800)]
Revert of Fix GrAtlasTextBlob bounds management (patchset #8 id:140001 of https://codereview.chromium.org/
1605013002/ )
Reason for revert:
seems to break upright matrix
Original issue's description:
> Fix GrAtlasTextBlob bounds management
>
> BUG=skia:
> GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1605013002
>
> Committed: https://skia.googlesource.com/skia/+/
ae473fdfc3db2d9dd82b05b2568767d6d4038fcd
TBR=bsalomon@google.com,jvanverth@google.com,joshualitt@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:
Review URL: https://codereview.chromium.org/
1615473002
mtklein [Wed, 20 Jan 2016 21:35:20 +0000 (13:35 -0800)]
SkValue: improve SkFromValue<T> implementation
Add template<> bool SkFromValue<float>(const SkValue&, float*);
Refactor template<> bool SkFromValue<SkMatrix>(const SkValue&, SkMatrix*);
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1605093003
Review URL: https://codereview.chromium.org/
1605093003
joshualitt [Wed, 20 Jan 2016 21:09:12 +0000 (13:09 -0800)]
Revert to old behavior for swap buffers
New behavior is preserved with 'syncOrSwap' call
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1606883005
Review URL: https://codereview.chromium.org/
1606883005
joshualitt [Wed, 20 Jan 2016 20:35:22 +0000 (12:35 -0800)]
Fix GrAtlasTextBlob bounds management
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1605013002
Review URL: https://codereview.chromium.org/
1605013002
robertphillips [Wed, 20 Jan 2016 20:00:21 +0000 (12:00 -0800)]
Add gpu implementation of OverdrawXfermode
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1607253002
Review URL: https://codereview.chromium.org/
1607253002
mtklein [Wed, 20 Jan 2016 19:55:51 +0000 (11:55 -0800)]
SkNx miplevel building
All sizes approximately twice as fast.
Before:
micros bench
1649.35 mipmap_build_512x512 nonrendering
1824.42 mipmap_build_511x512 nonrendering
2100.66 ? mipmap_build_512x511 nonrendering
2375.94 mipmap_build_511x511 nonrendering
After:
micros bench
730.32 ! mipmap_build_512x512 nonrendering
922.12 mipmap_build_511x512 nonrendering
999.07 mipmap_build_512x511 nonrendering
1342.93 ! mipmap_build_511x511 nonrendering
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1606013003
CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot
Committed: https://skia.googlesource.com/skia/+/
3bd5aba2a0e165997f683cf3aa306661e71464f6
Review URL: https://codereview.chromium.org/
1606013003
caryclark [Wed, 20 Jan 2016 19:55:11 +0000 (11:55 -0800)]
replace arcto quads with a conic
also, remove code used only for
the quad generation
R=reed@google.com
BUG=578885
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1612543003
Review URL: https://codereview.chromium.org/
1612543003
fmalita [Wed, 20 Jan 2016 19:17:39 +0000 (11:17 -0800)]
Convert CanvasStateTest to the new saveLayer API
The test needs to still work when SK_SUPPORT_LEGACY_CLIPTOLAYERFLAG is
defined but SK_SUPPORT_LEGACY_SAVEFLAGS is not.
R=reed@google.com,robertphillips@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1610193002
Review URL: https://codereview.chromium.org/
1610193002
reed [Wed, 20 Jan 2016 19:04:40 +0000 (11:04 -0800)]
change kMedium_SkFilterQuality to never pop if we're scaling
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1605193002
Review URL: https://codereview.chromium.org/
1605193002
joshualitt [Wed, 20 Jan 2016 18:54:58 +0000 (10:54 -0800)]
add wait on fence without flush
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1610183002
Review URL: https://codereview.chromium.org/
1610183002
halcanary [Wed, 20 Jan 2016 18:00:26 +0000 (10:00 -0800)]
SkValue: implementation, unit test
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1604253002
Review URL: https://codereview.chromium.org/
1604253002
mtklein [Wed, 20 Jan 2016 17:53:59 +0000 (09:53 -0800)]
Make nanobench --outResultsFile only work with Release builds.
It is very, very misleading to report performance numbers for Debug builds.
This makes it impossible for us to upload them to perf.skia.org.
BUG=skia:4828
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1606323002
Review URL: https://codereview.chromium.org/
1606323002
fs [Wed, 20 Jan 2016 17:51:07 +0000 (09:51 -0800)]
Add SkPath::isLastContourClosed()
Adds a simple method for checking if the last command/verb in the
current contour is a 'close'.
This will simplify determining "closedness" for blink::Path, and aid
in the implementation of algorithms such as:
https://drafts.fxtf.org/motion-1/#motion-processing (second item in list)
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1601103006
Review URL: https://codereview.chromium.org/
1601103006
mtklein [Wed, 20 Jan 2016 16:46:40 +0000 (08:46 -0800)]
teach dump_record to recurse into subpictures
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1606293002
Review URL: https://codereview.chromium.org/
1606293002
mtklein [Wed, 20 Jan 2016 16:33:59 +0000 (08:33 -0800)]
Revert of SkNx miplevel building (patchset #3 id:40001 of https://codereview.chromium.org/
1606013003/ )
Reason for revert:
Paranoid revert to see if it helps skia:4823
Original issue's description:
> SkNx miplevel building
>
> All sizes approximately twice as fast.
>
> Before:
> micros bench
> 1649.35 mipmap_build_512x512 nonrendering
> 1824.42 mipmap_build_511x512 nonrendering
> 2100.66 ? mipmap_build_512x511 nonrendering
> 2375.94 mipmap_build_511x511 nonrendering
>
> After:
> micros bench
> 730.32 ! mipmap_build_512x512 nonrendering
> 922.12 mipmap_build_511x512 nonrendering
> 999.07 mipmap_build_512x511 nonrendering
> 1342.93 ! mipmap_build_511x511 nonrendering
>
>
> BUG=skia:
> GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1606013003
> CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot
>
> Committed: https://skia.googlesource.com/skia/+/
3bd5aba2a0e165997f683cf3aa306661e71464f6
TBR=reed@google.com,mtklein@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:
Review URL: https://codereview.chromium.org/
1607323002
reed [Wed, 20 Jan 2016 16:12:02 +0000 (08:12 -0800)]
remove fragile assert
The assert basically wants the following to always be true (but it aint)
floor(int + 0.5 + float) == floor(0.5 + float) + int
... where int + 0.5 happens first, and then we add the float.
BUG=skia:4825
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1609873003
Review URL: https://codereview.chromium.org/
1609873003
joshualitt [Wed, 20 Jan 2016 16:07:01 +0000 (08:07 -0800)]
Add ability to wire up sharelist in glcontext creation
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1604993005
Review URL: https://codereview.chromium.org/
1604993005
egdaniel [Wed, 20 Jan 2016 15:53:51 +0000 (07:53 -0800)]
Make GrGLProgramBuilder a local stack variable in CreateProgram
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1604313002
Review URL: https://codereview.chromium.org/
1604313002
caryclark [Wed, 20 Jan 2016 15:46:05 +0000 (07:46 -0800)]
add arc circle gap gm
The circle and arc don't line up because
the circle uses conics and arc uses
quadratics.
TBR=reed@google.com
BUG=578885
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1606263002
Review URL: https://codereview.chromium.org/
1606263002
joshualitt [Wed, 20 Jan 2016 14:48:47 +0000 (06:48 -0800)]
A few more small changes to make GrAtlasTextBlob nearly self contained
Note: There is still a bit of friendliness, but its going to require
some creativity to deal with.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1606943002
Review URL: https://codereview.chromium.org/
1606943002
joshualitt [Wed, 20 Jan 2016 14:36:09 +0000 (06:36 -0800)]
Move distance field text positioning into GrTextUtils
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1521633002
Review URL: https://codereview.chromium.org/
1521633002
bsalomon [Wed, 20 Jan 2016 14:18:10 +0000 (06:18 -0800)]
Texturing support for RECTANGLE textures.
Uses textureSize() to unnormalize texture coords when reading from a RECTANGLE texture. Because of this we also require a later GLSL version to use rectangle textures (1.40).
Note that this causes a issue with the bicubic effect. The texture coords seem to have poor precision and the result is ugly. textureSize() is intended as a workaround until effects can be updated to handle unnormalized coords themselves.
Updates places where we were looking for OpenGL version 3.2 for rectangle support. It was actually added in 3.1.
BUG=skia:3868
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1594483003
Review URL: https://codereview.chromium.org/
1594483003
mtklein [Wed, 20 Jan 2016 00:26:55 +0000 (16:26 -0800)]
Revert of sdf: use linear edge distance approximation for all gradient directions (patchset #1 id:1 of https://codereview.chromium.org/
1545893003/ )
Reason for revert:
breaks roll?
https://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/81753
Original issue's description:
> sdf: use linear edge distance approximation for all gradient directions
>
> Image diff tools tell me there are diffs, but I sure can't see them.
> This drops edge_distance() off the chart as far as CPU cost goes.
>
> BUG=skia:4729
> GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1545893003
>
> Committed: https://skia.googlesource.com/skia/+/
8a87bb4d5c23da83ef406ef87b470afa4217d7a4
TBR=jvanverth@google.com,bsalomon@google.com,reed@google.com,mtklein@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:4729
Review URL: https://codereview.chromium.org/
1603953005
hcm [Tue, 19 Jan 2016 21:57:27 +0000 (13:57 -0800)]
Fix patch check-in instructions for non-committers
BUG=skia:4681
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1606003003
NOTRY=true
DOCS_PREVIEW= https://skia.org/?cl=
1606003003
Review URL: https://codereview.chromium.org/
1606003003
reed [Tue, 19 Jan 2016 21:33:32 +0000 (13:33 -0800)]
don't preround in bitmap scaling setup
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1607853003
Review URL: https://codereview.chromium.org/
1607853003
msarett [Tue, 19 Jan 2016 21:17:58 +0000 (13:17 -0800)]
Add SSSE3 Optimizations for premul and swap
Improves deocde performance for RGBA pngs.
Swizzler Time on z620 (clang):
SwapPremul 0.24x
Premul 0.24x
Swap 0.37x
Decode Time on z620 (clang):
Premul ZeroInit Decodes 0.88x
Unpremul ZeroInit Decodes 0.94x
Premul Regular Decodes 0.91x
Unpremul Regular Decodes 0.98x
Swizzler Time in Dell Venue 8 (gcc):
SwapPremul 0.14x
Premul 0.14x
Swap 0.08x
Decode Time on Dell Venus 8 (gcc):
Premul ZeroInit Decodes 0.79x
Premul Regular Decodes 0.77x
Note:
ZeroInit means memory is zero initialized, and we do not write to
memory for large sections of zero pixels (memory use opt for Android).
BUG=skia:4767
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1601883002
CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot
Review URL: https://codereview.chromium.org/
1601883002
mtklein [Tue, 19 Jan 2016 20:42:49 +0000 (12:42 -0800)]
Valgrind is not a fan of uninitialized Src pixels.
E.g. search for ==31875== in this log:
https://uberchromegw.corp.google.com/i/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Valgrind/builds/774/steps/nanobench/logs/stdio
BUG=skia:4818
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1601093003
Review URL: https://codereview.chromium.org/
1601093003
mtklein [Tue, 19 Jan 2016 20:35:24 +0000 (12:35 -0800)]
sdf: use linear edge distance approximation for all gradient directions
Image diff tools tell me there are diffs, but I sure can't see them.
This drops edge_distance() off the chart as far as CPU cost goes.
BUG=skia:4729
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1545893003
Review URL: https://codereview.chromium.org/
1545893003
mtklein [Tue, 19 Jan 2016 20:20:01 +0000 (12:20 -0800)]
SkNx miplevel building
All sizes approximately twice as fast.
Before:
micros bench
1649.35 mipmap_build_512x512 nonrendering
1824.42 mipmap_build_511x512 nonrendering
2100.66 ? mipmap_build_512x511 nonrendering
2375.94 mipmap_build_511x511 nonrendering
After:
micros bench
730.32 ! mipmap_build_512x512 nonrendering
922.12 mipmap_build_511x512 nonrendering
999.07 mipmap_build_512x511 nonrendering
1342.93 ! mipmap_build_511x511 nonrendering
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1606013003
CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot
Review URL: https://codereview.chromium.org/
1606013003
msarett [Tue, 19 Jan 2016 18:40:12 +0000 (10:40 -0800)]
Clean up unused or overly complex modes in SkSwizzler
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1582083005
Review URL: https://codereview.chromium.org/
1582083005
caryclark [Tue, 19 Jan 2016 17:57:16 +0000 (09:57 -0800)]
exclude new function from legacy code path
hopefully fixes the broken roll
TBR=dogben@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1605023002
Review URL: https://codereview.chromium.org/
1605023002
benjaminwagner [Tue, 19 Jan 2016 17:50:17 +0000 (09:50 -0800)]
Revert of Update libwebp to version 0.5.0 (patchset #2 id:20001 of https://codereview.chromium.org/
1601253003/ )
Reason for revert:
Seems to be causing bots to fail:
https://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-Arm7-Release-Android_NoNeon/builds/4032
https://build.chromium.org/p/client.skia.android/builders/Perf-Android-GCC-Nexus5-CPU-NEON-Arm7-Release/builds/3239
https://build.chromium.org/p/client.skia.android/builders/Perf-Android-GCC-Nexus5-GPU-Adreno330-Arm7-Release/builds/1887
https://build.chromium.org/p/client.skia.fyi/builders/Perf-Android-GCC-Nexus5-GPU-Adreno330-Arm7-Release-Appurify/builds/2075
https://build.chromium.org/p/client.skia.android/builders/Test-Android-GCC-Nexus5-CPU-NEON-Arm7-Debug/builds/2136
https://build.chromium.org/p/client.skia.android/builders/Test-Android-GCC-Nexus5-CPU-NEON-Arm7-Release/builds/3850
https://build.chromium.org/p/client.skia.android/builders/Test-Android-GCC-Nexus5-GPU-Adreno330-Arm7-Debug/builds/2078
https://build.chromium.org/p/client.skia.android/builders/Test-Android-GCC-Nexus5-GPU-Adreno330-Arm7-Release/builds/2000
https://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-Arm7-Debug-Android_NoNeon/builds/4098
Original issue's description:
> Update libwebp to version 0.5.0
>
> This is the version used by Android.
> GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1601253003
>
> Committed: https://skia.googlesource.com/skia/+/
fe35455210294c3d9de9d0d9534743acfade523d
TBR=msarett@google.com,scroggo@google.com
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
Review URL: https://codereview.chromium.org/
1601083004
scroggo [Tue, 19 Jan 2016 16:54:18 +0000 (08:54 -0800)]
Update libwebp to version 0.5.0
This is the version used by Android.
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1601253003
Review URL: https://codereview.chromium.org/
1601253003
senorblanco [Tue, 19 Jan 2016 16:50:18 +0000 (08:50 -0800)]
Fix SkAlphaThresholdFilter bounds handling.
SkAlphaThresholdFilter was always allocating a mask texture
of the same size as the source texture. In addition to
potentially wasting VRAM, this could cause the mask to be
offset from the source texture, if the resulting bounds
were a different size than the source texture.
The fix is to allocate a mask texture only as large as the
bounds, and to offset it to the bounds origin on draw.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1609573002
Review URL: https://codereview.chromium.org/
1609573002
caryclark [Tue, 19 Jan 2016 16:07:49 +0000 (08:07 -0800)]
fix circular dashing
Path measure cannot use the same code approach for quadratics
and cubics. Subdividing cubics repeatedly does not result in
subdivided t values, e.g. a quarter circle cubic divided in
half twice does not have a t value equivalent to 1/4.
Instead, always compute the cubic segment from a pair of
t values.
When finding the length of the cubic through recursive measures,
it is enough to carry the point at a given t to the next
subdivision.
(Chrome suppression has landed already.)
R=reed@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1602153002
Review URL: https://codereview.chromium.org/
1602153002
scroggo [Tue, 19 Jan 2016 15:53:39 +0000 (07:53 -0800)]
SkStream/Priv cleanups
Replace all callers of SkCopyStreamToStorage with SkCopyStreamToData,
which is simpler and does the same thing.
Remove SkStreamRewindableFromSkStream, which is unused.
BUG=skia:4788
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1604963002
Review URL: https://codereview.chromium.org/
1604963002
joshualitt [Tue, 19 Jan 2016 14:59:29 +0000 (06:59 -0800)]
This CL moves a bit more logic into GrAtlasTextBlob
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1516943004
Review URL: https://codereview.chromium.org/
1516943004
kkinnunen [Mon, 18 Jan 2016 09:18:34 +0000 (01:18 -0800)]
SampleApp: Remove SkWindow::setColorType
Remove SkWindow::setColorType, it is used wrong and inconsistently.
The color type is actually property of window backbuffer, used when the
window is painted with software. This is as opposed to a generic window
property that would affect all operation.
Similar to MSAA sample count for window GPU backbuffer, the bitmap
backbuffer color type should be a parameter of "attach" or "create
window" functions, should this property ever be added back.
The apps use the call wrong, setting the type as kRGBA_8888
or kBGRRA_8888 without no apparent rationale. These color types
are incorrect, as the raster surface can not work with these.
Reorganize the SkWindow::resize, since no change in SkWindow backbuffer size does not neccessarily mean that SkView would not need the call.
Do not show the sw backbuffer color type in SampleApp title, as
it does not really provide any information. On small screens,
kBGRA_8888_ColorType fills up the whole title.
BUG=skia:4733
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1595503002
Review URL: https://codereview.chromium.org/
1595503002
kkinnunen [Mon, 18 Jan 2016 08:47:14 +0000 (00:47 -0800)]
SampleApp: remove SkWindow::onPDFSaved, it does not work
Remove SkWindow::onPDFSaved, it does not work and it is not used anymore.
Also, it is very SampleApp -specific feature implemented in SkWindow class.
SkWindow class is probably intended to be more app-agnosting than
what this method implies.
Presumably the idea of the callback was to inform the user of
SampleApp that the PDF was saved to a certain location.
For Android SampleApp, show a hardcoded toast that the PDF was saved to
/sdcard.
BUG=skia:4733
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1547923002
Review URL: https://codereview.chromium.org/
1547923002
reed [Sun, 17 Jan 2016 22:16:12 +0000 (14:16 -0800)]
remove SK_SUPPORT_LEGACY_MIPLEVEL_BUILDER code
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1599133002
TBR=
Review URL: https://codereview.chromium.org/
1599133002
update-skps [Sun, 17 Jan 2016 08:54:04 +0000 (00:54 -0800)]
Update SKP version
Automatic commit by the RecreateSKPs bot.
TBR=
NO_MERGE_BUILDS
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1593713008
Review URL: https://codereview.chromium.org/
1593713008
reed [Sun, 17 Jan 2016 02:50:35 +0000 (18:50 -0800)]
use pixmaps in mipmap api
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1598803002
Review URL: https://codereview.chromium.org/
1598803002
reed [Sat, 16 Jan 2016 20:44:12 +0000 (12:44 -0800)]
remove SkDebugUtils.h -- unused
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1585553002
Review URL: https://codereview.chromium.org/
1585553002
reed [Sat, 16 Jan 2016 17:23:48 +0000 (09:23 -0800)]
speedup mip builders
1. push the inner-loop into the procs
2. for the 3x3 and 3x2 cases, skip the redundant horizontal read/expand
Some before/after timings (unfortunately there's a lot of variance) -- on MacBook Air
Before
9/9 MB 1 1.45ms 1.65ms 1.92ms 2.93ms 31% ▂█▂▁▁▁▂█▆▂ nonrendering mipmap_build_512x512
9/9 MB 1 1.85ms 2.33ms 2.47ms 3.69ms 28% ▃██▄▃▂▁▂▁▁ nonrendering mipmap_build_511x512
9/9 MB 1 2.15ms 2.21ms 2.37ms 3.28ms 15% █▂▂▁▁▁▁▅▁▁ nonrendering mipmap_build_512x511
9/9 MB 1 2.74ms 3.9ms 4.03ms 5.89ms 25% ▄▂▃▄█▂▁▂▇▅ nonrendering mipmap_build_511x511
After
10/10 MB 1 1.08ms 1.09ms 1.1ms 1.18ms 3% ▁▁▁▁▁▁▁█▃▁ nonrendering mipmap_build_512x512
10/10 MB 1 1.22ms 1.44ms 1.66ms 2.83ms 30% ▂▂▄▁▁▃█▅▂▁ nonrendering mipmap_build_511x512
10/10 MB 1 1.45ms 1.91ms 2.04ms 3.75ms 36% ▁▁▁▃▅█▃▂▂▂ nonrendering mipmap_build_512x511
10/10 MB 1 1.7ms 1.7ms 1.81ms 2.41ms 13% █▁▁▁▁▁▁▁▁▄ nonrendering mipmap_build_511x511
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1593073002
Review URL: https://codereview.chromium.org/
1593073002
reed [Sat, 16 Jan 2016 02:47:38 +0000 (18:47 -0800)]
update mipbuilder bench to exercise all 4 procs
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1594533005
TBR=
Review URL: https://codereview.chromium.org/
1594533005
reed [Fri, 15 Jan 2016 21:17:08 +0000 (13:17 -0800)]
use triangle filter for odd dimensions in mip-levels
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1592473002
Review URL: https://codereview.chromium.org/
1592473002
mtklein [Fri, 15 Jan 2016 20:16:40 +0000 (12:16 -0800)]
add SkNx::abs(), for now only implemented for Sk4f
There's no reason we couldn't implement this for all ints and floats;
just don't want to land unused code.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1590843003
CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot
Review URL: https://codereview.chromium.org/
1590843003
joshualitt [Fri, 15 Jan 2016 20:07:39 +0000 (12:07 -0800)]
Modify kilobench to run each sample in its own process
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1594553003
Review URL: https://codereview.chromium.org/
1594553003
egdaniel [Fri, 15 Jan 2016 19:36:18 +0000 (11:36 -0800)]
Differentiate maxColorSamples and maxStencilSamples in GrCaps
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=
1592803002
Review URL: https://codereview.chromium.org/
1592803002