Commit Graph

45829 Commits

Author SHA1 Message Date
Brian Salomon
5c60b751c7 Simplify proxy functionally exact check.
Now we know ahead of time what size approx textures will use when they're
allocated.

Change-Id: I9e15140496d15e7d6933aa03d0215222ac3b5be5
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/260040
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
2019-12-16 19:40:41 +00:00
Robert Phillips
df6c734253 Add GrCaps::getConfigFromCompressedBackendFormat
When wrapping a backend texture we currently need to derive a GrPixelConfig from the backend format. The normal caps method (i.e., getConfigFromBackendFormat) is inappropriate for the compressed backend texture use case.

Bug: skia:9680
Change-Id: Ic4de7550c9a11f6e6207374c27d0ea23b8ab1575
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/260044
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
2019-12-16 19:19:11 +00:00
Chris Dalton
77912983a3 Include line numbers in Viewer's shader error windows
Change-Id: I83bea6e9c94431afba858b0e7b60456e8f9a2176
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/260356
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
2019-12-16 19:08:11 +00:00
Brian Osman
2fe83fed94 Runtime SkSL: Disallow 'when', 'tracked', 'key', 'ctype'
'key' was already disallowed later in the process, this catches it
earlier. The others are all unnecessary complications (and 'when' and
'tracked' weren't actually doing anything).

Change-Id: I39b4f0da73a7a12793484eb90decadc9c94b5693
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/260281
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2019-12-16 18:55:41 +00:00
Robert Phillips
42716d4b4b Expand GrGpu::BackendTextureData to include compressed data
This will allow us to funnel compressed texture data back to the GPU-specific backend texture creation point(s).

Bug: skia:9680
Change-Id: I83a8ad0279c02aa4044b29fbce1d6ee1fcd9b784
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/260039
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
2019-12-16 18:44:11 +00:00
Chris Dalton
ce425afaf5 Add a "conservative raster" flag to GrPipeline
Change-Id: I20c9223e06cd48568f26fde19e2d768f044a00cf
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/260312
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
2019-12-16 18:24:00 +00:00
Hal Canary
efb4ed86cf SkMetalDeviceToGrContext: no longer needs any Skia headers
Also: mv experimental/skottie_ios tools/skottie_ios_app

Motivation:  make using SkMetalViewBridge that much easier for clients.

Change-Id: I985930ae0751d218e89c48c57b69d85ad7a1e703
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/259279
Reviewed-by: Hal Canary <halcanary@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
2019-12-16 18:09:40 +00:00
Robert Phillips
d6df7b55a5 Switch GrCaps::isFormatCompressed virtual to be 'compressionType'
Most call sites really only want the Boolean so I also added an isFormatCompressed helper.

Change-Id: I77f16033b69bc99329344201d2c85599d60cb757
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/259168
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
2019-12-16 18:00:00 +00:00
Herb Derby
56c03da534 Have the fuzzer init the SkDescriptor
Bug: oss-fuzz:18514

Change-Id: Ifd43f0051d29885b2dad6545efb60635347e7694
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/260282
Commit-Queue: Herb Derby <herb@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
Auto-Submit: Herb Derby <herb@google.com>
Reviewed-by: Kevin Lubick <kjlubick@google.com>
2019-12-16 17:36:30 +00:00
Robert Phillips
e84bffc746 Fix DDL bots
This fixes the proximal issue w/ the new DDL images. The underlying issue appears to be that the GIF decoder isn't available on all platforms.

Change-Id: I117b6460e09b2c7815d84929a340579690c15945
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/260276
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
2019-12-16 17:13:00 +00:00
Shachar Langbeheim
07c4e1da31 remove use_PIC.
The Emscripten bug that required this change was fixed.

see:
https://skia-review.googlesource.com/c/skia/+/243317
https://github.com/emscripten-core/emscripten/issues/9317

Change-Id: Id3f6395a795bf61ce3f48d73a8749899ad55ef8a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/259516
Commit-Queue: Kevin Lubick <kjlubick@google.com>
Commit-Queue: Mike Klein <mtklein@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
2019-12-16 16:56:10 +00:00
Greg Daniel
99448bf7ca Delete unused GrDebugMarkerOp.
Change-Id: Id3222effc21aea673b4d5d82a98e3e60f34512b1
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/260278
Commit-Queue: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Auto-Submit: Greg Daniel <egdaniel@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2019-12-16 16:43:34 +00:00
Petar Kirov
1ff585637a Fix small memory leak in c-api example
While working on creating bindings for dlang, I noticed that there was a
missing call to `sk_imageinfo_delete`, corresponding to the call to
`sk_imageinfo_new` in the c-api example. At first I thought that
`sk_surface_new_raster` (or something else) would free the image info
object internally, but after checking the implementation I saw this was
not the case.

This can be trivially verified with valgrind:

Before this change:
    $ valgrind ./skia-c-example 2>&1 | grep 'definitely lost'
    ==186215==    definitely lost: 24 bytes in 1 blocks

After:
    $ valgrind ./skia-c-example 2>&1 | grep 'definitely lost'
    ==185878==    definitely lost: 0 bytes in 0 blocks

Test: built and ran skia-c-example.c under valgrind
Change-Id: Ie3fba2e7602341d2f5e7dac198b3ec5923777cbd
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/260021
Reviewed-by: Hal Canary <halcanary@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
2019-12-16 16:03:04 +00:00
Brian Osman
7b1678a527 Major refactor of runtime effects
Adds SkRuntimeEffect, a ref-counted object to hold SkSL,
a Compiler, and compiled Program, along with uniform info.

Removes the old SkSLFP factory and factory cache types.
Caching is done by simply holding on to the effect (or
the shader/color filter factories, which own an effect).

The effect class is simply ref'd by the factories, the
shader and color filter types, and the FP.

NOTE: Changes to public headers only affect private functions.

Change-Id: I0c1401505cb234e83943ad4ef2db6680f4c69fb9
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/259336
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2019-12-16 15:59:04 +00:00
Herb Derby
7363021456 Simplify fRegenFlags
Change-Id: I2a7510f97dd8bdae4d5fbd2314718c14711a822a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/260076
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Herb Derby <herb@google.com>
2019-12-16 15:50:04 +00:00
Nigel Tao
7b8b0ec62c Have SkWuffsCodec.cpp link to Wuffs API docs
Bug: skia:8235
Change-Id: I2b2743c23cf53a27cc16f323aa53248bb9d46574
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/260236
Reviewed-by: Leon Scroggins <scroggo@google.com>
Commit-Queue: Leon Scroggins <scroggo@google.com>
2019-12-16 15:06:04 +00:00
Eric Boren
397030ad04 Revert "Update SKP version"
This reverts commit 706eb5788e.

Reason for revert: Bad skp causing crashes

Original change's description:
> Update SKP version
> 
> Automatic commit by the RecreateSKPs bot.
> 
> TBR=rmistry@google.com
> NO_MERGE_BUILDS
> 
> Change-Id: Ic0889b3314f1d0c9853682da9de96e4fa574a7fc
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/260183
> Reviewed-by: <skia-recreate-skps@skia-swarming-bots.iam.gserviceaccount.com>
> Commit-Queue: <skia-recreate-skps@skia-swarming-bots.iam.gserviceaccount.com>

TBR=rmistry@google.com,skia-recreate-skps@skia-swarming-bots.iam.gserviceaccount.com

# Not skipping CQ checks because original CL landed > 1 day ago.

Change-Id: I30cf1f796d983b8bc5171cfc1112e0b7eded8f0f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/260256
Reviewed-by: Eric Boren <borenet@google.com>
Commit-Queue: Eric Boren <borenet@google.com>
2019-12-16 14:59:43 +00:00
skia-autoroll
9b59953e77 Roll third_party/externals/angle2 1d77542f5681..d1860ea17e8e (14 commits)
1d77542f56..d1860ea17e

git log 1d77542f5681..d1860ea17e8e --date=short --first-parent --format='%ad %ae %s'
2019-12-15 lehoangq@gmail.com Metal: support OES_depth_texture
2019-12-14 lehoangq@gmail.com Metal: Fix glDisable(GL_DEPTH_TEST) didn't disable depth write
2019-12-14 lehoangq@gmail.com Metal: Update spirv-cross from upstream to fix mat2 issues
2019-12-14 penghuang@chromium.org Vulkan: remove unnecessary transition of external images
2019-12-14 spang@chromium.org [Fuchsia] Update FIDL library target names in ANGLE
2019-12-13 syoussefi@chromium.org Vulkan: Refactor glslang wrapper's varying location assignment
2019-12-13 syoussefi@chromium.org Restructure textureGatherOffset* builtin declarations
2019-12-13 syoussefi@chromium.org Vulkan: Have the translator output in/out qualifiers
2019-12-13 syoussefi@chromium.org Validate that image array indices are constant
2019-12-13 root@cybikbase.com Fix GGP build
2019-12-13 angle-autoroll@skia-public.iam.gserviceaccount.com Roll third_party/vulkan-validation-layers/src 6a35bc9967d9..d2c3daeb56e9 (3 commits)
2019-12-13 angle-autoroll@skia-public.iam.gserviceaccount.com Roll third_party/SwiftShader 07958d452f93..ebb0bec91552 (4 commits)
2019-12-13 angle-autoroll@skia-public.iam.gserviceaccount.com Roll third_party/spirv-tools/src 5c019b5923c1..96354f5047bf (1 commits)
2019-12-13 angle-autoroll@skia-public.iam.gserviceaccount.com Roll third_party/glslang/src 6c479796f6e4..ebf634bcaa3e (1 commits)

Created with:
  gclient setdep -r third_party/externals/angle2@d1860ea17e8e

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/angle-skia-autoroll
Please CC borenet@google.com on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

Cq-Include-Trybots: skia/skia.primary:Build-Debian9-Clang-x86_64-Release-ANGLE;skia/skia.primary:Test-Win10-Clang-AlphaR2-GPU-RadeonR9M470X-x86_64-Debug-All-ANGLE;skia/skia.primary:Test-Win10-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-ANGLE;skia/skia.primary:Test-Win10-Clang-NUC5i7RYH-GPU-IntelIris6100-x86_64-Debug-All-ANGLE;skia/skia.primary:Test-Win10-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-All-ANGLE;skia/skia.primary:Test-Win10-Clang-NUC8i5BEK-GPU-IntelIris655-x86_64-Debug-All-ANGLE;skia/skia.primary:Test-Win10-Clang-NUCD34010WYKH-GPU-IntelHD4400-x86_64-Debug-All-ANGLE
Bug: None
Tbr: borenet@google.com
Change-Id: I9ef89dd822175f773452e99b3646b8438ed6c0f2
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/260216
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2019-12-16 04:55:39 +00:00
skia-autoroll
bd7ec00d9a Roll third_party/externals/swiftshader ebb0bec91552..fbbfeb700295 (2 commits)
https://swiftshader.googlesource.com/SwiftShader.git/+log/ebb0bec91552..fbbfeb700295

git log ebb0bec91552..fbbfeb700295 --date=short --first-parent --format='%ad %ae %s'
2019-12-13 chrisforbes@google.com Add missing source file to android build
2019-12-13 swiftshader.regress@gmail.com Regres: Update test lists @ ebb0bec9

Created with:
  gclient setdep -r third_party/externals/swiftshader@fbbfeb700295

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/swiftshader-skia-autoroll
Please CC borenet@google.com on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

Cq-Include-Trybots: skia/skia.primary:Test-Debian9-Clang-GCE-GPU-SwiftShader-x86_64-Debug-All-SwiftShader
Bug: None
Tbr: borenet@google.com
Change-Id: Ia7ae3b45051df289626e86415a9da2575060ebec
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/260218
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2019-12-16 04:52:59 +00:00
skia-autoroll
d2197a4c83 Roll ../src d11c17148d1a..b1568f298495 (510 commits)
d11c17148d..b1568f2984


Created with:
  gclient setdep -r ../src@b1568f2984

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/chromium-skia-autoroll
Please CC borenet@google.com on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

Cq-Include-Trybots: skia/skia.primary:Perf-Mac10.13-Clang-MacBookPro11.5-GPU-RadeonHD8870M-x86_64-Release-All-CommandBuffer;skia/skia.primary:Test-Mac10.13-Clang-MacBookPro11.5-GPU-RadeonHD8870M-x86_64-Debug-All-CommandBuffer
Bug: None
Tbr: borenet@google.com
Change-Id: Ic674a8a38c294734568bd2c9ee59b2b353004550
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/260217
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2019-12-16 04:44:59 +00:00
skia-recreate-skps
706eb5788e Update SKP version
Automatic commit by the RecreateSKPs bot.

TBR=rmistry@google.com
NO_MERGE_BUILDS

Change-Id: Ic0889b3314f1d0c9853682da9de96e4fa574a7fc
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/260183
Reviewed-by: <skia-recreate-skps@skia-swarming-bots.iam.gserviceaccount.com>
Commit-Queue: <skia-recreate-skps@skia-swarming-bots.iam.gserviceaccount.com>
2019-12-15 08:12:45 +00:00
Florin Malita
187cd367d3 Revert "[skottie] Simplify effect builder lookup"
This reverts commit ef363a9ce6.

Reason for revert: G3 unit tests failing

Original change's description:
> [skottie] Simplify effect builder lookup
> 
> Layer effects fall into two categories:
> 
>   - effects that BM knows about: these get assigned a unique type enum
>   - effects that BM doesn't know about: these are still exported, but
>     get assigned a dummy type
> 
> To handle effects in the latter case, we rely on their canonical AE
> name.
> 
> The list of supported effects has grown to the point where a) this
> differentiation doesn't seem valuable anymore and b) the code is quite
> repetitive.
> 
> Consoliate the lookup logic to rely solely on effect names + bsearch
> table.
> 
> Change-Id: Ib5f9b064a373814865da9e8a26037209992e8b9b
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/259997
> Commit-Queue: Florin Malita <fmalita@chromium.org>
> Reviewed-by: Mike Reed <reed@google.com>
> Reviewed-by: Mike Klein <mtklein@google.com>

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

