Commit Graph

48456 Commits

Author SHA1 Message Date
Mike Reed
2ddf7f39de extend custom typeface gm
Change-Id: I472e009ed78e4652a56a3987af0c488a238908b0
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290638
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Mike Reed <reed@google.com>
2020-05-18 18:45:38 +00:00
Herb Derby
d5cbc1e9fb Isolate fGlyphs in SubRun
Add glyphCount to return the number of glyphs and
grGlyph to return a grGlyph from fGlyphs.

Bug: skia:10251

Change-Id: I15f77a032b9eb9aa736ccd810900f2425fc4c059
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290296
Commit-Queue: Herb Derby <herb@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
2020-05-18 18:07:57 +00:00
Ben Wagner
329091623b Add SkLRUCache.h to core.gni.
It wasn't listed in gn so didn't show up in editors as a known file in
projects.

Change-Id: Ie01773489dd72f055f04785ca7f21b6bdef6a3f7
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290541
Commit-Queue: Ben Wagner <bungeman@google.com>
Auto-Submit: Ben Wagner <bungeman@google.com>
Reviewed-by: Herb Derby <herb@google.com>
2020-05-18 16:49:47 +00:00
Herb Derby
e7825ff7e3 Reland "direct mask biased to (0,0)"
This is a reland of 56cde4923f

Original change's description:
> direct mask biased to (0,0)
>
> Create mask rectangles in device space.
> But, instead of offsetting to the drawing text blob origin
> offset to 0,0 to simplify mapping from source space to
> device space.
>
> Bug: skia:10251
>
> Change-Id: Ic637eb78879bcfae7e7944053d67d9eaef8490cc
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290133
> Commit-Queue: Herb Derby <herb@google.com>
> Reviewed-by: Robert Phillips <robertphillips@google.com>

Bug: skia:10251
Change-Id: I622ed5c3c16379b06989bf737e74a7752984c158
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290441
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Herb Derby <herb@google.com>
2020-05-18 15:58:37 +00:00
Ben Wagner
39decdbe35 Fix TODO in SkTArray move constructor.
If moving from an SkTArray which owns its own memory, just steal it
instead of always making a copy.

Change-Id: Ic969437a39d23d878d752bbdee38aa5dd2472e21
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290125
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
2020-05-18 15:17:17 +00:00
Adlai Holler
e5c379d3a1 Reland "Update skpbench to let the gpu thread run alongside the recording threads"
This reverts commit 2403a1001b.

Reason for revert: Fixed bot failure

Original change's description:
> Revert "Update skpbench to let the gpu thread run alongside the recording threads"
>
> This reverts commit ca06ce48f1.
>
> Reason for revert: It is dying on a bot with the error:
> skpbench.py: error: unrecognized arguments: --ddlNumRecordingThreads c:\b\s\w\ir\skp
>
> Original change's description:
> > Update skpbench to let the gpu thread run alongside the recording threads
> >
> > Bug: skia:10176
> > Change-Id: Ibadd52b86abfd2802b9b3f31c86ab573554601db
> > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/289883
> > Commit-Queue: Adlai Holler <adlai@google.com>
> > Reviewed-by: Robert Phillips <robertphillips@google.com>
>
> TBR=robertphillips@google.com,adlai@google.com
>
> Change-Id: Iec316410563f0fe1d06f44bcfa58f6790c547f98
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: skia:10176
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290117
> Reviewed-by: Robert Phillips <robertphillips@google.com>
> Commit-Queue: Robert Phillips <robertphillips@google.com>

TBR=robertphillips@google.com,adlai@google.com


Bug: skia:10176
Change-Id: I1b57c91ed60b093440191274d1acb72d9e0c3b37
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290443
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Adlai Holler <adlai@google.com>
2020-05-18 15:12:47 +00:00
Brian Osman
8219e91468 For vertices/patches with a shader and no texCoords, use positions
This was another surprising (to me) inconsistency. Just because these
geometric primitives allow for explicit local coords, doesn't mean we
should require them (vs. all others that implicitly sample using local
position).

