Commit Graph

49021 Commits

Author SHA1 Message Date
Brian Salomon
92b9ccf53e Use child texture effects in ProcessorRefTest
Also remove unused buffers. FPs no longer support reading from buffers.

Bug: skia:10139

Change-Id: Id1e2d7ef2cfa7f11a95cb0ce448c69af755c2b65
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297176
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
2020-06-18 20:18:33 +00:00
John Stiles
3890d3d765 Roll gn.
Change-Id: I44eab9976aa4820a74f9246f1244c1a293e1fff6
Bug: gn:175, gn:158
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297463
Commit-Queue: John Stiles <johnstiles@google.com>
Commit-Queue: Mike Klein <mtklein@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
2020-06-18 19:33:04 +00:00
Florin Malita
c217f61764 [skrive] Start parsing the node hierarchy
TBR=
Change-Id: I601ad831e69fd26ac8a0fe1f90ce2e9588a7f912
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297056
Commit-Queue: Florin Malita <fmalita@chromium.org>
Commit-Queue: Florin Malita <fmalita@google.com>
Reviewed-by: Florin Malita <fmalita@chromium.org>
2020-06-18 19:29:42 +00:00
Brian Osman
3711c6603e Remove swizzling-load instructions from SkSL ByteCode
These were peephole optimizations that help the interpreter a bit, but
I'd like to favor code size and ease of translation to SkVM now.
We can now run: sample(child, p.yx) on the CPU backend, for example.

Change-Id: I90f2f649d95d5c4c50e470988590491e3b56ba34
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297465
Commit-Queue: Mike Klein <mtklein@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
2020-06-18 19:26:02 +00:00
Brian Osman
f847f3106c In SkSLSlide, directly use Viewer's shader error handler
With the CPU backend, there is no GrContext on the canvas, so we were
sending errors to the default handler (SkDebugf + assert), so editing
shaders was impossible. Now they fail gracefully (and produce a popup
window with the message).

Change-Id: I29bad24f201be59ba1cec45f446a433c01cf86dc
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297461
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2020-06-18 19:24:02 +00:00
Mike Klein
92887b5474 allow fallback to skvm blitter
This will let the threshold_rt GM draw even if --skvm isn't forced.
I don't see any GM diffs beyond that.

PS3 expands the same basic idea just a little wider.

Change-Id: I714c0fd2d4e6814c307a189a9f004e8ed729819a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297419
Commit-Queue: Mike Klein <mtklein@google.com>
Reviewed-by: Mike Reed <reed@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2020-06-18 18:48:38 +00:00
Mike Klein
c950e05baf clean up old idea about nullptr/sRGB
I don't see us ever really saying dstCS == nullptr --> dstCS = sRGB.
It's too handy a feature to have a legacy dst.

Change-Id: I20576962eeb5a2ce7d0da09ffe1bbba860dad086
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297418
Auto-Submit: Mike Klein <mtklein@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2020-06-18 17:51:58 +00:00
Adlai Holler
6f1487fe80 Consolidate GrDrawingManager <-> GrRenderTask lifecycle
This creates a funnel in the drawing manager (removeRenderTasks) that
opens the door for tighter integration between the two classes. Also we
add some assertions about the relationship and cut out duplicated code.

Bug: skia:10372
Change-Id: I0781ba7d45ac090cf7f6d430f0d56afe0f98b7e0
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297195
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Adlai Holler <adlai@google.com>
2020-06-18 17:42:43 +00:00
Greg Daniel
c35c073c80 Revert "Don't release vk memory allocator until context is deleted."
This reverts commit 11afa63693.

Reason for revert: breaking perf bots

Original change's description:
> Don't release vk memory allocator until context is deleted.
> 
> Bug: chromium:1081806
> 
> Change-Id: I0a7a92408a3f2119e6b70d8eef6aa4f2d1982d4b
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297357
> Reviewed-by: Brian Salomon <bsalomon@google.com>
> Commit-Queue: Greg Daniel <egdaniel@google.com>

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

