Commit Graph

56147 Commits

Author SHA1 Message Date
skia-autoroll
1332d491d9 Roll ANGLE from 4a3fc4b56681 to 1bffabe8800e (5 revisions)
4a3fc4b566..1bffabe880

2021-07-03 pkasting@chromium.org Fix -Wunreachable-code-aggressive.
2021-07-02 gert.wollny@collabora.com Capture/Replay: Only capture initialized renderbuffer content
2021-07-02 angle-autoroll@skia-public.iam.gserviceaccount.com Roll VK-GL-CTS from 5e375439542a to 875c981f4c59 (9 revisions)
2021-07-02 angle-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from 1231b445b902 to 314508f788b2 (2 revisions)
2021-07-02 angle-autoroll@skia-public.iam.gserviceaccount.com Roll Chromium from 69ddea72a93b to 3406cb648bea (368 revisions)

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/+doc/main/autoroll/README.md

Cq-Include-Trybots: skia/skia.primary:Build-Debian10-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
Tbr: djsollen@google.com
Change-Id: I30d33839f3efa1b938712f511bee8575b832a172
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424637
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-07-05 04:51:48 +00:00
skia-autoroll
525c78801d Roll Dawn from a5f24e590ae0 to aeff235dc373 (7 revisions)
https://dawn.googlesource.com/dawn.git/+log/a5f24e590ae0..aeff235dc373

2021-07-04 bajones@chromium.org Drop deprecated rowsPerImage/bytesPerRow behavior
2021-07-03 cwallez@chromium.org Vulkan: Check for required limits when initializing adapters
2021-07-03 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from 3124d43fda3f to 0e4174728128 (6 revisions)
2021-07-02 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from 9bf951eee520 to 3124d43fda3f (6 revisions)
2021-07-02 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from 37cabbb46828 to 9bf951eee520 (1 revision)
2021-07-02 hao.x.li@intel.com Fix internal storage buffer usage
2021-07-02 cwallez@chromium.org Roll third_party/swiftshader/ 8f075627d..314508f78 (15 commits)

Also rolling transitive DEPS:
  https://dawn.googlesource.com/tint from 37cabbb46828 to 0e4174728128

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/dawn-skia-autoroll
Please CC sarahmashay@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/+doc/main/autoroll/README.md

Cq-Include-Trybots: skia/skia.primary:Build-Debian10-Clang-x86_64-Debug-Dawn
Bug: None
Tbr: sarahmashay@google.com
Change-Id: I6b23efa07fd9f57def9af3a05a0c38861ad24516
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424617
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-07-05 04:47:48 +00:00
skia-autoroll
47540bb361 Roll Chromium from ed08a40dbb11 to 74a98997e468 (482 revisions)
ed08a40dbb..74a98997e4

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/+doc/main/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
Tbr: djsollen@google.com
Change-Id: Ifaa3bd2c48ae7e56b54eef9fc5ae90202189e195
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424616
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-07-05 04:39:08 +00:00
skia-autoroll
e5d312975f Roll SK Tool from 7ef0f9ef2c10 to 9cdcbb807fe4
https://skia.googlesource.com/buildbot.git/+log/7ef0f9ef2c10..9cdcbb807fe4

2021-07-04 skia-recreate-skps@skia-swarming-bots.iam.gserviceaccount.com Update CIPD Packages

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/sk-tool-skia
Please CC kjlubick@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/+doc/main/autoroll/README.md

Tbr: kjlubick@google.com
Change-Id: I8dcd9579c61d0e60d10ba8216ec7055c0ac05097
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424516
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-07-04 06:19:43 +00:00
Brian Osman
04d79fc594 GrSkSLFP: Avoid making a global copy of inColor most of the time
We still need *a* copy, to satisfy SkSL that mutates the input color
parameter, but it almost never needs to be global, unless there are
calls to sample() from a function other than main.

With that tweak, we generate much better SkSL/GLSL code from every one
of our effects, avoiding the proliferation of global variables.

Bug: skia:12140
Change-Id: I5c3bd42df34a095969abcbbc60e69c653a08087a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424299
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2021-07-02 21:06:21 +00:00
Brian Osman
e9ab391765 Reland "Convert GrDitherEffect to a runtime FP"
This reverts commit 3dd52c758b.