Change-Id: If3e7f6077bd15891b06cd2ffc969f1a649305d42
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290130
Reviewed-by: Mike Reed <reed@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2020-05-18 14:34:07 +00:00
Robert Phillips
1040e38363 Revert "direct mask biased to (0,0)"
This reverts commit 56cde4923f.

Reason for revert: may be blocking Chrome roll

Original change's description:
> direct mask biased to (0,0)
> 
> Create mask rectangles in device space.
> But, instead of offsetting to the drawing text blob origin
> offset to 0,0 to simplify mapping from source space to
> device space.
> 
> Bug: skia:10251
> 
> Change-Id: Ic637eb78879bcfae7e7944053d67d9eaef8490cc
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290133
> Commit-Queue: Herb Derby <herb@google.com>
> Reviewed-by: Robert Phillips <robertphillips@google.com>

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

# Not skipping CQ checks because original CL landed > 1 day ago.

Bug: skia:10251
Change-Id: I54b078d3eb88f209ce2a857e5fcf763c4d577ac3
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290439
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
2020-05-18 13:15:47 +00:00
skia-recreate-skps
ef3556df44 Update Go Deps
Change-Id: I55d45410981fa2a3196190599f7859239dead656
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290410
Reviewed-by: <skia-recreate-skps@skia-swarming-bots.iam.gserviceaccount.com>
Commit-Queue: <skia-recreate-skps@skia-swarming-bots.iam.gserviceaccount.com>
2020-05-18 05:38:13 +00:00
skia-autoroll
829d6c924c Roll third_party/externals/angle2 11f9c56c0347..d34ab323f368 (13 commits)
11f9c56c03..d34ab323f3

git log 11f9c56c0347..d34ab323f368 --date=short --first-parent --format='%ad %ae %s'
2020-05-16 timvp@google.com Vulkan: Save linked ProgramExecutable data
2020-05-16 rafael.cintron@microsoft.com Resolve Bad Binary Link Failures
2020-05-15 jdarpinian@chromium.org Respect IOSurface stride
2020-05-15 jmadill@chromium.org Vulkan: Refactor and clean up XFB code.
2020-05-15 spang@chromium.org Vulkan: Remove unused onExternalLayoutChange declaration
2020-05-15 timvp@google.com Handle null ProgramExecutable in ValidateDrawInstancedANGLE()
2020-05-15 tobine@google.com Vulkan:Add trace marker in finishToSerial()
2020-05-15 geofflang@chromium.org Unset the ActiveTextureCache entry if the program does not reference it
2020-05-15 b.schade@samsung.com Vulkan: Implement EXT_texture_format_sRGB_override
2020-05-15 angle-autoroll@skia-public.iam.gserviceaccount.com Roll third_party/SwiftShader d748e1651af8..c9625f1660da (1 commits)
2020-05-15 angle-autoroll@skia-public.iam.gserviceaccount.com Roll third_party/vulkan-validation-layers/src 73680f59c04a..7f2b55ced2ce (3 commits)
2020-05-15 angle-autoroll@skia-public.iam.gserviceaccount.com Roll third_party/glslang/src 4fa68edd6819..08a05bc2b9d1 (1 commits)
2020-05-15 timvp@google.com Vulkan: Pass Input/Output Varying lists during linking

Created with:
  gclient setdep -r third_party/externals/angle2@d34ab323f368

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

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

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/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: None
Tbr: lovisolo@google.com
Change-Id: I3fb6c4079c8f34b9b236eefad06842a366700e86
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290403
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2020-05-18 04:53:43 +00:00
skia-autoroll
afda82d378 Roll ../src 1aee2a7fd915..32d57fc38fab (458 commits)
1aee2a7fd9..32d57fc38f