Change-Id: I48d200cb72eb30c119359e89c5a9123213e62a5e
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: chromium:1081806
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297457
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
2020-06-18 17:38:31 +00:00
Mike Klein
f8d68fe7d4 runtime shader children on skvm backend
Mostly plumbing and misc instructions to draw threshold_rt.

Backends differ in what we return when sampling alpha-only
images, so I've switched threshold_rt to use the .a channel,
which everyone agrees on.

I'm pretty confused about what CTM and local matrix to pass
to the child program() calls, so I've just passed no-ops.

Change-Id: I004b428b4e5e27f3963a27dea0ef44e1f57bc3e0
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297384
Reviewed-by: Mike Reed <reed@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Mike Klein <mtklein@google.com>
2020-06-18 17:37:38 +00:00
Greg Daniel
11afa63693 Don't release vk memory allocator until context is deleted.
Bug: chromium:1081806

Change-Id: I0a7a92408a3f2119e6b70d8eef6aa4f2d1982d4b
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297357
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
2020-06-18 17:27:48 +00:00
Nigel Tao
b54946b86d Reland "Allow building with Wuffs v0.3, not just v0.2"
This is a reland of c34344989a

Original change's description:
> Allow building with Wuffs v0.3, not just v0.2
> 
> This is step 1 of a multi-step, multi-repository transition:
> 
> 1. Let Skia work with either Wuffs v0.3 or v0.2. This repository
>    defaults to v0.3 but other repositories' defaults remain at v0.2.
> 2. Update users' Skia version (automatic if they update regularly).
> 3. Update users' Wuffs version and opt them in to Skia-uses-Wuffs-v0.3.
> 4. Flip Skia choosing Wuffs version 0.3 from opt-in to opt-out.
> 5. Remove the option for Skia to work wih Wuffs v0.2.
> 
> Change-Id: Ie5cf238057060f2a40cc7c0070d6e2a076943e2b
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/295976
> Commit-Queue: Leon Scroggins <scroggo@google.com>
> Reviewed-by: Leon Scroggins <scroggo@google.com>

Change-Id: Iafc4acf69c3d61d512ffde25cc7e405092e384c0
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/296758
Reviewed-by: Leon Scroggins <scroggo@google.com>
Commit-Queue: Leon Scroggins <scroggo@google.com>
2020-06-18 16:02:03 +00:00
Brian Salomon
91dea5168a Merge ShaderMode and FilterLogic enums in GrTextureEffect
Change-Id: I2523b79e6cf5654daba03aa837d05a76d8ca9f66
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297189
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
2020-06-18 15:54:53 +00:00
John Stiles
9394dd59b9 Fix stack-buffer overrun in appendVAList.
Cleaned up SkString formatting APIs for consistency and removed hard-to-
use macros. Added printVAList API for orthogonality with existing
(append|prepend)VAList methods. Optimized append/prepend methods to
use printf if appending/prepending to an empty string, a surprisingly
common case.

Change-Id: I6fbc6dc84ebb060ca452f582cb4f13a3c0f7f6ec
Bug: chromium:1092743
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297276
Commit-Queue: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
2020-06-18 15:41:23 +00:00
skia-autoroll
7cdcae3a17 Roll ANGLE from 98d0f30c4393 to fa3d64bf72d6 (41 revisions)
98d0f30c43..fa3d64bf72

