Commit Graph

60341 Commits

Author SHA1 Message Date
John Stiles
74742130b0 Update sksl_small benchmark with bitmap-text shader.
Previously, we used the Imgui paint shader. However, it uses a custom
mesh now. This increases its starting size substantially. The bitmap
text shader is a better example of a compact but still functionally-
useful shader.

(I also checked the medium and large shaders; these have not changed at
all since our last update, since Ganesh rarely changes now.)

Change-Id: I8e41aeaf4241d64910bd8188155ba428a6b0dbaa
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/533879
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2022-04-25 21:53:24 +00:00
Arman Uguray
99bd2226fc [ganesh] Make GrGpu::deleteFence non-const
As a virtual method, there isn't a specific reason for deleteFence
to prescribe const-ness onto GrGpu implementations. This function is no
longer declared as const.

Change-Id: I3016769fd7a114e14f7f5b03ba1931e5130e8060
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/533757
Reviewed-by: Greg Daniel <egdaniel@google.com>
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Arman Uguray <armansito@google.com>
2022-04-25 21:43:14 +00:00
Kevin Lubick
f8e52b27aa [bazel] Use minimal download flag when building on CI
https://bazel.build/reference/command-line-reference#flag--remote_download_minimal

This will hopefully speed up CI builds by a few seconds
because we don't have to copy the builds from the
RBE instances to our machines running the bazel task.

Testing locally, a build with an empty local bazel cache
but warm remote cache took 35 seconds with the status
quo and 13 seconds with the new flag.

Change-Id: I04ba4b0d7ba7864746c52d103be14f4f7b238d39
Bug: skia:12541
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/533756
Reviewed-by: Erik Rose <erikrose@google.com>
Reviewed-by: Leandro Lovisolo <lovisolo@google.com>
2022-04-25 20:29:36 +00:00
Kevin Lubick
ce5ec016e4 Guard GPU parts of ToolUtils
This was breaking:
bazel build //tools/skdiff --config=clang

which does not compile with any GPU backend.

Change-Id: I0f95ebbab6542f7ae5ea8f8a87ea2a5a5d01d993
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/532760
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
2022-04-25 19:30:42 +00:00
Greg Daniel
7dd8c705a5 Reland "Check that the GrBackendFormat of a promise image is textureable."
This is a reland of commit 866bd64c1b

Original change's description:
> Check that the GrBackendFormat of a promise image is textureable.
>
> Bug: chromium:1311844
> Change-Id: I13bae71305ae9520851cd1ea38a1da737b934dd1
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/532196
> Reviewed-by: Brian Salomon <bsalomon@google.com>
> Commit-Queue: Greg Daniel <egdaniel@google.com>

Bug: chromium:1311844
Change-Id: I01e2d0e4eb01ee7d97798db6eeff73fec76bf521
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/532408
Auto-Submit: Greg Daniel <egdaniel@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
2022-04-25 18:53:38 +00:00
Ben Wagner
9cbadcd928 Add optional OT-SVG support to FreeType
Bug: skia:12290
Change-Id: I064bee781d3a714e46f102cb48494fbe8f3e46e8
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/516436
Reviewed-by: Florin Malita <fmalita@google.com>
Reviewed-by: Derek Sollenberger <djsollen@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
2022-04-25 18:51:01 +00:00
John Stiles
4f33f5bef8 Migrate as_sksl out of skgpu::wangs_formula.
This is only referenced by tessellation code now, so it's been moved to
GrTessellationShader.cpp. (In the near future, we may remove this code
entirely, since it is not very impactful for performance.)

Change-Id: Id0f176220efb3eeed63e08c2c1faa48df07cd124
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/533676
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
2022-04-25 18:19:10 +00:00
John Stiles
3f8fc145ba Migrate middle-out code into Graphite vert module.
This will allow the SkSL compiler to avoid reprocessing it each time
it is used. This reduces the input SkSL for most Graphite vertex
programs to just a few lines of code.

This also deduplicates a lot of identical SkSL between the
TesselateWedges and TesselateCurves render steps.