Change-Id: I3b4c681c260c121e422ade7395c33a77e788ff43
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/260196
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Florin Malita <fmalita@chromium.org>
2019-12-15 03:01:25 +00:00
Florin Malita
ef363a9ce6 [skottie] Simplify effect builder lookup
Layer effects fall into two categories:

  - effects that BM knows about: these get assigned a unique type enum
  - effects that BM doesn't know about: these are still exported, but
    get assigned a dummy type

To handle effects in the latter case, we rely on their canonical AE
name.

The list of supported effects has grown to the point where a) this
differentiation doesn't seem valuable anymore and b) the code is quite
repetitive.

Consoliate the lookup logic to rely solely on effect names + bsearch
table.

Change-Id: Ib5f9b064a373814865da9e8a26037209992e8b9b
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/259997
Commit-Queue: Florin Malita <fmalita@chromium.org>
Reviewed-by: Mike Reed <reed@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
2019-12-14 19:28:14 +00:00
Mike Reed
9e7199561f clean up dox after enum change
Bug: skia:
Change-Id: I111c47b0134b950bcab083d1a11ab144fcf05985
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/260141
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
2019-12-14 14:19:11 +00:00
Mike Reed
cf0e3c63fd remove dead code around old SkPath enums
Change-Id: I8dc06da48e881d3a9c40b47c799afe27bdcce819
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/257689
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
2019-12-14 01:58:10 +00:00
Herb Derby
cd9ad409a9 More cleanup on GrStrikeCache
I missed the comments on cl/260038; do them in this cl.