Change-Id: Ie873ad570ffc57b3edd6ffe8612cbc2c73d40450
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424259
Reviewed-by: Brian Osman <brianosman@google.com>
2021-07-02 17:33:15 +00:00
Brian Osman
1c467774e5 Revert "Convert GrConfigConversionEffect to a runtime FP"
This reverts commit 4a77813008.

Reason for revert: Memory regression in Chrome.

Original change's description:
> Convert GrConfigConversionEffect to a runtime FP
>
> Change-Id: I7f22447cf3356b1558d73665ff3e9b61639ebe83
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423576
> Auto-Submit: Brian Osman <brianosman@google.com>
> Commit-Queue: Brian Salomon <bsalomon@google.com>
> Reviewed-by: Brian Salomon <bsalomon@google.com>

TBR=bsalomon@google.com,brianosman@google.com,ethannicholas@google.com

Change-Id: I05497295b88b378f0aa236f18118fe676bbf05c9
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424256
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2021-07-02 13:11:40 +00:00
Ben Wagner
a149e8ff05 Add support for FT_COLR_PAINTFORMAT_SCALE
ff40776591..d3dc2da9b2

This was added to the specification and recently added to FreeType. This
also involves rolling FreeType.

Change-Id: I8784bf6af900a7ecedbd1647cfcd851ad8a81dd1
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424096
Commit-Queue: Dominik Röttsches <drott@google.com>
Reviewed-by: Dominik Röttsches <drott@chromium.org>
2021-07-02 08:07:01 +00:00
skia-autoroll
9c060b55e1 Roll Dawn from 2b1b14527d03 to a5f24e590ae0 (2 revisions)
https://dawn.googlesource.com/dawn.git/+log/2b1b14527d03..a5f24e590ae0

2021-07-02 enga@chromium.org Validate textures with filtering/non-filtering/comparison samplers
2021-07-01 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from d4c64af11783 to 37cabbb46828 (1 revision)

Also rolling transitive DEPS:
  https://dawn.googlesource.com/tint from d4c64af11783 to 37cabbb46828

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/dawn-skia-autoroll
Please CC sarahmashay@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/+doc/main/autoroll/README.md

Cq-Include-Trybots: skia/skia.primary:Build-Debian10-Clang-x86_64-Debug-Dawn
Bug: None
Tbr: sarahmashay@google.com
Change-Id: Idfb3e1df4fc9b7ce1d96bff61ec5384889e4b676
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424196
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-07-02 05:08:24 +00:00
skia-autoroll
6915b5b49f Roll SwiftShader from 1231b445b902 to 314508f788b2 (2 revisions)
https://swiftshader.googlesource.com/SwiftShader.git/+log/1231b445b902..314508f788b2

2021-07-01 capn@google.com Work around MemorySanitizer false-positive
2021-07-01 cwallez@google.com Increase max workgroup size for WebGPU

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 bungeman@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/+doc/main/autoroll/README.md

Cq-Include-Trybots: skia/skia.primary:Test-Debian10-Clang-GCE-GPU-SwiftShader-x86_64-Debug-All-SwiftShader
Bug: None
Tbr: bungeman@google.com
Change-Id: I0d028d4722d3391f5ce063c862232e240c3f583a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424095
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-07-02 05:03:48 +00:00
skia-autoroll
137edf77f6 Roll ANGLE from dba2e1361d2d to 4a3fc4b56681 (2 revisions)
dba2e1361d..4a3fc4b566

2021-07-01 angle-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from 9c5d0d73e2f3 to 1231b445b902 (1 revision)
2021-07-01 angle-autoroll@skia-public.iam.gserviceaccount.com Roll Chromium from 20cc6c3bb504 to 69ddea72a93b (424 revisions)

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 bungeman@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/+doc/main/autoroll/README.md

