Commit Graph

48899 Commits

Author SHA1 Message Date
Herb Derby
396deb032b Move addToAtlas to GrAtlasManager
Change-Id: I24cee3587da3dabfc618e2c028d37bbdac52cde0
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293938
Commit-Queue: Herb Derby <herb@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
2020-06-04 16:16:13 +00:00
Stephen White
b007bb25a1 Dawn: skip PromiseImageShutdownTest and TextureIdleProcTest.
These tests create a wgpu::Texture which outlives the  wgpu::Device
which created it. This is problematic on Dawn, so just skip
the tests for now.

Bug: skia:10326
Change-Id: I29d5328e313baca19a2bbc2eedd80f2768cae77e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293936
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Stephen White <senorblanco@chromium.org>
2020-06-04 16:16:12 +00:00
Kevin Lubick
024d42fdd6 [canvaskit] roll v0.16.1
Change-Id: Ieb00340af7b157efbbbba995fd936ce98465d4ec
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/294297
Reviewed-by: Nathaniel Nifong <nifong@google.com>
2020-06-04 14:39:07 +00:00
Jim Van Verth
f278886e1e Direct3D: Create samplers and shaderResourceViews for textures.
Mirrors what we have in Vulkan -- there's a cache of samplers in the
resource provider, and views are associated with their particular
texture resource.

Change-Id: I3751bce0817581a0044a7eea1b0c3ef9cc14d8e1
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293537
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
2020-06-04 14:37:54 +00:00
Greg Daniel
7f3408ba99 Update GrVkImage setImageLayout to take a specific queue index.
Change-Id: I570cfa34e06d279f6d718c2cc6ff008c697fd5d1
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293849
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
2020-06-04 14:35:45 +00:00
Mike Klein
1faaa97f80 Revert "apply SkOpts_skx approach to SkOpts_hsw"
This reverts commit 08a39c2b5f.

Reason for revert: Flutter roll?

Original change's description:
> apply SkOpts_skx approach to SkOpts_hsw
> 
> Very slightly different build flags, switching from -march=haswell to
> -mavx2 -mfma -mf16c, but there are no diffs.
> 
> Left some TODOs for the next ones, but _hsw being so common I figured
> I'd do this one stand alone and make sure it shakes down before doing
> the rest.
> 
> clang-cl (but not clang) barfs when we've got a lambda using an AVX
> intrinsic inside a templated static helper function. Luckily they're
> all non-type template parameters, so we can just pass them as normal
> arguments, and it'll optimize the same as the templated code anyway.
> 
> This was weird, but since we're covering almost all the SkFoo_opts.h
> headers with HSW here, I don't anticipate this being a problem in the
> future.  (And I'm sure I'll never look back on this statement as naive.)
> 
> Change-Id: I2f84db356cafa5e158bcc3724fb1c3f58aca7f1e
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293599
> Reviewed-by: Herb Derby <herb@google.com>
> Commit-Queue: Mike Klein <mtklein@google.com>

TBR=mtklein@google.com,herb@google.com,reed@google.com

Change-Id: If3a75158d6e017f180d9e38d9ba296a0d72e1384
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/294281
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Mike Klein <mtklein@google.com>
2020-06-04 14:20:36 +00:00
Mike Klein
7f5b734505 Revert "finish new-style opts"
This reverts commit 4272d071d9.

Reason for revert: Flutter roll?

Original change's description:
> finish new-style opts
> 
> Nothing super interesting.
> 
> SkOpts_crc32.cpp is worth looking at
> as the only non-x86 code.
> 
> I marked a few places I think we can
> trim to save code size as follow ups.
> 
> Change-Id: Ifdc8f4d1495ff56df5d2cdde39f7e9a6ac2b1277
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/294019
> Auto-Submit: Mike Klein <mtklein@google.com>
> Commit-Queue: Herb Derby <herb@google.com>
> Reviewed-by: Herb Derby <herb@google.com>

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

Change-Id: Idbb914788489bdc5941f7fed23bf26d35d90dca4
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/294280
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Mike Klein <mtklein@google.com>
2020-06-04 14:20:17 +00:00
Ben Wagner
bfe44b6974 Don't leak ref returned by SkFontMgr::matchFamilyStyle.
The current code does an extra ref on the SkTypeface returned from
SkFontMgr::matchFamilyStyle. This old API needs to be updated to return
sk_sp<SkTypeface> instead of a ref'ed bare SkTypeface*.