2020-06-17 ianelliott@google.com Minor edits to top of EGLPreRotationTest.cpp
2020-06-17 ianelliott@google.com Split/refactor the pre-rotation BlitFramebuffer tests
2020-06-17 stuartmorgan@google.com Add newline-eof to warnings
2020-06-17 amaiorano@google.com Move vulkan_headers/entry_points to common/vulkan
2020-06-17 etienneb@chromium.org Active the delegate worker pool for chromium (3/3)
2020-06-17 angle-autoroll@skia-public.iam.gserviceaccount.com Roll Vulkan-Headers from 9d2dfca53b75 to f31524575668 (1 revision)
2020-06-17 xiaoxuan.liu@arm.com Vulkan: Update eglDupNativeFenceFDANDROID() implementation.
2020-06-17 angle-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from 8cbee4107cf1 to 763957e6b4fc (8 revisions)
2020-06-17 angle-autoroll@skia-public.iam.gserviceaccount.com Roll SPIRV-Tools from 52a5f074e9bb to a7112d544b2e (3 revisions)
2020-06-17 angle-autoroll@skia-public.iam.gserviceaccount.com Roll glslang from 00965b9fa9a8 to 051c6fed884b (5 revisions)
2020-06-17 angle-autoroll@skia-public.iam.gserviceaccount.com Roll Vulkan-ValidationLayers from 03d0006b6d5e to 04f0b691eb4c (1 revision)
2020-06-17 syoussefi@chromium.org Vulkan: Disable 1xMSAA on integer formats too
2020-06-17 syoussefi@chromium.org Add mipmap generation perftest
2020-06-17 timvp@google.com Vulkan: support format aliasing in texture images
2020-06-17 m.maiya@samsung.com Optimize thread specific storage and retrieval with native ASM
2020-06-16 joefspiro@google.com Fix includes to fuchsia headers
2020-06-16 timvp@google.com Remove ProgramExecutable::mProgram[Pipeline]State
2020-06-16 stuartmorgan@google.com Fixes missing newlines in headers
2020-06-16 syoussefi@chromium.org Vulkan: Use GPU path for copy to sRGB textures
2020-06-16 timvp@google.com Remove mProgramState from ProgramExecutable::isCompute()
2020-06-16 timvp@google.com Remove mProgramState from ProgramExecutable::updateActiveImages()
2020-06-16 m.maiya@samsung.com Vulkan: Ensure tiling mode compatibility while deciding copy path
2020-06-16 jmadill@chromium.org Vulkan: Preserve RPs on XFB changes when possible.
2020-06-16 angle-autoroll@skia-public.iam.gserviceaccount.com Roll SwiftShader from a6940c8e6eb0 to 8cbee4107cf1 (1 revision)
2020-06-16 angle-autoroll@skia-public.iam.gserviceaccount.com Roll SPIRV-Tools from 30bf46dbe06f to 52a5f074e9bb (1 revision)
2020-06-16 angle-autoroll@skia-public.iam.gserviceaccount.com Roll glslang from b919bc889e1d to 00965b9fa9a8 (4 revisions)
2020-06-16 angle-autoroll@skia-public.iam.gserviceaccount.com Roll Vulkan-ValidationLayers from f78d05969e09 to 03d0006b6d5e (4 revisions)
2020-06-16 syoussefi@chromium.org Refactor 3D/2DArray copy texture tests
2020-06-16 syoussefi@chromium.org Vulkan: Fix glCopyTextureCHROMIUM if source is swizzled
2020-06-16 jmadill@chromium.org Tests: Add missing Android build arg.
2020-06-15 m.maiya@samsung.com Vulkan: Set external image's usage flags based on AHB usage flags
2020-06-15 shrekshao@google.com Fix baseVertex and baseInstance with streaming attributes
2020-06-15 angle-autoroll@skia-public.iam.gserviceaccount.com Roll VK-GL-CTS from a60f89ffcba2 to bfa95c7ad8b7 (7 revisions)
2020-06-15 geofflang@chromium.org Revert "Remove redundant BlendStateArray tracking"
2020-06-15 geofflang@chromium.org Don't expose pixmap support from DisplayEGL.
2020-06-15 m.maiya@samsung.com Vulkan: Addition of ImageRespecificationTest
2020-06-15 jmadill@chromium.org Add timer and frame counter to SimpleTexture2D.
2020-06-15 nguyenmh@google.com Fill in missing GL methods for TextureTest
2020-06-15 nguyenmh@google.com Fill in missing GL methods and fix crashes for MultiviewDrawTest
2020-06-15 angle-autoroll@skia-public.iam.gserviceaccount.com Roll Vulkan-ValidationLayers from 5fab7f82a548 to f78d05969e09 (12 revisions)
2020-06-15 angle-autoroll@skia-public.iam.gserviceaccount.com Roll SPIRV-Tools from 458140aed907 to 30bf46dbe06f (2 revisions)

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

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

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/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:1078330,chromium:1085996,chromium:1091259,chromium:1094634
Tbr: djsollen@google.com
Test: Test: Build/CQTest: Test: angle_end2end_testsTest: Test: angle_end2end_tests.exe --gtest_filter=ImageRespecificationTest*Test: Test: dEQP-GLES31.functional.image_load_store.*.format_reinterpret.*
Change-Id: Iffef0daccf39d5bfbe5e9e4554562219296ee5c1
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297377
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2020-06-18 15:36:28 +00:00
Ravi Mistry
346f8e0989 Change URL in skia_css3gradients_desktop.py
NoTry: true
Bug: skia:10390
Change-Id: I8afbf6303d9f42966456174381fa56909d9b1f53
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/296732
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Ravi Mistry <rmistry@google.com>
2020-06-18 15:36:18 +00:00
Brian Salomon
f629a9022f Make Clip test FP use texture effect child
Bug: skia:10139