Change-Id: If3a842385c935ae7833ae9ead6ba527e4e9f11a9
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/260096
Auto-Submit: Herb Derby <herb@google.com>
Commit-Queue: Mike Klein <mtklein@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
2019-12-13 23:27:10 +00:00
Brian Osman
9d10abe300 Remove all layout(ctype=...) from runtime SkSKL
Most of these did nothing, and I'd like to remove the feature. Also, the
benchmark was using 'in uniform' which isn't supported (it asserts in
debug build).

Change-Id: I671ca69fdd50811a2090c7a03f5f23e6b38e6f96
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/260043
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
2019-12-13 22:02:03 +00:00
Herb Derby
6d50a097f4 Use SkTHashTable in GrTextStrike
Change-Id: I29eb56e9fc7397836c2326bafd131554ad69c33f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/259998
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Herb Derby <herb@google.com>
2019-12-13 21:13:42 +00:00
Herb Derby
5c7f38a67d Revert "Remove unused fields from GrTextBlobKey"
This reverts commit 51b99659ed.

Reason for revert: These are important for the key.

Original change's description:
> Remove unused fields from GrTextBlobKey
> 
> Change-Id: Ibb42f943ffbed16867d714e9a1eee35d3f422b2a
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/259282
> Commit-Queue: Herb Derby <herb@google.com>
> Auto-Submit: Herb Derby <herb@google.com>
> Reviewed-by: Brian Salomon <bsalomon@google.com>

