platform/upstream/libSkiaSharp.git
8 years agoFix ChromeOS Swarming bot compile
borenet [Wed, 13 Apr 2016 16:37:25 +0000 (09:37 -0700)]
Fix ChromeOS Swarming bot compile

BUG=skia:5158
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1886573004

Review URL: https://codereview.chromium.org/1886573004

8 years agoAllow a small tolerance in GrAtlasTextBatch bounds test.
bsalomon [Wed, 13 Apr 2016 15:14:22 +0000 (08:14 -0700)]
Allow a small tolerance in GrAtlasTextBatch bounds test.
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1882833002

Review URL: https://codereview.chromium.org/1882833002

8 years agoMake build_shaderc.py blow away output dir and allow build_type arg to contain either...
bsalomon [Wed, 13 Apr 2016 15:02:42 +0000 (08:02 -0700)]
Make build_shaderc.py blow away output dir and allow build_type arg to contain either Debug or Release

GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1884963002

Review URL: https://codereview.chromium.org/1884963002

8 years agoMake SkSpecialSurfaces always use kUnknown for their pixel geometry
robertphillips [Wed, 13 Apr 2016 14:18:41 +0000 (07:18 -0700)]
Make SkSpecialSurfaces always use kUnknown for their pixel geometry

This now matches how the SkDevices were being created by the device proxy and prevents LCD text from being inadvertently applied.

BUG=602555

GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1878143004

Review URL: https://codereview.chromium.org/1878143004

8 years agoFix CommandBuffer bot's DM config
borenet [Wed, 13 Apr 2016 13:00:42 +0000 (06:00 -0700)]
Fix CommandBuffer bot's DM config

BUG=skia:4957
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1880403002

Review URL: https://codereview.chromium.org/1880403002

8 years agoRemove SK_VERY_LEGACY_CREATE_TYPEFACE.
bungeman [Wed, 13 Apr 2016 12:23:35 +0000 (05:23 -0700)]
Remove SK_VERY_LEGACY_CREATE_TYPEFACE.

The flag and code it guards are no longer used.

TBR=reed
This just removes dead code.

Review URL: https://codereview.chromium.org/1882803002

8 years agoSwitch SkMatrixConvolutionImageFilter over to new onFilterImage interface
robertphillips [Wed, 13 Apr 2016 11:54:36 +0000 (04:54 -0700)]
Switch SkMatrixConvolutionImageFilter over to new onFilterImage interface

TBR=reed@google.com

GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1877343002

Review URL: https://codereview.chromium.org/1877343002

8 years agoremove SK_SUPPORT_NEW_ONCREATESCALERCONTEXT, no longer needed in chdrome
reed [Tue, 12 Apr 2016 23:57:55 +0000 (16:57 -0700)]
remove SK_SUPPORT_NEW_ONCREATESCALERCONTEXT, no longer needed in chdrome

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1881733005

TBR=

Review URL: https://codereview.chromium.org/1881733005

8 years agodistinguish distinct matrixconvolution benchmarks
mtklein [Tue, 12 Apr 2016 22:52:52 +0000 (15:52 -0700)]
distinguish distinct matrixconvolution benchmarks

Today they all show as "matrixconvolution", and we probably only log one.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1886523002

Review URL: https://codereview.chromium.org/1886523002

8 years agoBlitter for repeat RGBA8888->RGBA8888.
herb [Tue, 12 Apr 2016 21:07:59 +0000 (14:07 -0700)]
Blitter for repeat RGBA8888->RGBA8888.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1852613002

Review URL: https://codereview.chromium.org/1852613002

8 years agoAdd missing F16 case to reverse pixel config conversion
brianosman [Tue, 12 Apr 2016 20:49:53 +0000 (13:49 -0700)]
Add missing F16 case to reverse pixel config conversion

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1884753002

Review URL: https://codereview.chromium.org/1884753002

8 years agoBegin switch to SkFontStyle for legacy calls.
bungeman [Tue, 12 Apr 2016 20:45:06 +0000 (13:45 -0700)]
Begin switch to SkFontStyle for legacy calls.

This adds SK_VERY_LEGACY_CREATE_TYPEFACE which, when defined, provides
only the old interface.

Ideally, everyone would switch directly to SkFontMgr and use one of the
newer calls, but there is currently no path for current users to get
there. This updates all the internals to use SkFontStyle, after
switching these over the higher level APIs can be switched.

The Chromium follow on patch can be seen at https://crrev.com/1877673002

GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1873923002

TBR=reed
This doesn't really change API, just modernizes it.

Review URL: https://codereview.chromium.org/1873923002

8 years agosRGB support for distance field text.
brianosman [Tue, 12 Apr 2016 19:48:21 +0000 (12:48 -0700)]
sRGB support for distance field text.

Add a second distance field adjust table that only applies contrast,
not fake-gamma correction. Store a flag in the batch at creation time,
using the same logic we apply elsewhere (render target format, plus
paint flags).

That gets us close, but not as good as bitmap text. The final step is
to use a linear step function (rather than smoothstep) to map distance
to coverage, when we have sRGB output. Smoothstep's nonlinear response
is actually doing some fake-gamma, so it ends up over-correcting when
the output is already gamma-correct.

Results are now very close between L32 (old table, smoothstep) and S32
(contrast-only table, linstep).

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1885613002

Review URL: https://codereview.chromium.org/1885613002