Created with:
  gclient setdep -r ../src@32d57fc38f

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

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

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/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
Bug: None
Tbr: lovisolo@google.com
Change-Id: I77da49024a938e7f5f2c95c9a0edf1fe285ed538
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290400
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2020-05-18 04:49:23 +00:00
skia-autoroll
49bf75f59b Roll third_party/externals/swiftshader c9625f1660da..b6e8c3f0f483 (7 commits)
https://swiftshader.googlesource.com/SwiftShader.git/+log/c9625f1660da..b6e8c3f0f483

git log c9625f1660da..b6e8c3f0f483 --date=short --first-parent --format='%ad %ae %s'
2020-05-16 capn@google.com Encapsulate the RValue<T> value field
2020-05-16 capn@google.com Add type-safe Reference<T> load method
2020-05-16 capn@google.com Add type-safe LValue<T> load and store methods
2020-05-16 capn@google.com Retrieve Variable type through an abstract method
2020-05-16 capn@google.com Rename Reactor static getType() methods to type()
2020-05-16 capn@google.com Fix processing OpExecutionMode for the requested entry point
2020-05-15 capn@google.com Regres: Reverse full test run order

Created with:
  gclient setdep -r third_party/externals/swiftshader@b6e8c3f0f483

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

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

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

Cq-Include-Trybots: skia/skia.primary:Test-Debian10-Clang-GCE-GPU-SwiftShader-x86_64-Debug-All-SwiftShader
Bug: None
Tbr: lovisolo@google.com
Change-Id: I6e8bdad34630e653136b659bb8997683119d78ec
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290401
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2020-05-18 04:40:53 +00:00
skia-autoroll
263b897118 Roll third_party/externals/dawn 0b8e3194079e..275a95c1dc64 (7 commits)
https://dawn.googlesource.com/dawn.git/+log/0b8e3194079e..275a95c1dc64

git log 0b8e3194079e..275a95c1dc64 --date=short --first-parent --format='%ad %ae %s'
2020-05-17 shuizhuyuanluo@gmail.com Fix missing headers with libstdc++ (GCC 10.1)
2020-05-16 yunchao.he@intel.com Add end2end tests for texture subresource
2020-05-15 enga@chromium.org Cleanup: Remove unnecessary TestSetUp overload
2020-05-15 enga@chromium.org Run dawn_end2end_tests on all available system adapters
2020-05-15 enga@chromium.org Remove experimental Dawn DEPS CQ bots
2020-05-15 enga@chromium.org DawnTest: Gather adapters on environment creation for filtering backends
2020-05-15 enga@chromium.org DawnTest: Factor Instance creation, Adapter discovery, and config logging

Also rolling transitive DEPS:
  https://chromium.googlesource.com/chromium/src/third_party/jinja2 b41863e42637..b41863e42637
  https://chromium.googlesource.com/chromium/src/third_party/markupsafe 8f45f5cfa000..8f45f5cfa000
  https://chromium.googlesource.com/external/github.com/KhronosGroup/glslang 4fa68edd6819..4fa68edd6819
  https://chromium.googlesource.com/external/github.com/google/shaderc 00ac5d82178c..00ac5d82178c

Created with:
  gclient setdep -r third_party/externals/dawn@275a95c1dc64

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

Bug: None
Tbr: cwallez@google.com
Change-Id: I048b943f5954b6be18d61d7e07222091c9cbf207
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290402
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2020-05-18 04:34:13 +00:00
Mike Reed
4a9a2d1c28 remove legacy utils for camera3d
Change-Id: I43845925aa7f3bf880b4a63fe09d9d69e7574ad5
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290376
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
2020-05-18 02:05:28 +00:00
skia-recreate-skps
fb0b35fed5 Update SKP version
Automatic commit by the RecreateSKPs bot.

TBR=rmistry@google.com
NO_MERGE_BUILDS

