Commit Graph

55684 Commits

Author SHA1 Message Date
Robert Phillips
3674f589ee Make GrPathRenderer and all derived class be OGA-only
Bug: skia:11837
Change-Id: I92aacf8b412d0158036a5f27aa767590e426bd5c
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/417657
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
2021-06-16 17:09:37 +00:00
Chris Dalton
9a1d38c455 Convert spaces to tabs in wasm gm Makefile
Change-Id: Id6622be9e99e2db472bc3c658baf024b47751f04
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/419016
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
2021-06-16 16:58:07 +00:00
skia-autoroll
cc5a46f4d9 Roll ANGLE from 1fcbf77c7397 to ebf756983dd8 (6 revisions)
1fcbf77c73..ebf756983d

2021-06-11 ianelliott@google.com Vulkan: Fix AGI clear hierarchy bug for clear commands
2021-06-11 angle-autoroll@skia-public.iam.gserviceaccount.com Roll vulkan-deps from d19e20ee6d7d to 7e098c965711 (1 revision)
2021-06-11 angle-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from 81ba5f47b66c to 9559e5836cc1 (1 revision)
2021-06-11 jplate@google.com CL: Add remaining enqueue commands
2021-06-11 angle-autoroll@skia-public.iam.gserviceaccount.com Roll Chromium from 399855f4bba6 to 5aaab2e1ec76 (226 revisions)
2021-06-11 ynovikov@chromium.org Add Android chromium.angle bots to CQ

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 jmbetancourt@google.com,robertphillips@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/master/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: jmbetancourt@google.com,robertphillips@google.com
Change-Id: I7cd053e63e42a8f9298be296f032895afca13f88
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/418878
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-06-16 16:42:37 +00:00
Brian Osman
6448ec390d Revert "Fix more new Clang warnings"
This reverts commit 3d5483a547.

Reason for revert: Android roll.

Original change's description:
> Fix more new Clang warnings
>
> Change-Id: I82a13744669a6b5c23e23e6a719ec79878114dab
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/418697
> Commit-Queue: Brian Osman <brianosman@google.com>
> Reviewed-by: Kevin Lubick <kjlubick@google.com>

TBR=kjlubick@google.com,brianosman@google.com

Change-Id: I2032ee5efdb297b7cfdbe60ff2546305ef96ea57
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/418937
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2021-06-16 14:03:58 +00:00
Mike Reed
b9c9829fd6 PDF backend: don't apply paint alpha twice when we have a shader
Uncovers related bug in pdfium:
https://bugs.chromium.org/p/pdfium/issues/detail?id=1693

Bug: skia:11863
Change-Id: I764ccbfb5464f0288c66086826a1fd8bcf2ff8f7
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/418544
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
2021-06-16 13:29:47 +00:00
Kevin Lubick
c4de8e4aad [canvaskit] Add documentation about node/npm
Change-Id: I3818a37bdd3b4fb512559b2c61f5150942450cf4
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/418956
Reviewed-by: Tyler Denniston <tdenniston@google.com>
2021-06-16 13:03:32 +00:00
Harry Terkelsen
e5d23f0b1f [canvaskit] Fix incorrect malloc for text style shadows
Change-Id: Id0de9a3a557dc712d947a80f0bc7333122773870
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/416687
Reviewed-by: Kevin Lubick <kjlubick@google.com>
2021-06-16 12:34:06 +00:00
skia-autoroll
e5894fce58 Roll SwiftShader from 9559e5836cc1 to 72e6254a135d (1 revision)
https://swiftshader.googlesource.com/SwiftShader.git/+log/9559e5836cc1..72e6254a135d

2021-06-15 capn@google.com Regres: Fix testing external contributions if reviewed by Googler

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 jmbetancourt@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/master/autoroll/README.md

Cq-Include-Trybots: skia/skia.primary:Test-Debian10-Clang-GCE-GPU-SwiftShader-x86_64-Debug-All-SwiftShader
Bug: None
Tbr: jmbetancourt@google.com
Change-Id: If985138cc2dece89117d2d02821aeaadd424d5fe
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/418858
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-06-16 06:15:10 +00:00
skia-autoroll
fab6ede2ec Roll Dawn from 2ee28d304f29 to b03adf374711 (9 revisions)
https://dawn.googlesource.com/dawn.git/+log/2ee28d304f29..b03adf374711