Change-Id: I32d13b11b613996f4b83e3cf50e28993985bcb08
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297061
Reviewed-by: Chris Dalton <csmartdalton@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
2020-06-18 15:31:23 +00:00
Brian Salomon
83c2d35155 Use child effects for LUTs in perline noise effects
Bug: skia:10139

Change-Id: Ie7e4cf0cd583c8cb6eafd7ab30b729ee755f5042
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297060
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
2020-06-18 15:31:15 +00:00
Brian Salomon
99b047087d Update generated file
Change-Id: I4c390efa29c0957596c877d34a485975268dfe3a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297356
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
2020-06-18 14:44:23 +00:00
Brian Salomon
71f6cfd654 GrRRectBlurEffect uses child for nine patch
Bug: skia:10139

Change-Id: Ic306775bb8d1f5d8b29cc38c116d0f8c3e0d55a2
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297193
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
2020-06-18 14:08:54 +00:00
Dominic Mazzoni
8c662a7d6e Get rid of deprecated API to add children to PDF tag nodes.
fChildren/fChildCount was replaced with fChildVector and Chromium
migrated to the new API a while back, it's now safe to remove the
older interface.

Bug: chromium:607777
Change-Id: I7311d3b51f1b71209dcc024ae51637536d560619
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297260
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
2020-06-18 13:57:23 +00:00
Greg Daniel
a85e4bf009 Fix perspective fragcoord value in d3d.
The general issue is that d3d returns a fragcoord with the "w" coord
is given as w. But gl, vulkan, and others get a 1/w. So skia assumes
a 1/w value here. Thus we must flip for d3d.

Change-Id: I4ff9fb363310c1ca52e631246413ab76322def54
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297182
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
2020-06-18 13:52:43 +00:00
Brian Osman
a43d820341 Support sample() in ByteCodeGenerator (but not the interpreter)
This doesn't implement sampling of child shaders (that's going to be
nearly impossible in the interpreter). But it does plumb the information
about sample calls to the byte code, so that SkVM can attempt to
translate those calls into evaluation of child shaders.

Change-Id: I3762eb7a613e4377d482a50f2dc301075d89ce36
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297192
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
2020-06-18 13:42:03 +00:00
Brian Salomon
86b2f39e9e Use child effect for integral in GrRectBlurEffect
Bug: skia:10139