Bug: skia:10325
Change-Id: I191b494fb86b99fc53b6eb850d65ba73e60dc489
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/294038
Auto-Submit: Ben Wagner <bungeman@google.com>
Commit-Queue: Julia Lavrova <jlavrova@google.com>
Reviewed-by: Julia Lavrova <jlavrova@google.com>
2020-06-04 13:46:10 +00:00
Geoff Lang
c3320be506 Reland "Request specific ANGLE context versions."
This is a reland of 8eeff5ccf3

Original change's description:
> Request specific ANGLE context versions.
> 
> Using the ANGLE_create_context_backwards_compatible extension, request
> explicit ANGLE context versions to make sure test coverage of context
> versions matches Chrome.
> 
> BUG=skia:10309
> 
> Change-Id: Ifa4a36851a0517b369d094e5707348a20eaf3879
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293339
> Reviewed-by: Brian Salomon <bsalomon@google.com>
> Commit-Queue: Brian Salomon <bsalomon@google.com>
> Auto-Submit: Geoff Lang <geofflang@google.com>

Bug: skia:10309
Change-Id: Ida0f226a693354211f35c391bdc0b5bb285a2d3d
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293761
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
2020-06-04 12:49:20 +00:00
Kevin Lubick
9adc1d4f7d [canvaskit] Fix JS representation of Color
Change-Id: I4f7a54a758eb7a3c28970dde58c847a27a9c3f25
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/294256
Reviewed-by: Kevin Lubick <kjlubick@google.com>
2020-06-04 12:43:32 +00:00
Mike Klein
23708cd50e SkRecord cleanup
- Remove unused SkRecord::Adopted
 - Convert stray raw pointer in DrawPoints to PODArray,
   really just a no-op documentation change.

Change-Id: Id9d8dea920a1689e967f4386420d110a689bf946
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/294022
Auto-Submit: Mike Klein <mtklein@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Mike Reed <reed@google.com>
2020-06-04 12:20:10 +00:00
skia-recreate-skps
e19a3cec9a Update Go Deps
Change-Id: Ib5b11e398e2ce2c94d41d15c51bc56a56cecc088
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/294069
Reviewed-by: <skia-recreate-skps@skia-swarming-bots.iam.gserviceaccount.com>
Commit-Queue: <skia-recreate-skps@skia-swarming-bots.iam.gserviceaccount.com>
2020-06-04 05:34:59 +00:00
skia-autoroll
9e2ebf18e6 Roll SwiftShader from 3ad285a60d82 to 0711869b5f20 (1 revision)
https://swiftshader.googlesource.com/SwiftShader.git/+log/3ad285a60d82..0711869b5f20

2020-06-04 ari.suonpaa@siru.fi Add Z mirroring support for image blit.

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 tdenniston@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: tdenniston@google.com
Change-Id: I7cacb30f5ff73fb87a5827ba07355f4c43c81a46
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/294064
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2020-06-04 05:19:19 +00:00
skia-autoroll
be8b7ced36 Roll dawn from 295a4177aebc to 783cd5a79c8a (24 revisions)
https://dawn.googlesource.com/dawn.git/+log/295a4177aebc..783cd5a79c8a

2020-06-04 natlee@microsoft.com Avoid processing already processed tick
2020-06-03 enga@chromium.org Test that vertex attributes can overlap
2020-06-03 brandon1.jones@intel.com Try To Recover From MakeResident Failure
2020-06-03 enga@chromium.org Generate specific error when BGL storageTextureFormat is missing
2020-06-03 enga@chromium.org Metal: Handle Buffer allocation failure
2020-06-03 cwallez@chromium.org Fix compilation failure with libstdc++
2020-06-02 bryan.bernhart@intel.com D3D12: Fix RO storage buffer mismatches.
2020-06-02 enga@chromium.org Add warning for non-c-typedef-for-linkage
2020-06-02 enga@chromium.org Skip creating the VkImageView if the texture usage is only Copy
2020-06-02 cwallez@chromium.org Deprecate Buffer::SetSubData in favor of Queue::WriteBuffer
2020-06-01 enga@chromium.org D3D12: Skip dynamic buffer bindings with None visibility
2020-06-01 rharrison@chromium.org Rolling 5 dependencies
2020-06-01 bryan.bernhart@intel.com Roll third_party/shaderc/ 7d2f8c57e..da87b8d8b (3 commits)
2020-06-01 cwallez@chromium.org Fix missing space in an error string.
2020-06-01 enga@chromium.org Fix ValidateEntireSubresourceCopied
2020-06-01 cwallez@chromium.org d3d12_platform: ensure windows.h macros don't cause compile errors
2020-05-29 cwallez@chromium.org Revert "Check FP16 support on vulkan backend"
2020-05-29 enga@chromium.org Ensure dynamic buffer offset bindings are sorted in increasing order
2020-05-29 enrico.galli@intel.com D3D12: Silence known debug layer warnings
2020-05-29 cwallez@chromium.org Fix unlinking nullptr error scopes if device init failed
2020-05-29 jiawei.shao@intel.com Add basic supports of storage textures on OpenGL
2020-05-29 cwallez@chromium.org Metal: Fix clearing of subresource mipmaps.
2020-05-29 bryan.bernhart@intel.com Rolling 1 dependencies
2020-05-29 cwallez@chromium.org Remove the defaulting for bytesPerRow = 0