TBR=bsalomon@google.com,herb@google.com

# Not skipping CQ checks because original CL landed > 1 day ago.

Change-Id: If34b4637136135d5d8a7b66c5b5ff1a24bd214c3
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/259807
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Herb Derby <herb@google.com>
2019-12-13 20:55:44 +00:00
Herb Derby
b26f813bd3 Convert GrStrikeCache to sk_sp<GrTextStrike>
Change-Id: I3f198c67dd271ff008f0696a012ed652ad5b37b8
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/260038
Commit-Queue: Herb Derby <herb@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
2019-12-13 20:29:54 +00:00
Herb Derby
5bf5b04ed0 switch to SkPoint for the idea of drawingOrigin
Start making distinctions between three different uses
of matrices and origins.

* draw{M|O} - the information provided by the draw command.
* initial{M|O} - the drawing information captured when the
                 GrTextBlob was created.
* current{M|O} - the matrix and origin used to create the
                 data that is in the SubRun's vertices.

Where {M|O} == Matrix or Origin.

Rearrange computeTranslation and calculate_translation to
return vectors instead of taking out parameters.
Remove init() call.

Change-Id: I8644d95a560d7065d48424cafa51eaebe303d8b1
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/259828
Commit-Queue: Herb Derby <herb@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
Reviewed-by: Jim Van Verth <jvanverth@google.com>
2019-12-13 20:09:44 +00:00
Herb Derby
d938a8b886 Convert GrStrikeCache to use SkTHashTable
Change-Id: I24179f1eafd0f39735415d1d4194a34d5478f8e3
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/259432
Commit-Queue: Herb Derby <herb@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
2019-12-13 20:04:14 +00:00
skia-autoroll
ea47b0e658 Roll skia/third_party/skcms cd31cb38833c..ec78f685becd (1 commits)
https://skia.googlesource.com/skcms.git/+log/cd31cb38833c..ec78f685becd