8 years agoRemove SimpleOffsetFilter
robertphillips [Tue, 12 Apr 2016 19:41:00 +0000 (12:41 -0700)]
Remove SimpleOffsetFilter

SimpleOffsetFilter & SkOffsetImageFilter seem equivalent nowadays.

GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1884733002

Review URL: https://codereview.chromium.org/1884733002

8 years agoRevert AlphaThresholdFilter to its old behavior wrt premul
robertphillips [Tue, 12 Apr 2016 19:39:26 +0000 (12:39 -0700)]
Revert AlphaThresholdFilter to its old behavior wrt premul

TBR=borenet@google.com

This fixes the "serialize-8888 gm  imagealphathreshold_surface" failure related to:
https://codereview.chromium.org/1879643003/ (Switch AlphaThresholdFilter over to new onFilterImage interface)

GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1885633003

Review URL: https://codereview.chromium.org/1885633003

8 years agoMake fuzz builds set SK_FUZZ_LOGGING
kjlubick [Tue, 12 Apr 2016 19:02:59 +0000 (12:02 -0700)]
Make fuzz builds set SK_FUZZ_LOGGING

BUG=skia:5191
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1878363002

Review URL: https://codereview.chromium.org/1878363002

8 years agoSwitch AlphaThresholdFilter over to new onFilterImage interface
robertphillips [Tue, 12 Apr 2016 18:02:25 +0000 (11:02 -0700)]
Switch AlphaThresholdFilter over to new onFilterImage interface

This CL also alters the raster path in two ways:
  it now respects the sRGB/linear distinction of its input
  it now respects the clip

TBR=reed@google.com

GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1879643003

Review URL: https://codereview.chromium.org/1879643003

8 years agof16 and pm4f are always the same swizzle, so remove adaptor
reed [Tue, 12 Apr 2016 17:32:56 +0000 (10:32 -0700)]
f16 and pm4f are always the same swizzle, so remove adaptor

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1880953003

Review URL: https://codereview.chromium.org/1880953003

8 years agoMake more unit tests run on Vulkan
bsalomon [Tue, 12 Apr 2016 16:59:58 +0000 (09:59 -0700)]
Make more unit tests run on Vulkan
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1885623002

Review URL: https://codereview.chromium.org/1885623002

8 years agoGYP_DEFINES and DM flags for Vulkan bot
borenet [Tue, 12 Apr 2016 15:13:56 +0000 (08:13 -0700)]
GYP_DEFINES and DM flags for Vulkan bot

BUG=skia:5186
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1885563002

Review URL: https://codereview.chromium.org/1885563002

8 years agoFix Vk build breakage due to new GrSLType
bsalomon [Tue, 12 Apr 2016 14:46:21 +0000 (07:46 -0700)]
Fix Vk build breakage due to new GrSLType

R=egdaniel@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1881033002

Review URL: https://codereview.chromium.org/1881033002

8 years agoMake is_ktx safer
scroggo [Tue, 12 Apr 2016 14:41:22 +0000 (07:41 -0700)]
Make is_ktx safer

Rather than assuming the data passed to ktx at least
KTX_FILE_IDENTIFIER_SIZE, pass the length of the data to is_ktx and
compare it.

Splitting off from crrev.com/1862133002, which no longer depends on
is_ktx.
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1882593002

Review URL: https://codereview.chromium.org/1882593002

8 years agoImplement initCopySurfaceDstDesc for Vulkan
egdaniel [Tue, 12 Apr 2016 14:31:49 +0000 (07:31 -0700)]
Implement initCopySurfaceDstDesc for Vulkan

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1880613002

Review URL: https://codereview.chromium.org/1880613002

8 years agoRevert "Revert of Pass effects directly to fontcache (patchset #8 id:140001 of https...
reed [Tue, 12 Apr 2016 13:47:05 +0000 (06:47 -0700)]
Revert "Revert of Pass effects directly to fontcache (patchset #8 id:140001 of https://codereview.chromium.org/1863013003/ )"

add SK_SUPPORT_NEW_ONCREATESCALERCONTEXT for chrome

this has now landed https://codereview.chromium.org/1878913002/
TBR=

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1880873002

Review URL: https://codereview.chromium.org/1880873002

8 years agoiOS: Tweak xcodebuild location
borenet [Tue, 12 Apr 2016 13:21:47 +0000 (06:21 -0700)]
iOS: Tweak xcodebuild location

BUG=skia:5155
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1879513002

Review URL: https://codereview.chromium.org/1879513002

8 years agoSkWStream::writeText inlined.
halcanary [Tue, 12 Apr 2016 02:41:48 +0000 (19:41 -0700)]
SkWStream::writeText inlined.

Motivation: This function is used throughout SkPDF.

Note that the compiler can usually inline the result of strlen() for literal strings.

Before:
    out/Release/nanobench -m WStreamWriteText -q
        Timer overhead: 24.2ns
        ! -> high variance, ? -> moderate variance
            micros    bench
              6.10   WStreamWriteText nonrendering

After:
    out/Release/nanobench -m WStreamWriteText -q
        Timer overhead: 23.9ns
        ! -> high variance, ? -> moderate variance
            micros    bench
              2.51   WStreamWriteText nonrendering

PDF runtime change: -0.8% ±0.04%.

GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1844343004

Review URL: https://codereview.chromium.org/1844343004

8 years agoImplement texel buffers
cdalton [Mon, 11 Apr 2016 21:47:28 +0000 (14:47 -0700)]
Implement texel buffers