Also rolling transitive DEPS:
  https://chromium.googlesource.com/external/github.com/KhronosGroup/glslang from 2b0eafb1de5b to d39b8afc47a1
  https://chromium.googlesource.com/external/github.com/google/shaderc from 7d2f8c57ee3e to da87b8d8b0a1

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 cwallez@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: cwallez@google.com
Change-Id: I6ff9047af7336a1e181de70c504b13576daa6e5a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/294062
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2020-06-04 05:17:19 +00:00
skia-autoroll
96f3b4160a Roll Chromium from 065b0a7f68ea to 2f74454086a5 (474 revisions)
065b0a7f68..2f74454086

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 tdenniston@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: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: tdenniston@google.com
Change-Id: I0cad6b7b94c119db02a1f83c23e7f87bc33fc2d2
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/294061
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2020-06-04 05:10:30 +00:00
skia-autoroll
f966f4ee2c Roll ANGLE from 6c1581646c46 to 989c790d4b8b (14 revisions)
6c1581646c..989c790d4b

2020-06-04 syoussefi@chromium.org Remove workaround for fixed compiler bug
2020-06-04 syoussefi@chromium.org Update and de-duplicate expectations file format comment
2020-06-04 msisov@igalia.com Add EGL_PLATFORM_ANGLE_NATIVE_PLATFORM_TYPE_ANGLE
2020-06-03 jmadill@chromium.org No-op incomplete framebuffer invalidation.
2020-06-03 kbr@chromium.org Fix validation of PVRTC compressed texture sizes.
2020-06-03 geofflang@chromium.org Vulkan: Correct the viewport before intersecting it with the scissor.
2020-06-03 syoussefi@chromium.org Vulkan: Remove validation error suppressions for VVL bug
2020-06-03 syoussefi@chromium.org Vulkan: Remove validation error suppression for fixed issue
2020-06-03 ianelliott@google.com Vulkan: Pre-rotate dFdx() & dFdy() for Android
2020-06-03 nguyenmh@google.com Presubmit script to enforce commit message formatting
2020-06-03 angle-autoroll@skia-public.iam.gserviceaccount.com Roll Vulkan-ValidationLayers from 515b4041cc32 to d43f5107400d (1 revision)
2020-06-03 angle-autoroll@skia-public.iam.gserviceaccount.com Roll Vulkan-Tools from 2bc4fcd9eba5 to 322784a873be (1 revision)
2020-06-03 angle-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from 11dd7183c4d2 to 3ad285a60d82 (15 revisions)
2020-06-03 angle-autoroll@skia-public.iam.gserviceaccount.com Roll SPIRV-Tools from f050cca7ec47 to 636f449e1529 (1 revision)

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 tdenniston@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
Bug: chromium:1078378,chromium:1084458,chromium:951458
Tbr: tdenniston@google.com
Test: Test: angle_deqp_gles3_tests --gtest_filter=dEQP.GLES3/functional_shaders_derivateTest: Test: angle_end2end_tests --gtest_filter=*EGLPreRotationSurfaceTest.OrientedWindow
Change-Id: I5f56cca47b617cb4921d2c29662abdea6261b9ea
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/294063
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2020-06-04 05:01:59 +00:00
Ethan Nicholas
bf68ce5a04 add missing import for std::atomic
TBR=bsalomon@google.com, brianosman@google.com
Change-Id: I16ff794a3cacc4a4ce7bdf0f0a30b19b1cfbaa6b
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/294096
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
2020-06-04 04:15:19 +00:00
Herb Derby
64aa5138c7 Remove SkAtlasTextTarget
I can find no references to SkAtlasTextTarget in AOSP or in Chromium.
With google3 CL/314226466 there are no more uses in Google3.