2021-06-15 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from 3184544182de to 4daac0e64b34 (1 revision)
2021-06-15 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from d80bb9d997dd to 3184544182de (2 revisions)
2021-06-15 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from 1a14f2093c61 to d80bb9d997dd (1 revision)
2021-06-15 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from 9ac271371e81 to 1a14f2093c61 (1 revision)
2021-06-14 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from 3dbfbc946076 to 9ac271371e81 (5 revisions)
2021-06-14 rharrison@chromium.org Make usage of overridable constants a validation error
2021-06-14 rharrison@chromium.org Revert "Enable Tint running Dawn try jobs on its CQ"
2021-06-14 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from 906c9cafbb95 to 3dbfbc946076 (1 revision)
2021-06-14 jrprice@google.com Update usage of arrayLength() intrinsic

Also rolling transitive DEPS:
  https://dawn.googlesource.com/tint from 906c9cafbb95 to 4daac0e64b34

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 alanbaker@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/master/autoroll/README.md

Cq-Include-Trybots: skia/skia.primary:Build-Debian10-Clang-x86_64-Debug-Dawn
Bug: None
Tbr: alanbaker@google.com
Change-Id: Id80cb7974f70a1bd93fdc82d41ca75eb266fbd27
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/418857
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-06-16 05:55:40 +00:00
John Stiles
af8047dbb8 Rename existing 'Blend' enums/names to 'BlendFilter'.
Change-Id: I17c624e9145d7152f65695ca3ce4592a11bb09a2
Bug: skia:12080
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/418637
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2021-06-15 22:51:40 +00:00
John Stiles
6ae690f8b2 Rename UseRasterPipelineBlitter to UseLegacyBlitter.
This function was misleadingly named. It is meant to detect the cases
where we still want to use the legacy blitter; it does not actually
detect that we want to use the raster pipeline. Raster pipeline usage
is determined later by `create_SkRP_or_SkVMBlitter`.

The name probably made more sense before SkVMBlitter was introduced,
when the only two choices were "RasterPipeline" or "Legacy."

Change-Id: I4ed80e5d49a23ed22b3d34eb8a707cd752b5cc5d
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/418143
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2021-06-15 20:16:39 +00:00
Jim Van Verth
237bf5284d Wrap GrMtlRenderCommandEncoder methods in AVAILABLE checks
Change-Id: I8d165b2d9b77b83ff32d8f081efdd927ab8d1aba
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/418737
Auto-Submit: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2021-06-15 19:53:48 +00:00
Florin Malita
dca72634f1 [android] Bump gradle heap size to 4GB
Change-Id: Ic6b1ff506fc11ee077be80cf8781ad0e6c5874e9
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/418136
Commit-Queue: Florin Malita <fmalita@chromium.org>
Commit-Queue: Florin Malita <fmalita@google.com>
Reviewed-by: Derek Sollenberger <djsollen@google.com>
Reviewed-by: Jorge Betancourt <jmbetancourt@google.com>
2021-06-15 19:15:48 +00:00
Kevin Lubick
c3aa2f05cf Address some compile warnings from Clang 13
The latest emscripten uses Clang 13, which points out some new warnings
about implicit copy constructors, copy assignment operators etc.