Adds a mechanism for processors to add buffer accesses and implements
them in the GL backend.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1870893002

Review URL: https://codereview.chromium.org/1870893002

8 years agoConvert some unit tests from running on GL contexts to running on all contexts
bsalomon [Mon, 11 Apr 2016 21:40:50 +0000 (14:40 -0700)]
Convert some unit tests from running on GL contexts to running on all contexts
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1873313002

Review URL: https://codereview.chromium.org/1873313002

8 years agoVulkan config in dm
bsalomon [Mon, 11 Apr 2016 21:21:33 +0000 (14:21 -0700)]
Vulkan config in dm

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1872283003

Review URL: https://codereview.chromium.org/1872283003

8 years agoSeparate private headers for condition inclusion in BUILD file.
iroth [Mon, 11 Apr 2016 20:45:51 +0000 (13:45 -0700)]
Separate private headers for condition inclusion in BUILD file.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1878753002

Review URL: https://codereview.chromium.org/1878753002

8 years agoWait for all device work to finish before destroy VkDevice
egdaniel [Mon, 11 Apr 2016 20:41:51 +0000 (13:41 -0700)]
Wait for all device work to finish before destroy VkDevice

Currently before destroying the GrVkGpu, we do wait on all queue work to finish before destroying objects there.
Since we only have one queue, the vkDeviceWaitIdle added here is probably not necessary, but the spec does suggest
having it just to make sure all work is fully done on the device.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1876863004

Review URL: https://codereview.chromium.org/1876863004

8 years agoSwitch SkTileImageFilter over to new onFilterImage interface
robertphillips [Mon, 11 Apr 2016 20:26:14 +0000 (13:26 -0700)]
Switch SkTileImageFilter over to new onFilterImage interface

This relies on: https://codereview.chromium.org/1816223002 (Update SkSpecialImage to be able to create tight SkImages and SkSurfaces)

GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1810693003

Review URL: https://codereview.chromium.org/1810693003

8 years agonullptr -> "sans-serif" fixes bold in gm/colorwheel
mtklein [Mon, 11 Apr 2016 20:20:11 +0000 (13:20 -0700)]
nullptr -> "sans-serif" fixes bold in gm/colorwheel

This was an odd case where 8888 drew wrong and serialize-8888 was correct.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1880653002

Review URL: https://codereview.chromium.org/1880653002

8 years agoAdd GLSL support for texelFetch
cdalton [Mon, 11 Apr 2016 20:02:05 +0000 (13:02 -0700)]
Add GLSL support for texelFetch

Adds a cap and builder methods for texelFetch. This is required for
texel buffers. Also moves the texel buffer cap into the general shader
caps, and adds glTexBufferRange to the GL interface.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1869063005

Review URL: https://codereview.chromium.org/1869063005

8 years agoRename EmitArgs::fSamplers to fTexSamplers
cdalton [Mon, 11 Apr 2016 19:18:09 +0000 (12:18 -0700)]
Rename EmitArgs::fSamplers to fTexSamplers

Renames fSamplers to fTexSamplers in GrProcessor EmitArgs, and renames
GrGLSLTextureSampler to GrGLSLSampler. This will allow us to add a
second array of buffer samplers.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1862373003

Review URL: https://codereview.chromium.org/1862373003

8 years agoInfer sampler precision from pixel config
cdalton [Mon, 11 Apr 2016 19:03:08 +0000 (12:03 -0700)]
Infer sampler precision from pixel config

Adds a "samplerPrecision" method to GrGLSLCaps and updates
GrGLSLProgramBuilder to infer a sampler's precision based on its
config and visibility.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1846963004

Review URL: https://codereview.chromium.org/1846963004

8 years agoEnsure all image filter tests have "ImageFilter" somewhere in the name.
senorblanco [Mon, 11 Apr 2016 18:58:39 +0000 (11:58 -0700)]
Ensure all image filter tests have "ImageFilter" somewhere in the name.

This is for convenience, so that running
out/Release/dm --match ImageFilter runs them all.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1879553004

Review URL: https://codereview.chromium.org/1879553004

8 years agoAdd appendPrecisionModifier method to GrGLSLShaderBuilder
cdalton [Mon, 11 Apr 2016 18:30:50 +0000 (11:30 -0700)]
Add appendPrecisionModifier method to GrGLSLShaderBuilder

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1881513002

Review URL: https://codereview.chromium.org/1881513002

8 years agoSwitch SkPictureImageFilter over to new onFilterImage interface
robertphillips [Mon, 11 Apr 2016 18:08:52 +0000 (11:08 -0700)]
Switch SkPictureImageFilter over to new onFilterImage interface

GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1779743002

TBR=bsalomon@google.com

Review URL: https://codereview.chromium.org/1779743002