Change-Id: I60b5f06fc17c0e4f8d008886c96645475e3d48e5
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293839
Reviewed-by: Brian Salomon <bsalomon@google.com>
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Herb Derby <herb@google.com>
2020-06-04 03:52:35 +00:00
Mike Klein
4272d071d9 finish new-style opts
Nothing super interesting.

SkOpts_crc32.cpp is worth looking at
as the only non-x86 code.

I marked a few places I think we can
trim to save code size as follow ups.

Change-Id: Ifdc8f4d1495ff56df5d2cdde39f7e9a6ac2b1277
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/294019
Auto-Submit: Mike Klein <mtklein@google.com>
Commit-Queue: Herb Derby <herb@google.com>
Reviewed-by: Herb Derby <herb@google.com>
2020-06-04 03:51:45 +00:00
Ethan Nicholas
e8ad02c6e9 Revert "Reland "Revert "Omit dead SkSL functions"""
This reverts commit a15f2bfb6f.

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

Change-Id: I64cc7830281ee69bf3377c5b6daa3d96ccf4769e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293976
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
2020-06-04 02:46:55 +00:00
Mike Klein
4aca9066d5 move #include out of header
Not important, just puzzled me when reading it.
A little IWYU.

Change-Id: I3199e6a4c34794f07bddda31032dfa871ce9bc4f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/294021
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Mike Klein <mtklein@google.com>
2020-06-04 01:02:56 +00:00
Julia Lavrova
c48caaae49 Fixing crash when some fonts are unresolved
Bug: Skia:10255
Change-Id: I5b6569603a49977c7fa96731ce46c41bf681a6b1
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293569
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Julia Lavrova <jlavrova@google.com>
2020-06-03 22:27:05 +00:00
Michael Ludwig
88b3b15eec Add clipShader with perspective GM
Bug: skia:10206
Change-Id: Iad24cb1134e8f501bce6434ea8511b21039abea2
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293565
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Mike Reed <reed@google.com>
Auto-Submit: Michael Ludwig <michaelludwig@google.com>
2020-06-03 21:39:12 +00:00
Michael Ludwig
89dd4e774d Divide by w for sample matrices
This is a conservative, partial fix for perspective-having local matrices.
For some cases, we could probably detect the type of matrix and switch to
a shader that skipped the divide (possibly switching to a 2x3 matrix even)

This doesn't fix the perspective interpolation in localmatrixshader_persp
since it doesn't address the matrix type detection for samples that get
promoted to the vertex stage.

Bug: skia:10314
Change-Id: I87b254aa516b36d5558c2e344096fd38280846ed
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293573
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
2020-06-03 21:39:10 +00:00
Herb Derby
e973ee2457 remove SubRun from addGlyphToAtlas
This change is in preparation for moving addGlyphToAtlas
to GrAtlasManager.

Change-Id: Ic51ad565cc7ccd928a5f4304bf1801ec60f01fb0
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293854
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Herb Derby <herb@google.com>
2020-06-03 21:34:06 +00:00
Mike Klein
08a39c2b5f apply SkOpts_skx approach to SkOpts_hsw
Very slightly different build flags, switching from -march=haswell to
-mavx2 -mfma -mf16c, but there are no diffs.

Left some TODOs for the next ones, but _hsw being so common I figured
I'd do this one stand alone and make sure it shakes down before doing
the rest.

clang-cl (but not clang) barfs when we've got a lambda using an AVX
intrinsic inside a templated static helper function. Luckily they're
all non-type template parameters, so we can just pass them as normal
arguments, and it'll optimize the same as the templated code anyway.

This was weird, but since we're covering almost all the SkFoo_opts.h
headers with HSW here, I don't anticipate this being a problem in the
future.  (And I'm sure I'll never look back on this statement as naive.)

Change-Id: I2f84db356cafa5e158bcc3724fb1c3f58aca7f1e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293599
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Mike Klein <mtklein@google.com>
2020-06-03 21:34:05 +00:00
Brian Salomon
f80a78602e Use correct transfer offset for GL_HALF_FLOAT_OES
Another issue that came up when reenabling ES2 ANGLE contexts.