Cq-Include-Trybots: skia/skia.primary:Build-Debian10-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
Tbr: bungeman@google.com
Change-Id: I50ed3ef8ecfb7c4b7fa65c4747e35226224b1d68
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424197
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-07-02 05:03:19 +00:00
skia-autoroll
b14bdcfee9 Roll Chromium from 6083e24534e3 to ed08a40dbb11 (385 revisions)
6083e24534..ed08a40dbb

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 bungeman@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/+doc/main/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
Tbr: bungeman@google.com
Change-Id: I8ad04ba025f0e81e712545f17717e8ff8e8734ce
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424094
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-07-02 04:54:08 +00:00
Brian Osman
3dd52c758b Revert "Convert GrDitherEffect to a runtime FP"
This reverts commit 2fa843abc2.

Reason for revert: Oops, SkSL error in the ES2 path.

Original change's description:
> Convert GrDitherEffect to a runtime FP
>
> Includes a change so that we can create non-ES2 runtime effects, even
> outside of tests/tools. It's still locked to a private API, so clients
> can't access the functionality.
>
> Change-Id: Ie0643da2071bd223fccf05b35f3a7b6f7bbc4876
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423578
> Reviewed-by: Brian Salomon <bsalomon@google.com>
> Commit-Queue: Brian Osman <brianosman@google.com>

TBR=bsalomon@google.com,brianosman@google.com,ethannicholas@google.com,michaelludwig@google.com

Change-Id: Icff68da3cadd00868c94b84fbb39e470a7bf45d0
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424100
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2021-07-01 22:36:09 +00:00
Chris Dalton
202441f518 ES2ify fixed count tessellation shaders
Removes integers, non-square matrices, etc. The fixed count shaders
should all compile now on es2.

Bug: chromium:1220246
Change-Id: I5739a7ba397614bbb25a6f70a1bd53c699ffbcd7
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423736
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
2021-07-01 22:17:07 +00:00
Joe Gregorio
3c227305ac Add Spin513 bots to the tree.
Bug: skia:11876
Change-Id: I78b705f781e43216716aabf975a41d7350c795db
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/420123
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Joe Gregorio <jcgregorio@google.com>
2021-07-01 21:30:19 +00:00
Brian Osman
2fa843abc2 Convert GrDitherEffect to a runtime FP
Includes a change so that we can create non-ES2 runtime effects, even
outside of tests/tools. It's still locked to a private API, so clients
can't access the functionality.

Change-Id: Ie0643da2071bd223fccf05b35f3a7b6f7bbc4876
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423578
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2021-07-01 20:58:54 +00:00
Florin Malita
a8d2bf7b29 Disable large png bench
(missing resource)

Change-Id: I9a436c07723a5029fccb38ecd1d0e7e76a3aca80
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424099
Commit-Queue: Florin Malita <fmalita@chromium.org>
Commit-Queue: Ben Wagner <bungeman@google.com>
Auto-Submit: Florin Malita <fmalita@chromium.org>
Reviewed-by: Ben Wagner <bungeman@google.com>
2021-07-01 20:55:59 +00:00
Florin Malita
d584ddd151 Add skottie-vs-png decode bench
Three flavors:

  - png data  -> bitmap
  - json data -> skottie::Animation -> SkPicture
  - json data -> skottie::Animation

    micros   	bench
     70.20  	decode_png_small	nonrendering
      4.32 ?	decode_skottiepic_small	nonrendering
      3.71 ?	decode_skottie_small	nonrendering

   4589.10  	decode_png_medium	nonrendering
    117.48 ?	decode_skottiepic_medium	nonrendering
     76.69 ?	decode_skottie_medium	nonrendering

  30895.97  	decode_png_large	nonrendering
   4911.16  	decode_skottiepic_large	nonrendering
   4640.39  	decode_skottie_large	nonrendering

Change-Id: Id93be15f453b70e8cb51ea38f33adc1ebc9ce562
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423819
Reviewed-by: Florin Malita <fmalita@google.com>
Commit-Queue: Florin Malita <fmalita@google.com>
2021-07-01 20:18:03 +00:00
Robert Phillips
4d45e09202 Rename experimental app to 'sorttoy'
Bug: skia:11837
Change-Id: Id111281d0ec9ab0ebf93b9352a64eef9574bfcb0
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424040
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
2021-07-01 19:11:26 +00:00
Robert Phillips
7cef6789fd Change architecture #defines to be SK_GPU_V1 and SK_GPU_V2
A strictly mechanical CL