Change-Id: I697b3284eba1ede8a2643ba9f4d76b699d3fd756
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/533576
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
2022-04-25 17:07:34 +00:00
John Stiles
24d95c7001 Migrate Wang's Formula logic into Graphite vert module.
This will allow the SkSL compiler to avoid reprocessing it each time
it is used.

Unfortunately, Ganesh also uses this code and appears to inject it
directly into GLSL programs (not SkSL), so we can't remove
`wangs_formula::to_sksl` entirely without making significant Ganesh
changes. (We could probably move it into ganesh, though.)

Change-Id: I4468b22f5ef4d19f2afeaff2d6b4fda5cbcfed9b
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/533399
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
2022-04-25 17:04:58 +00:00
John Stiles
74b72a9b4a Separate out ExpressionStatement::Convert and ::Make.
At http://review.skia.org/469525, I updated ExpressionStatement::Make so
that it would report errors in the case of an incomplete expression, but
neglected to split it into a Convert/Make pair. Now, like other
statements, it has a Convert path (for clean error reporting) and a Make
path (for already-error-checked IR construction).

Change-Id: Id89b6220beb5d815b5ae5a663b7fc4c0509d0c40
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/532786
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
2022-04-25 13:43:38 +00:00
Kevin Lubick
6c78b8d3ae Revert "Move SkCamera.h to client_utils/android"
This reverts commit 8a54d86c78.

Reason for revert: Causing issues with Android CTS