Change-Id: I6f7af6af0511384faf7bc63e699a8f6ea7a2ce92
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293916
Commit-Queue: Brian Salomon <bsalomon@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
Auto-Submit: Brian Salomon <bsalomon@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
2020-06-03 20:53:03 +00:00
Stephen White
64c8b811b5 Dawn: fix memory corruption in DawnTestContext.
Move the dawn_native::Instance ownership from DawnTestContextImpl to
DawnTestContext (its parent class), which owns the wgpu::Device.

dawn_native::Instance must outlive any wgpu::Devices created from it.

Bug: skia: 10311
Change-Id: Iedc4ed94f03b61d5e43cd5c93eb68e24bc4474e1
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293852
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Stephen White <senorblanco@chromium.org>
2020-06-03 18:40:49 +00:00
Kevin Lubick
625dc60e8b [canvaskit] Publish v0.16.0
Change-Id: I9199c2129ed694e7b6f1a306452bb336a7a39989
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293853
Reviewed-by: Kevin Lubick <kjlubick@google.com>
2020-06-03 18:14:32 +00:00
Ethan Nicholas
d3a95c2b66 Fixed sample_matrix_constant GM
This GM was not actually doing what the name implied, and when
switched over to use a constant matrix, turned out to not work.

This fixes it so constant matrices properly affect child processors.

Change-Id: I1f6b271dbf43c18515c0c72701bf8bbf60eb4c59
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293716
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2020-06-03 18:04:28 +00:00
Wan-Teh Chang
e84f96d712 Fix comments for SkYUVColorSpace
Document the range of video YUV values for the U and V components, which
is different from the range for the Y component.

Change-Id: I2c0101440e351013c7b3121573a591ad9860b2e2
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293868
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2020-06-03 17:37:28 +00:00
Ethan Nicholas
a15f2bfb6f Reland "Revert "Omit dead SkSL functions""
This reverts commit fd1173ac71.

Reason for revert: TSAN failure: https://chromium-swarm.appspot.com/task?id=4c93823229fa6a10

Original change's description:
> Revert "Revert "Omit dead SkSL functions""
> 
> This reverts commit 7c969f26bc.
> 
> Change-Id: I8fb99f271e2ecaeb83d570cc2d2cf8851bc776f0
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293338
> Reviewed-by: Brian Salomon <bsalomon@google.com>
> Commit-Queue: Ethan Nicholas <ethannicholas@google.com>

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

# Not skipping CQ checks because this is a reland.

Change-Id: Iab3ee5a336074676ebd0b761922ececf189752ef
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293843
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
2020-06-03 17:14:18 +00:00
Kevin Lubick
59e087ef3f [canvaskit] Add JS optimization for int color
Also confirm that Flutter Web and Canvas represent colors
as ints in the same way.

Change-Id: Ie8c2f9a48542510063c9bbc408a8047e0cc3969f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293840
Reviewed-by: Kevin Lubick <kjlubick@google.com>
2020-06-03 17:05:12 +00:00
Herb Derby
26f9de330d simplify loop in updateTextureCoordinates
Change-Id: I436da4596c9bb24c5ab1fb5c11edba47e8664d65
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293837
Commit-Queue: Herb Derby <herb@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
2020-06-03 16:27:20 +00:00
Kevin Lubick
2362022e7c [canvaskit] Make SkCanvas.drawColor/clear take SkColor4f
CanvasKit converts 4 floats to an int, just to have it be
converted back into 4 floats when it goes into the paint.

Change-Id: I93cf1c596283b83cc9452fb205b7000ceed09bb9
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293538
Commit-Queue: Kevin Lubick <kjlubick@google.com>
Reviewed-by: Mike Reed <reed@google.com>
2020-06-03 16:03:38 +00:00
Brian Salomon
3fdc49f357 Always call release procs on SkSurface GPU factories
Change-Id: Id1ca19630aea88200dfe2444aca1f8e9f679a616
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293762
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
2020-06-03 15:29:38 +00:00
Brian Salomon
c3f4943339 Only set GL tex base/max MIP level if supported
Change-Id: Id42f9b55af0b0ab6b6c15a136300c5bae1455f84
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293836
Commit-Queue: Greg Daniel <egdaniel@google.com>
Auto-Submit: Brian Salomon <bsalomon@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
2020-06-03 15:25:08 +00:00
Kevin Lubick
b42660f584 [canvaskit] Speculative fix for flaky dommatrix test
There's some flakes on the _dommatrix test. This adds an extra assertion
to maybe shed some light on that flake.