Change-Id: I34f23471631e45f3f38cb484ac1742045c0d0850
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290336
Reviewed-by: <skia-recreate-skps@skia-swarming-bots.iam.gserviceaccount.com>
Commit-Queue: <skia-recreate-skps@skia-swarming-bots.iam.gserviceaccount.com>
2020-05-17 08:50:18 +00:00
skia-recreate-skps
92130329ce Update Go Deps
Change-Id: Ib7a6b4942ec6c2a415ceede610c9ca399ec96a12
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290245
Reviewed-by: <skia-recreate-skps@skia-swarming-bots.iam.gserviceaccount.com>
Commit-Queue: <skia-recreate-skps@skia-swarming-bots.iam.gserviceaccount.com>
2020-05-17 05:30:48 +00:00
skia-recreate-skps
fe4b0b3ab3 Update Go Deps
Change-Id: I7ed13f6e9aeca926ece3da78e8726dff680c8173
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290239
Reviewed-by: <skia-recreate-skps@skia-swarming-bots.iam.gserviceaccount.com>
Commit-Queue: <skia-recreate-skps@skia-swarming-bots.iam.gserviceaccount.com>
2020-05-16 05:51:44 +00:00
Chris Dalton
75b6c00917 Revert "Convert pathkit's usage of SkPath::Iter to SkPatPriv::RangeIter"
This reverts commit 999257d870.

Reason for revert: Iter does not behave the same as RangeIter

Original change's description:
> Convert pathkit's usage of SkPath::Iter to SkPatPriv::RangeIter
> 
> Change-Id: If940941a66c1fda508970a73d8433a2d2a292e1c
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/287894
> Reviewed-by: Kevin Lubick <kjlubick@google.com>
> Commit-Queue: Chris Dalton <csmartdalton@google.com>

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

# Not skipping CQ checks because original CL landed > 1 day ago.

Change-Id: Id1028577631ab616a60e0be71e27b32d9a1255e1
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290188
Reviewed-by: Chris Dalton <csmartdalton@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
2020-05-15 21:48:13 +00:00
Florin Malita
839e70f17e Identity unichar <-> glyph_id mapping for SkCustomTypeface
Would be neat to support explicit mappings, but this is sufficient for
what I'm looking at now (allows passing custom tf + "strings" through
the existing shaping pipeline).

Change-Id: I62a8a0c90cc9f6bf3ede82932a8b6a2a933521c1
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290197
Reviewed-by: Ben Wagner <bungeman@google.com>
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Florin Malita <fmalita@chromium.org>
2020-05-15 21:10:54 +00:00
Julia Lavrova
3ea86251b9 Attaching ellipsis to emoji cluster
Bug: skia:10253
Change-Id: Id6b8507331facba4b69ebc96646a87c5e0eb6da9
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290132
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Julia Lavrova <jlavrova@google.com>
2020-05-15 21:02:30 +00:00
Herb Derby
56cde4923f direct mask biased to (0,0)
Create mask rectangles in device space.
But, instead of offsetting to the drawing text blob origin
offset to 0,0 to simplify mapping from source space to
device space.

Bug: skia:10251

Change-Id: Ic637eb78879bcfae7e7944053d67d9eaef8490cc
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290133
Commit-Queue: Herb Derby <herb@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
2020-05-15 20:24:13 +00:00
Brian Salomon
2255893cbd Reland "Consolidate texture uploads in GrGLGpu."
This is a reland of 5c66aa744a

Original change's description:
> Consolidate texture uploads in GrGLGpu.
> 
> Remove unused GrMipMapsStatus out param
> 
> All paths now unbind PBO before upload.
> 
> Use the backend texture's target in GrGLGpu::onUpdateBackendTexture.
> 
> Change-Id: I91ce483841c8f8b2cc8a2e1f1a45a186a66d2d5f
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/289576
> Commit-Queue: Brian Salomon <bsalomon@google.com>
> Reviewed-by: Greg Daniel <egdaniel@google.com>