8 years agoRevert of Pass effects directly to fontcache (patchset #8 id:140001 of https://codere...
borenet [Mon, 11 Apr 2016 17:25:28 +0000 (10:25 -0700)]
Revert of Pass effects directly to fontcache (patchset #8 id:140001 of https://codereview.chromium.org/1863013003/ )

Reason for revert:
Seems to have broken the DEPS roll.

Original issue's description:
> Pass effects directly to fontcache
>
> BUG=skia:5176
> GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1863013003
>
> Committed: https://skia.googlesource.com/skia/+/c79172857c3f69cc46837e1beeae0c1ead377bb2

TBR=djsollen@google.com,bungeman@google.com,mtklein@google.com,fmalita@chromium.org,msarett@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:5176

Review URL: https://codereview.chromium.org/1872253004

8 years agoForce upload to VRAM in filterImage
robertphillips [Mon, 11 Apr 2016 17:20:24 +0000 (10:20 -0700)]
Force upload to VRAM in filterImage

This forces the conversion of image filter result to VRAM (if it is required) prior to the filtered result being put into the ImageFilter cache.

GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1874763002

Review URL: https://codereview.chromium.org/1874763002

8 years agoFixes for CommandBuffer bot
borenet [Mon, 11 Apr 2016 17:16:01 +0000 (10:16 -0700)]
Fixes for CommandBuffer bot

BUG=skia:4957
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1877883002

Review URL: https://codereview.chromium.org/1877883002

8 years agoFix to zoom on Vulkan Viewer
egdaniel [Mon, 11 Apr 2016 15:30:40 +0000 (08:30 -0700)]
Fix to zoom on Vulkan Viewer

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1876853003

Review URL: https://codereview.chromium.org/1876853003

8 years agoPass effects directly to fontcache
reed [Mon, 11 Apr 2016 14:51:07 +0000 (07:51 -0700)]
Pass effects directly to fontcache

BUG=skia:5176
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1863013003

Review URL: https://codereview.chromium.org/1863013003

8 years agoadjust gm bounds for better content fit
reed [Mon, 11 Apr 2016 14:46:38 +0000 (07:46 -0700)]
adjust gm bounds for better content fit

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1876753003

TBR=djsollen

Review URL: https://codereview.chromium.org/1876753003

8 years agoSwitch SkDisplacementImageFilter over to new onFilterImage interface
robertphillips [Mon, 11 Apr 2016 14:23:34 +0000 (07:23 -0700)]
Switch SkDisplacementImageFilter over to new onFilterImage interface

TBR=reed@google.com

GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1846313002

Review URL: https://codereview.chromium.org/1846313002

8 years agoFix roll bot's win gn build
robertphillips [Sun, 10 Apr 2016 21:04:19 +0000 (14:04 -0700)]
Fix roll bot's win gn build

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

GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1873063002

Review URL: https://codereview.chromium.org/1873063002

8 years agoarithmetic mode with Sk4f
mtklein [Sun, 10 Apr 2016 13:23:28 +0000 (06:23 -0700)]
arithmetic mode with Sk4f

After reading the SSE version, I figured I'd show off the new hotness a little.  This'll get us SSE, NEON and portable implementations all in one easy to read package.

Since we've been talking about it, it's worth noting the several ways this implementation is still not constant time:
  - short circuits on 0x00 and 0xff coverage;
  - floating point multiplication with untrusted k1-k4; if someone figures out a clever way to sometimes create denorm floats and sometimes not, there's a gigantic performance difference.

I would hazard the pin is constant time now though.

I've also fixed the lerp to lerp between dst and r instead of src and r.  That can't have been right.

curr/maxrss loops min median mean max stddev samples    config bench
   9/9   MB 1 25.5ms 25.5ms 25.5ms 25.5ms 0% ▃▁▁▃▂▇▅▆▇█ 8888 Xfermode_arithmetic_enforce_pm_aa
   9/9   MB 1 24.1ms 24.2ms 24.2ms 24.3ms 0% ▄▃▁▄█▆▆█▃█ 8888 Xfermode_arithmetic_aa
   9/9   MB 1 102ms 102ms 102ms 103ms 0% ▁▅▂▆▂█▂█▁▂ 8888 Xfermode_arithmetic_enforce_pm
   9/9   MB 1 94.8ms 95.4ms 95.2ms 95.8ms 0% ▅▅▁▁▁▁▄▇█▇ 8888 Xfermode_arithmetic

~~~~>

curr/maxrss loops min median mean max stddev samples    config bench
   9/9   MB 1 9.71ms 9.74ms 9.73ms 9.78ms 0% █▅▄▄▁▂▂▂▄▄ 8888 Xfermode_arithmetic_enforce_pm_aa
   9/9   MB 1 9.5ms 9.57ms 9.58ms 9.7ms 1% ▂▁█▅▂▂▆▃▄▄ 8888 Xfermode_arithmetic_aa
   9/9   MB 1 21.8ms 21.8ms 21.8ms 21.9ms 0% █▂▂▂▂▂▂▁▄▂ 8888 Xfermode_arithmetic_enforce_pm
   9/9   MB 1 16.5ms 16.6ms 16.6ms 16.6ms 0% ▃█▁▁▄▄▁▁▆▅ 8888 Xfermode_arithmetic

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1873963003
CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot

Review URL: https://codereview.chromium.org/1873963003

8 years agoUpdate SKP version
update-skps [Sun, 10 Apr 2016 07:30:13 +0000 (00:30 -0700)]
Update SKP version

Automatic commit by the RecreateSKPs bot.

TBR=
NO_MERGE_BUILDS
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1873033002

Review URL: https://codereview.chromium.org/1873033002

8 years agoremove unused BML (binary xml) code
reed [Sat, 9 Apr 2016 18:09:49 +0000 (11:09 -0700)]
remove unused BML (binary xml) code

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1868423002

TBR=

Review URL: https://codereview.chromium.org/1868423002

8 years agoUpdate LightingImageFilter to sk_sp
robertphillips [Fri, 8 Apr 2016 23:28:09 +0000 (16:28 -0700)]
Update LightingImageFilter to sk_sp

TBR=reed@google.com

GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1869763002

Review URL: https://codereview.chromium.org/1869763002

8 years agoAdd AVX/AVX2 support for runtime check
Melnikov.Sergey.V [Fri, 8 Apr 2016 22:31:45 +0000 (15:31 -0700)]
Add AVX/AVX2 support for runtime check

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1867193002
CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot

Review URL: https://codereview.chromium.org/1867193002

8 years agoFix memory leak in SkBlurImageFilter
robertphillips [Fri, 8 Apr 2016 21:52:52 +0000 (14:52 -0700)]
Fix memory leak in SkBlurImageFilter

TBR=caryclark@google.com

GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1873923003

Review URL: https://codereview.chromium.org/1873923003

8 years agoAdd some benches for SkArithmeticMode.
senorblanco [Fri, 8 Apr 2016 21:29:47 +0000 (14:29 -0700)]
Add some benches for SkArithmeticMode.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1868333002

Review URL: https://codereview.chromium.org/1868333002

8 years agoFix context size for benchmakr.
herb [Fri, 8 Apr 2016 21:24:37 +0000 (14:24 -0700)]
Fix context size for benchmakr.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1871173002

Review URL: https://codereview.chromium.org/1871173002

8 years agoAdd SkFUZZF to help whitelist imagefilter fuzz failures
robertphillips [Fri, 8 Apr 2016 21:03:06 +0000 (14:03 -0700)]
Add SkFUZZF to help whitelist imagefilter fuzz failures

The current use case for this is whitelisting MergeImageFilter failures when the number of inputs is too big. Presumably there will be other whitelisting use cases as we progress.

GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1873463002

Review URL: https://codereview.chromium.org/1873463002

8 years agoFix scaledstrokes GM
robertphillips [Fri, 8 Apr 2016 21:03:00 +0000 (14:03 -0700)]
Fix scaledstrokes GM

Small fix to https://codereview.chromium.org/1873733003 (More cleanup in the Vulkan viewer)

GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1875793002

Review URL: https://codereview.chromium.org/1875793002

8 years agoMake some GMs animate
robertphillips [Fri, 8 Apr 2016 20:35:14 +0000 (13:35 -0700)]
Make some GMs animate
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1870133003

Review URL: https://codereview.chromium.org/1870133003

8 years agoDon't create new descriptor set for vulkan uniforms every draw
egdaniel [Fri, 8 Apr 2016 20:27:53 +0000 (13:27 -0700)]
Don't create new descriptor set for vulkan uniforms every draw

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1872553005

Review URL: https://codereview.chromium.org/1872553005

8 years agoAdd clone to Stage. Rename place to mix and PolymorphicUnion to Stage. Cleanup.
herb [Fri, 8 Apr 2016 20:25:28 +0000 (13:25 -0700)]
Add clone to Stage. Rename place to mix and PolymorphicUnion to Stage. Cleanup.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1877483002

Review URL: https://codereview.chromium.org/1877483002

8 years agoMore cleanup in the Vulkan viewer
jvanverth [Fri, 8 Apr 2016 19:51:45 +0000 (12:51 -0700)]
More cleanup in the Vulkan viewer

* add animation support for GMs
* don't load all SkPictures at start, only as needed
* don't update constantly, only for animation or stats
* hide/show stats
* scale slides up/down

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1873733003

Review URL: https://codereview.chromium.org/1873733003

8 years agoFix race condition in SkROBuffer.
reed [Fri, 8 Apr 2016 19:47:14 +0000 (12:47 -0700)]
Fix race condition in SkROBuffer.

SkBufferBlock::fUsed may be updated by the writer while a reader is
attempting to read it.

BUG=chromium:601578
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1872853002

Review URL: https://codereview.chromium.org/1872853002

8 years agoSerialize invNormRotation in SkLightingShader.
mtklein [Fri, 8 Apr 2016 19:19:50 +0000 (12:19 -0700)]
Serialize invNormRotation in SkLightingShader.

This fixes a serialize-8888 / 8888 GM mismatch.

This requires a picture bump so we know not to bother trying to read the
invNormRotation vector from older .SKPs.   Any chance no one's ever made
one?

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1870443002

Just bumping the picture version.
TBR=reed@google.com

Review URL: https://codereview.chromium.org/1870443002

8 years agoUpgrade SkSpecialImage to have getTextureRef & getROPixels entry points
robertphillips [Fri, 8 Apr 2016 19:10:42 +0000 (12:10 -0700)]
Upgrade SkSpecialImage to have getTextureRef & getROPixels entry points

This more closely aligns the SkSpecialImage API with the SkImage API. In doing so it allows the image filters to handle SkImages that can sneak through while remaining encoded (e.g., if an input filter just returns a wrapped version of the source SkImage)

GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1861643003

Review URL: https://codereview.chromium.org/1861643003

8 years agoSkPDF: Fix links to be more valid PDF/A
halcanary [Fri, 8 Apr 2016 17:51:05 +0000 (10:51 -0700)]
SkPDF: Fix links to be more valid PDF/A

See:
  https://github.com/veraPDF/veraPDF-validation-profiles/wiki/PDFA-Parts-2-and-3-rules#rule-632-1
  https://github.com/veraPDF/veraPDF-validation-profiles/wiki/PDFA-Parts-2-and-3-rules#rule-632-2

BUG=skia:3010
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1867003004

Review URL: https://codereview.chromium.org/1867003004

8 years agoSkPDF: fix pessimizing-move in PDFA code
halcanary [Fri, 8 Apr 2016 16:55:20 +0000 (09:55 -0700)]
SkPDF: fix pessimizing-move in PDFA code

GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1863393004

Review URL: https://codereview.chromium.org/1863393004

8 years agoIncrease request cache size.
bungeman [Fri, 8 Apr 2016 15:57:00 +0000 (08:57 -0700)]
Increase request cache size.

BUG=chromium:424082
See comment #63.

Review URL: https://codereview.chromium.org/1875733002

8 years agoUpdate MatrixConvolutionImageFilter to sk_sp
robertphillips [Fri, 8 Apr 2016 15:01:20 +0000 (08:01 -0700)]
Update MatrixConvolutionImageFilter to sk_sp

TBR=reed@google.com

GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1869833002

Review URL: https://codereview.chromium.org/1869833002

8 years agoAdd slides to VulkanViewer
jvanverth [Fri, 8 Apr 2016 14:24:09 +0000 (07:24 -0700)]
Add slides to VulkanViewer

Adds SKP loading, matching, and moving backwards as well as forwards
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1873543003

Review URL: https://codereview.chromium.org/1873543003

8 years agoTest CTFonts for equality, not just name and style.
bungeman [Fri, 8 Apr 2016 14:22:29 +0000 (07:22 -0700)]
Test CTFonts for equality, not just name and style.

The current code looks up CTFonts from descriptors by just name and style.
This is not sufficient, for example Avenir Book and Avenir Roman have the
same family name but the same basic style, but are obviously not the same.

BUG=skia:5162
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1860993004

Review URL: https://codereview.chromium.org/1860993004

8 years agoConvert SkRefCnt to std::atomic.
bungeman [Fri, 8 Apr 2016 13:58:51 +0000 (06:58 -0700)]
Convert SkRefCnt to std::atomic.

This enables removing the more complicated atomic shims from SkAtomics.h.

TBR=reed
This doesn't actually change any API.

CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-TSAN-Trybot,Test-Ubuntu-GCC-Golo-GPU-GT610-x86_64-Release-TSAN-Trybot

Review URL: https://codereview.chromium.org/1867863002

8 years agoAdd specialized rgba8888 unit sampler.
herb [Fri, 8 Apr 2016 13:49:59 +0000 (06:49 -0700)]
Add specialized rgba8888 unit sampler.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1868723003

Review URL: https://codereview.chromium.org/1868723003

8 years agoDecouple contrast boost from fake gamma.
brianosman [Fri, 8 Apr 2016 13:47:54 +0000 (06:47 -0700)]
Decouple contrast boost from fake gamma.

Replace FakeGamma with FontWeightFlags. Largely mechanical, except for
the changes in ignorePreBlend. With this change, text GMs generally look
the same (or at least more similar) in 8888/srgb/gpu/gpusrgb configs.

No public API changes.
TBR=reed@google.com

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1866293003

Review URL: https://codereview.chromium.org/1866293003

8 years agoMore valgrind appeasement
robertphillips [Fri, 8 Apr 2016 12:24:21 +0000 (05:24 -0700)]
More valgrind appeasement

BUG=skia:5164
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1867973004

Review URL: https://codereview.chromium.org/1867973004

8 years agoUpdate Skia milestone to 52
hcm [Fri, 8 Apr 2016 05:58:19 +0000 (22:58 -0700)]
Update Skia milestone to 52

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1868893003

TBR=reed@google.com

Review URL: https://codereview.chromium.org/1868893003

8 years agoRevert of For *ToFixed, in debug mode, assert that the value is in range. (patchset...
fmalita [Fri, 8 Apr 2016 02:27:45 +0000 (19:27 -0700)]
Revert of For *ToFixed, in debug mode, assert that the value is in range. (patchset #6 id:140001 of https://codereview.chromium.org/1824733002/ )

Reason for revert:
Asserts in Blink rolls:

https://storage.googleapis.com/chromium-layout-test-archives/linux_blink_rel/84520/layout-test-results/results.html

STDERR: [1:1:0407/120919:1455366829:INFO:SkFixed.h(88)] ../../third_party/skia/include/private/SkFixed.h:88: fatal error: ""truncf(x * (1 << 16)) == static_cast<float>

Original issue's description:
> For *ToFixed, in debug mode, assert that the value is in range.
>
> Use SkFloatPinToFixed in SkTwoPointConicalGradient.cpp because it is failing in DM. fmalita is working on replacing this code with the 4f version, so I'm not bothering to fix it. (The beginnings of a real fix are in https://codereview.chromium.org/1767163003, which I do not plan to commit.)
>
> BUG=skia:4632
> GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1824733002
>
> Committed: https://skia.googlesource.com/skia/+/93dc33972cd6a418e84270298b856d2de08d9c1c

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

Review URL: https://codereview.chromium.org/1868933004

8 years agoTrack GL buffer state based on unique resource ID
cdalton [Fri, 8 Apr 2016 01:13:29 +0000 (18:13 -0700)]
Track GL buffer state based on unique resource ID

Reworks GrGLGpu to track GL buffer state based on the unique
GrGpuResource ID. This eliminates the need to notify the gpu object
whenever a buffer is deleted.

This change also allows us to remove the type specifier from GrBuffer.
At this point a buffer is just a chunk of memory, and the type
given at creation time is just a suggestion to the GL backend about
which target to bind to for updates.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1854283004

Committed: https://skia.googlesource.com/skia/+/deacc97bc63513b5eacaf21f858727f6e8b98ce5

Review URL: https://codereview.chromium.org/1854283004

8 years agoadd header guard to SkPM4fPriv.h to prevent accidental multiple inclusion
lsalzman [Thu, 7 Apr 2016 21:04:32 +0000 (14:04 -0700)]
add header guard to SkPM4fPriv.h to prevent accidental multiple inclusion

This works around some issues with Firefox's unified sources build system.

BUG=skia:5173
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1869613003

Review URL: https://codereview.chromium.org/1869613003

8 years agoLimit the size of descriptor pools in vulkan
egdaniel [Thu, 7 Apr 2016 20:49:01 +0000 (13:49 -0700)]
Limit the size of descriptor pools in vulkan

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1867973002

Review URL: https://codereview.chromium.org/1867973002

8 years ago[4fGradient] Veto blitters for non-opaque paints
fmalita [Thu, 7 Apr 2016 20:16:13 +0000 (13:16 -0700)]
[4fGradient] Veto blitters for non-opaque paints

The current blitters don't support SrcOver, so we must ensure the colors
are opaque.  Checking shader.colorsAreOpaque() is not enough as it
doesn't reflect the paint alpha.

Instead we should check for context flags & kOpaqueAlpha_Flag, which is
only set when both the color stops AND the paint are opaque.

R=reed@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1870773002

Review URL: https://codereview.chromium.org/1870773002

8 years agoSkPDF Fix PDF/A to be more valid
halcanary [Thu, 7 Apr 2016 19:34:59 +0000 (12:34 -0700)]
SkPDF Fix PDF/A to be more valid

Some produced PDFs are recognized by veraPDF 0.13.2
(http://verapdf.org/software/) as valid PDF/A-2B.

BUG=skia:4535

GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1864173004

Review URL: https://codereview.chromium.org/1864173004

8 years agoSome more improvements/fixes to the VulkanViewer
jvanverth [Thu, 7 Apr 2016 18:09:51 +0000 (11:09 -0700)]
Some more improvements/fixes to the VulkanViewer

* display GM name in title bar
* add ms timer for update loop
* add ms/frame meter
* fix vsync
* add some notes for later

GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1873453002

Review URL: https://codereview.chromium.org/1873453002

8 years agoAdd support for pyadb to setup_adb.sh
kjlubick [Thu, 7 Apr 2016 17:57:27 +0000 (10:57 -0700)]
Add support for pyadb to setup_adb.sh

BUG=skia:5156
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1869813002

Review URL: https://codereview.chromium.org/1869813002

8 years agoFix a bunch of memory issues in Vulkan
egdaniel [Thu, 7 Apr 2016 17:17:47 +0000 (10:17 -0700)]
Fix a bunch of memory issues in Vulkan

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1867883002

Review URL: https://codereview.chromium.org/1867883002

8 years agoFor *ToFixed, in debug mode, assert that the value is in range.
benjaminwagner [Thu, 7 Apr 2016 16:52:19 +0000 (09:52 -0700)]
For *ToFixed, in debug mode, assert that the value is in range.

Use SkFloatPinToFixed in SkTwoPointConicalGradient.cpp because it is failing in DM. fmalita is working on replacing this code with the 4f version, so I'm not bothering to fix it. (The beginnings of a real fix are in https://codereview.chromium.org/1767163003, which I do not plan to commit.)

BUG=skia:4632
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1824733002

Review URL: https://codereview.chromium.org/1824733002

8 years agoAdd pinned versions of *ToFixed.
benjaminwagner [Thu, 7 Apr 2016 16:23:11 +0000 (09:23 -0700)]
Add pinned versions of *ToFixed.

BUG=skia:4632
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1707023002

Review URL: https://codereview.chromium.org/1707023002

8 years agoAppease valgrind wrt testing code initialization
robertphillips [Thu, 7 Apr 2016 16:01:20 +0000 (09:01 -0700)]
Appease valgrind wrt testing code initialization

The new swarming valgrind bot appears to be higher maintenance. These changes seem harmless and will, hopefully, unblock the bot.

TBR=bsalomon@google.com

https://build.chromium.org/p/client.skia.fyi/builders/Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-SwarmingValgrind/builds/57

BUG=skia:5164
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1867053002

Review URL: https://codereview.chromium.org/1867053002

8 years agoSkPDF: fix PDF/A
halcanary [Thu, 7 Apr 2016 15:56:15 +0000 (08:56 -0700)]
SkPDF:  fix PDF/A

TODO: get a bot to start testing this.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1864163004

Review URL: https://codereview.chromium.org/1864163004

8 years agoReverse dependency between SkScalar.h and SkFixed.h.
benjaminwagner [Thu, 7 Apr 2016 15:49:31 +0000 (08:49 -0700)]
Reverse dependency between SkScalar.h and SkFixed.h.

The following are unused in Chromium, Android, Mozilla, and Google3:
 - SkFixedToScalar
 - SkScalarToFixed

The following are additionally unused in Skia:
 - SkStrAppendFixed
 - SkWriteBuffer::writeFixed

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1841123002

Review URL: https://codereview.chromium.org/1841123002

8 years agoRevert conversion of SkColorFilterImageFilter to new API
robertphillips [Thu, 7 Apr 2016 15:10:45 +0000 (08:10 -0700)]
Revert conversion of SkColorFilterImageFilter to new API

BUG=598028

GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1864263002

Review URL: https://codereview.chromium.org/1864263002

8 years agoUse a faster repeat tiler when translate only matrix.
herb [Thu, 7 Apr 2016 14:56:12 +0000 (07:56 -0700)]
Use a faster repeat tiler when translate only matrix.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1861253003

Review URL: https://codereview.chromium.org/1861253003

8 years agoFix vulkan layer callback bug
egdaniel [Thu, 7 Apr 2016 14:51:22 +0000 (07:51 -0700)]
Fix vulkan layer callback bug

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1870673002

Review URL: https://codereview.chromium.org/1870673002

8 years agoUpdate MagnifierImageFilter to sk_sp
robertphillips [Thu, 7 Apr 2016 14:34:15 +0000 (07:34 -0700)]
Update MagnifierImageFilter to sk_sp

TBR=reed@google.com

GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1864843002

Review URL: https://codereview.chromium.org/1864843002

8 years agosRGB text fake-gamma progress:
brianosman [Thu, 7 Apr 2016 13:25:45 +0000 (06:25 -0700)]
sRGB text fake-gamma progress:

Determine if we should use fake-gamma based on the render target format
and paint parameters (ie will gamma-correct blending happen?). Plumb that
down to the appropriate places in the bitmap text rendering for now.

Still need to alter the behavior of the DF text renderer (using the same
cue, most likely?). Also, this still doesn't account for the contrast
hack. The end result of this change is a pleasant normalizing of weight
when viewing text in the gpusrgb config. (Dark text gets heavier, light
text gets lighter).

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1865953003

Review URL: https://codereview.chromium.org/1865953003

8 years agoRevert of Track GL buffer state based on unique resource ID (patchset #6 id:100001...
mtklein [Thu, 7 Apr 2016 01:24:34 +0000 (18:24 -0700)]
Revert of Track GL buffer state based on unique resource ID (patchset #6 id:100001 of https://codereview.chromium.org/1854283004/ )

Reason for revert:
Chrome roll's broken, seems to be missing fTarget:

https://codereview.chromium.org/1861473005

Original issue's description:
> Track GL buffer state based on unique resource ID
>
> Reworks GrGLGpu to track GL buffer state based on the unique
> GrGpuResource ID. This eliminates the need to notify the gpu object
> whenever a buffer is deleted.
>
> This change also allows us to remove the type specifier from GrBuffer.
> At this point a buffer is just a chunk of memory, and the type
> given at creation time is just a suggestion to the GL backend about
> which target to bind to for updates.
>
> BUG=skia:
> GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1854283004
>
> Committed: https://skia.googlesource.com/skia/+/deacc97bc63513b5eacaf21f858727f6e8b98ce5

TBR=bsalomon@google.com,jvanverth@google.com,cdalton@nvidia.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/1870553002

8 years agoMark webps as sRGB
msarett [Wed, 6 Apr 2016 22:45:41 +0000 (15:45 -0700)]
Mark webps as sRGB

This may cause some diffs in Gold.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1838603002

Review URL: https://codereview.chromium.org/1838603002

8 years agoFix lazy coding in ViaSingletonPictures.
mtklein [Wed, 6 Apr 2016 22:01:57 +0000 (15:01 -0700)]
Fix lazy coding in ViaSingletonPictures.

I was using SkRect::MakeLargest() as bounds, which is sort of nutso,
as that clearly is way out of bounds for how big a picture can feasibly
be, i.e. something closer to SkIRect::MakeLargest().

This was causing spurious quick rejects in drawPatch().  I didn't really
look much deeper to figure out why.  It's easy enough to just feed it the
proper bounds of the entire content.

This means patch_primitive draws correctly in sp-8888 mode.
I also noticed the GM was too small... it clipped off most of its content.
So I've made it larger.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1865143002

Review URL: https://codereview.chromium.org/1865143002

8 years agoTrack GL buffer state based on unique resource ID
cdalton [Wed, 6 Apr 2016 21:26:33 +0000 (14:26 -0700)]
Track GL buffer state based on unique resource ID

Reworks GrGLGpu to track GL buffer state based on the unique
GrGpuResource ID. This eliminates the need to notify the gpu object
whenever a buffer is deleted.

This change also allows us to remove the type specifier from GrBuffer.
At this point a buffer is just a chunk of memory, and the type
given at creation time is just a suggestion to the GL backend about
which target to bind to for updates.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1854283004

Review URL: https://codereview.chromium.org/1854283004

8 years agopath_stroke_with_zero_length: turn off drawFat() by default.
mtklein [Wed, 6 Apr 2016 21:25:35 +0000 (14:25 -0700)]
path_stroke_with_zero_length: turn off drawFat() by default.

The replay modes cannot readback, and so cannot draw the fat parts, which
means we've had to exempt them from checking that they draw identically.

I don't mind if we leave it alone, but I thought I'd check to see your opinion.

BUG=skia:4095
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1862113004

Review URL: https://codereview.chromium.org/1862113004

8 years agoMake existing unit tests only run on GL contexts
bsalomon [Wed, 6 Apr 2016 21:02:39 +0000 (14:02 -0700)]
Make existing unit tests only run on GL contexts

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1869503002

Review URL: https://codereview.chromium.org/1869503002