Change-Id: I548d3294c8f3c620a9702e4d4889da745a2d91fe
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293764
Reviewed-by: Kevin Lubick <kjlubick@google.com>
2020-06-03 15:04:31 +00:00
Ethan Nicholas
fd1173ac71 Revert "Revert "Omit dead SkSL functions""
This reverts commit 7c969f26bc.

Change-Id: I8fb99f271e2ecaeb83d570cc2d2cf8851bc776f0
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293338
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
2020-06-03 14:22:18 +00:00
Anthony Catel
463d729cd6 Fix an "use-after-move" in SkFontMgr_custom_embedded.
If a font file has more than one face (e.g. from a .ttc file), the unique_ptr storing the SkMemoryStream instance was reused after being moved, leading to NULL pointer deference in SkTypeface_FreeType::Scanner::openFace()

Bug: skia: https://bugs.chromium.org/p/skia/issues/detail?id=10322
Change-Id: I99a53a240a5e7112cd3e67d8c74ff951a9044688
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293519
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Mike Klein <mtklein@google.com>
2020-06-03 14:19:48 +00:00
Tyler Denniston
5b4a80ad22 Revert "Roll dawn from 295a4177aebc to adbf9153d909 (18 revisions)"
This reverts commit e2d1235681.

Reason for revert: debug build error in Queue.cpp

Original change's description:
> Roll dawn from 295a4177aebc to adbf9153d909 (18 revisions)
> 
> https://dawn.googlesource.com/dawn.git/+log/295a4177aebc..adbf9153d909
> 
> 2020-06-02 bryan.bernhart@intel.com D3D12: Fix RO storage buffer mismatches.
> 2020-06-02 enga@chromium.org Add warning for non-c-typedef-for-linkage
> 2020-06-02 enga@chromium.org Skip creating the VkImageView if the texture usage is only Copy
> 2020-06-02 cwallez@chromium.org Deprecate Buffer::SetSubData in favor of Queue::WriteBuffer
> 2020-06-01 enga@chromium.org D3D12: Skip dynamic buffer bindings with None visibility
> 2020-06-01 rharrison@chromium.org Rolling 5 dependencies
> 2020-06-01 bryan.bernhart@intel.com Roll third_party/shaderc/ 7d2f8c57e..da87b8d8b (3 commits)
> 2020-06-01 cwallez@chromium.org Fix missing space in an error string.
> 2020-06-01 enga@chromium.org Fix ValidateEntireSubresourceCopied
> 2020-06-01 cwallez@chromium.org d3d12_platform: ensure windows.h macros don't cause compile errors
> 2020-05-29 cwallez@chromium.org Revert "Check FP16 support on vulkan backend"
> 2020-05-29 enga@chromium.org Ensure dynamic buffer offset bindings are sorted in increasing order
> 2020-05-29 enrico.galli@intel.com D3D12: Silence known debug layer warnings
> 2020-05-29 cwallez@chromium.org Fix unlinking nullptr error scopes if device init failed
> 2020-05-29 jiawei.shao@intel.com Add basic supports of storage textures on OpenGL
> 2020-05-29 cwallez@chromium.org Metal: Fix clearing of subresource mipmaps.
> 2020-05-29 bryan.bernhart@intel.com Rolling 1 dependencies
> 2020-05-29 cwallez@chromium.org Remove the defaulting for bytesPerRow = 0
> 
> Also rolling transitive DEPS:
>   https://chromium.googlesource.com/external/github.com/KhronosGroup/glslang from 2b0eafb1de5b to d39b8afc47a1
>   https://chromium.googlesource.com/external/github.com/google/shaderc from 7d2f8c57ee3e to da87b8d8b0a1
> 
> 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 cwallez@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
> 
> Bug: None
> Tbr: cwallez@google.com
> Change-Id: I82484ab6b5ad0b9b0c7ee3c6b92b294c1adbf279
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293707
> Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
> Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>

TBR=skia-autoroll@skia-public.iam.gserviceaccount.com,cwallez@google.com