Original change's description:
> Move SkCamera.h to client_utils/android
>
> Android still uses this
> https://developer.android.com/reference/android/graphics/Camera
> but no other client does.
>
> This adds a little adaption layer until Android is updated
> to use the View3D version.
>
> Move SkCamera.h to View3D.h. Change names to android::skia::CLASS
> instead of SkCLASS. (3DView is not a valid class name, so rename it to
> View3D.)
>
> Forward-declare SkMatrix. Do not override SkNoncopyable - just delete
> the copy constructor/operator=. Make fU and fV private in Patch3D.
>
> Make Sk3DView override View3D temporarily until Android can be switched
> over to the new class.
>
> (View3D from http://review.skia.org/291371)
>
> I made Patch3D and Camera3D be private classes as they are
> currently not used by Android and wanted to constrain the
> exposed API as much as possible.
>
> Change-Id: Ibde45478421feeb610e045205c3f20c0e5b1567e
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/532456
> Reviewed-by: Brian Osman <brianosman@google.com>
> Reviewed-by: Leon Scroggins <scroggo@google.com>
> Commit-Queue: Kevin Lubick <kjlubick@google.com>

Change-Id: If6e768524a0e13e14ef886a6f081a09ddc0dc2fd
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/533396
Owners-Override: Kevin Lubick <kjlubick@google.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
2022-04-25 12:33:01 +00:00
skia-autoroll
858a69fcd8 Roll ANGLE from 0690f5d34ca1 to 2db718edf233 (14 revisions)
0690f5d34c..2db718edf2

2022-04-23 syoussefi@chromium.org Vulkan: Skip empty submissions
2022-04-23 abdolrashidi@google.com Split Context ResourceUseList to RP Commandbuffers
2022-04-23 abdolrashidi@google.com Split Context ResourceUseList to RP Commandbuffers
2022-04-22 kkinnunen@apple.com Avoid leaking gl::Framebuffers in gl::Context
2022-04-22 angle-autoroll@skia-public.iam.gserviceaccount.com Roll vulkan-deps from 158676f39f3b to 01fd48aca427 (13 revisions)
2022-04-22 ianelliott@google.com Further expand Vulkan end2end_test skip
2022-04-22 romanl@google.com Use _FindAdb (cached) directly instead of Adb wrapper.
2022-04-22 romanl@google.com Switch py_utils import to pathlib.
2022-04-22 ianelliott@google.com Suppress VVL UNASSIGNED-BestPractices-SemaphoreCount
2022-04-22 jmadill@chromium.org Revert "Vulkan: Cache ImageView serials on texture changes."
2022-04-22 cclao@google.com Vulkan: Add feature avoid HOST_VISIBLE and DEVICE_LOCAL combination
2022-04-22 romanl@google.com Fall back to adb on PATH if platform-tools not present.
2022-04-22 jmadill@chromium.org Track Surface color & depth/stencil init separately.
2022-04-22 angle-autoroll@skia-public.iam.gserviceaccount.com Roll Chromium from 408793418c48 to 192db13f8509 (548 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 bsalomon@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in ANGLE: https://bugs.chromium.org/p/angleproject/issues/entry
To file a bug in Skia: https://bugs.chromium.org/p/skia/issues/entry

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: bsalomon@google.com
Change-Id: I25eeee1bbeb14676a3853ee46e5bfa09481d0fd7
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/533317
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2022-04-25 05:25:30 +00:00
skia-autoroll
77a949080c Roll Chromium from d2f38d67dd7a to afe5a0f01b3b (541 revisions)
d2f38d67dd..afe5a0f01b

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 bsalomon@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Chromium: https://bugs.chromium.org/p/chromium/issues/entry
To file a bug in Skia: https://bugs.chromium.org/p/skia/issues/entry

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: bsalomon@google.com
Change-Id: Ifeb80997b988666f041917461d8a617cbf6e2ae7
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/533316
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2022-04-25 04:57:01 +00:00
skia-autoroll
44eb25e7f9 Roll SwiftShader from 71f3089b729c to f13461dbb23c (1 revision)
https://swiftshader.googlesource.com/SwiftShader.git/+log/71f3089b729c..f13461dbb23c

2022-04-22 capn@google.com Mark Reactor routine parameters 'noundef'

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 bsalomon@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in SwiftShader: https://bugs.chromium.org/p/swiftshader/issues/entry
To file a bug in Skia: https://bugs.chromium.org/p/skia/issues/entry

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: bsalomon@google.com
Change-Id: I7c619a0f8c77a0a8a7898de1fea7d664a50944fc
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/533318
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2022-04-25 04:46:02 +00:00
skia-autoroll
ee3689f522 Roll Dawn from c2f9fea56bee to 534a353c7c21 (16 revisions)
https://dawn.googlesource.com/dawn.git/+log/c2f9fea56bee..534a353c7c21

2022-04-25 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll vulkan-deps from 032c36ec6963 to f685346e2e51 (1 revision)
2022-04-23 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll ANGLE from 158951600b6e to 2db718edf233 (3 revisions)
2022-04-23 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll vulkan-deps from 53cf7fe2f4c4 to 032c36ec6963 (3 revisions)
2022-04-23 bclayton@google.com Roll third_party/webgpu-cts/ 45d2ccd25..88c034819 (4 commits)
2022-04-23 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll ANGLE from 8f56edfdd361 to 158951600b6e (10 revisions)
2022-04-22 senorblanco@chromium.org GLSL writer: emit gl_PointSize = 1 in all vertex shaders for OpenGL.
2022-04-22 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll vulkan-deps from df3a617e7556 to 53cf7fe2f4c4 (9 revisions)
2022-04-22 jrprice@google.com tint: Use resolved source var in the Inspector
2022-04-22 jrprice@google.com tint: Use resolved source var in LocalizeStructArrayAssignment
2022-04-22 jrprice@google.com tint: Track originating variables in the resolver
2022-04-22 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from 71f3089b729c to f13461dbb23c (1 revision)
2022-04-22 amaiorano@google.com tint: make Lexer use line breaks from Source::File
2022-04-22 cwallez@chromium.org remove_files.py: Print warnings on removals
2022-04-22 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll ANGLE from 0439d9cd25b4 to 8f56edfdd361 (2 revisions)
2022-04-22 ukai@google.com tint_generator_wgsl_corpus should wait for remove_stale_autogen_files
2022-04-22 enga@chromium.org Generalize expectation for recently added suppression.

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 shrekshao@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Dawn: https://bugs.chromium.org/p/dawn/issues/entry
To file a bug in Skia: https://bugs.chromium.org/p/skia/issues/entry

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: shrekshao@google.com
Change-Id: Id25c2563b3280419724c797824b66b680c7763fc
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/533319
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2022-04-25 04:37:37 +00:00
skia-autoroll
61fe17ec6e Roll vulkan-deps from 032c36ec6963 to f685346e2e51 (1 revision)
https://chromium.googlesource.com/vulkan-deps.git/+log/032c36ec6963..f685346e2e51

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

To file a bug in skia: https://bugs.chromium.org/p/skia/issues/entry

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;skia/skia.primary:Build-Debian10-Clang-x86_64-Release-ANGLE;skia/skia.primary:Test-Win10-Clang-NUC5i7RYH-GPU-IntelIris6100-x86_64-Debug-All-ANGLE
Bug: None
Tbr: bsalomon@google.com
Change-Id: If5a22aeeed290d318c3b351f49b3bcb8f8ab0b59
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/533284
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2022-04-24 23:50:31 +00:00
skia-recreate-skps@skia-swarming-bots.iam.gserviceaccount.com
fef0c5a8cd Update SKP version
Automatic commit by the RecreateSKPs bot.

Change-Id: I9194d9b363ff7296181dbf602c4a59f43aa24b6f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/533180
Commit-Queue: skia-recreate-skps@skia-swarming-bots.iam.gserviceaccount.com <skia-recreate-skps@skia-swarming-bots.iam.gserviceaccount.com>
Bot-Commit: skia-recreate-skps@skia-swarming-bots.iam.gserviceaccount.com <skia-recreate-skps@skia-swarming-bots.iam.gserviceaccount.com>
2022-04-24 08:14:03 +00:00
skia-autoroll
c14d339e99 Roll vulkan-deps from cba75d6a962a to 032c36ec6963 (4 revisions)
https://chromium.googlesource.com/vulkan-deps.git/+log/cba75d6a962a..032c36ec6963

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

To file a bug in skia: https://bugs.chromium.org/p/skia/issues/entry

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;skia/skia.primary:Build-Debian10-Clang-x86_64-Release-ANGLE;skia/skia.primary:Test-Win10-Clang-NUC5i7RYH-GPU-IntelIris6100-x86_64-Debug-All-ANGLE
Bug: None
Tbr: wrightgeorge@google.com
Change-Id: I90fb613f67e4527b3d56ea7b0063db318770d9a7
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/533056
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2022-04-23 07:55:34 +00:00
John Stiles
6d52b8cc24 Add missing headers to sksl.gni.
Change-Id: I225de583d408f1ca29e7e74d591e9be1ab2cbc20
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/532785
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
2022-04-22 21:21:23 +00:00
John Stiles
c6b2e7115a Limit sksl_rt_shader to internal usage only.
We now have a new type of ProgramKind, private runtime shaders.
`sksl_rt_effect.sksl` is now only loaded for these kinds of program.

Rather than having a special-case check for sk_FragCoord in
SkRuntimeEffect, the symbol will no longer exist at all unless a private
options flag is set.

Change-Id: I9223baaf59d74c44d64f322cd57fc841625342b7
Bug: skia:12202
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/532784
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2022-04-22 21:06:31 +00:00
John Stiles
20718d3547 Add test demonstrating sk_FragCoord usage in a runtime shader.
Right now nothing prevents it from working. (skslc doesn't use
SkRuntimeEffect::MakeInternal.) This will be fixed in a followup.

Change-Id: Ib8479220e1f194b035516d976a7369d926a07f5d
Bug: skia:12202
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/532783
Reviewed-by: Brian Osman <brianosman@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2022-04-22 21:06:31 +00:00
Brian Osman
94be4f40bb Remove array handling from logic in ErrorCheck
Callers have already stripped off any array, so assert that's true. I
also double-checked the various tests in that function -- I think
they're all valid whether or not the baseType started out as an array.

Change-Id: Ia7c75e5e4d4b0e5946dbc6989ae05418f90d642a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/532782
Reviewed-by: John Stiles <johnstiles@google.com>
Reviewed-by: Arman Uguray <armansito@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2022-04-22 20:57:35 +00:00
Brian Osman
46aad8435a Move runtime effect uniform type checking into the compiler
This has two benefits:
1) We get detailed error messages with accurate positions
2) We can actually test these in our golden .rts files.