Change-Id: I716e94dfda7091482baeb830e4d2d232cb3fcbcd
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/296857
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
2020-06-18 13:39:25 +00:00
Derek Sollenberger
74b06275bb Manually update ANGLE DEPS
Recent ANGLE changes require BUILD.gn updates to make use of new
zlib functions as well as changes to SystemInfo that requires adding
new source dictionaries to our list of build sources.

Bug: skia:10391
Change-Id: I993a9f78e4585618ad4cd16b3bfc81874d7b5b17
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297116
Reviewed-by: Ben Wagner <bungeman@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Derek Sollenberger <djsollen@google.com>
2020-06-18 12:50:02 +00:00
Brian Salomon
81454dfaa9 Use hardware wrap mode in perlin noise effects.
Previously textures were sampled in clamp mode with
the wrapping ocurring in shader code.

Change-Id: Id4fcba6525e6c0664aa9fafb6c11a4bb62433c72
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297059
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
2020-06-18 12:33:34 +00:00
skia-autoroll
53f973c22a Roll SwiftShader from 763957e6b4fc to 7a1d99d0be42 (4 revisions)
https://swiftshader.googlesource.com/SwiftShader.git/+log/763957e6b4fc..7a1d99d0be42

2020-06-17 capn@google.com Add a benchmark with multisampling enabled
2020-06-17 capn@google.com Refactor multisample benchmark support
2020-06-17 capn@google.com Implement multisample support for the triangle benchmark
2020-06-17 capn@google.com Don't assert thread_local initialization

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

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

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+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: djsollen@google.com
Change-Id: If8b154022ac3fffec1d28c472d71102e4d2354f5
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297266
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2020-06-18 04:42:52 +00:00
skia-autoroll
67237c14a6 Roll Chromium from 5af39e89bd12 to 2adbb514e789 (484 revisions)
5af39e89bd..2adbb514e7

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

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

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/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: djsollen@google.com
Change-Id: I34d329affa7a6a829bd8697742659d7b40d4863a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297269
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2020-06-18 04:39:22 +00:00
Brian Salomon
a3a9da7430 Avoid kN32 bitmaps in setup for GPU perlin effects.
The data is constructed the same regardless of how kN32 is defined.

Change-Id: Ife62c43a4f96700a07a10dc08f25fc5399e064eb
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297058
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
2020-06-17 23:49:48 +00:00
Chris Bracken
72f403c343 Use Mac font manager for both iOS and macOS
If skia_use_fonthost_mac is set, use SkFontMgr_mac_ct_factory.cpp on
both macOS and iOS. Previously, this was only used on macOS, causing iOS
Flutter builds to default to SkFontMgr_empty_factory.cpp on that
platform.

Patch that introduced the Flutter iOS issue:
https://skia-review.googlesource.com/c/skia/+/295437

Change-Id: If2f1e7db47a55245de6c2658ad564e79134d3e7d
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297194
Commit-Queue: Chris Bracken <cbracken@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
2020-06-17 21:50:10 +00:00
Derek Sollenberger
83195191bd Revert "Convert Skottie build instructions to build an Android Library (AAR) instead of app (APK)"
This reverts commit dff4d584ed.

Reason for revert: breaking the google3 roll

Change-Id: I0e26c77e9bad0f48bc726d3b63a97d5aa7fa51ac
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297190
Reviewed-by: Derek Sollenberger <djsollen@google.com>
2020-06-17 20:35:21 +00:00
Derek Sollenberger
590e8db5d8 Revert "Replace analytic clip stack with chained fragment processors."
This reverts commit 907f34bfc1.

Reason for revert: speculating that this is breaking the chromium roll

Change-Id: I7283f9e9d52066be4c13aff72a948f9332977e59
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297186
Reviewed-by: John Stiles <johnstiles@google.com>
Commit-Queue: Derek Sollenberger <djsollen@google.com>
2020-06-17 20:07:16 +00:00
Brian Salomon
77628ce0e4 GrCircleBlurFragmentProcessor uses GrTextureEffect for profile texture
Bug: skia:10139