Change-Id: I94c73b24b35816cd9ac5878ea4e2128fbf8e5da0
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: None
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293816
Reviewed-by: Tyler Denniston <tdenniston@google.com>
Commit-Queue: Tyler Denniston <tdenniston@google.com>
2020-06-03 12:48:30 +00:00
Kevin Lubick
93f1a38fb5 [canvaskit] Add flexibility to setColor API
Change-Id: Ib0946bb05bc5cbf485a6687e46c7e61312bcd24c
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293344
Reviewed-by: Yegor Jbanov <yjbanov@google.com>
Reviewed-by: Nathaniel Nifong <nifong@google.com>
2020-06-03 11:38:54 +00:00
Kevin Lubick
462a860f63 [canvaskit] Change Malloc to return object instead of TypedArray
This works around https://github.com/emscripten-core/emscripten/issues/6747

Change-Id: I03a08bc172f03f57588f94cbfd3eda9a5ef1333e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293158
Reviewed-by: Yegor Jbanov <yjbanov@google.com>
Reviewed-by: Nathaniel Nifong <nifong@google.com>
2020-06-03 11:38:54 +00:00
skia-recreate-skps
c1150db5e1 Update Go Deps
Change-Id: Ia389a4960f6e4641681007f8217aab0db2d27c5a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293777
Reviewed-by: <skia-recreate-skps@skia-swarming-bots.iam.gserviceaccount.com>
Commit-Queue: <skia-recreate-skps@skia-swarming-bots.iam.gserviceaccount.com>
2020-06-03 05:38:53 +00:00
skia-autoroll
43a3da70ee Roll Chromium from 0fa619691087 to 065b0a7f68ea (487 revisions)
0fa6196910..065b0a7f68

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 tdenniston@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: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: tdenniston@google.com
Change-Id: If576b1bbc7b041d5018ac107a9e19b204c3f984f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293708
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2020-06-03 04:59:53 +00:00
skia-autoroll
d55bcc48b0 Roll ANGLE from 77e5316a515d to 6c1581646c46 (12 revisions)
77e5316a51..6c1581646c