Change-Id: Ic5ecff8c7a2fb1c03c6ec451d73ade437c884e96
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290131
Auto-Submit: Brian Salomon <bsalomon@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
2020-05-15 20:03:03 +00:00
Brian Salomon
11ad4ccfd4 Reland "Revert "Revert "Fix tile modes in SkGpuBlurUtils."""
This is a reland of e5865f6f10

Original change's description:
> Revert "Revert "Fix tile modes in SkGpuBlurUtils.""
> 
> This reverts commit 88d04cb51a.
> 
> Change-Id: I3ca403bb9631a273b5cbe2304c6c3ff9dd01fa89
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/289625
> Reviewed-by: Michael Ludwig <michaelludwig@google.com>
> Commit-Queue: Brian Salomon <bsalomon@google.com>

Change-Id: I93a0c1f635487f47b6bd13082ea456f025eac700
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290121
Auto-Submit: Brian Salomon <bsalomon@google.com>
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
2020-05-15 19:46:43 +00:00
Mike Klein
67c921abaa JIT pow()
Minor issue... that lambda's gross.

Safety clamp x up to 0 in pow() to handle situations where we get
a very slightly x<0 rooted in float precision issues (see bug).

Added a note about converting this to an assert.
I'm still stewing on how to best make that possible.

Bug: skia:10210
Change-Id: I41d941f0556618e1d47e6eeffbde4cf8760c66a1
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/287418
Reviewed-by: Herb Derby <herb@google.com>
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Mike Klein <mtklein@google.com>
2020-05-15 18:13:43 +00:00
Heather Miller
b88892f326 update release notes file, site for 84 branch
Bug: skia:
Change-Id: Icdc056e7972cad814fa633b7c9b021f4534d60c9
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290119
Reviewed-by: Joe Gregorio <jcgregorio@google.com>
Commit-Queue: Heather Miller <hcm@google.com>
2020-05-15 17:38:43 +00:00
Robert Phillips
71f06f60ac Revert "Consolidate texture uploads in GrGLGpu."
This reverts commit 5c66aa744a.

Reason for revert: ANGLE

Original change's description:
> Consolidate texture uploads in GrGLGpu.
> 
> Remove unused GrMipMapsStatus out param
> 
> All paths now unbind PBO before upload.
> 
> Use the backend texture's target in GrGLGpu::onUpdateBackendTexture.
> 
> Change-Id: I91ce483841c8f8b2cc8a2e1f1a45a186a66d2d5f
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/289576
> Commit-Queue: Brian Salomon <bsalomon@google.com>
> Reviewed-by: Greg Daniel <egdaniel@google.com>

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

Change-Id: Ief22a04010f2bcbad30beb63f065dfa08f43bc07
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290122
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
2020-05-15 16:37:37 +00:00
Robert Phillips
f10b2a58a3 Loosen up uniqueKey asserts between GrTextureProxy and GrTexture in DDLs (alt. version)
When recording a DDL it is possible for a uniquely keyed resource to lose its uniqueKey in the direct context (and its proxyProvider) while the DDL's proxyProvider still has a proxy with a uniqueKey.

Bug: 1056730
Change-Id: I565b08a8eb280aea19fc3052c758e059392a4c12
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/289890
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
2020-05-15 15:49:25 +00:00
Brian Salomon
6ef29333cb One bleed GM
The alpha versions are impossible to triage (the bleed is barely
perceptible). Image and bitmap no longer go through separate code
paths in SkGpuDevice so we don't need bitmap variants. Alpha image/
shader interaction is orthogonal to the rest of what's being tested
here and makes triaging even harder.

Change-Id: I85dffa01de0f4f06cb9cbe04fb1d039a8b61416a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290118
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
2020-05-15 15:19:05 +00:00
Brian Salomon
5c66aa744a Consolidate texture uploads in GrGLGpu.
Remove unused GrMipMapsStatus out param