Change-Id: If539b6ad3a55c157fa5761abeaf13b318047839e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/296731
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
2020-06-17 19:33:09 +00:00
Ben Wagner
588b32c04e Update debugger to new fontmgr selection.
With commit 75626e4 "Regularize selection of fontmgr." the skottiekit
and convaskit compile.sh files were updated, but the wasm-skp-debugger
one was overlooked. This will lead to selection of the empty fontmgr
which cannot load fonts.

Change-Id: I8c3090866f27d42a0f1fcf74e3209298d7cb0af5
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/296722
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
2020-06-17 19:31:28 +00:00
John Stiles
907f34bfc1 Replace analytic clip stack with chained fragment processors.
We no longer need to maintain a vector of analytic FPs and run them in
series. (CCPR and fShader do not support chaining in this CL, so we do
need to assemble a vector of FPs at the last instant.)

Change-Id: I1f7a64cf617d577e05e1fe41c740361f702a76b0
Bug: skia:10217
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/296861
Commit-Queue: John Stiles <johnstiles@google.com>
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
2020-06-17 18:53:18 +00:00
John Stiles
851b90e102 Update GrRRectEffect to take an input FP and return a MakeResult.
Change-Id: If5abcd2347871c62e03c8708705ec1041572465a
Bug: skia:10217
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/296838
Commit-Queue: John Stiles <johnstiles@google.com>
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
2020-06-17 18:24:58 +00:00
Elliot Evans
8605d84f6d Add a future_apis folder to canvaskit. future_apis contains notes on
proposed and upcoming APIs and how they may be able to be used with
CanvasKit.

Change-Id: I085e65e7e3c58ef2cbe2ce60ddd813b2c531c890
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/296752
Reviewed-by: Kevin Lubick <kjlubick@google.com>
2020-06-17 18:17:25 +00:00
Brian Salomon
e338c297d0 Make GrGLPerlinNoise::emitCode easier to read.
Convert many formatted strings to plain old strings.

Favor readability of generator over generated code since
we typically pretty print the generated code if we need
to read it.

Change-Id: I0185cd1133f09d07e8ebd8c959e0397818727611
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297057
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
2020-06-17 18:11:18 +00:00
Jorge Betancourt
dff4d584ed Convert Skottie build instructions to build an Android Library (AAR) instead of app (APK)
Change-Id: Ib12364792523ac896c74ce2cd563173dd6081e78
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/296417
Reviewed-by: Derek Sollenberger <djsollen@google.com>
Commit-Queue: Jorge Betancourt <jmbetancourt@google.com>
2020-06-17 18:09:28 +00:00
John Stiles
de975e3697 Support MakeResult in GrOvalEffect.
Because GrOvalEffect is used in GrRRectEffect, this will be useful in
followup CLs that port over GrRRectEffect to MakeResult.

Change-Id: Id1d9344af7666d79c62766adfeb920e4ac124a4e
Bug: skia:10217
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/296596
Commit-Queue: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
2020-06-17 17:50:54 +00:00
John Stiles
3b2c06c46b Remove HairlineAA from the clip-edge types.
GrQuadEffect and GrConicEffect were the only FPs that supported the
HairlineAA clip-edge type. These FPs have been updated to implicitly
always use HairlineAA, and other FPs no longer need to consider the
HairlineAA case.

This CL also updates the bezier-effects GM images to remove the non-
hairline test columns.

Change-Id: Ice942106344cf48480e972da4aab1c6055f9911e
Bug: skia:10393
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297019
Commit-Queue: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
2020-06-17 17:43:35 +00:00
Derek Sollenberger
abae40299c Reland "Update zlib DEPS"
This is a reland of 6fb3687413