Bug: skia:11837
Change-Id: Id794d1fefe261d685b19e5d4d599cdab5e021cf7
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424038
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
2021-07-01 18:42:53 +00:00
Brian Salomon
db1748475c BackendAllocationTest doesn't need blend for alpha-only color types
Change-Id: I989cae92d24eb487ce5ddf7b0c513982d35bb688
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423998
Commit-Queue: Robert Phillips <robertphillips@google.com>
Auto-Submit: Brian Salomon <bsalomon@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
2021-07-01 18:34:13 +00:00
Chris Dalton
6904303a66 Add an isinf() polyfill for tessellation shaders
Tessellation uses infinity to flag conics, and also as a conic weight
that converts them into triangles. The es2 shading language doesn't
support infinity. This CL adds a "portable infinity" mode, where we
pretend inputs >= 2^126 are infinity. The rationale for doing this is
that those numbers are so large, they will overflow if we try to do any
bezier math with then anyway.

Bug: chromium:1220246
Change-Id: I3ad29ebb6fbbad5d23cfdba7a2717605009f8180
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423697
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2021-07-01 18:30:13 +00:00
Mike Reed
ebf89a0eed Simplify uses of asBlendMode
Takes advantage of optional == operators

Change-Id: Ia83c99c487a6398c314b3c05f3ae47d3fe989348
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423818
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Mike Reed <reed@google.com>
2021-07-01 18:00:34 +00:00
Chris Dalton
bb995e60a3 Add an sk_VertexID workaround for tessellated stroking
Tessellation should now be completely free of its dependence on
sk_VertexID.

Bug: chromium:1220246
Change-Id: I4027099392b92e45aee7d8417945335352e3416e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423496
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
2021-07-01 17:43:23 +00:00
Robert Phillips
024668cf7f Rename gn options to skgpu_v1 and skgpu_v2
Bug: skia:11837
Change-Id: Ie9221d2cd8e42bebb6a8a9a8ef51ba4a488ce6ca
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424036
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
2021-07-01 17:09:33 +00:00
Robert Phillips
6102afc11e Fix G3 roll
This fixes an oversight wrt the iOS build in:

https://skia-review.googlesource.com/c/skia/+/423836 (Remove GrResourceProvider.h from all other header files)

Change-Id: I179bda2bf15f1981c99b08e9c7496ed63fe1fed1
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424037
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
2021-07-01 17:03:32 +00:00
Ben Wagner
266bf8268d Fix mutex re-entry when FT_OpenFace fails
The SkTypeface_FreeType::FaceRec destructor should always have asserted
that the f_t_mutex was held (like all other methods of FaceRec) instead
of attempting to take the mutex on behalf of the user of the FaceRec. As
a result of attempting to take the mutex it was an error to ever delete
a FaceRec when holding the mutex (like in FaceRec::Make).

Move the taking of the mutex to SkTypeface_FreeType, which is the owner
and user of the FaceRec.

Bug: flutter:85360
Change-Id: I98ce86a168a0e3e4e76b7ebbb2cf7b414202e66b
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423584
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
2021-07-01 16:21:54 +00:00
skia-autoroll
7548ac0f72 Roll SK Tool from 01bc5f924777 to 1e4c97212117
https://skia.googlesource.com/buildbot.git/+log/01bc5f924777..1e4c97212117