git log cd31cb38833c..ec78f685becd --date=short --first-parent --format='%ad %ae %s'
2019-12-13 brianosman@google.com Direct fit of small tables can produce "kBad" transfer functions

Created with:
  gclient setdep -r skia/third_party/skcms@ec78f685becd

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/skcms-skia-autoroll
Please CC djsollen@google.com,mtklein@google.com on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

TBR=djsollen@google.com, mtklein@google.com

Cq-Include-Trybots: luci.chromium.try:linux-blink-rel
Bug: None
Change-Id: If37d38274c0d05ef6bcfc26be2a8393bd8b30957
Tbr: djsollen@google.com,mtklein@google.com
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/259969
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2019-12-13 19:46:33 +00:00
Herb Derby
17e7dfa377 More viewMatrix renaming
Change-Id: I9e6ecab124da0c03f31968270b2df79e3cd129d4
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/259979
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Herb Derby <herb@google.com>
2019-12-13 19:37:33 +00:00
Nathaniel Nifong
a072b7b275 Remove an uncessary and unused parameter for partially generating the JSON command list
All caller were passing the maxium value, those that weren't still function if they are made to.

Change-Id: Id9b5d8dbbbdf10a02ea0f3b21d500059ec383e3a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/259808
Commit-Queue: Nathaniel Nifong <nifong@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
2019-12-13 19:30:03 +00:00
Mike Klein
1cc767bd0d workaround?
Bug: skia:9709
Change-Id: I83427229ebc6113cb6f037d9a0bce1453cdb8ecd
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/259978
Commit-Queue: Mike Klein <mtklein@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
Auto-Submit: Mike Klein <mtklein@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
2019-12-13 19:22:03 +00:00
Kevin Lubick
c9b4d279d2 [infra] Update go to 1.13.5
Change-Id: I318e1a4d0cad258489ff25595cfc28b619317aac
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/259805
Reviewed-by: Ben Wagner aka dogben <benjaminwagner@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
2019-12-13 18:42:13 +00:00
Ben Wagner
ab51c2ce08 Add more variation support on Mac.
With the recent transition to creating fonts from data as CTFonts and
dropping variation support from macOS 10.11 and earlier, it is now
possible to reliably make variation clones and get the axis information.