Thanks to #2, add a new unit test file, and adjust some existing files
that were breaking these rules.

Change-Id: I0b65e2f06f79ce8cbea9bad4c3d27062ec9b6e6c
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/532769
Reviewed-by: Arman Uguray <armansito@google.com>
Reviewed-by: John Stiles <johnstiles@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2022-04-22 20:54:26 +00:00
skia-autoroll
0c57432149 Roll vulkan-deps from 01fd48aca427 to cba75d6a962a (1 revision)
https://chromium.googlesource.com/vulkan-deps.git/+log/01fd48aca427..cba75d6a962a

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

To file a bug in skia: https://bugs.chromium.org/p/skia/issues/entry

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;skia/skia.primary:Build-Debian10-Clang-x86_64-Release-ANGLE;skia/skia.primary:Test-Win10-Clang-NUC5i7RYH-GPU-IntelIris6100-x86_64-Debug-All-ANGLE
Bug: None
Tbr: wrightgeorge@google.com
Change-Id: Ic0e7bd089f5bc5870989c0e3b891e4567cfcfc14
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/532911
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2022-04-22 19:14:37 +00:00
Ethan Nicholas
d418ddbfc5 Improved SkSL error positions for return types
Bug: skia:13169
Change-Id: Icf0b720d3e3a13d490aba8495cf9db83d1d62318
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/532762
Reviewed-by: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
2022-04-22 19:13:45 +00:00
Ravi Mistry
9431b073fe Update depot_tools version in skia repo
Bug: skia:12967
Change-Id: I79614b1f65638cc05e40bbe51605882ea41acc2e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/532767
Reviewed-by: Eric Boren <borenet@google.com>
Commit-Queue: Ravi Mistry <rmistry@google.com>
2022-04-22 18:31:35 +00:00
John Stiles
bca1b0c955 Add ReducedBlendModeInfo to shared code.
This will allow us to reuse this logic in Graphite.