2021-07-01 borenet@google.com [autoroll] Switch re2 and pdfium rollers to use main branch
2021-07-01 jcgregorio@google.com Use switchboard/cleanup in machineserver.
2021-07-01 lovisolo@google.com [bazel] //.bazelrc: Add comment about read-only access to the RBE remote cache from dev workstations.
2021-07-01 lovisolo@google.com [bazel] Drop rbe_autoconfig workspace rule. Use rbe_configs_gen CLI.
2021-07-01 lovisolo@google.com [bazel] Add file //.bazelversion.
2021-06-30 jcgregorio@google.com Add /machine/go/switchboard/cleanup.
2021-06-30 jcgregorio@google.com Assert all the mocks for targetconnect.
2021-06-30 jcgregorio@google.com Add pubsub.EnsureNotEmulator().
2021-06-30 borenet@google.com [autoroll] Another fix for rebase
2021-06-30 jcgregorio@google.com Make TestSingleStep_KeepAliveMeetingPointGetsCalledMultipleTimes_Returns more robust.
2021-06-30 kjlubick@google.com [machineserver] Fix missing assignment
2021-06-30 jcgregorio@google.com [machineserver] Moved to embedded configs.
2021-06-30 rmistry@google.com [skcq] Add config reader and skcq config
2021-06-30 rmistry@google.com Add skcq/go/footers/BUILD.bazel
2021-06-30 rmistry@google.com [skcq] Add codereview interface and impl for SkCQ callers

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/sk-tool-skia
Please CC kjlubick@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/+doc/main/autoroll/README.md

Tbr: kjlubick@google.com
Change-Id: I89c604672c16a739f10478555db24b52668756e6
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423938
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-07-01 15:31:18 +00:00
Robert Phillips
1a82a4ea49 Remove GrResourceProvider.h from all other header files
According to
https://commondatastorage.googleapis.com/chromium-browser-clang/include-analysis.html
these account for 583,146,886 bytes of input to the compiler, or roughly
0.25% of the input used to build Chrome.

Bug: chromium:242216
Change-Id: I2d5b73db770dba296df18c02a251da21e82b9ec0
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423836
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
2021-07-01 15:25:14 +00:00
Kevin Lubick
2cd8067113 [fiddle] Add PRESUBMIT rule to run tools/fiddle/make_all_examples_cpp.py
It will run this only if it detected a change to docs/examples
and runs fairly quickly.

Hopefully it avoids future bitrot like:
https://skia-review.googlesource.com/c/skia/+/423956

Change-Id: I8c6a54faa3a14dfb53260e03d4e6cc61e84b76cc
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423976
Reviewed-by: Joe Gregorio <jcgregorio@google.com>
2021-07-01 15:20:57 +00:00
Kevin Lubick
2d1b7165a4 [fiddle] Update named fiddles
//tools/fiddle/make_all_examples_cpp.py had not run in a while, so
some of these fiddles were not being compiled regularly and bit-rotted.

A follow-up CL will try running that script as a presubmit.

Change-Id: Ib851cb5d70485e354de3388abf56666492335d46
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423956
Commit-Queue: Kevin Lubick <kjlubick@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2021-07-01 15:20:14 +00:00
Ben Wagner
e55c5872a7 Correct failure return for GrMtlGpu::clearTexture
GrMtlGpu::clearTexture returns bool. The Chromium compile complains
about returning nullptr instead.

Change-Id: I27d70fbe75edf7ba172ea8e63843cfaf7b93cac3
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423996
Commit-Queue: Ben Wagner <bungeman@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
2021-07-01 15:13:19 +00:00
Brian Osman
4a77813008 Convert GrConfigConversionEffect to a runtime FP
Change-Id: I7f22447cf3356b1558d73665ff3e9b61639ebe83
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423576
Auto-Submit: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
2021-07-01 14:35:33 +00:00
Mike Reed
569f29da86 Only trigger serializing blender if it isn't a mode
Change-Id: I9f9cf7f92232c365538f3dd29df226933827771c
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423582
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Mike Reed <reed@google.com>
2021-07-01 13:32:53 +00:00
Brian Osman
043f010bd1 Make a dedicated (non-runtime) FP for turning on high-precision mode
I'm about to convert GrConfigConversionEffect to GrSkSLFP, and this
seemed like a better solution that adding special flags used in one
spot.

Change-Id: I6720411e9915e76c8f2c75d2b99ca746ceaaa597
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423516
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2021-07-01 13:18:23 +00:00
Greg Daniel
34b52bf634 Revert "Metal: Add labels and debug groups to help with GPU Debugging."
This reverts commit 9e583bfa3f.

Reason for revert: breaking flutter, needs available checks