Change-Id: Ia9a0922ac94a29e1508d2e74d4ce973751044866
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/259421
Reviewed-by: Herb Derby <herb@google.com>
Reviewed-by: Dominik Röttsches <drott@chromium.org>
Commit-Queue: Ben Wagner <bungeman@google.com>
2019-12-13 18:16:13 +00:00
Herb Derby
1c5be7b197 Rename viewMatrix to drawMatrix, initialMatrix, or currentMatrix
The viewMatrix has three different uses.
* drawMatrix is the matrix passed in by the drawTextBlob.
* initialMatrix is drawMatrix this a blob was created with.
* currentMatrix describes what stored in the SubRun.

Change-Id: Idd547f079950385485a279d22728f03145d5a77f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/259834
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Herb Derby <herb@google.com>
2019-12-13 18:12:13 +00:00
Brian Salomon
a6069a154d Support clipRegion on GPU backend
Bug: skia:9580
Change-Id: I663549dafc4239248e265bee8d6927bf5b259303
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/259804
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
2019-12-13 17:34:33 +00:00
Greg Daniel
81b98978bc Store GrSurfaceProxyView on SkImage.
Bug: skia:9556
Change-Id: I57340db52ce2e317acb6d1f88190460186350f5d
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/259435
Commit-Queue: Greg Daniel <egdaniel@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
2019-12-13 16:39:13 +00:00
Michael Ludwig
d0840ecf58 Provide record time allocator to onCombineIfPossible()
Change-Id: I3acf5d5fdb29bfbd3407a8065b7567dff43503a0
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/259427
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
2019-12-13 14:13:43 +00:00
skia-autoroll
7fb7134e7d Roll third_party/externals/angle2 6381d7f14805..1d77542f5681 (8 commits)
6381d7f148..1d77542f56

git log 6381d7f14805..1d77542f5681 --date=short --first-parent --format='%ad %ae %s'
2019-12-13 cnorthrop@google.com Add flag to label captures
2019-12-12 jmadill@chromium.org gn: Add 'test_only' label to util targets.
2019-12-12 jmadill@chromium.org util: Always export default visibility.
2019-12-12 jmadill@chromium.org Roll chromium_revision d209d45ba4..e1633af636 (719599:724302)
2019-12-12 angle-autoroll@skia-public.iam.gserviceaccount.com Roll third_party/vulkan-tools/src 0dc201a808ec..c1a7421f0f93 (3 commits)
2019-12-12 angle-autoroll@skia-public.iam.gserviceaccount.com Roll third_party/spirv-tools/src 00ca4e5bdfdb..5c019b5923c1 (3 commits)
2019-12-12 angle-autoroll@skia-public.iam.gserviceaccount.com Roll third_party/vulkan-validation-layers/src da451cc7cd04..6a35bc9967d9 (6 commits)
2019-12-12 angle-autoroll@skia-public.iam.gserviceaccount.com Roll third_party/SwiftShader 544ae91ee039..07958d452f93 (10 commits)

