platform/upstream/libSkiaSharp.git
8 years agoFix mask applied to SkPath::fFillType in readFromMemory to fix fuzzer bug
robertphillips [Tue, 28 Jun 2016 11:54:54 +0000 (04:54 -0700)]
Fix mask applied to SkPath::fFillType in readFromMemory to fix fuzzer bug

The fFillType field only needs/uses 2 bits - not all 8

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2099113004

Review-Url: https://codereview.chromium.org/2099113004

8 years agoAdd CIPD support for bot assets
borenet [Tue, 28 Jun 2016 11:41:49 +0000 (04:41 -0700)]
Add CIPD support for bot assets

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2085473002

Review-Url: https://codereview.chromium.org/2085473002

8 years agoFix Vulkan readPixels
egdaniel [Mon, 27 Jun 2016 21:34:55 +0000 (14:34 -0700)]
Fix Vulkan readPixels

Fixed bug with setting up tempReadTexture from previous CL.

Also, previously we were not correctly handling the rowBytes during the read.

BUG=skia:5461
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2102633003

Review-Url: https://codereview.chromium.org/2102633003

8 years agoCheck PremulType during GrGradientEffect::onIsEqual
csmartdalton [Mon, 27 Jun 2016 21:02:10 +0000 (14:02 -0700)]
Check PremulType during GrGradientEffect::onIsEqual

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2100223003

Review-Url: https://codereview.chromium.org/2100223003

8 years agoAdd support for draws in vulkan read and write pixels
egdaniel [Mon, 27 Jun 2016 19:57:00 +0000 (12:57 -0700)]
Add support for draws in vulkan read and write pixels

GL has a lot more optimizations checks here to make sure we do the most
effecient and correct draw here, but for now as long as the features
are support we just do basic draws for both reads and writes when we
need certain conversions.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2105433002

Review-Url: https://codereview.chromium.org/2105433002

8 years agoUpdate roadmap and remove highlights
hcm [Mon, 27 Jun 2016 19:54:07 +0000 (12:54 -0700)]
Update roadmap and remove highlights

Use new file hosted on skia.org for 16-17 roadmap
Remove aging published highlights in favor of release notes

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2104563002
NOTRY=true
DOCS_PREVIEW= https://skia.org/?cl=2104563002

Review-Url: https://codereview.chromium.org/2104563002

8 years agoUpdate documentation on how to download CT SKPs
rmistry [Mon, 27 Jun 2016 19:51:47 +0000 (12:51 -0700)]
Update documentation on how to download CT SKPs

BUG=skia:5465
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2103443003
NOTRY=true
DOCS_PREVIEW= https://skia.org/?cl=2103443003

Review-Url: https://codereview.chromium.org/2103443003

8 years agoFix Perlin noise fuzz issue
robertphillips [Mon, 27 Jun 2016 19:26:29 +0000 (12:26 -0700)]
Fix Perlin noise fuzz issue

The main "fix" here was that the assert was checking the un-clamped input value rather than the clamped value.

The SkValidatingReadBuffer.cpp change was required to get the reproducing fuzz test case to complete.

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2107453002

Review-Url: https://codereview.chromium.org/2107453002

8 years agoAddress ASAN fuzzer complaint
robertphillips [Mon, 27 Jun 2016 19:05:39 +0000 (12:05 -0700)]
Address ASAN fuzzer complaint

This addresses a class of fuzzer failure where the paint index has been
made invalid but the calling code doesn't handle a null pointer return.
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2099343002

Review-Url: https://codereview.chromium.org/2099343002

8 years agoSkLightingShader normal vector CPU computation refactor.
dvonbeck [Mon, 27 Jun 2016 18:40:45 +0000 (11:40 -0700)]
SkLightingShader normal vector CPU computation refactor.

The purpose of this change is to refactor the handling of normal maps out of SkLightingShader, laying the groundwork to eventually allow for multiple normal sources.

This CL's base was the CL for GPU handling: https://codereview.chromium.org/2043393002/

What this CL includes:

- A refactor of the SkLightingShader context's code that deals with reading normals off of a normal map. This is now abstracted out into a NormalSource::Provider class that the context uses.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2050773002

Committed: https://skia.googlesource.com/skia/+/790a70118327a129cb6b48fabe80f4e184c1e67c
Review-Url: https://codereview.chromium.org/2050773002

8 years agoFix up flags to SkGpuBlurUtils::GaussianBlur
robertphillips [Mon, 27 Jun 2016 18:11:05 +0000 (11:11 -0700)]
Fix up flags to SkGpuBlurUtils::GaussianBlur

This fixes a bug introduced in: https://codereview.chromium.org/1961953002/ (Reland of Simplify SkGpuBlurUtils::GaussianBlur method)

Although the 'canOverwriteSrc' flag is/was being used I still believe we're better off re-adding it after the mask-blur refactoring finishes.

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2100873002

Review-Url: https://codereview.chromium.org/2100873002

8 years agoFix inverse test for GrDFAAPR::onCanDrawPath
bsalomon [Mon, 27 Jun 2016 18:08:43 +0000 (11:08 -0700)]
Fix inverse test for GrDFAAPR::onCanDrawPath

TBR=egdaniel@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2105443002

Review-Url: https://codereview.chromium.org/2105443002

8 years agoUse a union inside GrShape to hold geometry
bsalomon [Mon, 27 Jun 2016 17:00:19 +0000 (10:00 -0700)]
Use a union inside GrShape to hold geometry
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2094023002

Review-Url: https://codereview.chromium.org/2094023002