Original change's description:
> Metal: Add labels and debug groups to help with GPU Debugging.
>
> * Adds SK_ENABLE_MTL_DEBUG_INFO to enable labels and debug groups,
>   dependent on skia_enable_gpu_debug_layers.
>
> Bug: skia:12150
> Change-Id: I5b4538c0f6df6ceed72d7e8e6f1952fd193b7b90
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/422756
> Commit-Queue: Jim Van Verth <jvanverth@google.com>
> Reviewed-by: Greg Daniel <egdaniel@google.com>

TBR=egdaniel@google.com,jvanverth@google.com,chinmaygarde@google.com

Change-Id: I62deacb3527dc709fa8bb8c9f4631e523eae27f0
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: skia:12150
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423816
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
2021-07-01 11:59:55 +00:00
skia-autoroll
11dd57aeb7 Roll ANGLE from a8959a9b56b4 to dba2e1361d2d (6 revisions)
a8959a9b56..dba2e1361d

2021-07-01 gert.wollny@collabora.com Capture/Replay: Emit InitializeReplay() late
2021-06-30 matled@google.com Fix markdown link
2021-06-30 angle-autoroll@skia-public.iam.gserviceaccount.com Roll VK-GL-CTS from 9fa02d6ab07f to 5e375439542a (4 revisions)
2021-06-30 syoussefi@chromium.org Vulkan: Disable GL_KHR_texture_compression_astc_sliced_3d
2021-06-30 angle-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from a3726e06b4f1 to 9c5d0d73e2f3 (2 revisions)
2021-06-30 angle-autoroll@skia-public.iam.gserviceaccount.com Roll Chromium from 1078c63704e4 to 20cc6c3bb504 (842 revisions)

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 bungeman@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/+doc/main/autoroll/README.md

Cq-Include-Trybots: skia/skia.primary:Build-Debian10-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
Tbr: bungeman@google.com
Change-Id: I1e538ccafdbaa1daa2f65414b0533858b0d5b4fa
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423662
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-07-01 05:01:53 +00:00
skia-autoroll
255eeb7ff6 Roll Chromium from 20cc6c3bb504 to 6083e24534e3 (390 revisions)
20cc6c3bb5..6083e24534

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 bungeman@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/+doc/main/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
Tbr: bungeman@google.com
Change-Id: If5fc9c8fa030031c220c9fbb55c945be65905c03
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423659
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-07-01 04:59:53 +00:00
skia-autoroll
6736762913 Roll Dawn from 3d5402c0a4a0 to 2b1b14527d03 (27 revisions)
https://dawn.googlesource.com/dawn.git/+log/3d5402c0a4a0..2b1b14527d03

2021-07-01 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from d18f2e0d6ee6 to d4c64af11783 (17 revisions)
2021-07-01 kainino@chromium.org Remove null-deref in test
2021-06-30 sergey.ext@gmail.com CMake: update backend selection
2021-06-30 bclayton@google.com Remove all use of deprecated tint APIs and WGSL syntax
2021-06-30 pkasting@chromium.org Fix -Wunreachable-code-aggressive.
2021-06-30 cwallez@chromium.org Metal: make (robustness AND tint) => vertex pulling
2021-06-29 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from 077fe64b11b9 to d18f2e0d6ee6 (11 revisions)
2021-06-29 enga@chromium.org Remove double test instantiation with/without use_tint_generator
2021-06-29 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from cb0309ed6c05 to 077fe64b11b9 (8 revisions)
2021-06-29 cwallez@chromium.org Add missing WebGPU limits to Constants.h
2021-06-29 hao.x.li@intel.com Implement zero-sized QuerySet
2021-06-29 sergey.ext@gmail.com Fix examples linking error when building with CMake
2021-06-29 yunchao.he@intel.com Implement 3D texture sampling with e2e tests
2021-06-29 sarahmashay@google.com Update compute shaders tests to include workgroup_size
2021-06-28 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from f24b37e12257 to cb0309ed6c05 (4 revisions)
2021-06-28 enga@chromium.org Remove explicit test instantiation with use_tint_generator
2021-06-28 sergey.ext@gmail.com Fix compilation error when building with CMake and Clang
2021-06-28 bajones@chromium.org Deprecated StoreOp::Clear in favor of Discard
2021-06-28 shrekshao@google.com Add placeholder virtual functions to dawn_wire Read/WriteHandle
2021-06-28 cwallez@chromium.org CopyTextureForBrowser(): Fix macro declaration
2021-06-28 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from 67993b955eea to f24b37e12257 (5 revisions)
2021-06-28 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from c03a09c10656 to 67993b955eea (1 revision)
2021-06-28 bclayton@google.com common: RefBase fixes and improvements
2021-06-28 cwallez@chromium.org dawn_native: Add a force_wgsl_step toggle.
2021-06-28 jrprice@google.com Enable testing of Metal with Tint MSL generator
2021-06-28 jrprice@google.com Add missing structure padding to test
2021-06-28 cjj19970505@live.cn CMake: couple fixes for UWP