Change-Id: I649dcd3893a1355af457a2583a6db3066fb87c9a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/532758
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2022-04-22 17:18:31 +00:00
John Stiles
16eed2b89a Move BlendFuncName into shared code.
This will allow Graphite to use it.

Change-Id: I99cf9c18842031619aa1a008c9f35adbaaa5156b
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/532776
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
2022-04-22 14:41:12 +00:00
Ethan Nicholas
56217f0722 Improved positions of variable name errors
Bug: skia:13170
Change-Id: I11ef0ea5ac3ae61b24a47805bb3290a37880cfee
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/532536
Reviewed-by: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
2022-04-22 14:39:14 +00:00
Herb Derby
a889f614fb Enable Slug GM without need for defines
There is enough Slug infrastructure in place that this can be
turned on without the need for -D flags. This allows Slugs
to be tested in the CQ.

Change-Id: I1ff5cecb5acc061ff6e59702fff5af8aba92523a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/532757
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Herb Derby <herb@google.com>
2022-04-22 14:32:12 +00:00
Kevin Lubick
8a54d86c78 Move SkCamera.h to client_utils/android
Android still uses this
https://developer.android.com/reference/android/graphics/Camera
but no other client does.

This adds a little adaption layer until Android is updated
to use the View3D version.

Move SkCamera.h to View3D.h. Change names to android::skia::CLASS
instead of SkCLASS. (3DView is not a valid class name, so rename it to
View3D.)

Forward-declare SkMatrix. Do not override SkNoncopyable - just delete
the copy constructor/operator=. Make fU and fV private in Patch3D.

Make Sk3DView override View3D temporarily until Android can be switched
over to the new class.