2020-06-02 jmadill@chromium.org Vulkan: Fix XFB invalid accesses in buffer OOM.
2020-06-02 amaiorano@google.com Fix copy subtexture to GL_RGB9_E5 in ANGLE/VK
2020-06-02 ynovikov@chromium.org Roll third_party/VK-GL-CTS/src/ 60972ed7f..80dc8399b (67 commits)
2020-06-02 m.maiya@samsung.com EGL: EGL_CreateSync validation bug fix
2020-06-02 cclao@google.com Vulkan: Add IMAGE_USE_STORAGE bit only if necessary.
2020-06-02 ianelliott@google.com Vulkan: Swap RenderArea coords for pre-rotation
2020-06-02 lehoangq@gmail.com Metal: refactor RenderUtils to split into multiple util classes.
2020-06-02 jmadill@chromium.org Skip VulkanBarriersPerfBenchmark on NV/Win.
2020-06-02 angle-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from 471c120ac92a to 11dd7183c4d2 (2 revisions)
2020-06-02 angle-autoroll@skia-public.iam.gserviceaccount.com Roll Vulkan-Headers from 09531f27933b to db1a98c6cc43 (1 revision)
2020-06-02 angle-autoroll@skia-public.iam.gserviceaccount.com Roll glslang from d39b8afc47a1 to 78a3c915a1d7 (6 revisions)
2020-06-02 angle-autoroll@skia-public.iam.gserviceaccount.com Roll Vulkan-ValidationLayers from 500f77901f6d to 515b4041cc32 (4 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 tdenniston@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
Bug: chromium:1086532,chromium:1090139
Tbr: tdenniston@google.com
Test: Test: angle_deqp_egl_no_gtest.exe --deqp-case=dEQP-EGL.functional.fence_sync.invalid.create_invalid_type
Change-Id: I9b3533f2805ca0899b44cd215d5300906a6d663d
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293710
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2020-06-03 04:50:43 +00:00
skia-autoroll
e2d1235681 Roll dawn from 295a4177aebc to adbf9153d909 (18 revisions)
https://dawn.googlesource.com/dawn.git/+log/295a4177aebc..adbf9153d909

2020-06-02 bryan.bernhart@intel.com D3D12: Fix RO storage buffer mismatches.
2020-06-02 enga@chromium.org Add warning for non-c-typedef-for-linkage
2020-06-02 enga@chromium.org Skip creating the VkImageView if the texture usage is only Copy
2020-06-02 cwallez@chromium.org Deprecate Buffer::SetSubData in favor of Queue::WriteBuffer
2020-06-01 enga@chromium.org D3D12: Skip dynamic buffer bindings with None visibility
2020-06-01 rharrison@chromium.org Rolling 5 dependencies
2020-06-01 bryan.bernhart@intel.com Roll third_party/shaderc/ 7d2f8c57e..da87b8d8b (3 commits)
2020-06-01 cwallez@chromium.org Fix missing space in an error string.
2020-06-01 enga@chromium.org Fix ValidateEntireSubresourceCopied
2020-06-01 cwallez@chromium.org d3d12_platform: ensure windows.h macros don't cause compile errors
2020-05-29 cwallez@chromium.org Revert "Check FP16 support on vulkan backend"
2020-05-29 enga@chromium.org Ensure dynamic buffer offset bindings are sorted in increasing order
2020-05-29 enrico.galli@intel.com D3D12: Silence known debug layer warnings
2020-05-29 cwallez@chromium.org Fix unlinking nullptr error scopes if device init failed
2020-05-29 jiawei.shao@intel.com Add basic supports of storage textures on OpenGL
2020-05-29 cwallez@chromium.org Metal: Fix clearing of subresource mipmaps.
2020-05-29 bryan.bernhart@intel.com Rolling 1 dependencies
2020-05-29 cwallez@chromium.org Remove the defaulting for bytesPerRow = 0

Also rolling transitive DEPS:
  https://chromium.googlesource.com/external/github.com/KhronosGroup/glslang from 2b0eafb1de5b to d39b8afc47a1
  https://chromium.googlesource.com/external/github.com/google/shaderc from 7d2f8c57ee3e to da87b8d8b0a1

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 cwallez@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

Bug: None
Tbr: cwallez@google.com
Change-Id: I82484ab6b5ad0b9b0c7ee3c6b92b294c1adbf279
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293707
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2020-06-03 04:44:33 +00:00
skia-autoroll
98ee5e720e Roll SwiftShader from 11dd7183c4d2 to 3ad285a60d82 (15 revisions)
https://swiftshader.googlesource.com/SwiftShader.git/+log/11dd7183c4d2..3ad285a60d82

2020-06-02 vantablack@google.com Added reference counting for PipelineLayout objects
2020-06-02 bclayton@google.com libVulkan: Use new marl::Scheduler::Config API.
2020-06-02 bclayton@google.com Kokoro: Test LLVM 10 backend for macos
2020-06-02 bclayton@google.com Merge changes I5eaceebc,I4d78c011,I7d01a3c8
2020-06-02 caio.oliveira@intel.com Update VkStringify for VK_EXT_subgroup_size_control
2020-06-02 caio.oliveira@intel.com Update Vulkan headers to version 1.2.141
2020-06-02 bclayton@google.com SpirvShaderDebugger: Implement Array types
2020-06-02 bclayton@google.com SpirvShaderDebugger: Replace 'builtins' / 'root' with a global scope
2020-06-02 bclayton@google.com SpirvShaderDebugger: Silence release only warning
2020-06-02 bclayton@google.com SpirvShaderDebugger: Handle None sizes for composite types
2020-06-02 bclayton@google.com SpirvShaderDebugger: Handle template types
2020-06-02 bclayton@google.com SpirvShaderDebugger: Don't display SSAs for array types
2020-06-02 bclayton@google.com SpirvShaderDebugger: Don't display SSA values with DebugInfo
2020-06-02 capn@google.com Make ManagedStatic registration thread-safe
2020-06-02 capn@google.com Regres: Test changes from external contributors 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 tdenniston@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: tdenniston@google.com
Change-Id: I5c8e060772cab425c7e8f47230081b3a462cfb3f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293709
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2020-06-03 04:44:23 +00:00
Herb Derby
c2a06de583 Make add_glyph_to_atlas a method
Change-Id: I136181bb0c08998878719913b87f7972bf04d001
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293684
Commit-Queue: Herb Derby <herb@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
2020-06-03 01:27:53 +00:00
Michael Ludwig
49203849a6 Check for deferred saves in SkCanvas::clipShader
Before, in the new clip_shader_nested GM, without the
checkForDeferredSaves() call, the first clipShader() would end up
associated with the original save record, but the intervening scale()
call checked for deferred saves. This meant the second clipShader() was
associated with the new save record and would be removed during the
restore (although the first shader remained).

Change-Id: I62f33b821de810c68f62069201ae3429f520be8c
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293690
Auto-Submit: Michael Ludwig <michaelludwig@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Mike Reed <reed@google.com>
2020-06-03 00:43:45 +00:00