8 years agoRevert of Refactoring of CPU NormalMap handling out into its own class (patchset...
dvonbeck [Mon, 27 Jun 2016 16:30:19 +0000 (09:30 -0700)]
Revert of Refactoring of CPU NormalMap handling out into its own class (patchset #13 id:240001 of https://codereview.chromium.org/2050773002/ )

Reason for revert:
GMs are crashing on Windows Test trybots

Original issue's description:
> SkLightingShader normal vector CPU computation refactor.
>
> The purpose of this change is to refactor the handling of normal maps out of SkLightingShader, laying the groundwork to eventually allow for multiple normal sources.
>
> This CL's base was the CL for GPU handling: https://codereview.chromium.org/2043393002/
>
> What this CL includes:
>
> - A refactor of the SkLightingShader context's code that deals with reading normals off of a normal map. This is now abstracted out into a NormalSource::Provider class that the context uses.
>
> BUG=skia:
> GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2050773002
>
> Committed: https://skia.googlesource.com/skia/+/790a70118327a129cb6b48fabe80f4e184c1e67c

TBR=egdaniel@google.com,reed@google.com
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:

Review-Url: https://codereview.chromium.org/2101653002

8 years agoAdd a GL cap for instanced rendering to floating point
csmartdalton [Mon, 27 Jun 2016 16:29:07 +0000 (09:29 -0700)]
Add a GL cap for instanced rendering to floating point

We have observed on OS X that instanced draws don't always behave
correctly when the framebuffer is floating point.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2095183002

Review-Url: https://codereview.chromium.org/2095183002

8 years agoSkLightingShader normal vector CPU computation refactor.
dvonbeck [Mon, 27 Jun 2016 15:43:58 +0000 (08:43 -0700)]
SkLightingShader normal vector CPU computation refactor.

The purpose of this change is to refactor the handling of normal maps out of SkLightingShader, laying the groundwork to eventually allow for multiple normal sources.

This CL's base was the CL for GPU handling: https://codereview.chromium.org/2043393002/

What this CL includes:

- A refactor of the SkLightingShader context's code that deals with reading normals off of a normal map. This is now abstracted out into a NormalSource::Provider class that the context uses.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2050773002

Review-Url: https://codereview.chromium.org/2050773002

8 years agoMake sure path computed from stroke-rec application using GrStyle is volatile.
bsalomon [Mon, 27 Jun 2016 14:59:12 +0000 (07:59 -0700)]
Make sure path computed from stroke-rec application using GrStyle is volatile.
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2099313002

Review-Url: https://codereview.chromium.org/2099313002

8 years agoRemove style application from GrPathRenderer subclasses
bsalomon [Mon, 27 Jun 2016 14:18:18 +0000 (07:18 -0700)]
Remove style application from GrPathRenderer subclasses

Now that GrPathRenderer is using GrShape it is possible to get a key for a path that was computed by applying style to an original path.

This improves path renderer subclass selection, particularly when a post-styled path happens to work with a simpler path renderer (e.g. it is convex). Previously a more expensive path renderer may have applied the style and rendered it (e.g. the distance field PR)

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2064753003

Review-Url: https://codereview.chromium.org/2064753003

8 years agoFix check for maxVertexAttributes in GrVkPipeline
egdaniel [Mon, 27 Jun 2016 14:15:20 +0000 (07:15 -0700)]
Fix check for maxVertexAttributes in GrVkPipeline

BUG=skia:5461
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2098933002

Review-Url: https://codereview.chromium.org/2098933002

8 years agoremove DownSample imagefilter
reed [Sat, 25 Jun 2016 21:30:44 +0000 (14:30 -0700)]
remove DownSample imagefilter
was just created early on as a test filter

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2094083002

TBR=

Review-Url: https://codereview.chromium.org/2094083002

8 years agoremove experimental treat-skcolor-as-srgb flag
reed [Sat, 25 Jun 2016 01:14:07 +0000 (18:14 -0700)]
remove experimental treat-skcolor-as-srgb flag

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2097003003

Review-Url: https://codereview.chromium.org/2097003003

8 years agoAdd Sleep on windows GrVkGpu dtor to avoid fence bug
egdaniel [Fri, 24 Jun 2016 20:18:27 +0000 (13:18 -0700)]
Add Sleep on windows GrVkGpu dtor to avoid fence bug

BUG=skia:5458
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2099813002

Review-Url: https://codereview.chromium.org/2099813002

8 years agoAdd documention on SkBlitter for runs, and small cleanups.
herb [Fri, 24 Jun 2016 20:02:31 +0000 (13:02 -0700)]
Add documention on SkBlitter for runs, and small cleanups.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2054213002

Review-Url: https://codereview.chromium.org/2054213002

8 years agoGrColor4f is yet another 4f color type, unfortunately.
brianosman [Fri, 24 Jun 2016 19:50:19 +0000 (12:50 -0700)]
GrColor4f is yet another 4f color type, unfortunately.

- Sk4f would be my choice, but it's not allowed in include/
- SkColor4f and SkPM4f are specified to be unpremultiplied/premultiplied, whereas GrColor (and GrColor4f) are either, depending on context.

This adds 12 bytes to GrPaint. Not sure if we want to pay that price. The precision loss for a single value (vs. in a gradient, etc...) may not justify changing the storage type here. Easy enough to back that part out, while still keeping the 4f intermediate type for the helper math that it adds, and for storage and parameter passing in other locations.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2088303002

Review-Url: https://codereview.chromium.org/2088303002

8 years agoFix incorrect swizzle on BGRA platforms in filterColor4f path
brianosman [Fri, 24 Jun 2016 18:55:32 +0000 (11:55 -0700)]
Fix incorrect swizzle on BGRA platforms in filterColor4f path

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2091923003

Review-Url: https://codereview.chromium.org/2091923003

8 years agoMake bucket names explicit in cq.cfg.
tandrii [Fri, 24 Jun 2016 18:27:28 +0000 (11:27 -0700)]
Make bucket names explicit in cq.cfg.

Don't assume bucket name to start with 'master.'.

NOTRY=True
BUG=chromium:617627
R=rmistry@google.com,sergiyb@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2096733005

Review-Url: https://codereview.chromium.org/2096733005

8 years agoUse GrShape in GrPathRenderer.
bsalomon [Fri, 24 Jun 2016 17:42:16 +0000 (10:42 -0700)]
Use GrShape in GrPathRenderer.
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2081383006

Review-Url: https://codereview.chromium.org/2081383006

8 years agoRemove unnecessary srcAccessMask for preinitialized images in vulkan
egdaniel [Fri, 24 Jun 2016 17:29:02 +0000 (10:29 -0700)]
Remove unnecessary srcAccessMask for preinitialized images in vulkan

This fixes a warning we were receiving while running tests in Vulkan.

BUG=skia:5458
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2095923004

Review-Url: https://codereview.chromium.org/2095923004

8 years agoHave gpu createTestingOlyBackendTexture know if it is a render target or not
egdaniel [Fri, 24 Jun 2016 16:22:31 +0000 (09:22 -0700)]
Have gpu createTestingOlyBackendTexture know if it is a render target or not

In Vulkan we need to know at create time of a texture whether or not we will
use it as a render target.

BUG=skia:5458
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2093943002

Review-Url: https://codereview.chromium.org/2093943002

8 years agoChange SkColor4f to RGBA channel order
brianosman [Fri, 24 Jun 2016 13:31:47 +0000 (06:31 -0700)]
Change SkColor4f to RGBA channel order

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2093763003

Review-Url: https://codereview.chromium.org/2093763003

8 years agoRevert of Remove Android SampleApp (patchset #5 id:80001 of https://codereview.chromi...
rmistry [Fri, 24 Jun 2016 12:24:16 +0000 (05:24 -0700)]
Revert of Remove Android SampleApp (patchset #5 id:80001 of https://codereview.chromium.org/2096683002/ )

Reason for revert:
Testing to see if this CL caused the failures in Build-Mac-Clang-Arm7-Debug-Android

Original issue's description:
> Remove Android SampleApp
>
> BUG=skia:
> GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2096683002
>
> Committed: https://skia.googlesource.com/skia/+/41bb5b40e71411ee39538399ea125986ec760a90

TBR=djsollen@google.com,liyuqian@google.com
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:

Review-Url: https://codereview.chromium.org/2099693002

8 years agoAdd support for 3D colorLUTs to SkColorXform
msarett [Thu, 23 Jun 2016 22:12:52 +0000 (15:12 -0700)]
Add support for 3D colorLUTs to SkColorXform

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2097553002

Review-Url: https://codereview.chromium.org/2097553002

8 years agoFix vulkan warning in RecordReplaceDrawTest
egdaniel [Thu, 23 Jun 2016 22:06:29 +0000 (15:06 -0700)]
Fix vulkan warning in RecordReplaceDrawTest

Vulkan debug layers complain that when we call readPixels on the texture
we are copying unitialized data from the image to a buffer.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2091823005

Review-Url: https://codereview.chromium.org/2091823005

8 years agoSkPDF: alloc less memory for strings
halcanary [Thu, 23 Jun 2016 21:08:11 +0000 (14:08 -0700)]
SkPDF:  alloc less memory for strings

    before:
        micros    bench
        250.98   WritePDFText nonrendering
    after:
        micros    bench
        107.10   WritePDFText nonrendering

Also, be slightly more space-efficient in encoding strings.

Also, add a bench.

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2099463002

Review-Url: https://codereview.chromium.org/2099463002

8 years agoMove GrPipelineBuilder out of gms & reduce use of GrPipelineBuilder.h
robertphillips [Thu, 23 Jun 2016 21:07:00 +0000 (14:07 -0700)]
Move GrPipelineBuilder out of gms & reduce use of GrPipelineBuilder.h

Just another step in reining in the GrPLB

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2086293006

Review-Url: https://codereview.chromium.org/2086293006

8 years agoSupport GL_SAMPLES queries in null contexts
csmartdalton [Thu, 23 Jun 2016 20:42:13 +0000 (13:42 -0700)]
Support GL_SAMPLES queries in null contexts

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2085043002

Committed: https://skia.googlesource.com/skia/+/64b92a59294a2f73448b3fa8f36f39079f032521
Committed: https://skia.googlesource.com/skia/+/57e98530c113066c4c2d9c64505c52dc25e66c00
Review-Url: https://codereview.chromium.org/2085043002

8 years agoAdd some more getters to GrShape.
bsalomon [Thu, 23 Jun 2016 20:18:45 +0000 (13:18 -0700)]
Add some more getters to GrShape.

These will be used to deploy GrShape in GrPathRenderer subclasses.

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2070643002

Review-Url: https://codereview.chromium.org/2070643002

8 years agoMake container classes in SkTemplates.h more consistent
csmartdalton [Thu, 23 Jun 2016 19:55:14 +0000 (12:55 -0700)]
Make container classes in SkTemplates.h more consistent

Ensures that ".get()" always returns null when a container is empty.
Also ensures consistent assert behavior for array counts.

There are still differences in that the malloc variants take a size_t
and the arrays take an int, and that SkAutoSTMalloc defaults to the
stack-allocated buffer wheras the other containers default to null.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2084213003

Review-Url: https://codereview.chromium.org/2084213003

8 years agoRevert of Potential fix for flaky TSAN (patchset #1 id:1 of https://codereview.chromi...
msarett [Thu, 23 Jun 2016 19:48:44 +0000 (12:48 -0700)]
Revert of Potential fix for flaky TSAN (patchset #1 id:1 of https://codereview.chromium.org/2084243003/ )

Reason for revert:
I believe I've fixed SkMatrix44::I() to be thread safe, let's test it by reverting this CL.

Original issue's description:
> Potential fix for flaky TSAN
>
> TBR=mtklein@google.com
> BUG=skia:
> GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2084243003
>
> Committed: https://skia.googlesource.com/skia/+/949999d0bbc247906995358a90c4e436e9152de2

TBR=mtklein@google.com
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:

Review-Url: https://codereview.chromium.org/2091573004

8 years agoSkMatrix44 clarifications and clean-ups
msarett [Thu, 23 Jun 2016 19:42:29 +0000 (12:42 -0700)]
SkMatrix44 clarifications and clean-ups

Fixed row/col major bug and added comments to the
header.

Made SkMatrix::I() thread safe using constexpr.

Added a test set3x3RowMajorf().

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2098583002

Review-Url: https://codereview.chromium.org/2098583002

8 years agoFix Rob's nits from https://codereview.chromium.org/2085913003
bsalomon [Thu, 23 Jun 2016 19:23:07 +0000 (12:23 -0700)]
Fix Rob's nits from https://codereview.chromium.org/2085913003

TBR=robertphillips@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087393003

Review-Url: https://codereview.chromium.org/2087393003

8 years agoRemove Android SampleApp
liyuqian [Thu, 23 Jun 2016 19:08:06 +0000 (12:08 -0700)]
Remove Android SampleApp

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2096683002

Review-Url: https://codereview.chromium.org/2096683002

8 years agoFix vulkan clears
egdaniel [Thu, 23 Jun 2016 18:56:36 +0000 (11:56 -0700)]
Fix vulkan clears

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2096793002

Review-Url: https://codereview.chromium.org/2096793002

8 years agoCanonicalize path fill types for stroked paths in GrShape.
bsalomon [Thu, 23 Jun 2016 18:48:26 +0000 (11:48 -0700)]
Canonicalize path fill types for stroked paths in GrShape.
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2085913003

Review-Url: https://codereview.chromium.org/2085913003

8 years agoChange loop bounds to be correct (and much less confusing)
brianosman [Thu, 23 Jun 2016 18:40:14 +0000 (11:40 -0700)]
Change loop bounds to be correct (and much less confusing)

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2095693002

Review-Url: https://codereview.chromium.org/2095693002

8 years agoFix bug in filterSpan4f - read the source, rather than the dest
brianosman [Thu, 23 Jun 2016 18:33:21 +0000 (11:33 -0700)]
Fix bug in filterSpan4f - read the source, rather than the dest

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2091793003

Review-Url: https://codereview.chromium.org/2091793003

8 years agoWork around missing __mulodi4() on ARMv7 + Clang builds.
mtklein [Thu, 23 Jun 2016 18:20:58 +0000 (11:20 -0700)]
Work around missing __mulodi4() on ARMv7 + Clang builds.

__mulodi4() is roughly,

    int64_t __mulodi4(int64_t a, int64_t b, int* overflow) {
        int64_t result = a*b;
        *overflow = did_overflow(result);
        return result;
    }

It's used by Clang's __builtin_smulll_overflow(), which is basically the same
except it swaps the positions of the return value and the out parameter.

DNG SDK in turn uses __builtin_smulll_overflow().

When building ARMv7 binaries with Clang, __mulodi4() turns up as a missing symbol.
That's because it's defined in a separate compiler-rt library.  I have not been
able to link that.  Instead, I've provided our own trivial __builtin_smulll_overflow().

Before this patch both nanobench and DM failed dynamically linking __mulodi4().  After this patch nanobench runs for a while, eventually segfaulting.  DM immediately segfaults.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2011073002

Review-Url: https://codereview.chromium.org/2011073002

8 years agoAdd deserialize color space entry point for fuzzing
kjlubick [Thu, 23 Jun 2016 17:49:27 +0000 (10:49 -0700)]
Add deserialize color space entry point for fuzzing

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2089783003

Review-Url: https://codereview.chromium.org/2089783003

8 years agoGN
mtklein [Thu, 23 Jun 2016 17:29:30 +0000 (10:29 -0700)]
GN

What we've got here is a little GN MVP.  It's lacking any knobs and doesn't yet build anything but libskia, zlib, libpng, and libjpeg-turbo.  I've been hopping back and forth between Linux at work and Mac at home.  These seem to be at least partially working, enough to build and run cmake/example.cpp.

The xcode backend seems to work.  From here, we can start exploring how to handle other backends (cmake,Android make, Google3).  There are a couple things I want to try:
  - add another backend like vs or xcode to GN directly
  - intercept via a custom toolchain
  - reverse from ninja -t commands
That last option seems kind of fun.

This tries to piggyback on Chrome's GN setup as much as possible.  Chrome's got quite a lot figured out, and we're basically required to do this if we want to have a single GN build system shareable by Chrome, our bots, and other clients.

This pulls in some new DEPS:
   - build: Chrome's GN configuration, and much more
   - buildtools: hashes for gn binary, pulled via hooks
   - tools/clang: hashes for Chrome's clang, pulled via hooks into third_party/llvm-build
It additionally symlinks tools/gyp to third_party/externals/gyp.  GN pulls some stuff from tools/gyp on Mac.

Have not yet tried building for Windows, Android, or iOS.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087593002

Committed: https://skia.googlesource.com/skia/+/1d8de594f126b9a80bd8f8fa2005e90faf3b5b17
Review-Url: https://codereview.chromium.org/2087593002

8 years agoAdd stub for avx.
herb [Thu, 23 Jun 2016 16:40:30 +0000 (09:40 -0700)]
Add stub for avx.
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087343002
CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot

Review-Url: https://codereview.chromium.org/2087343002

8 years agoStart using GrGpuCommandBuffer in GrDrawTarget.
egdaniel [Thu, 23 Jun 2016 15:37:05 +0000 (08:37 -0700)]
Start using GrGpuCommandBuffer in GrDrawTarget.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2052263003

Review-Url: https://codereview.chromium.org/2078483002

8 years agoDocumentaion: top level link.
halcanary [Thu, 23 Jun 2016 14:00:44 +0000 (07:00 -0700)]
Documentaion: top level link.

NOTRY=true
DOCS_PREVIEW= https://skia.org/?cl=2084593008

Review-Url: https://codereview.chromium.org/2084593008

8 years agoRevert of Support GL_SAMPLES queries in null contexts (patchset #4 id:60001 of https...
brianosman [Thu, 23 Jun 2016 13:11:51 +0000 (06:11 -0700)]
Revert of Support GL_SAMPLES queries in null contexts (patchset #4 id:60001 of https://codereview.chromium.org/2085043002/ )

Reason for revert:
ASAN failures (including DEPS roll).

Original issue's description:
> Support GL_SAMPLES queries in null contexts
>
> BUG=skia:
> GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2085043002
>
> Committed: https://skia.googlesource.com/skia/+/64b92a59294a2f73448b3fa8f36f39079f032521
> Committed: https://skia.googlesource.com/skia/+/57e98530c113066c4c2d9c64505c52dc25e66c00

TBR=bsalomon@google.com,csmartdalton@google.com
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:

Review-Url: https://codereview.chromium.org/2091773002

8 years agoGN: just new deps
mtklein [Thu, 23 Jun 2016 12:56:18 +0000 (05:56 -0700)]
GN: just new deps

These just are the DEPS changes from the previous GN CL, each rolled up to head.

I've removed the hooks to fetch GN and Clang... will have to figure out how to
deal with .gclient files in different places later.

BUG=skia:5452
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087403002

Review-Url: https://codereview.chromium.org/2087403002

8 years agoReland of add a Chrome builder to the CQ (patchset #1 id:1 of https://codereview...
rmistry [Thu, 23 Jun 2016 11:16:38 +0000 (04:16 -0700)]
Reland of add a Chrome builder to the CQ (patchset #1 id:1 of https://codereview.chromium.org/2087913003/ )

Reason for revert:
Will watch this after it is in.

Original issue's description:
> Revert of add a Chrome builder to the CQ (patchset #1 id:1 of https://codereview.chromium.org/2085333002/ )
>
> Reason for revert:
> Reverting due to purple trybots in https://codereview.chromium.org/2087343002/
>
> We will have to investigate..
>
> Original issue's description:
> > add a Chrome builder to the CQ
> >
> > This appears to be the fastest Chrome builder, averaging 8-9 minutes.
> >
> > BUG=skia:
> > GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2085333002
> >
> > Committed: https://skia.googlesource.com/skia/+/cb4efa90ab5f6ea7cf5e0f44aec6f4e6418aad3d
>
> TBR=reed@google.com,mtklein@google.com,mtklein@chromium.org
> # Skipping CQ checks because original CL landed less than 1 days ago.
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=skia:
>
> Committed: https://skia.googlesource.com/skia/+/1afb8f8965b0549525c1ad8d8baa885ccdb48f6d

TBR=reed@google.com,mtklein@google.com,mtklein@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:

Review-Url: https://codereview.chromium.org/2096613002

8 years agoPotential fix for flaky TSAN
msarett [Wed, 22 Jun 2016 22:29:00 +0000 (15:29 -0700)]
Potential fix for flaky TSAN

TBR=mtklein@google.com
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2084243003

Review-Url: https://codereview.chromium.org/2084243003

8 years agoDo loads and math in parallel in SkColorXform_opts
msarett [Wed, 22 Jun 2016 21:55:51 +0000 (14:55 -0700)]
Do loads and math in parallel in SkColorXform_opts

Note that baselines have changed a little since I
recently started using clang.

201295.jpg on HP z620 (300x280)

Skia Xform sRGB Dst Before    0.378 ms
Skia Xform sRGB Dst After     0.322 ms
                              1.17x

Skia Xform 2.2  Dst Before    0.428 ms
Skia Xform 2.2  Dst After     0.395 ms
                              1.08x

QCMS Xform                    0.418 ms

sRGB Dst vs QCMS              1.30x
2.2  Dst vs QCMS              1.06x

--------------------------------------------

Nexus 6P:
Skia Xform sRGB Dst Before    1.58 ms
Skia Xform sRGB Dst After     1.43 ms
Skia Xform 2.2  Dst Before    2.69 ms
Skia Xform 2.2  Dst After     2.62 ms

Dell Venue 8:
Skia Xform sRGB Dst Before    2.78 ms
Skia Xform sRGB Dst After     2.74 ms
Skia Xform 2.2  Dst Before    3.73 ms
Skia Xform 2.2  Dst After     3.64 ms

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2081933005
CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot

Review-Url: https://codereview.chromium.org/2081933005

8 years agoUse a table-based implementation of SkDefaultXform
msarett [Wed, 22 Jun 2016 21:07:48 +0000 (14:07 -0700)]
Use a table-based implementation of SkDefaultXform

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2084673002
CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot

Review-Url: https://codereview.chromium.org/2084673002

8 years agoSupport GL_SAMPLES queries in null contexts
csmartdalton [Wed, 22 Jun 2016 20:47:08 +0000 (13:47 -0700)]
Support GL_SAMPLES queries in null contexts

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2085043002

Committed: https://skia.googlesource.com/skia/+/64b92a59294a2f73448b3fa8f36f39079f032521
Review-Url: https://codereview.chromium.org/2085043002

8 years agoAdd GM for hard stop gradients
fmenozzi [Wed, 22 Jun 2016 20:39:25 +0000 (13:39 -0700)]
Add GM for hard stop gradients

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087273002

Review-Url: https://codereview.chromium.org/2087273002

8 years agoRevert of add a Chrome builder to the CQ (patchset #1 id:1 of https://codereview...
rmistry [Wed, 22 Jun 2016 17:41:01 +0000 (10:41 -0700)]
Revert of add a Chrome builder to the CQ (patchset #1 id:1 of https://codereview.chromium.org/2085333002/ )

Reason for revert:
Reverting due to purple trybots in https://codereview.chromium.org/2087343002/

We will have to investigate..

Original issue's description:
> add a Chrome builder to the CQ
>
> This appears to be the fastest Chrome builder, averaging 8-9 minutes.
>
> BUG=skia:
> GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2085333002
>
> Committed: https://skia.googlesource.com/skia/+/cb4efa90ab5f6ea7cf5e0f44aec6f4e6418aad3d

TBR=reed@google.com,mtklein@google.com,mtklein@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:

Review-Url: https://codereview.chromium.org/2087913003

8 years agoadd a Chrome builder to the CQ
mtklein [Wed, 22 Jun 2016 17:22:55 +0000 (10:22 -0700)]
add a Chrome builder to the CQ

This appears to be the fastest Chrome builder, averaging 8-9 minutes.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2085333002

Review-Url: https://codereview.chromium.org/2085333002

8 years agoAdd guards around access to font cache global fields.
herb [Wed, 22 Jun 2016 17:19:16 +0000 (10:19 -0700)]
Add guards around access to font cache global fields.

BUG=589439
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2082423002

Review-Url: https://codereview.chromium.org/2082423002

8 years agoRevert of GN (patchset #12 id:220001 of https://codereview.chromium.org/2087593002/ )
mtklein [Wed, 22 Jun 2016 17:07:07 +0000 (10:07 -0700)]
Revert of GN (patchset #12 id:220001 of https://codereview.chromium.org/2087593002/ )

Reason for revert:
gclient not happy on some bots

Original issue's description:
> GN
>
> What we've got here is a little GN MVP.  It's lacking any knobs and doesn't yet build anything but libskia, zlib, libpng, and libjpeg-turbo.  I've been hopping back and forth between Linux at work and Mac at home.  These seem to be at least partially working, enough to build and run cmake/example.cpp.
>
> The xcode backend seems to work.  From here, we can start exploring how to handle other backends (cmake,Android make, Google3).  There are a couple things I want to try:
>   - add another backend like vs or xcode to GN directly
>   - intercept via a custom toolchain
>   - reverse from ninja -t commands
> That last option seems kind of fun.
>
> This tries to piggyback on Chrome's GN setup as much as possible.  Chrome's got quite a lot figured out, and we're basically required to do this if we want to have a single GN build system shareable by Chrome, our bots, and other clients.
>
> This pulls in some new DEPS:
>    - build: Chrome's GN configuration, and much more
>    - buildtools: hashes for gn binary, pulled via hooks
>    - tools/clang: hashes for Chrome's clang, pulled via hooks into third_party/llvm-build
> It additionally symlinks tools/gyp to third_party/externals/gyp.  GN pulls some stuff from tools/gyp on Mac.
>
> Have not yet tried building for Windows, Android, or iOS.
>
> BUG=skia:
> GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087593002
>
> Committed: https://skia.googlesource.com/skia/+/1d8de594f126b9a80bd8f8fa2005e90faf3b5b17

TBR=bsalomon@google.com,mtklein@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:

Review-Url: https://codereview.chromium.org/2088253002

8 years agoGN
mtklein [Wed, 22 Jun 2016 16:52:13 +0000 (09:52 -0700)]
GN

What we've got here is a little GN MVP.  It's lacking any knobs and doesn't yet build anything but libskia, zlib, libpng, and libjpeg-turbo.  I've been hopping back and forth between Linux at work and Mac at home.  These seem to be at least partially working, enough to build and run cmake/example.cpp.

The xcode backend seems to work.  From here, we can start exploring how to handle other backends (cmake,Android make, Google3).  There are a couple things I want to try:
  - add another backend like vs or xcode to GN directly
  - intercept via a custom toolchain
  - reverse from ninja -t commands
That last option seems kind of fun.

This tries to piggyback on Chrome's GN setup as much as possible.  Chrome's got quite a lot figured out, and we're basically required to do this if we want to have a single GN build system shareable by Chrome, our bots, and other clients.

This pulls in some new DEPS:
   - build: Chrome's GN configuration, and much more
   - buildtools: hashes for gn binary, pulled via hooks
   - tools/clang: hashes for Chrome's clang, pulled via hooks into third_party/llvm-build
It additionally symlinks tools/gyp to third_party/externals/gyp.  GN pulls some stuff from tools/gyp on Mac.

Have not yet tried building for Windows, Android, or iOS.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087593002

Review-Url: https://codereview.chromium.org/2087593002

8 years agoTab -> spaces
brianosman [Wed, 22 Jun 2016 15:30:40 +0000 (08:30 -0700)]
Tab -> spaces

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2082393002

Review-Url: https://codereview.chromium.org/2082393002

8 years agoEnable flattening and unflattening of SkColorSpace
msarett [Wed, 22 Jun 2016 15:18:54 +0000 (08:18 -0700)]
Enable flattening and unflattening of SkColorSpace

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2085653003

Review-Url: https://codereview.chromium.org/2085653003

8 years agoUse single alloc for vulkan optimal image heaps to fix memory crash
egdaniel [Wed, 22 Jun 2016 14:45:50 +0000 (07:45 -0700)]
Use single alloc for vulkan optimal image heaps to fix memory crash

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087283002

Review-Url: https://codereview.chromium.org/2087283002

8 years agoRevert of Bring back compiling third_party/libpng in public.bzl (patchset #3 id:40001...
scroggo [Wed, 22 Jun 2016 14:25:16 +0000 (07:25 -0700)]
Revert of Bring back compiling third_party/libpng in public.bzl (patchset #3 id:40001 of https://codereview.chromium.org/2044703006/ )

Reason for revert:
Breaking Google3

Original issue's description:
> Bring back compiling third_party/libpng in public.bzl
>
> Disable the optimizations for simplicity, as suggested in [1].
>
> Remove PNG_SKIP_SETJMP_CHECK, which is not defined in version 1.6.22.
>
> [1] https://codereview.chromium.org/2033063003/diff/20001/public.bzl#newcode84
>
> GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2044703006
>
> Committed: https://skia.googlesource.com/skia/+/e6939c15dc0c09f1348988dc56e50b6bea27b7ce

TBR=benjaminwagner@google.com,msarett@google.com,mtklein@google.com
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true

Review-Url: https://codereview.chromium.org/2090643002

8 years agoRevert of Store mipmap levels in deferred texture image (patchset #15 id:280001 of...
brianosman [Wed, 22 Jun 2016 14:10:06 +0000 (07:10 -0700)]
Revert of Store mipmap levels in deferred texture image (patchset #15 id:280001 of https://codereview.chromium.org/2034933003/ )

Reason for revert:
Crashes on a few different bots (including ASAN). Examples:

https://build.chromium.org/p/client.skia.android/builders/Test-Android-GCC-Nexus7-GPU-Tegra3-Arm7-Release/builds/6324
https://build.chromium.org/p/client.skia/builders/Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug/builds/5400
https://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-Golo-GPU-GT610-x86_64-Debug-ASAN/builds/3539

Original issue's description:
> Store mipmap levels in deferred texture image
>
> When creating the deferred texture image, detect if using medium / high
> quality. If so, generate and store mipmaps in the deferred texture
> image.
>
> When creating a texture from that be sure to read it back out.
>
> BUG=578304
> R=bsalomon@google.com
> GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2034933003
>
> Committed: https://skia.googlesource.com/skia/+/b3105190a6e02d37f1d7f07a3a8bdd368ec7f157

TBR=bsalomon@google.com,ericrk@chromium.org,cblume@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=578304

Review-Url: https://codereview.chromium.org/2083393002

8 years agoRemove bubbles GM
fmenozzi [Wed, 22 Jun 2016 13:36:26 +0000 (06:36 -0700)]
Remove bubbles GM

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087263002

Review-Url: https://codereview.chromium.org/2087263002

8 years agoRevert of Support GL_SAMPLES queries in null contexts (patchset #2 id:20001 of https...
brianosman [Wed, 22 Jun 2016 12:57:17 +0000 (05:57 -0700)]
Revert of Support GL_SAMPLES queries in null contexts (patchset #2 id:20001 of https://codereview.chromium.org/2085043002/ )

Reason for revert:
Chrome unit tests failing (eg https://codereview.chromium.org/2085243002)

Original issue's description:
> Support GL_SAMPLES queries in null contexts
>
> BUG=skia:
> GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2085043002
>
> Committed: https://skia.googlesource.com/skia/+/64b92a59294a2f73448b3fa8f36f39079f032521

TBR=bsalomon@google.com,csmartdalton@google.com
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:

Review-Url: https://codereview.chromium.org/2089013003

8 years agoSupport GL_SAMPLES queries in null contexts
csmartdalton [Tue, 21 Jun 2016 21:27:16 +0000 (14:27 -0700)]
Support GL_SAMPLES queries in null contexts

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2085043002

Review-Url: https://codereview.chromium.org/2085043002

8 years agoBring back compiling third_party/libpng in public.bzl
scroggo [Tue, 21 Jun 2016 21:13:40 +0000 (14:13 -0700)]
Bring back compiling third_party/libpng in public.bzl

Disable the optimizations for simplicity, as suggested in [1].

Remove PNG_SKIP_SETJMP_CHECK, which is not defined in version 1.6.22.

[1] https://codereview.chromium.org/2033063003/diff/20001/public.bzl#newcode84

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2044703006

Review-Url: https://codereview.chromium.org/2044703006

8 years agoStore mipmap levels in deferred texture image
cblume [Tue, 21 Jun 2016 20:43:13 +0000 (13:43 -0700)]
Store mipmap levels in deferred texture image

When creating the deferred texture image, detect if using medium / high
quality. If so, generate and store mipmaps in the deferred texture
image.

When creating a texture from that be sure to read it back out.

BUG=578304
R=bsalomon@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2034933003

Review-Url: https://codereview.chromium.org/2034933003

8 years agoAdd new GM that exercises Gray 8 mipmapping and sRGB-ness
brianosman [Tue, 21 Jun 2016 20:40:12 +0000 (13:40 -0700)]
Add new GM that exercises Gray 8 mipmapping and sRGB-ness

This demonstrates the bug that was fixed by:
  https://codereview.chromium.org/2088883002/

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087933002

Review-Url: https://codereview.chromium.org/2087933002

8 years agoRemove check for cmake in android make script.
stani [Tue, 21 Jun 2016 20:13:19 +0000 (13:13 -0700)]
Remove check for cmake in android make script.
Update docs explaining how to setup Android SDK.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2084763003
DOCS_PREVIEW= https://skia.org/?cl=2084763003

Review-Url: https://codereview.chromium.org/2084763003

8 years agoNever use CPU-built mips for Gray_8.
brianosman [Tue, 21 Jun 2016 19:08:24 +0000 (12:08 -0700)]
Never use CPU-built mips for Gray_8.

Fixes a bug where Gray_8 textures would still render as Alpha_8 (if the
first draw was detected as needing mips).

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2088883002

Review-Url: https://codereview.chromium.org/2088883002

8 years agoupdate callers to not use SkColorProfileType
reed [Tue, 21 Jun 2016 17:28:14 +0000 (10:28 -0700)]
update callers to not use SkColorProfileType

Requires https://codereview.chromium.org/2087833002/ to land first.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2086583002

Review-Url: https://codereview.chromium.org/2086583002

8 years agoFix Mac clang linker
msarett [Tue, 21 Jun 2016 16:44:29 +0000 (09:44 -0700)]
Fix Mac clang linker

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2077353006

Review-Url: https://codereview.chromium.org/2077353006

8 years agoIntegers can now be passed as uniforms; needed for passing color count to fragment...
fmenozzi [Tue, 21 Jun 2016 16:42:12 +0000 (09:42 -0700)]
Integers can now be passed as uniforms; needed for passing color count to fragment shader

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2076143003

Committed: https://skia.googlesource.com/skia/+/cc3a22b369e1a60fa2acf2987f2934baf7c4b198
Review-Url: https://codereview.chromium.org/2076143003

8 years agoAdd --simpleCodec to nanobench flags to run a smaller set of benchmarks
msarett [Tue, 21 Jun 2016 15:49:26 +0000 (08:49 -0700)]
Add --simpleCodec to nanobench flags to run a smaller set of benchmarks

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2084683002

Review-Url: https://codereview.chromium.org/2084683002

8 years agoApply canonicalizations to path GrShapes.
bsalomon [Tue, 21 Jun 2016 15:35:49 +0000 (08:35 -0700)]
Apply canonicalizations to path GrShapes.

The following canonicalizations of path-backed GrShapes are added:

*convex shapes are stored with even/odd (or inv even/odd) fill.

*filled paths are closed.

*dashed paths ignore inverseness of the fill

This will improve the results of queries about the geometry that will be added in a future change.

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2067283003

Review-Url: https://codereview.chromium.org/2067283003

8 years agoSupport texel and draw-indirect buffers in null GL contexts
csmartdalton [Tue, 21 Jun 2016 14:55:17 +0000 (07:55 -0700)]
Support texel and draw-indirect buffers in null GL contexts

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2081183002

Review-Url: https://codereview.chromium.org/2081183002

8 years agoUpdate SKP version
update-skps [Tue, 21 Jun 2016 13:29:02 +0000 (06:29 -0700)]
Update SKP version

Automatic commit by the RecreateSKPs bot.

TBR=
NO_MERGE_BUILDS
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2086843002

Review-Url: https://codereview.chromium.org/2086843002

8 years agoReorder colorspaces in GM to match previous behavior
brianosman [Mon, 20 Jun 2016 21:43:00 +0000 (14:43 -0700)]
Reorder colorspaces in GM to match previous behavior

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2088493002

Review-Url: https://codereview.chromium.org/2088493002

8 years agoBenchmark rotated rect with AA/noAA
liyuqian [Mon, 20 Jun 2016 21:05:27 +0000 (14:05 -0700)]
Benchmark rotated rect with AA/noAA

Using this benchmark, we verify that AA is about 4x slower than noAA in
path_fill_big_rotated_rect. This is what I aim to improve in the next
CL.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2087453003

Review-Url: https://codereview.chromium.org/2087453003

8 years agoBuildbot spec: Add device_type for Android One
borenet [Mon, 20 Jun 2016 20:04:25 +0000 (13:04 -0700)]
Buildbot spec: Add device_type for Android One

BUG=skia:5185
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2085713002

Review-Url: https://codereview.chromium.org/2085713002

8 years agoExempt GrShape test from running on Android
bsalomon [Mon, 20 Jun 2016 19:48:33 +0000 (12:48 -0700)]
Exempt GrShape test from running on Android

BUG=skia:5438
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2074403003

Review-Url: https://codereview.chromium.org/2074403003

8 years agoSome simplifications of GrShape reductions/canonicalizations
bsalomon [Mon, 20 Jun 2016 19:28:17 +0000 (12:28 -0700)]
Some simplifications of GrShape reductions/canonicalizations
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2064113004

Review-Url: https://codereview.chromium.org/2064113004

8 years agoassert that non-empty clips have non-empty bounds
reed [Mon, 20 Jun 2016 17:21:24 +0000 (10:21 -0700)]
assert that non-empty clips have non-empty bounds

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2084603002

TBR=

Review-Url: https://codereview.chromium.org/2084603002

8 years agoRespect color type and gamma settings in nanobench GPU configs
brianosman [Mon, 20 Jun 2016 16:41:41 +0000 (09:41 -0700)]
Respect color type and gamma settings in nanobench GPU configs

We were ignoring the requested properties in things like gpuf16 and
gpusrgb.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2075133003

Review-Url: https://codereview.chromium.org/2075133003

8 years agoMore removal of SkColorProfileType...
brianosman [Mon, 20 Jun 2016 15:25:02 +0000 (08:25 -0700)]
More removal of SkColorProfileType...

Scrub GMs. Remove the gDefaultProfile thing (it's unused now), along with
the command line flag that was setting it in DM and nanobench.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2071393002

Committed: https://skia.googlesource.com/skia/+/944876f2745a62a839e49275daf93a0329372e67
Review-Url: https://codereview.chromium.org/2071393002

8 years agoSanitize parsing of color look-up table
msarett [Mon, 20 Jun 2016 15:08:28 +0000 (08:08 -0700)]
Sanitize parsing of color look-up table

BUG=skia:5443
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2079243003

Review-Url: https://codereview.chromium.org/2079243003

8 years agoSupport sRGB dsts in opt code
msarett [Mon, 20 Jun 2016 13:07:45 +0000 (06:07 -0700)]
Support sRGB dsts in opt code

201295.jpg on HP z620 (300x280)

QCMS Xform                    0.418 ms
Skia NEW Xform                0.378 ms

Vs QCMS                       1.11x

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2078623002
CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot

Review-Url: https://codereview.chromium.org/2078623002

8 years agoRevert of Integers can now be passed as uniforms (patchset #1 id:1 of https://coderev...
brianosman [Mon, 20 Jun 2016 01:05:12 +0000 (18:05 -0700)]
Revert of Integers can now be passed as uniforms (patchset #1 id:1 of https://codereview.chromium.org/2076143003/ )

Reason for revert:
Compile failures on Vulkan platforms (eg https://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-Arm7-Debug-Android_Vulkan)

Original issue's description:
> Integers can now be passed as uniforms; needed for passing color count to fragment shader
>
> BUG=skia:
> GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2076143003
>
> Committed: https://skia.googlesource.com/skia/+/cc3a22b369e1a60fa2acf2987f2934baf7c4b198

TBR=tomhudson@google.com,bsalomon@google.com,fmenozzi@google.com
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=skia:

Review-Url: https://codereview.chromium.org/2080133002

8 years agoSimplify mask/clip intersection, making sure to explicitly check for an empty mask.
mtklein [Sun, 19 Jun 2016 12:28:33 +0000 (05:28 -0700)]
Simplify mask/clip intersection, making sure to explicitly check for an empty mask.

Previously we were only asserting the mask wasn't empty, which isn't necessarily true when we're given pathological float coordinates like +Inf or NaN.

A local run of nanobench --match text_ was not able to show this is faster or slower.

This patch fixed this first Chrome bug on my desktop, and the second is probably a dupe.
BUG=chromium:619378,chromium:613912

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2073873002

Review-Url: https://codereview.chromium.org/2073873002

8 years agoIntegers can now be passed as uniforms; needed for passing color count to fragment...
fmenozzi [Sat, 18 Jun 2016 16:31:58 +0000 (09:31 -0700)]
Integers can now be passed as uniforms; needed for passing color count to fragment shader

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2076143003

Review-Url: https://codereview.chromium.org/2076143003

8 years agoRevert of More removal of SkColorProfileType... (patchset #2 id:20001 of https:/...
egdaniel [Fri, 17 Jun 2016 22:11:45 +0000 (15:11 -0700)]
Revert of More removal of SkColorProfileType... (patchset #2 id:20001 of https://codereview.chromium.org/2071393002/ )

Reason for revert:
This was still used in chrome

Original issue's description:
> More removal of SkColorProfileType...
>
> Scrub GMs. Remove the gDefaultProfile thing (it's unused now), along with
> the command line flag that was setting it in DM and nanobench.
>
> BUG=skia:
> GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2071393002
>
> Committed: https://skia.googlesource.com/skia/+/944876f2745a62a839e49275daf93a0329372e67

TBR=msarett@google.com,reed@google.com,bsalomon@google.com,brianosman@google.com
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:

Review-Url: https://codereview.chromium.org/2074103004

8 years agoFix mixup where SamplePathOverstroke wasn't added
hstern [Fri, 17 Jun 2016 21:06:13 +0000 (14:06 -0700)]
Fix mixup where SamplePathOverstroke wasn't added

- My sampleapp for the stroking bugs was inflight or something when
this change got made, so it didn't get added to this file.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2076283002

Review-Url: https://codereview.chromium.org/2076283002