All paths now unbind PBO before upload.

Use the backend texture's target in GrGLGpu::onUpdateBackendTexture.

Change-Id: I91ce483841c8f8b2cc8a2e1f1a45a186a66d2d5f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/289576
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
2020-05-15 15:09:15 +00:00
Brian Osman
28590d54f5 Add 'shader' as an alias for 'fragmentProcessor'
Change-Id: I2d95c63de18125e6258709b48b03abd7904b7537
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/278596
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
2020-05-15 13:52:15 +00:00
Robert Phillips
2403a1001b Revert "Update skpbench to let the gpu thread run alongside the recording threads"
This reverts commit ca06ce48f1.

Reason for revert: It is dying on a bot with the error:
skpbench.py: error: unrecognized arguments: --ddlNumRecordingThreads c:\b\s\w\ir\skp

Original change's description:
> Update skpbench to let the gpu thread run alongside the recording threads
> 
> Bug: skia:10176
> Change-Id: Ibadd52b86abfd2802b9b3f31c86ab573554601db
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/289883
> Commit-Queue: Adlai Holler <adlai@google.com>
> Reviewed-by: Robert Phillips <robertphillips@google.com>

TBR=robertphillips@google.com,adlai@google.com

Change-Id: Iec316410563f0fe1d06f44bcfa58f6790c547f98
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: skia:10176
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290117
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
2020-05-15 12:19:27 +00:00
skia-recreate-skps
f3fe5a5353 Update Go Deps
Change-Id: I942701d7dd6a50ccded5d151a31268a1a86e8dfe
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290109
Reviewed-by: <skia-recreate-skps@skia-swarming-bots.iam.gserviceaccount.com>
Commit-Queue: <skia-recreate-skps@skia-swarming-bots.iam.gserviceaccount.com>
2020-05-15 05:31:34 +00:00
skia-autoroll
29371c691e Roll third_party/externals/angle2 664376e20ab2..11f9c56c0347 (12 commits)
664376e20a..11f9c56c03

git log 664376e20ab2..11f9c56c0347 --date=short --first-parent --format='%ad %ae %s'
2020-05-15 spang@chromium.org Vulkan: Tighten up asserts for resource ownership
2020-05-15 cclao@google.com Vulkan: Try to merge barriers if possible
2020-05-14 jmadill@chromium.org Suppress optimization in trace/replay sample.
2020-05-14 spang@chromium.org Vulkan: Fix ANGLE_ENABLE_VULKAN_VALIDATION_LAYERS_BY_DEFAULT
2020-05-14 sunnyps@chromium.org Add texture offset attributess for D3D texture pbuffer surfaces
2020-05-14 timvp@google.com Vulkan: Move necessary members from ProgramState to ProgramExecutable
2020-05-14 timvp@google.com Update Program[Pipeline]State to hold a ProgramExecutable Pointer
2020-05-14 ianelliott@google.com Vulkan: Create a test to debug Android pre-rotation
2020-05-14 cnorthrop@google.com Perf: Add Temple Run trace
2020-05-14 angle-autoroll@skia-public.iam.gserviceaccount.com Roll third_party/SwiftShader 64da65bd1bd5..d748e1651af8 (2 commits)
2020-05-14 cnorthrop@google.com Perf: Add Reset call to trace tests
2020-05-14 cnorthrop@google.com Perf: Detect context used by trace

Created with:
  gclient setdep -r third_party/externals/angle2@11f9c56c0347

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 jlavrova@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/+/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: None
Tbr: jlavrova@google.com
Change-Id: I099ffb852c965422c3b18cf676e03b2017d8f3ec
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290102
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2020-05-15 04:57:46 +00:00
skia-autoroll
64359de8de Roll third_party/externals/swiftshader d748e1651af8..c9625f1660da (1 commits)
https://swiftshader.googlesource.com/SwiftShader.git/+log/d748e1651af8..c9625f1660da