Created with:
  gclient setdep -r third_party/externals/angle2@1d77542f5681

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/angle-skia-autoroll
Please CC djsollen@google.com on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

Cq-Include-Trybots: skia/skia.primary:Build-Debian9-Clang-x86_64-Release-ANGLE;skia/skia.primary:Test-Win10-Clang-AlphaR2-GPU-RadeonR9M470X-x86_64-Debug-All-ANGLE;skia/skia.primary:Test-Win10-Clang-Golo-GPU-QuadroP400-x86_64-Debug-All-ANGLE;skia/skia.primary:Test-Win10-Clang-NUC5i7RYH-GPU-IntelIris6100-x86_64-Debug-All-ANGLE;skia/skia.primary:Test-Win10-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-All-ANGLE;skia/skia.primary:Test-Win10-Clang-NUC8i5BEK-GPU-IntelIris655-x86_64-Debug-All-ANGLE;skia/skia.primary:Test-Win10-Clang-NUCD34010WYKH-GPU-IntelHD4400-x86_64-Debug-All-ANGLE
Bug: None
Tbr: djsollen@google.com
Change-Id: Ia6977c6b3ff48765a5c97a7aaab5b061372d13f8
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/259916
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2019-12-13 05:09:33 +00:00
skia-autoroll
415bce89a4 Roll third_party/externals/swiftshader 07958d452f93..ebb0bec91552 (4 commits)
https://swiftshader.googlesource.com/SwiftShader.git/+log/07958d452f93..ebb0bec91552

git log 07958d452f93..ebb0bec91552 --date=short --first-parent --format='%ad %ae %s'
2019-12-12 sergeyu@chromium.org Use allocateExecutable() in LLVMReactor
2019-12-12 sugoi@google.com Fix BCn related SwANGLE test failure
2019-12-12 capn@google.com Prevent clang-format from splitting shift operator
2019-12-12 sugoi@google.com Support for BC1, BC2, BC3, BC4 and BC5

Created with:
  gclient setdep -r third_party/externals/swiftshader@ebb0bec91552

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/swiftshader-skia-autoroll
Please CC djsollen@google.com on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

Cq-Include-Trybots: skia/skia.primary:Test-Debian9-Clang-GCE-GPU-SwiftShader-x86_64-Debug-All-SwiftShader
Bug: None
Tbr: djsollen@google.com
Change-Id: Icd66a68ce1d6b9685d7d1bb01408f073f9b20e0b
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/259918
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2019-12-13 05:07:05 +00:00
skia-autoroll
252a03454d Roll ../src 636138928516..d11c17148d1a (358 commits)
6361389285..d11c17148d


Created with:
  gclient setdep -r ../src@d11c17148d

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/chromium-skia-autoroll
Please CC djsollen@google.com on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

Cq-Include-Trybots: skia/skia.primary:Perf-Mac10.13-Clang-MacBookPro11.5-GPU-RadeonHD8870M-x86_64-Release-All-CommandBuffer;skia/skia.primary:Test-Mac10.13-Clang-MacBookPro11.5-GPU-RadeonHD8870M-x86_64-Debug-All-CommandBuffer
Bug: None
Tbr: djsollen@google.com
Change-Id: I96989c9ff5ffb245acfcf92dc89d1a0a58a88933
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/259917
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2019-12-13 04:30:13 +00:00
skia-autoroll
39cdc37bdd Roll skia/third_party/skcms 5855011aeee5..cd31cb38833c (1 commits)
https://skia.googlesource.com/skcms.git/+log/5855011aeee5..cd31cb38833c