Also rolling transitive DEPS:
  https://dawn.googlesource.com/tint from c03a09c10656 to d4c64af11783

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/dawn-skia-autoroll
Please CC sarahmashay@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/+doc/main/autoroll/README.md

Cq-Include-Trybots: skia/skia.primary:Build-Debian10-Clang-x86_64-Debug-Dawn
Bug: None
Tbr: sarahmashay@google.com
Change-Id: Ifb8e2e78457a722432fe073e00500a343f87002e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423661
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-07-01 04:56:13 +00:00
skia-autoroll
92bb5f53f1 Roll SwiftShader from 9c5d0d73e2f3 to 1231b445b902 (1 revision)
https://swiftshader.googlesource.com/SwiftShader.git/+log/9c5d0d73e2f3..1231b445b902

2021-06-30 capn@google.com Disable the legacy OpenGL ES targets for Android

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 bungeman@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/+doc/main/autoroll/README.md

Cq-Include-Trybots: skia/skia.primary:Test-Debian10-Clang-GCE-GPU-SwiftShader-x86_64-Debug-All-SwiftShader
Bug: None
Tbr: bungeman@google.com
Change-Id: I972f3b712ec98434168f90906360ceace40680c9
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423660
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-07-01 04:49:53 +00:00
Sarah
69a378c8a9 fix tint roll - enable tint_build_wgsl_writer
Change-Id: I2e657a61fbe614dcf2d8dee0b899f7b826d20280
Bug: dawn:706
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423116
Commit-Queue: Brian Osman <brianosman@google.com>
Auto-Submit: Sarah Mashayekhi <sarahmashay@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Reviewed-by: Eric Boren <borenet@google.com>
2021-07-01 00:32:40 +00:00
Brian Osman
eaa76b9de0 Replace mask blur FPs with GrSkSLFP
Change-Id: Ie257eca4357b7ab66845af046329ad89857cdaa5
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423025
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
2021-06-30 22:56:41 +00:00
Jim Van Verth
9e583bfa3f Metal: Add labels and debug groups to help with GPU Debugging.
* Adds SK_ENABLE_MTL_DEBUG_INFO to enable labels and debug groups,
  dependent on skia_enable_gpu_debug_layers.

Bug: skia:12150
Change-Id: I5b4538c0f6df6ceed72d7e8e6f1952fd193b7b90
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/422756
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
2021-06-30 22:48:41 +00:00
Tyler Denniston
1700f865c5 Revert "Omit inner join geometry when possible"
This reverts commit 1b0a95e0ee.

Reason for revert: breaking g3, other downstream expectations

Original change's description:
> Omit inner join geometry when possible
>
> There is some relatively cheap math we can do to determine easy cases
> when the inner join geometry can be skipped. This CL is not
> comprehensive in that there may be other cases where we can skip the
> geometry.
>
> Only handling miter joins in this CL - the other join types can likely
> have similar logic, but will require a bit more computation to compute
> the inner (reflected) miter point.
>
> Misc notes:
> - Added SK_LEGACY_INNER_JOINS ifdef in the event that clients depend on
>   the old behavior.
> - Modified stroker to track "previous previous" point, which is the
>   start point of the previous line segment.
>
> Bug: b/165379671, skia:11964
> Change-Id: I56789e85a2b4627c32f2a30fe60e47d448e9adf3
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/404717
> Reviewed-by: Mike Reed <reed@google.com>
> Commit-Queue: Tyler Denniston <tdenniston@google.com>