git log d748e1651af8..c9625f1660da --date=short --first-parent --format='%ad %ae %s'
2020-05-14 srisser@google.com Fix asserts due to missing texture formats

Created with:
  gclient setdep -r third_party/externals/swiftshader@c9625f1660da

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

Cq-Include-Trybots: skia/skia.primary:Test-Debian10-Clang-GCE-GPU-SwiftShader-x86_64-Debug-All-SwiftShader
Bug: None
Tbr: jlavrova@google.com
Change-Id: Ia9ddef7dac4d9a428adc7a365b1eea7a407a8a46
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290100
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2020-05-15 04:57:36 +00:00
skia-autoroll
4a7d5032be Roll third_party/externals/dawn 75ef5963b477..0b8e3194079e (3 commits)
https://dawn.googlesource.com/dawn.git/+log/75ef5963b477..0b8e3194079e

git log 75ef5963b477..0b8e3194079e --date=short --first-parent --format='%ad %ae %s'
2020-05-15 jiawei.shao@intel.com Add tests to verify storage textures are initialized before being used
2020-05-14 bryan.bernhart@intel.com D3D12: Enable GPU-based validation
2020-05-14 enga@chromium.org Reland "Support depth32float sampling on D3D12"

Also rolling transitive DEPS:
  https://chromium.googlesource.com/chromium/src/third_party/jinja2 b41863e42637..b41863e42637
  https://chromium.googlesource.com/chromium/src/third_party/markupsafe 8f45f5cfa000..8f45f5cfa000
  https://chromium.googlesource.com/external/github.com/KhronosGroup/glslang 4fa68edd6819..4fa68edd6819
  https://chromium.googlesource.com/external/github.com/google/shaderc 00ac5d82178c..00ac5d82178c

Created with:
  gclient setdep -r third_party/externals/dawn@0b8e3194079e

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

Bug: None
Tbr: cwallez@google.com
Change-Id: I343f812dcb61c1971644dc0a9731dc0925d4bd04
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290101
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2020-05-15 04:45:26 +00:00
skia-autoroll
da55d56a56 Roll ../src a6a8a49a2077..1aee2a7fd915 (514 commits)
a6a8a49a20..1aee2a7fd9


Created with:
  gclient setdep -r ../src@1aee2a7fd9

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 jlavrova@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/+/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
Bug: None
Tbr: jlavrova@google.com
Change-Id: Ibae29199d5b6d136b01fe764c5b5f916f3ce4def
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290099
Reviewed-by: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
Commit-Queue: skia-autoroll <skia-autoroll@skia-public.iam.gserviceaccount.com>
2020-05-15 04:38:36 +00:00
Brian Salomon
364ed37bf1 Reland "Revert "Fix tile modes in SkGpuBlurUtils.""
This reverts commit e5865f6f10.

Reason for revert: some async GMs on some configs look like they are
reading from edges of approx textures.

Original change's description:
> Revert "Revert "Fix tile modes in SkGpuBlurUtils.""
> 
> This reverts commit 88d04cb51a.
> 
> Change-Id: I3ca403bb9631a273b5cbe2304c6c3ff9dd01fa89
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/289625
> Reviewed-by: Michael Ludwig <michaelludwig@google.com>
> Commit-Queue: Brian Salomon <bsalomon@google.com>

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

# Not skipping CQ checks because this is a reland.

Change-Id: If6f5917982b8c865161e7f4a566df49cb772989b
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290036
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
2020-05-15 00:55:26 +00:00
Brian Salomon
b88fe292b5 Support framebuffer fetch extension on non-ES GL
Change-Id: I8da8524d2bfd0c20786d24273fcbe4fb85d3f45f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/289894
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
2020-05-15 00:30:16 +00:00
Chris Dalton
a36a5a182f Add a per-triangle vertex advance to GrMiddleOutPolygonTriangulator
This will allow us to write the triangles with a 4-vertex stride and
combine them with cubic instances for indirect draw mode.