This addresses some that I found until llvm crashed and would not
compile further (https://bugs.llvm.org/show_bug.cgi?id=50408)

Change-Id: Ia4d3f0b308facb18bf2da50261326244a7848644
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/413056
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
2021-06-15 18:58:18 +00:00
Brian Osman
70ae91f5b2 Support specializing uniforms in runtime FPs
http://go/rteffect-uniform-enhancements

Change-Id: Icb69b87049488a3baf234d45fe1e6a3c96a16d5e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/417856
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: John Stiles <johnstiles@google.com>
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
2021-06-15 18:49:19 +00:00
Chris Dalton
43a8b0ca39 Implement a simple clip atlas with GrTessellationPathRenderer
Bug: b/188794626
Bug: chromium:928984
Change-Id: Ic4e0584cccafb1e9f60861a6fee1ff5e34e736d8
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/418218
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Reviewed-by: Adlai Holler <adlai@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
2021-06-15 18:37:28 +00:00
Brian Osman
3d5483a547 Fix more new Clang warnings
Change-Id: I82a13744669a6b5c23e23e6a719ec79878114dab
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/418697
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Kevin Lubick <kjlubick@google.com>
2021-06-15 18:32:48 +00:00
Brian Osman
c03dc7e638 Roll SPIRV-Tools
Picks up a fix for a newer clang warning about deriving from std::iterator.

Change-Id: I68987d7b32e2bbd244a9ba93080b3df7c4abb548
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/418676
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
2021-06-15 18:31:29 +00:00
Peter Kasting
95b00157a4 Fix -Wc++11-narrowing for Skia.
Bug: chromium:1216696
Change-Id: I11221c55e2d64c1b47082e36aa44637c411f426f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/417116
Reviewed-by: Ben Wagner <bungeman@google.com>
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
2021-06-15 17:49:08 +00:00
John Stiles
eb01ac1b27 Fix issue uncovered by -Wrange-loop-analysis.
Change-Id: I63f724506dedd5c68b60bc36ed031a8b2ddbb1eb
Bug: skia:12097
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/418636
Commit-Queue: John Stiles <johnstiles@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2021-06-15 16:54:07 +00:00
Ethan Nicholas
6823b50830 Revert "Revert "Switched SkSL parser APIs from char* + length to string_view""
This reverts commit 85ed605159.

TBR=brianosman@google.com,johnstiles@google.com

Change-Id: I09a8a821ceb2b3d525cbca5e52af5cad96d1e2b5
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/418617
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
2021-06-15 16:45:17 +00:00
Mike Reed
683fd62a4c Remove unneeded includes from pathops
Bug: skia:7951
Bug: skia:9734
Change-Id: I4280493a10d223133b8e53e8c7a65fb9f8eb2413
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/418057
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Auto-Submit: Mike Reed <reed@google.com>
Reviewed-by: Chris Dalton <csmartdalton@google.com>
2021-06-15 16:41:48 +00:00
Robert Phillips
62214f779f Clean up prior to making GrPathRenderers OGA-only
GrCpuVertexAllocator, GrIsStrokeHairlineOrEquivalent and kLinearizationPrecision are still
useful in the NGA so divorce them from OGA-only classes.

Bug: skia:11837
Change-Id: Ib10e6b5448e0eb2b62c0178cfd019009a3a2e952
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/418148
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
2021-06-15 15:22:17 +00:00
John Stiles
ca1f0c1bc4 Remove out-of-date TODO comment.
This comment originally referred to a line that immediately followed it:
    SkTBlitterAllocator allocator;

which was passed to the SkMakeBitmapShader call that followed it. This
was added at http://review.skia.org/8140 and removed soon afterwards at
http://review.skia.org/8407, but the comment was not removed.

Change-Id: Iebe4b34de737abaf3aa7c769f466a21802d0807a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/418139
Commit-Queue: John Stiles <johnstiles@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2021-06-15 14:39:10 +00:00
Brian Osman
a981b455a0 Remove redundant check for null SkData in runtime effect serialization
writeDataAsByteArray handles this case, exactly like we were doing.

Change-Id: I36f8597a106daa1566d884add47733708bd88ab4
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/418546
Commit-Queue: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: Brian Osman <brianosman@google.com>
Reviewed-by: John Stiles <johnstiles@google.com>
2021-06-15 14:35:37 +00:00
skia-autoroll
2ec921e02a Roll SK Tool from a5086dc4a31a to 059b36d98a16
https://skia.googlesource.com/buildbot.git/+log/a5086dc4a31a..059b36d98a16

2021-06-14 borenet@google.com [sk] Add --tags flag to `sk asset upload`
2021-06-13 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 lovisolo@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/master/autoroll/README.md

Tbr: lovisolo@google.com
Change-Id: Ia06f58f3f9158249d55255288870545dc4c152d7
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/418177
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: Eric Boren <borenet@google.com>
2021-06-15 14:26:07 +00:00
Ethan Nicholas
4f3e6a261b Moved DSLWriter::ReleaseProgram into DSLCore.
This makes the API accessible from the upcoming DSLParser.

Change-Id: I0ee31c7648e35dfeaa50285cf93dcdb9dd4872bd
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/417678
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Auto-Submit: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: John Stiles <johnstiles@google.com>
2021-06-15 14:08:07 +00:00
Florin Malita
4f382641ec [androidkit] Add pinch-zoom support to cube demo
Also add translate/scale Canvas helpers.

Change-Id: I8c46d45f73a41907d8d8f83b355a4185b6975f06
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/416776
Commit-Queue: Florin Malita <fmalita@google.com>
Reviewed-by: Jorge Betancourt <jmbetancourt@google.com>
2021-06-15 14:06:17 +00:00
Ethan Nicholas
5076f9c489 Fix a DSL issue with special variable handling
Change-Id: I4790be6dcc5af19e4bbccb4740d6aa3e4376f7e5
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/417679
Auto-Submit: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Reviewed-by: John Stiles <johnstiles@google.com>
2021-06-15 13:52:20 +00:00
Brian Osman
8eec8a2cb3 Remove manual uniform tracking logic from three FPs
Change-Id: I10ecce06461eebcfa20d0ca41fc0fd2ef428679b
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/418145
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
2021-06-15 13:43:27 +00:00
Robert Phillips
a5dde76252 [ngatoy] Add Save, Restore, and Clip Cmds
In this iteration none of these commands appear in the sorted Cmds (and
the Save and Restore Cmds never will) but it sets things up for ClipCmds
being sorted.

Bug: skia:11837
Change-Id: Ia8be433cb01215c55a8b61de2ec24f5c456a0b10
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/417416
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
2021-06-15 13:00:22 +00:00
Robert Phillips
fa0e5bc2d2 Actually make GrContextOptions::fUseNGA GR_TEST_UTILS-only
I accidentally left this out of:

https://skia-review.googlesource.com/c/skia/+/415796 (Add option to switch between OGA and NGA SkGpuDevices)

Bug: skia:11837
Change-Id: I49730b1f338f081512a7fca2d0ca6e1d4cf086be
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/417536
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
2021-06-15 12:58:33 +00:00
Robert Phillips
1ca0da4b91 Make GrClipStack, GrClipStackClip, and GrReducedClip OGA-only
GrStencilClip and GrStencilMaskHelper just come along for the ride

Bug: skia:11837
Change-Id: I7cfa2dd620b7457e6b6be4abf91b1ecd415d9b73
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/417680
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
2021-06-15 12:48:34 +00:00
Jim Van Verth
5856683b9c Wrap MTLRenderCommandEncoder in GrMtlCommandEncoderClass.
This will allow tracking to prevent setting duplicate state.

Change-Id: I7cc72125a5dce9efbd957f1dfffc85ce45681048
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/418146
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Reviewed-by: Adlai Holler <adlai@google.com>
2021-06-15 12:31:47 +00:00
Jorge Betancourt
85ed605159 Revert "Switched SkSL parser APIs from char* + length to string_view"
This reverts commit 2705cbf9bd.

Reason for revert: blocking g3 autoroller

Original change's description:
> Switched SkSL parser APIs from char* + length to string_view
>
> Change-Id: I9f4378b622699d80bef449f9857117e9cc437956
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/418140
> Reviewed-by: Brian Osman <brianosman@google.com>
> Reviewed-by: John Stiles <johnstiles@google.com>
> Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
> Commit-Queue: John Stiles <johnstiles@google.com>

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

Change-Id: I56fe1b306f2619227b8a2c10b3ab7de30de60bdf
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/418536
Reviewed-by: Jorge Betancourt <jmbetancourt@google.com>
Commit-Queue: Jorge Betancourt <jmbetancourt@google.com>
2021-06-15 12:29:09 +00:00
skia-autoroll
b5b7c98295 Roll Dawn from 74f0c02044ca to 2ee28d304f29 (4 revisions)
https://dawn.googlesource.com/dawn.git/+log/74f0c02044ca..2ee28d304f29

2021-06-12 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll Tint from c58738a49eda to 906c9cafbb95 (22 revisions)
2021-06-11 cwallez@chromium.org Validate that DS attachment must cover all aspects of the texture.
2021-06-11 bclayton@google.com Wrap call stmts with non-void rets, with ignore()
2021-06-11 rharrison@chromium.org Enable Tint running Dawn try jobs on its CQ

Also rolling transitive DEPS:
  https://dawn.googlesource.com/tint from c58738a49eda to 906c9cafbb95

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 jrprice@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/master/autoroll/README.md

Cq-Include-Trybots: skia/skia.primary:Build-Debian10-Clang-x86_64-Debug-Dawn
Bug: None
Tbr: jrprice@google.com
Change-Id: I30c2a0ea4bce464f1efa27ba372c1f7428e5b016
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/418157
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-06-15 04:49:09 +00:00
Chris Dalton
c238572723 Fully enable tessellation on all platforms
Now that fixed-count and convex fills are in, tessellation is expected
to be strictly faster always.

TBR=egdaniel@google.com

Bug: chromium:1163441
Bug: skia:11138
Bug: skia:11139
Change-Id: Ic77d4e2b4c99a113426f566e8ba2df4b4e1d5280
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/418436
Reviewed-by: Chris Dalton <csmartdalton@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
2021-06-15 00:36:09 +00:00
Chris Dalton
50c3c24758 Add a simple path cache to the tessellation atlas
This simple cache only remembers the locations of paths in the current
frame, so if multiple draws of the same path occur in a single frame,
they can share the same atlas entry. Its main motivation is for clip
paths.

Bug: b/188794626
Bug: chromium:928984
Change-Id: Ib909a41532cc7bdb802fab8c17f293398cd86356
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/418217
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Reviewed-by: Adlai Holler <adlai@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
2021-06-14 23:11:39 +00:00
Leandro Lovisolo
ef1f4991a6 Update the "os" dimension of Windows tasks to "Windows-19041".
It looks like all the skia-e-win-* Windows 10 bots have been updated to Windows-19041:

https://chromium-swarm.appspot.com/botlist?c=id&c=task&c=os&c=status&d=asc&f=pool%3ASkia&f=os%3AWindows&k=os&s=id

This CL should fix a number of Test-Win10-Clang-* tasks that are currently failing to execute because no bots match their "os" dimension.

Change-Id: I6b1237cf7c85a2dd9ac1c97bb8cd41a12b859a75
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/418316
Commit-Queue: Leandro Lovisolo <lovisolo@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
Auto-Submit: Leandro Lovisolo <lovisolo@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
2021-06-14 22:27:19 +00:00
Ethan Nicholas
2705cbf9bd Switched SkSL parser APIs from char* + length to string_view
Change-Id: I9f4378b622699d80bef449f9857117e9cc437956
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/418140
Reviewed-by: Brian Osman <brianosman@google.com>
Reviewed-by: John Stiles <johnstiles@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
2021-06-14 20:59:52 +00:00
Mike Reed
d6c51edd52 PixelRef is not a flattenable
Change-Id: Idbc64a11c29e3bffcf788ec99cf157b9c5fd0226
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/418056
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
2021-06-12 22:52:40 +00:00
Mike Reed
cd33e4accd purge unused flattenable enums
... on the assumption that we don't need stable values

related: https://skia-review.googlesource.com/c/skia/+/417979

Change-Id: I483309052bc34733a8abe87fb188278d203cd6cf
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/417978
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
2021-06-12 21:59:48 +00:00
John Stiles
bc4bc5f1e2 Add setter API for willReadDstColor FP flag.
Change-Id: I734a91a1497f9b2fe8abcc572c7f60509bb043bd
Bug: skia:12080
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/417977
Commit-Queue: John Stiles <johnstiles@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2021-06-11 21:27:17 +00:00
John Stiles
9b0841d822 Remove "magic bus-error" pointer reassignment.
Change-Id: I0fe4f239b32c255c950282fe68c8c4c62e839798
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/417896
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2021-06-11 17:26:27 +00:00
Kyle Carlstrom
1907f9051e Expanded PropertyObserver interface to include Node Type
Change-Id: I86b0ab3445f8fe4790492fa1b942c97e3053af9e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/417264
Reviewed-by: Florin Malita <fmalita@google.com>
Commit-Queue: Florin Malita <fmalita@google.com>
2021-06-11 17:00:47 +00:00
Mike Reed
bc215ba3bb Web api to expose icu-like functionality
Corresponding C++ interface
https://skia-review.googlesource.com/c/skia/+/416096

Change-Id: I9d9eb2ec9368097171b2f6da99841256eec5b92f
No-Try: true
Docs-Preview: https://skia.org/?cl=415739
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/415739
Reviewed-by: Mike Reed <reed@google.com>
2021-06-11 14:44:50 +00:00
Ethan Nicholas
5c75e8322d Moved Settings handling into SkSLFieldAccess
This lets the magic behavior of accessing a field of sk_Caps work from
DSL.

Change-Id: I7d21842023ee74b0d9ca8da44622a11e3a8319c8
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/417682
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
2021-06-11 13:34:17 +00:00
skia-autoroll
dd84dd09f3 Roll ANGLE from d769742c30c2 to 1fcbf77c7397 (12 revisions)
d769742c30..1fcbf77c73

2021-06-11 ianelliott@google.com Vulkan: Fix AGI hierarchy for query commands
2021-06-11 syoussefi@chromium.org Vulkan: SPIR-V Gen: Specialization constants
2021-06-10 ynovikov@chromium.org Roll chromium_revision 6c5859c895..399855f4bb (890175:891326)
2021-06-10 syoussefi@chromium.org Roll VK-GL-CTS from d17a353c6cd4 to 7f2ec8531b64 (15 revisions)
2021-06-10 syoussefi@chromium.org Declare specialization constants in the AST
2021-06-10 jplate@google.com CL: Add program build commands
2021-06-10 jmadill@chromium.org Use Chromium mirror of tools/perf.
2021-06-10 jplate@google.com CL: Add image enqueue commands
2021-06-10 sergeyu@google.com [Fuchsia] Cleanup vulkan_fuchsia_ext.h
2021-06-10 angle-autoroll@skia-public.iam.gserviceaccount.com Roll vulkan-deps from 4d0e65d25f37 to d19e20ee6d7d (4 revisions)
2021-06-10 angle-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from 5ecc95a00e2b to 81ba5f47b66c (1 revision)
2021-06-10 gert.wollny@collabora.com test/ImageTest: Clear back buffer when test cleanup

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 adlai@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/master/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: adlai@google.com
Change-Id: I4f8307ef28d8f4ae53ff343db8a00b45ec4fa965
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/417756
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-06-11 05:36:48 +00:00
skia-autoroll
34e5b48cea Roll SwiftShader from 81ba5f47b66c to 9559e5836cc1 (1 revision)
https://swiftshader.googlesource.com/SwiftShader.git/+log/81ba5f47b66c..9559e5836cc1

2021-06-10 nicolascapens@google.com Revert "Remove git submodules before rolling into 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 adlai@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/master/autoroll/README.md

Cq-Include-Trybots: skia/skia.primary:Test-Debian10-Clang-GCE-GPU-SwiftShader-x86_64-Debug-All-SwiftShader
Bug: None
Tbr: adlai@google.com
Change-Id: I0b52db629e145febcf6c14ebf475ae91daec51b9
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/417776
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-06-11 05:36:47 +00:00
skia-autoroll
2a07fd68eb Roll Dawn from f8a0f82fad38 to 74f0c02044ca (1 revision)
https://dawn.googlesource.com/dawn.git/+log/f8a0f82fad38..74f0c02044ca

2021-06-10 yunchao.he@intel.com Refactor CopySplitTests.cpp in unittest D3D12

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 jrprice@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/master/autoroll/README.md

Cq-Include-Trybots: skia/skia.primary:Build-Debian10-Clang-x86_64-Debug-Dawn
Bug: None
Tbr: jrprice@google.com
Change-Id: I645f04ff58b6cd9c0de8e638fa6821c651754601
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/417758
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2021-06-11 05:31:07 +00:00