TBR=reed@google.com,tdenniston@google.com

Change-Id: I812b39a327606b094cd22fb04b8765afc60ac722
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: b/165379671, skia:11964
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423583
Reviewed-by: Tyler Denniston <tdenniston@google.com>
Commit-Queue: Tyler Denniston <tdenniston@google.com>
2021-06-30 21:29:19 +00:00
Robert Phillips
36a5dffa6f Revert "Clear the tile backend textures when drawing DDLs"
This reverts commit 0734c6223c.

Reason for revert: This was fixing the symptom and not the disease

Original change's description:
> Clear the tile backend textures when drawing DDLs
>
> It appears that the flutter SKPs don't contain an initial clear so the background can be random noise.
>
> This only appears to be an issue for the Metal backend.
>
> Change-Id: I4f5c823cdb1a0a76c0704d4d48355c3a0ed75d43
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423316
> Reviewed-by: Michael Ludwig <michaelludwig@google.com>
> Commit-Queue: Robert Phillips <robertphillips@google.com>

TBR=robertphillips@google.com,reed@google.com,michaelludwig@google.com

Change-Id: Iaa52a66248cef2896fc310ee199c3cef7029e532
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423581
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
2021-06-30 20:10:30 +00:00
skia-autoroll
d650c1f5e5 Roll SwiftShader from 964b9e39e44a to 9c5d0d73e2f3 (3 revisions)
https://swiftshader.googlesource.com/SwiftShader.git/+log/964b9e39e44a..9c5d0d73e2f3

2021-06-29 capn@google.com Fix Android Vulkan build
2021-06-29 capn@google.com Implement Pragma() for Reactor MemorySanitizer instrumentation
2021-06-29 cwallez@google.com Increase limits to support base WebGPU.

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 bungeman@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/+doc/main/autoroll/README.md

Cq-Include-Trybots: skia/skia.primary:Test-Debian10-Clang-GCE-GPU-SwiftShader-x86_64-Debug-All-SwiftShader
Bug: None
Tbr: bungeman@google.com
Change-Id: Ib86fc93fe0c9002a516d132312e54c7c44226531
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423178
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-06-30 19:52:46 +00:00
Tyler Denniston
1b0a95e0ee Omit inner join geometry when possible
There is some relatively cheap math we can do to determine easy cases
when the inner join geometry can be skipped. This CL is not
comprehensive in that there may be other cases where we can skip the
geometry.

Only handling miter joins in this CL - the other join types can likely
have similar logic, but will require a bit more computation to compute
the inner (reflected) miter point.

Misc notes:
- Added SK_LEGACY_INNER_JOINS ifdef in the event that clients depend on
  the old behavior.
- Modified stroker to track "previous previous" point, which is the
  start point of the previous line segment.

Bug: b/165379671, skia:11964
Change-Id: I56789e85a2b4627c32f2a30fe60e47d448e9adf3
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/404717
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Tyler Denniston <tdenniston@google.com>
2021-06-30 19:52:42 +00:00
Ethan Nicholas
9b5e3c9971 Pulled vectors out of SkSLType and made them pointers
This is purely to reduce the size of SkSLType objects, since we create a
ton of them on compiler startup.

Change-Id: Icea7100d278cdf4805a163d04edf3b8d46c83fe6
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423317
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
2021-06-30 19:52:38 +00:00
Jim Van Verth
cc6ddcd142 Metal: replace last temp transfer buffer with staging slice
Change-Id: Ifc2ca70d0d6c8e325a0edccdd1f1d02b6110131f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423136
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
2021-06-30 19:45:02 +00:00
Robert Phillips
0734c6223c Clear the tile backend textures when drawing DDLs
It appears that the flutter SKPs don't contain an initial clear so the background can be random noise.

This only appears to be an issue for the Metal backend.

Change-Id: I4f5c823cdb1a0a76c0704d4d48355c3a0ed75d43
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423316
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
2021-06-30 18:56:35 +00:00