(View3D from http://review.skia.org/291371)

I made Patch3D and Camera3D be private classes as they are
currently not used by Android and wanted to constrain the
exposed API as much as possible.

Change-Id: Ibde45478421feeb610e045205c3f20c0e5b1567e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/532456
Reviewed-by: Brian Osman <brianosman@google.com>
Reviewed-by: Leon Scroggins <scroggo@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
2022-04-22 14:20:09 +00:00
Kevin Lubick
cb76656bb2 Roll Dawn from 4091e0fa9c1e to c2f9fea56bee (12 revisions)
https://dawn.googlesource.com/dawn.git/+log/4091e0fa9c1e..c2f9fea56bee

2022-04-22 stephen@hexops.com dawn/native: Fix undefined behaviour in BindGroupTracker when passing no dynamic offsets
2022-04-22 enga@chromium.org Add back fail expectation on CTS Windows x86
2022-04-21 enga@chromium.org Make the dawn-try-win10-x86-rel trybot includable
2022-04-21 bclayton@google.com Roll third_party/webgpu-cts/ a06666e00..45d2ccd25 (3 commits)
2022-04-21 dawn-autoroll@skia-public.iam.gserviceaccount.com Roll ANGLE from b2a1f0d28a62 to 0439d9cd25b4 (25 revisions)
2022-04-21 aleksi.sapon@faro.com Fix dawn_version_generator.py on Windows when not using depot_tools
2022-04-21 jrprice@google.com tint: Update FirstIndexOffsetTest expected results
2022-04-21 dsinclair@chromium.org Fix readability/todo issues.
2022-04-21 dsinclair@chromium.org Fix build/namespaces issues
2022-04-21 brandon1.jones@intel.com Change External Texture YUV-to-RGB Conversion to Use Matrix
2022-04-21 bclayton@google.com Update WebGPU CTS expectations
2022-04-21 dsinclair@chromium.org [tint] Move validation code into a Validator class.

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 shrekshao@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Dawn: https://bugs.chromium.org/p/dawn/issues/entry
To file a bug in Skia: https://bugs.chromium.org/p/skia/issues/entry

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

Change-Id: Ic8dfe5e0e20b076516df279a8bc5debad8c26662
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/532759
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
2022-04-22 13:16:01 +00:00
Erik Rose
5462871c7a [infra] Update the signing identity for iOS to a new, unexpired cert.
This ought to fix both the Mac and iOS builds and is needed as an addendum to
https://skia-review.googlesource.com/c/skia/+/531553.

Change-Id: Iddc1adc58284fdf4c38ea01486dec8963db55157
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/532779
Reviewed-by: Ravi Mistry <rmistry@google.com>
Commit-Queue: Erik Rose <erikrose@google.com>
2022-04-22 13:16:00 +00:00
skia-autoroll
7a85230e7e Roll vulkan-deps from f3c177f46465 to 01fd48aca427 (5 revisions)
https://chromium.googlesource.com/vulkan-deps.git/+log/f3c177f46465..01fd48aca427

Also rolling transitive DEPS:
  https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-Tools from ef20059aea7e to a9d2badae234

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

To file a bug in skia: https://bugs.chromium.org/p/skia/issues/entry

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;skia/skia.primary:Build-Debian10-Clang-x86_64-Release-ANGLE;skia/skia.primary:Test-Win10-Clang-NUC5i7RYH-GPU-IntelIris6100-x86_64-Debug-All-ANGLE
Bug: None
Tbr: wrightgeorge@google.com
Change-Id: I7c9c4d9e58cf04266071fddc6b78b91e63878f2a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/532903
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2022-04-22 06:35:07 +00:00
skia-autoroll
5d12934194 Roll ANGLE from 6cbedc98406c to 0690f5d34ca1 (11 revisions)
6cbedc9840..0690f5d34c

2022-04-21 ianelliott@google.com Revert "CGL, MTL: pbuffer for IOSurface fails for some formats"
2022-04-21 jmadill@chromium.org Vulkan: Update glslang wrapper TODO.
2022-04-21 jmadill@chromium.org Revert "Re-land: "Vulkan: Support Wayland""
2022-04-21 jmadill@chromium.org Expand Vulkan end2end_test skip.
2022-04-21 sugoi@google.com Disable MSAN in the Vulkan loader
2022-04-21 jmadill@chromium.org Android: Add //build to blueprint.
2022-04-21 Guoxing.Wu@arm.com Vulkan: use "undefined" for layerProvokingVertex
2022-04-21 angle-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from ea5f37f39193 to 71f3089b729c (5 revisions)
2022-04-21 angle-autoroll@skia-public.iam.gserviceaccount.com Roll Chromium from a434f1de2483 to 408793418c48 (456 revisions)
2022-04-21 lexa.knyazev@gmail.com Avoid IOError in capture_replay_tests.py
2022-04-21 steven@valvesoftware.com EGL: allow eglQueryString(EGL_NO_DISPLAY, EGL_VERSION)

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 wrightgeorge@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in ANGLE: https://bugs.chromium.org/p/angleproject/issues/entry
To file a bug in Skia: https://bugs.chromium.org/p/skia/issues/entry

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: wrightgeorge@google.com
Change-Id: I901cb9d01eb9988fb11945c3047a403fb95be802
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/532897
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2022-04-22 05:25:02 +00:00
skia-autoroll
f585978ec9 Roll Chromium from ef42d9817ebd to d2f38d67dd7a (525 revisions)
ef42d9817e..d2f38d67dd

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 wrightgeorge@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Chromium: https://bugs.chromium.org/p/chromium/issues/entry
To file a bug in Skia: https://bugs.chromium.org/p/skia/issues/entry

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: wrightgeorge@google.com
Change-Id: I7e8d36dfe54818be827088017937168074960acc
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/532896
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2022-04-22 04:42:37 +00:00
Erik Rose
52489092ed Reland "[infra] Update iOS device provisioning profile."
This is a reland of commit a370ecf9fc

Original change's description:
> [infra] Update iOS device provisioning profile.
>
> We're moving from Apple's Enterprise program to their Developer program,
> which requires a new profile. Versions 7 and 8 were mistaken uploads of
> who-knows-what by yours truly, so we skip them.
>
> Change-Id: I1b7913781eae5c643e60b47ad374a4365cef7bce
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/531553
> Reviewed-by: Ravi Mistry <rmistry@google.com>
> Commit-Queue: Erik Rose <erikrose@google.com>

Change-Id: Idd8781b35632455332f735a665fe6956c3aedd71
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/532778
Reviewed-by: Joe Gregorio <jcgregorio@google.com>
Commit-Queue: Joe Gregorio <jcgregorio@google.com>
2022-04-22 04:34:33 +00:00
John Stiles
58d5cbcebf Remove static SkSL code from ShaderCodeDictionary.
Static SkSL lives in `sksl_graphite_frag.sksl` now. In order to make
changes to the static code, please set `skia_compile_modules = true` in
your GN args.

Change-Id: I5c04f5fc7fdb835d0c3ff6cf6c1b054722ea35d1
Bug: skia:13110
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/532407
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2022-04-21 21:05:27 +00:00
John Stiles
b6cd339d9c Migrate Graphite shader code into sksl_graphite_frag.
This allows us to pre-parse and analyze the code once at startup,
instead of every time a shader is assembled.

In order to make changes to `sksl_graphite_frag.sksl`, please set
`skia_compile_modules = true` in your GN args. This will cause the
dehydrated code to be regenerated at build time. This should not slow
down normal builds; it only rebuilds when dirty.

Change-Id: I08f2005399ea3a12726946db1e3f2c39f9c24df8
Bug: skia:13110
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/532398
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
2022-04-21 21:05:27 +00:00
John Stiles
d3ecfb3bb8 Add Graphite-only dehydrated modules.
Graphite code snippets can be moved into these files; they will be
compiled once at build time and dehydrated for later use. This allows us
to avoid synthesizing and compiling them in each shader where they are
referenced. (Unfortunately, the GPU driver will still need to compile
them each time.)

Change-Id: I5cdc5881d71d7b81a02c91a84d52804f2909b483
Bug: skia:13110
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/532259
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2022-04-21 21:05:27 +00:00
John Stiles
42de32a919 Add ProgramUsage support for nested modules.
Previously, we would not scan our base module for variable usage when
preparing to optimize a loaded module. This worked in practice, because
modules were previously unable to call code inside other modules at all.

Change-Id: I1936485ed9f4160cad785d6227102dd1d9ffb34e
Bug: skia:13164
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/532397
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2022-04-21 21:05:27 +00:00
skia-autoroll
d941ff8c5a Roll SK Tool from 8ea43ee7136e to ef18d9ac36ea
https://skia.googlesource.com/buildbot.git/+log/8ea43ee7136e..ef18d9ac36ea

2022-04-21 jcgregorio@google.com Use mockery from go.mod.

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 file a bug in Skia: https://bugs.chromium.org/p/skia/issues/entry

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: lovisolo@google.com
Change-Id: Ifb278cb84672c94d7e80ee9dd7c3348ae0cf3fbe
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/532796
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2022-04-21 20:35:36 +00:00
Robert Phillips
4af43d1165 [graphite] First version of drawImageRect
Bug: skia:12701
Change-Id: Icb2da9fb12f1bf815cda7d337dba6092aaba0612
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/531317
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
2022-04-21 18:59:43 +00:00
Kevin Lubick
fac696ee54 [bazel] Add --keep_going to IWYU job
Devs who cannot run IWYU locally (yet) should get more detailed
errors from this and require fewer CQ jobs to fix any errors.

Change-Id: Icdbfba3feaeadb6c180fb1d3ea4a754b8d3ce51d
Bug: skia:12541
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/532402
Reviewed-by: John Stiles <johnstiles@google.com>
2022-04-21 18:28:35 +00:00
skia-autoroll
26ecde97eb Roll vulkan-deps from df3a617e7556 to f3c177f46465 (2 revisions)
https://chromium.googlesource.com/vulkan-deps.git/+log/df3a617e7556..f3c177f46465

Also rolling transitive DEPS:
  https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-Headers from 76f00ef6cbb1 to 8ba8294c86d0

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

To file a bug in skia: https://bugs.chromium.org/p/skia/issues/entry

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;skia/skia.primary:Build-Debian10-Clang-x86_64-Release-ANGLE;skia/skia.primary:Test-Win10-Clang-NUC5i7RYH-GPU-IntelIris6100-x86_64-Debug-All-ANGLE
Bug: None
Tbr: wrightgeorge@google.com
Change-Id: I3cfbeb0b1ffd5fdf87debb3960f5ec4912bd6a23
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/532636
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Bot-Commit: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2022-04-21 17:55:04 +00:00
John Stiles
d67a67c4bd Fix Rehydrator bug with built-in variable references.
We need to use `possiblyBuiltinSymbolRef` when rehydrating variable
references to account for dehydrated code which accesses variables like
sk_FragCoord.

Change-Id: I2ae596eb0c78b289b69fa1dd10bf01b83981a0f6
Bug: skia:13164
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/532237
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
2022-04-21 17:00:36 +00:00
Ethan Nicholas
ccd85d5835 Improved positions of for loop errors
Bug: skia:13173
Change-Id: Ifbcce77605dd781563568293fc501dfa31f143da
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/528706
Reviewed-by: Brian Osman <brianosman@google.com>
Reviewed-by: John Stiles <johnstiles@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
2022-04-21 16:56:12 +00:00
Jim Van Verth
dfab663577 De-namespace uses of MaskFormat
Bug: skia:13118
Change-Id: Iab67fd1148182fdd29a38b69f27c51b13942a2b5
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/532400
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
2022-04-21 15:55:21 +00:00
Dominik Röttsches
bcc249a7e4 Remove code gated by flags for COLRv1 fixes
Remove code suppressed by SK_IGNORE_COLRV1_TRANSFORM_FIX and
SK_IGNORE_COLRV1_SWEEP_FIX as these flags are no longer used on the
Chromium side and the respective tests were rebased there.

Bug: chromium:1316318
Change-Id: Ic3235524e366688067310f489919bbbaa9a8a094
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/532056
Auto-Submit: Dominik Röttsches <drott@chromium.org>
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
2022-04-21 15:47:40 +00:00
Brian Salomon
eb738a0939 Remove guards for legacy kStrict behavior
Bug: skia:10481
Bug: skia:13078
Bug: skia:10411
Bug: skia:13036
Change-Id: Ifa5882b37ce974def779a9fa2a0f8a9bf26f09b7
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/532476
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
2022-04-21 15:34:12 +00:00