Change-Id: Ibe1b16ac093c2fd09a604f37e527c1c24369a64b
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/289936
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
2020-05-15 00:28:16 +00:00
Brian Salomon
593febf1bf Blacklist gpu_blur_utils GMs from gltestthreading
Change-Id: Ibefd9c8886f23073dcf5c70d8dfd49cc5e244bc3
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/289996
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
2020-05-14 23:13:36 +00:00
Brian Salomon
330db4bed8 Remove outdated color type readback workaround from dm
Change-Id: Ic3d9a17674baac8d567ee6229ee2ee0716d9dca9
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/289980
Auto-Submit: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2020-05-14 22:11:35 +00:00
Florin Malita
340cd9c99e SkCustomTypeface tweaks
- don't require prior glyph count knowledge - grow dynamically

  - no need to store the glyph count explicitly, it's reflected in
    path/advance vector sizes

Change-Id: I3650ba9312db02c99b72bcf7fd3215697ec00b08
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/289893
Reviewed-by: Ben Wagner <bungeman@google.com>
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Florin Malita <fmalita@chromium.org>
2020-05-14 21:44:24 +00:00
Adlai Holler
ca06ce48f1 Update skpbench to let the gpu thread run alongside the recording threads
Bug: skia:10176
Change-Id: Ibadd52b86abfd2802b9b3f31c86ab573554601db
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/289883
Commit-Queue: Adlai Holler <adlai@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
2020-05-14 21:13:16 +00:00
Brian Osman
08f986dde7 Added SkSL unpremul intrinsic
Change-Id: I5303f6f5210628a0a5d941b2f4a6376b5e158b60
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/289577
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
2020-05-14 20:57:15 +00:00
Julia Lavrova
568f35f8d9 Turn off underline with gaps
Instead of using 'kGaps' as the default use 'kThrough' since that
is what is generally expected by default. The user can still set
the style to 'kGaps' if they wish.

Change-Id: Ibb04b8eb47393d645a49f98c7af976b5ed4f9c3c
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/289884
Commit-Queue: Julia Lavrova <jlavrova@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
2020-05-14 20:51:05 +00:00
Brian Osman
cdb520a76a SkPostConcatMatrixProvider -> SkPostTranslateMatrixProvider
The only uses of this are to do translation, so narrow the focus.

Change-Id: Ia3ccd5ce8840ad516ea12c8d8e3f8fd522e731a1
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/289878
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2020-05-14 20:30:14 +00:00
Greg Daniel
0a2464f51f Update internal skia uses to use flushAndSubmit and submit calls.
Bug: skia:10118
Change-Id: Ieb7c0eece56d3d9df56ecb52e00e76c01f038de8
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/289888
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
2020-05-14 20:26:44 +00:00
Brian Salomon
e5865f6f10 Revert "Revert "Fix tile modes in SkGpuBlurUtils.""
This reverts commit 88d04cb51a.

Change-Id: I3ca403bb9631a273b5cbe2304c6c3ff9dd01fa89
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/289625
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
2020-05-14 20:24:44 +00:00
Nathaniel Nifong
bcffa4ffb1 Reorder canvaskit demos, add fixed 3d cube demo
Change-Id: I53ae7bec8470ac80c56780280a7d08974afdc35a
No-Try: true
Docs-Preview: https://skia.org/?cl=289784
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/289784
Commit-Queue: Nathaniel Nifong <nifong@google.com>
Reviewed-by: Kevin Lubick <kjlubick@google.com>
2020-05-14 20:11:05 +00:00
Kevin Lubick
5592f2485a [canvaskit] Update to 0.15.0
Change-Id: I5b1f02a8cef589e7b6f8653e2322610ebfdc3c8e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/289891
Reviewed-by: Kevin Lubick <kjlubick@google.com>
2020-05-14 19:54:26 +00:00