git log 5855011aeee5..cd31cb38833c --date=short --first-parent --format='%ad %ae %s'
2019-12-13 mtklein@google.com determine one extra digit, chop it off

Created with:
  gclient setdep -r skia/third_party/skcms@cd31cb38833c

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/skcms-skia-autoroll
Please CC djsollen@google.com,mtklein@google.com on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

TBR=djsollen@google.com, mtklein@google.com

Cq-Include-Trybots: luci.chromium.try:linux-blink-rel
Bug: None
Change-Id: Ie565af51ae12b90f5b3911ec5909cbcf9e8b6a80
Tbr: djsollen@google.com,mtklein@google.com
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/259873
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2019-12-13 01:28:55 +00:00
recipe-roller
0678df30b5 Roll recipe dependencies (trivial).
This is an automated CL created by the recipe roller. This CL rolls recipe
changes from upstream projects (e.g. depot_tools) into downstream projects
(e.g. tools/build).


More info is at https://goo.gl/zkKdpD. Use https://goo.gl/noib3a to file a bug.
depot_tools:
  https://crrev.com/785eba07c593db0f472a1520f5b6868cf0334fe6 Roll lucicfg tool to @ 5fca57db v1.11.14 (tandrii@google.com)
recipe_engine:
  https://crrev.com/ee9e27dca1ca19f086e572a4266ef7d35f5462a8 Whitelist RECIPE_MODULES imports. (gbeaty@chromium.org)


TBR=borenet@google.com

Recipe-Tryjob-Bypass-Reason: Autoroller
Bugdroid-Send-Email: False
Change-Id: I4158f42a61273144d5d4d755d0fa7de2d0d09f07
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/259832
Reviewed-by: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
2019-12-13 00:45:35 +00:00
skia-autoroll
4d3b4a1bf3 Roll skia/third_party/skcms e7b14532d922..5855011aeee5 (1 commits)
https://skia.googlesource.com/skcms.git/+log/e7b14532d922..5855011aeee5

git log e7b14532d922..5855011aeee5 --date=short --first-parent --format='%ad %ae %s'
2019-12-12 mtklein@google.com roll emscripten on the bots

Created with:
  gclient setdep -r skia/third_party/skcms@5855011aeee5

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/skcms-skia-autoroll
Please CC djsollen@google.com,mtklein@google.com on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

TBR=djsollen@google.com, mtklein@google.com

Cq-Include-Trybots: luci.chromium.try:linux-blink-rel
Bug: None
Change-Id: I175d03d9042c0a9831e3ed5efecacce2563c50bb
Tbr: djsollen@google.com,mtklein@google.com
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/259865
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2019-12-12 23:06:45 +00:00
Herb Derby
2fc9fa6d08 Add filter to SkTHashTable and SkTHashMap
Filter takes a bool function where fales means remove the entry.

Change-Id: I768baed6a4e26308f571b0b595ae19aea9d8dca7
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/259821
Commit-Queue: Herb Derby <herb@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
2019-12-12 22:55:35 +00:00
skia-autoroll
dcd8e9389d Roll skia/third_party/skcms 7240f337e5d6..e7b14532d922 (1 commits)
https://skia.googlesource.com/skcms.git/+log/7240f337e5d6..e7b14532d922

git log 7240f337e5d6..e7b14532d922 --date=short --first-parent --format='%ad %ae %s'
2019-12-12 mtklein@google.com print one fewer digit than ideal

Created with:
  gclient setdep -r skia/third_party/skcms@e7b14532d922

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/skcms-skia-autoroll
Please CC djsollen@google.com,mtklein@google.com on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

TBR=djsollen@google.com, mtklein@google.com

Cq-Include-Trybots: luci.chromium.try:linux-blink-rel
Bug: None
Change-Id: Ief74b37cd895f620853cbbd75121eede66eca289
Tbr: djsollen@google.com,mtklein@google.com
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/259837
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2019-12-12 22:38:35 +00:00