Original change's description:
> Update zlib DEPS
> 
> Pull latest zlib into Skia and updated its BUILD files to build some
> SIMD variants.
> 
> Bug: skia:10391
> Change-Id: Ic1a660c8f5f7e5f94440787779fd74b7192ab6d5
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/296720
> Auto-Submit: Derek Sollenberger <djsollen@google.com>
> Reviewed-by: Ben Wagner <bungeman@google.com>
> Commit-Queue: Derek Sollenberger <djsollen@google.com>

Bug: skia:10391
Change-Id: I4d38a526f2785e70ef9fa134c681fd3dc4d57c44
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297020
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Derek Sollenberger <djsollen@google.com>
2020-06-17 17:27:15 +00:00
Herb Derby
ccbd3eeb58 use joinPossibleEmptyRect for bounding box
When the fuzzer is used, some of the positions are so far out in the
float space, that all values become the same making empty rects.

Using joinNonEmptyArg really had no advantages.

Bug: chromium:1095625

Change-Id: I46a61e422ff7053aca2f34494a2f5f0ec7e8fc74
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297026
Commit-Queue: Herb Derby <herb@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
Auto-Submit: Herb Derby <herb@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
2020-06-17 16:47:54 +00:00
Greg Daniel
8346834d7c Fix D3D InstanceDataStepRate.
For instanced data this value controls how many instances to draw before
going to the next set of instance data in the buffer. For all of Skia's
uses this is 1.

Change-Id: I280ef3fbe431f5d9233657a5e5783c03b3b1cf6c
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297025
Commit-Queue: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Auto-Submit: Greg Daniel <egdaniel@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2020-06-17 16:42:54 +00:00
John Stiles
952dd05220 Revert "roll GN"
This reverts commit 81ec426d6e.

Reason for revert: breaks Xcode

Change-Id: Ib4dec91ae19e6b0ce242fa543cf7bcdf306c0220
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297022
Reviewed-by: John Stiles <johnstiles@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
2020-06-17 16:00:54 +00:00
Brian Osman
15207b8567 Disable program binary caching on AMD + ANGLE D3D9
This should fix the flaky GM results that appeared when caching was
fixed/enabled recently.

Bug: skia:10395
Change-Id: Idd35f6a57e94504d56186be3601b52728ada97e7
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297018
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2020-06-17 15:49:54 +00:00
Greg Daniel
1f14ca04b9 Implement set scissor on d3d render pass.
Change-Id: I36c748f7e91c0b9695623e60bd87b98605800159
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/297017
Commit-Queue: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Auto-Submit: Greg Daniel <egdaniel@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2020-06-17 15:13:34 +00:00
Julia Lavrova
c4d49056b4 Cleaning codepoints/grapheme mess; it also helps with ICU API
Renamed all codepoints into utf16Index

Change-Id: Ie915395a56ac825637f6dbb25824cd1635a5b0a6
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/296438
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Julia Lavrova <jlavrova@google.com>
2020-06-17 14:51:24 +00:00
Florin Malita
4190f27b41 Fix SkParse::FindNamedColor OOB
Plus some minor cleanup and asserts.

Bug: oss-fuzz:23395

Change-Id: I667bee2d7f21864defe2fd97df9eb4e99d69d9ca
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/296451
Reviewed-by: Mike Klein <mtklein@google.com>
Reviewed-by: Tyler Denniston <tdenniston@google.com>
Commit-Queue: Florin Malita <fmalita@google.com>
2020-06-17 14:23:14 +00:00
Derek Sollenberger
1443609db4 Revert "Update zlib DEPS"
This reverts commit 6fb3687413.

Reason for revert: breaking a bunch of linux builds

Change-Id: I71dd154785fb00dd20bc157d5d5daf1ee2101fc2
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/296996
Reviewed-by: Derek Sollenberger <djsollen@google.com>
2020-06-17 13:20:37 +00:00