platform/upstream/libSkiaSharp.git
8 years agoFix for unaligned automatic variable address in SSE routines. This used to work on...
marco.diiga [Mon, 21 Mar 2016 13:04:43 +0000 (06:04 -0700)]
Fix for unaligned automatic variable address in SSE routines. This used to work on linux but crashed on windows when rendering antialiased glyphs. I tracked the problem down to an alignment issue.

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

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

8 years agoSkPDF: metadata first
halcanary [Sun, 20 Mar 2016 14:07:11 +0000 (07:07 -0700)]
SkPDF: metadata first

Motivation: while experimenting with serializing images immediately, I would like to keep serializing metadata first.

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

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

8 years agoUpdate SKP version
update-skps [Sun, 20 Mar 2016 08:28:13 +0000 (01:28 -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=1817833002

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

8 years agoDon't convert DWORD to int.
bungeman [Sat, 19 Mar 2016 22:51:05 +0000 (15:51 -0700)]
Don't convert DWORD to int.

DWORD is unsigned, and might not be an int. vs2015u2 complains.

BUG=skia:4553

TBR=mtklein
This is pretty trivial and makes the vs2015 bot compile.

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

8 years agoTemplatize SkToXXX.
bungeman [Sat, 19 Mar 2016 22:06:56 +0000 (15:06 -0700)]
Templatize SkToXXX.

Makes the checked cast in debug more correct, avoiding new
warnings in vs2015.

BUG=skia:4553

Committed: https://skia.googlesource.com/skia/+/0be9e806af72b3e029e691eef5c891c90d3fd320

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

8 years agoFix uninitialized fCurrProgramID in GrGLCreateNullInterface
fmalita [Sat, 19 Mar 2016 20:07:13 +0000 (13:07 -0700)]
Fix uninitialized fCurrProgramID in GrGLCreateNullInterface

TBR=bsalomon@google.com,robertphillips@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1817793002

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

8 years agoDocument BitmapStateAutoMapper.
herb [Sat, 19 Mar 2016 15:46:24 +0000 (08:46 -0700)]
Document BitmapStateAutoMapper.

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

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

8 years agodisable SK_SUPPORT_LEGACY_PATHEFFECT_PTR for skia builds
reed [Sat, 19 Mar 2016 02:18:18 +0000 (19:18 -0700)]
disable SK_SUPPORT_LEGACY_PATHEFFECT_PTR for skia builds

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

TBR=

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

8 years agoRemove uses of SkImageDecoder from samplecode
msarett [Fri, 18 Mar 2016 22:48:49 +0000 (15:48 -0700)]
Remove uses of SkImageDecoder from samplecode

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

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

8 years agoReplace uses of SkImageDecoder in src/animator
msarett [Fri, 18 Mar 2016 22:41:00 +0000 (15:41 -0700)]
Replace uses of SkImageDecoder in src/animator

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

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

8 years agoAdd DescriptorPool and set manager to GrVkProgram
egdaniel [Fri, 18 Mar 2016 20:18:23 +0000 (13:18 -0700)]
Add DescriptorPool and set manager to GrVkProgram

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

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

8 years agoFix ANGLE build
bsalomon [Fri, 18 Mar 2016 20:10:33 +0000 (13:10 -0700)]
Fix ANGLE build
TBR=
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1814233003

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

8 years agoUse dynamic state from vulkan pipelines
egdaniel [Fri, 18 Mar 2016 19:50:27 +0000 (12:50 -0700)]
Use dynamic state from vulkan pipelines

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

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

8 years agoallow more options for shader blitprocs
reed [Fri, 18 Mar 2016 19:42:26 +0000 (12:42 -0700)]
allow more options for shader blitprocs

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

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

8 years agoEnable extension support and debug layer.
jvanverth [Fri, 18 Mar 2016 19:39:05 +0000 (12:39 -0700)]
Enable extension support and debug layer.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1785813002
TBR=bsalomon@google.com

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

8 years agoRemove uses of SkImageDecoder from gms
msarett [Fri, 18 Mar 2016 19:13:47 +0000 (12:13 -0700)]
Remove uses of SkImageDecoder from gms

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

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

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

8 years agoStore null GL context's state in interface object
bsalomon [Fri, 18 Mar 2016 19:07:24 +0000 (12:07 -0700)]
Store null GL context's state in interface object

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

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

8 years agoImplement Vulkan GrBackendObject for textures.
jvanverth [Fri, 18 Mar 2016 18:57:24 +0000 (11:57 -0700)]
Implement Vulkan GrBackendObject for textures.

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

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

8 years agoRevert of Templatize SkToXXX. (patchset #2 id:20001 of https://codereview.chromium...
bungeman [Fri, 18 Mar 2016 18:53:16 +0000 (11:53 -0700)]
Revert of Templatize SkToXXX. (patchset #2 id:20001 of https://codereview.chromium.org/1814153003/ )

Reason for revert:
Chrome does not yet have std::underlying_type.

Original issue's description:
> Templatize SkToXXX.
>
> Makes the checked cast in debug more correct, avoiding new
> warnings in vs2015.
>
> BUG=skia:4553
>
> Committed: https://skia.googlesource.com/skia/+/0be9e806af72b3e029e691eef5c891c90d3fd320

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

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

8 years agoPropogate SkBudgeted for NewFromDeferredTextureImageData
ericrk [Fri, 18 Mar 2016 18:52:20 +0000 (11:52 -0700)]
Propogate SkBudgeted for NewFromDeferredTextureImageData

The budgeted flag was not propogated from
NewFromDeferredTextureImageData to MakeTextureFromPixmap, resulting in
the created textures always being budgeted, even when SkBudgeted::kNo
was passed in.

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

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

8 years agoRemove --verbose from DM on Swarming bots
borenet [Fri, 18 Mar 2016 18:27:42 +0000 (11:27 -0700)]
Remove --verbose from DM on Swarming bots

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

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

8 years agoReland of "switch patheffects over to sk_sp (patchset #5 id:80001 of https://coderevi...
reed [Fri, 18 Mar 2016 18:22:57 +0000 (11:22 -0700)]
Reland of "switch patheffects over to sk_sp (patchset #5 id:80001 of https://codereview.chromium.org/1813553005/ )"

This reverts commit f28ad894272018fd2855e3f77ea1236ea0cce1c0.

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

TBR=

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

8 years agoTemplatize SkToXXX.
bungeman [Fri, 18 Mar 2016 18:17:56 +0000 (11:17 -0700)]
Templatize SkToXXX.

Makes the checked cast in debug more correct, avoiding new
warnings in vs2015.

BUG=skia:4553

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

8 years agoFix pessimizing move in SamplePictFile
fmalita [Fri, 18 Mar 2016 18:07:50 +0000 (11:07 -0700)]
Fix pessimizing move in SamplePictFile

../../samplecode/SamplePictFile.cpp:194:20: error: moving a local object in a return statement prevents copy elision [-Werror,-Wpessimizing-move]
            return std::move(pic);
                               ^

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

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

8 years agocustom ssse3 srcover_n_srgb_bw, about 1.8x speedup
mtklein [Fri, 18 Mar 2016 18:07:46 +0000 (11:07 -0700)]
custom ssse3 srcover_n_srgb_bw, about 1.8x speedup

This is a little demo of the sorts of speedups we can get from working in planar format, or even just a mini-planar of 4 pixels at a time like I'm doing here.

I chose this blit by running
  $ out/Release/nanobench --config srgb --match skp
and looking for the hottest sRGB-related method.
After this CL, src_1 and src_n become hotter than srcover_n.  They can probably get a similar treatment.

We transpose three times in this function:
   - dst after reading, as part of the zero-extension and conversion to float
   - src after reading, _MM_TRANSPOSE4_PS (which expands to 8 cheap instructions)
   - result before writing, the last _mm_shuffle_epi8
If we changed our buffer format to a mini-planar format like rrrr gggg bbbb aaaa, we could eliminate the src transpose and get another small speedup, to right around 2x.

This code leans pretty heavily on SSSE3, so if we want it to speed up Windows+Linux Chrome, it'll eventually want to go behind a function pointer.

This also appears to fix what looks like overflow in a few GMs, most noticeably in hairmodes.  This is something we'd better look into...

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

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

8 years ago4f linear gradient shader blitters
fmalita [Fri, 18 Mar 2016 17:28:23 +0000 (10:28 -0700)]
4f linear gradient shader blitters

Add F16 specializations to support writing to half-float dests.

Add color profile template arg across the board to support writing
to sRGB dests.

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

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

8 years agoRevert of switch patheffects over to sk_sp (patchset #5 id:80001 of https://coderevie...
reed [Fri, 18 Mar 2016 17:17:27 +0000 (10:17 -0700)]
Revert of switch patheffects over to sk_sp (patchset #5 id:80001 of https://codereview.chromium.org/1813553005/ )

Reason for revert:
some build breaks, possibly related to paint having to know what a patheffect is

Original issue's description:
> switch patheffects over to sk_sp
>
> BUG=skia:
> GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1813553005
>
> Committed: https://skia.googlesource.com/skia/+/9fbee18f691a0afed1e38a851048ce06063505ed

TBR=caryclark@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/1817543002

8 years agoswitch patheffects over to sk_sp
reed [Fri, 18 Mar 2016 17:00:32 +0000 (10:00 -0700)]
switch patheffects over to sk_sp

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

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

8 years agoMake Win runtime DLLs writeable before overwriting
borenet [Fri, 18 Mar 2016 15:33:38 +0000 (08:33 -0700)]
Make Win runtime DLLs writeable before overwriting

This should fix the VS2015 bot which is failing because we can't
overwrite read-only DLL files.

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

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

8 years agoAdd SkSpecialImage::makeTextureImage entry point
robertphillips [Fri, 18 Mar 2016 15:14:27 +0000 (08:14 -0700)]
Add SkSpecialImage::makeTextureImage entry point

This is calved off of: https://codereview.chromium.org/1785643003 (Switch SkBlurImageFilter over to new onFilterImage interface)

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

Committed: https://skia.googlesource.com/skia/+/05849018c85403a34b88819db1c4bcf713b70a2b

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

8 years agoClean up SSSE3 and SSE4 stubs.
mtklein [Fri, 18 Mar 2016 15:10:31 +0000 (08:10 -0700)]
Clean up SSSE3 and SSE4 stubs.

We added these stubs to work around OpenBSD's old compiler, which had
support for SSE2 but not SSSE3 or SSE4.

We now already have other unstubbed files that require SSSE3 and SSE4 compiler
support.  All the compilers we support have SSSE3 and SSE4 support, and all the
way up to at least AVX2.

(Requiring C++11 has had some nice ripple effects...)

And, <immintrin.h> is already auto-included for these files, so no need for smmintrin or tmmintrin.

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

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

8 years agoreturn pictures as sk_sp
reed [Fri, 18 Mar 2016 14:25:55 +0000 (07:25 -0700)]
return pictures as sk_sp

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

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

8 years agoallow one zero length dash
caryclark [Fri, 18 Mar 2016 13:04:26 +0000 (06:04 -0700)]
allow one zero length dash

If the constructed stroke that represents a dash has a
single dash of length zero, and the end cap is square or
round, draw the cap.

The old code initialized the initial dash length to zero,
making it ambiguous whether the first length is zero or
not.

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

Committed: https://skia.googlesource.com/skia/+/5e1a24808415df2748822e8082e21a361362cdfe

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

8 years agoRevert of Add SkSpecialImage::makeTextureImage entry point & update filterInput ...
bungeman [Fri, 18 Mar 2016 12:36:20 +0000 (05:36 -0700)]
Revert of Add SkSpecialImage::makeTextureImage entry point & update filterInput (patchset #3 id:40001 of https://codereview.chromium.org/1813813002/ )

Reason for revert:
Suspected cause of layout test css3/filters/effect-reference-tile-hw.htmlto crash.

https://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/83847/steps/webkit_tests%20%28with%20patch%29/logs/stdio

It could also be the previous change (but it appears this one depends on that one).

Original issue's description:
> Add SkSpecialImage::makeTextureImage entry point
>
> This is calved off of: https://codereview.chromium.org/1785643003 (Switch SkBlurImageFilter over to new onFilterImage interface)
>
> GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1813813002
>
> Committed: https://skia.googlesource.com/skia/+/05849018c85403a34b88819db1c4bcf713b70a2b

TBR=bsalomon@google.com,senorblanco@google.com,senorblanco@chromium.org,robertphillips@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/1811973005

8 years agoRevert of allow one zero length dash (patchset #8 id:140001 of https://codereview...
bungeman [Fri, 18 Mar 2016 12:10:23 +0000 (05:10 -0700)]
Revert of allow one zero length dash (patchset #8 id:140001 of https://codereview.chromium.org/1805963002/ )

Reason for revert:
Causes the dash bench to crash.

Example crash:
https://build.chromium.org/p/client.skia/builders/Perf-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release/builds/5581/steps/nanobench/logs/stdio

Original issue's description:
> allow one zero length dash
>
> If the constructed stroke that represents a dash has a
> single dash of length zero, and the end cap is square or
> round, draw the cap.
>
> The old code initialized the initial dash length to zero,
> making it ambiguous whether the first length is zero or
> not.
>
> R=robertphillips@google.com
> BUG=583299
> GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1805963002
>
> Committed: https://skia.googlesource.com/skia/+/5e1a24808415df2748822e8082e21a361362cdfe

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

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

8 years agoallow one zero length dash
caryclark [Fri, 18 Mar 2016 11:44:23 +0000 (04:44 -0700)]
allow one zero length dash

If the constructed stroke that represents a dash has a
single dash of length zero, and the end cap is square or
round, draw the cap.

The old code initialized the initial dash length to zero,
making it ambiguous whether the first length is zero or
not.

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

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

8 years agoAdd SkSpecialImage::makeTextureImage entry point
robertphillips [Thu, 17 Mar 2016 22:15:58 +0000 (15:15 -0700)]
Add SkSpecialImage::makeTextureImage entry point

This is calved off of: https://codereview.chromium.org/1785643003 (Switch SkBlurImageFilter over to new onFilterImage interface)

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

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

8 years agoSwitch SkSpecialImage & SkSpecialSurface classes over to smart pointers
robertphillips [Thu, 17 Mar 2016 21:31:39 +0000 (14:31 -0700)]
Switch SkSpecialImage & SkSpecialSurface classes over to smart pointers

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

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

8 years agoAdd SkImageGeneratorWIC
msarett [Thu, 17 Mar 2016 20:50:17 +0000 (13:50 -0700)]
Add SkImageGeneratorWIC

This will be a replacement for SkImageDecoder_WIC.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1785613010
CQ_EXTRA_TRYBOTS=client.skia.compile:Build-Ubuntu-GCC-x86_64-Release-CMake-Trybot,Build-Mac-Clang-x86_64-Release-CMake-Trybot

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

8 years agodocumentation: simplify pdf diagram
halcanary [Thu, 17 Mar 2016 20:33:50 +0000 (13:33 -0700)]
documentation: simplify pdf diagram

NOTRY=true
TBR=

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

8 years agodocumentation: simplify pdf diagram
halcanary [Thu, 17 Mar 2016 20:27:57 +0000 (13:27 -0700)]
documentation: simplify pdf diagram

NOTRY=true
TBR=

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

8 years agoRevert of sRGB support in Ganesh. Several pieces: (patchset #12 id:220001 of https...
brianosman [Thu, 17 Mar 2016 20:01:26 +0000 (13:01 -0700)]
Revert of sRGB support in Ganesh. Several pieces: (patchset #12 id:220001 of https://codereview.chromium.org/1789663002/ )

Reason for revert:
We're getting sRGB non-8888 configs?

Original issue's description:
> sRGB support in Ganesh. Several pieces:
>
> sRGB support now also requires GL_EXT_texture_sRGB_decode, which allows
> us to disable sRGB -> Linear conversion when reading textures. This gives
> us an easy way to support "legacy" L32 mode. We disable decoding based on
> the pixel config of the render target. Textures can override that behavior
> (specifically for format-conversion draws where we want that behavior).
>
> Added sBGRA pixel config, which is not-really-a-format. It's just sRGBA
> internally, and the external format is BGR order, so TexImage calls will
> swizzle correctly. This lets us interact with sRGB raster surfaces on BGR
> platforms.
>
> Devices without sRGB support behave like they always have: conversion from
> color type and profile type ignores sRGB and always returns linear pixel
> configs.
>
> BUG=skia:
> GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1789663002
>
> Committed: https://skia.googlesource.com/skia/+/9e3f1bf4e5cd8fc59554f986f36d6b034e99f9eb

TBR=reed@google.com,bsalomon@google.com,robertphillips@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/1814533003

8 years agoAdd asRRect method to SkClipStack::Element
cdalton [Thu, 17 Mar 2016 19:56:11 +0000 (12:56 -0700)]
Add asRRect method to SkClipStack::Element

Adds an asRRect method alongside asPath, for clip implementations that
can be generalized to round rects.

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

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

8 years agoDM: make --verbose send the vlog to stderr.
mtklein [Thu, 17 Mar 2016 19:53:36 +0000 (12:53 -0700)]
DM: make --verbose send the vlog to stderr.

See if this works out for you?
I've just turned off --verbose on the bots, so this ought to be safe now.

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

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

8 years agosRGB support in Ganesh. Several pieces:
brianosman [Thu, 17 Mar 2016 19:26:37 +0000 (12:26 -0700)]
sRGB support in Ganesh. Several pieces:

sRGB support now also requires GL_EXT_texture_sRGB_decode, which allows
us to disable sRGB -> Linear conversion when reading textures. This gives
us an easy way to support "legacy" L32 mode. We disable decoding based on
the pixel config of the render target. Textures can override that behavior
(specifically for format-conversion draws where we want that behavior).

Added sBGRA pixel config, which is not-really-a-format. It's just sRGBA
internally, and the external format is BGR order, so TexImage calls will
swizzle correctly. This lets us interact with sRGB raster surfaces on BGR
platforms.

Devices without sRGB support behave like they always have: conversion from
color type and profile type ignores sRGB and always returns linear pixel
configs.

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

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

8 years agoFix pointer aliasing bug in SkImageFilter::computeFastBounds.
jbroman [Thu, 17 Mar 2016 19:24:23 +0000 (12:24 -0700)]
Fix pointer aliasing bug in SkImageFilter::computeFastBounds.

Since src and dst are explicitly allowed to alias (according to a comment in
SkPaint.h), it is problematic to have the first input filter mutate dst, since
we still need access to the previous value to provide to the other input
filters.

To resolve this, SkImageFilter::computeFastBounds makes a copy of src on the
stack, and passes that to its inputs instead.

Also add a unit test that would have detected the issue.

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

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

8 years agojust write the verbose log file any time we have a --writePath
mtklein [Thu, 17 Mar 2016 18:58:11 +0000 (11:58 -0700)]
just write the verbose log file any time we have a --writePath

oughta fix the Android bots

TBR=bungeman@google.com

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

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

8 years agoUpdate how we send draws to gpu backend to reduce state setting.
egdaniel [Thu, 17 Mar 2016 18:35:45 +0000 (11:35 -0700)]
Update how we send draws to gpu backend to reduce state setting.

The main change here is that we pull primitive type off of the vertices, we set the gpu state on gpu once per pipeline/prim proc draw batch, and we create the ProgramDescriptor only for the Cache/ProgramBuilder.

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

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

8 years agofree -> reset
mtklein [Thu, 17 Mar 2016 17:51:27 +0000 (10:51 -0700)]
free -> reset

The C++ standard library uses ".reset()" where we sometimes write ".free()".
We also use ".reset()" quite a lot.  This standardizes on ".reset()".

This is one more step towards dropping SkAutoTDelete in favor of the standard
std::unique_ptr.

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

Committed: https://skia.googlesource.com/skia/+/0e3738db89e86035ed5d4f629bf58b817b1e5274

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

8 years agoupdate callsites for Make image factories
reed [Thu, 17 Mar 2016 17:51:11 +0000 (10:51 -0700)]
update callsites for Make image factories

not forced yet, as we still have the build-guard. waiting on chrome CL

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

TBR=

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

8 years agoFix gdb debugging for the latest NDK release.
djsollen [Thu, 17 Mar 2016 17:45:47 +0000 (10:45 -0700)]
Fix gdb debugging for the latest NDK release.
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1806343003

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

8 years agoDisable bad gif decode on CG
msarett [Thu, 17 Mar 2016 17:45:41 +0000 (10:45 -0700)]
Disable bad gif decode on CG

This will save me the trouble of triaging this bad image over and
over again :).

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

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

8 years agoRevert of Remove uses of SkImageDecoder from gms (patchset #2 id:20001 of https:...
bungeman [Thu, 17 Mar 2016 17:38:36 +0000 (10:38 -0700)]
Revert of Remove uses of SkImageDecoder from gms (patchset #2 id:20001 of https://codereview.chromium.org/1791583002/ )

Reason for revert:
Suspected of causing assertion failures in unrelated tests on Windows.

Original issue's description:
> Remove uses of SkImageDecoder from gms
>
> BUG=skia:
> GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1791583002
>
> Committed: https://skia.googlesource.com/skia/+/d427266a58af7e6ea6c12c9cd56ade3e179a0c04

TBR=scroggo@google.com,reed@google.com,msarett@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/1806383002

8 years agoUse sktarray.begin() instead of &sktarray[0].
bungeman [Thu, 17 Mar 2016 17:22:12 +0000 (10:22 -0700)]
Use sktarray.begin() instead of &sktarray[0].

Evaluating &sktarray[0] when sktarray.count() == 0 asserts.
This was causing ASAN failures.

TBR=bsalomon
NOTREECHECKS=true
NOTRY=true

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

8 years agotry to flush stdio in the crash handler
mtklein [Thu, 17 Mar 2016 17:16:12 +0000 (10:16 -0700)]
try to flush stdio in the crash handler

NOTREECHECKS=true

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

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

8 years agoRevert of free -> reset (patchset #3 id:40001 of https://codereview.chromium.org...
bungeman [Thu, 17 Mar 2016 16:53:58 +0000 (09:53 -0700)]
Revert of free -> reset (patchset #3 id:40001 of https://codereview.chromium.org/1811723002/ )

Reason for revert:
Suspect for Win10 failures.

Original issue's description:
> free -> reset
>
> The C++ standard library uses ".reset()" where we sometimes write ".free()".
> We also use ".reset()" quite a lot.  This standardizes on ".reset()".
>
> This is one more step towards dropping SkAutoTDelete in favor of the standard
> std::unique_ptr.
>
> BUG=skia:
> GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1811723002
>
> Committed: https://skia.googlesource.com/skia/+/0e3738db89e86035ed5d4f629bf58b817b1e5274

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/1813843002

8 years agoFix Linux Swarming bots
borenet [Thu, 17 Mar 2016 16:19:09 +0000 (09:19 -0700)]
Fix Linux Swarming bots

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

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

8 years agoSome fixes for Swarming bots
borenet [Thu, 17 Mar 2016 16:01:33 +0000 (09:01 -0700)]
Some fixes for Swarming bots

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

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

8 years agoAllow SkGpuDevice::drawSprite to handle subset SkBitmaps
robertphillips [Thu, 17 Mar 2016 15:26:38 +0000 (08:26 -0700)]
Allow SkGpuDevice::drawSprite to handle subset SkBitmaps

With the upcoming switch to SkSpecialImage in the blur image filter, it is possible for drawSprite calls to use an SkBitmap with an offset (e.g., a blur image filter with a cropRect and 0 blur radii). This simply updates the drawSprite code path to be origin aware.

This is calved off of: https://codereview.chromium.org/1785643003/ (Switch SkBlurImageFilter over to new onFilterImage interface)

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

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

8 years agoAllow const& for SkImages and SkPictures in draw methods.
reed [Thu, 17 Mar 2016 15:14:57 +0000 (08:14 -0700)]
Allow const& for SkImages and SkPictures in draw methods.

This is just a convenience for callers, since we are (strongly) encouraging them to use sk_sp<> for managing image objects (and pictures btw). No change under the hood, as we are keeping our agnostic approach to these for the protected virtuals (since often we don't want to ref the parameter).

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

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

8 years agoRemove uses of SkImageDecoder from gms
msarett [Thu, 17 Mar 2016 14:19:41 +0000 (07:19 -0700)]
Remove uses of SkImageDecoder from gms

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

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

8 years agoRemove uses of SkImageDecoder from skdiff
msarett [Thu, 17 Mar 2016 14:17:54 +0000 (07:17 -0700)]
Remove uses of SkImageDecoder from skdiff

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

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

8 years agomake sausages rounder and portable
caryclark [Thu, 17 Mar 2016 14:01:49 +0000 (07:01 -0700)]
make sausages rounder and portable

TBR=bungeman@google.com
BUG=226341
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1808203003

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

8 years agoAdd SkSpecialImage::extractSubset & NewFromPixmap
robertphillips [Thu, 17 Mar 2016 13:58:39 +0000 (06:58 -0700)]
Add SkSpecialImage::extractSubset & NewFromPixmap

This is calved off of: https://codereview.chromium.org/1785643003/ (Switch SkBlurImageFilter over to new onFilterImage interface)

This now relies on: https://codereview.chromium.org/1813483002/ (ImagePixelLocker now manually allocates SkPixmap) to clean up the uses of SkAutoPixmapStorage in Chromium

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

Committed: https://skia.googlesource.com/skia/+/250581493a0859987e482810879e85e5ac2dc002

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

8 years agoRemove SkipZeroesBench
msarett [Thu, 17 Mar 2016 13:30:06 +0000 (06:30 -0700)]
Remove SkipZeroesBench

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

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

8 years agofree -> reset
mtklein [Thu, 17 Mar 2016 12:36:18 +0000 (05:36 -0700)]
free -> reset

The C++ standard library uses ".reset()" where we sometimes write ".free()".
We also use ".reset()" quite a lot.  This standardizes on ".reset()".

This is one more step towards dropping SkAutoTDelete in favor of the standard
std::unique_ptr.

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

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

8 years agodon't create zero length intervals
caryclark [Thu, 17 Mar 2016 12:33:28 +0000 (05:33 -0700)]
don't create zero length intervals

Dashing a pattern without zero-length intervals should
not create them if the end of the on interval coincides
with the beginning of the initial dash offset.

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

Committed: https://skia.googlesource.com/skia/+/18bbd00190623fb6cdb119df4a118ac3c1aed52a

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

8 years agoAdd back SkAutoTUnref::detach() for Android temporarily.
mtklein [Thu, 17 Mar 2016 12:31:07 +0000 (05:31 -0700)]
Add back SkAutoTUnref::detach() for Android temporarily.

TBR=reed@google.com

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

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

8 years agoAdd back SkAutoTDelete::detach() for Android temporarily.
mtklein [Thu, 17 Mar 2016 00:33:54 +0000 (17:33 -0700)]
Add back SkAutoTDelete::detach() for Android temporarily.

TBR=

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

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

8 years agoImage filters: fix the zero-sigma fast path in SkBlurImageFilter.
senorblanco [Wed, 16 Mar 2016 23:15:53 +0000 (16:15 -0700)]
Image filters: fix the zero-sigma fast path in SkBlurImageFilter.

The fast path was not correctly taking the input srcOffset into account.

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

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

8 years agoUn-deprecate new methods to fix Android.
benjaminwagner [Wed, 16 Mar 2016 21:01:39 +0000 (14:01 -0700)]
Un-deprecate new methods to fix Android.

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

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

8 years agodetach -> release
mtklein [Wed, 16 Mar 2016 20:53:35 +0000 (13:53 -0700)]
detach -> release

The C++ standard library uses the name "release" for the operation we call "detach".

Rewriting each "detach(" to "release(" brings us a step closer to using standard library types directly (e.g. std::unique_ptr instead of SkAutoTDelete).

This was a fairly blind transformation.  There may have been unintentional conversions in here, but it's probably for the best to have everything uniformly say "release".

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

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

8 years agoadd blitprocs to shaders
reed [Wed, 16 Mar 2016 19:29:01 +0000 (12:29 -0700)]
add blitprocs to shaders

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

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

8 years agoMinor mingw cross compilation fix.
cjacek [Wed, 16 Mar 2016 18:26:32 +0000 (11:26 -0700)]
Minor mingw cross compilation fix.

Windows.h is actually windows.h.

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

8 years agoRevert of Add SkSpecialImage::extractSubset & NewFromPixmap (patchset #5 id:80001...
robertphillips [Wed, 16 Mar 2016 17:39:08 +0000 (10:39 -0700)]
Revert of Add SkSpecialImage::extractSubset & NewFromPixmap (patchset #5 id:80001 of https://codereview.chromium.org/1787883002/ )

Reason for revert:
Need to wean ImagePixelLocker.h off of SkAutoPixmapStorage :(

Original issue's description:
> Add SkSpecialImage::extractSubset & NewFromPixmap
>
> This is calved off of: https://codereview.chromium.org/1785643003/ (Switch SkBlurImageFilter over to new onFilterImage interface)
>
> GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1787883002
>
> Committed: https://skia.googlesource.com/skia/+/250581493a0859987e482810879e85e5ac2dc002

TBR=bsalomon@google.com,reed@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/1808833002

8 years agoUse std::unique_ptr.
mtklein [Wed, 16 Mar 2016 17:28:35 +0000 (10:28 -0700)]
Use std::unique_ptr.

TBR=reed@google.com

Committed: https://skia.googlesource.com/skia/+/20c1e3abfc681771f73eb19fde7284196e028940

Committed: https://skia.googlesource.com/skia/+/3dd9ed37c24611af86f0fe374bd3698b63f09450
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1780933003

Committed: https://skia.googlesource.com/skia/+/2691d76a06e1af6282f8b3a3140cc93361be10c4

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

8 years agoGrTessellator: don't reuse the previous vertex buffer on a cache miss.
senorblanco [Wed, 16 Mar 2016 17:25:58 +0000 (10:25 -0700)]
GrTessellator: don't reuse the previous vertex buffer on a cache miss.

Just let the cache give us the correct entry for the given size.
This simplifies the code (no mysterious non-const ref member).
I don't see any performance effect from this change, but will watch
the bots closely.

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

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

8 years agoDoc: pdf illustration
halcanary [Wed, 16 Mar 2016 17:19:33 +0000 (10:19 -0700)]
Doc: pdf illustration

TBR=
NOTRY=true

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

8 years agoRevert of Use std::unique_ptr. (patchset #10 id:170001 of https://codereview.chromium...
mtklein [Wed, 16 Mar 2016 17:03:14 +0000 (10:03 -0700)]
Revert of Use std::unique_ptr. (patchset #10 id:170001 of https://codereview.chromium.org/1780933003/ )

Reason for revert:
aww jeez, I dropped ps 8...

Original issue's description:
> Use std::unique_ptr.
>
> TBR=reed@google.com
>
> Committed: https://skia.googlesource.com/skia/+/20c1e3abfc681771f73eb19fde7284196e028940
>
> Committed: https://skia.googlesource.com/skia/+/3dd9ed37c24611af86f0fe374bd3698b63f09450
> GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1780933003
>
> Committed: https://skia.googlesource.com/skia/+/2691d76a06e1af6282f8b3a3140cc93361be10c4

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

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

8 years agoAdd SkSpecialImage::extractSubset & NewFromPixmap
robertphillips [Wed, 16 Mar 2016 16:47:08 +0000 (09:47 -0700)]
Add SkSpecialImage::extractSubset & NewFromPixmap

This is calved off of: https://codereview.chromium.org/1785643003/ (Switch SkBlurImageFilter over to new onFilterImage interface)

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

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

8 years agoCleanup download scripts related to new Android NDK.
djsollen [Wed, 16 Mar 2016 15:48:58 +0000 (08:48 -0700)]
Cleanup download scripts related to new Android NDK.
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1810603002

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

8 years agoUse std::unique_ptr.
mtklein [Wed, 16 Mar 2016 15:39:41 +0000 (08:39 -0700)]
Use std::unique_ptr.

TBR=reed@google.com

Committed: https://skia.googlesource.com/skia/+/20c1e3abfc681771f73eb19fde7284196e028940

Committed: https://skia.googlesource.com/skia/+/3dd9ed37c24611af86f0fe374bd3698b63f09450
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1780933003

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

8 years agoSplit uninteresting hash lines correctly on Windows.
mtklein [Wed, 16 Mar 2016 15:37:19 +0000 (08:37 -0700)]
Split uninteresting hash lines correctly on Windows.

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

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

8 years agoBegin tracking GL_TEXTURE_ and GL_DRAW_INDIRECT_ buffer bindings
cdalton [Wed, 16 Mar 2016 14:48:20 +0000 (07:48 -0700)]
Begin tracking GL_TEXTURE_ and GL_DRAW_INDIRECT_ buffer bindings

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

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

8 years agopass cap to dash text
caryclark [Wed, 16 Mar 2016 14:34:02 +0000 (07:34 -0700)]
pass cap to dash text

Pass the paint cap parameter through to text rendering so
that dashed text draws correctly.

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

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

8 years agoFix compile on Windows swarming bot
borenet [Wed, 16 Mar 2016 14:27:05 +0000 (07:27 -0700)]
Fix compile on Windows swarming bot

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

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

8 years agoAdd CMake builder to CQ
borenet [Wed, 16 Mar 2016 14:07:25 +0000 (07:07 -0700)]
Add CMake builder to CQ

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

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

8 years agoadd missing API
caryclark [Wed, 16 Mar 2016 13:51:55 +0000 (06:51 -0700)]
add missing API

SkMemoryWStream needs SK_API to be accessible from PDFium.

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

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

8 years agoCreate new buffer (if necessary) on vkMap
jvanverth [Wed, 16 Mar 2016 13:47:39 +0000 (06:47 -0700)]
Create new buffer (if necessary) on vkMap

The assumption here is that we only read via a Map after we
sync the command buffer, and that when writing we don't Map
to update, but to overwrite. This appears to be true.

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

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

8 years agoskip stroke outset of all teeny lines
caryclark [Wed, 16 Mar 2016 13:46:50 +0000 (06:46 -0700)]
skip stroke outset of all teeny lines

Allow a small amount of slop when seeing
if the previous moveTo and subsequent lineTo
are the same.

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

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

8 years agoGoogle3 apps are still using Create* shader methods.
mtklein [Wed, 16 Mar 2016 13:34:59 +0000 (06:34 -0700)]
Google3 apps are still using Create* shader methods.

This may need to go in DEFINES_ALL,
but definitely needs to affect the main _UNIX builds.

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

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

8 years agoUpdate to new DNG SDK: Integrate integer overflow fixes
yujieqin [Wed, 16 Mar 2016 12:57:38 +0000 (05:57 -0700)]
Update to new DNG SDK: Integrate integer overflow fixes

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

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

8 years agoFix Google3 build by updating pdf path after https://codereview.chromium.org/1781773002
benjaminwagner [Mon, 14 Mar 2016 22:21:12 +0000 (15:21 -0700)]
Fix Google3 build by updating pdf path after https://codereview.chromium.org/1781773002

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

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

8 years agoReland of "Finish conversion to sk_sp<SkShader> (patchset #2 id:20001 of https:/...
reed [Mon, 14 Mar 2016 19:22:10 +0000 (12:22 -0700)]
Reland of "Finish conversion to sk_sp<SkShader> (patchset #2 id:20001 of https://codereview.chromium.org/1803763002/ )"

This reverts commit 106e10ddff5d473dc81dd1ce8ade615585ea609b.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1803783002
CQ_EXTRA_TRYBOTS=client.skia.compile:Build-Ubuntu-GCC-x86_64-Release-CMake-Trybot,Build-Mac-Clang-x86_64-Release-CMake-Trybot

TBR=

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

8 years agoRevert of Finish conversion to sk_sp<SkShader> (patchset #2 id:20001 of https://coder...
reed [Mon, 14 Mar 2016 18:53:07 +0000 (11:53 -0700)]
Revert of Finish conversion to sk_sp<SkShader> (patchset #2 id:20001 of https://codereview.chromium.org/1803763002/ )

Reason for revert:
need to update cmake build example

Original issue's description:
> Finish conversion to sk_sp<SkShader>
>
> GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1803763002
>
> TBR=
>
> Committed: https://skia.googlesource.com/skia/+/15c3a0e55bd9134dace0ace2fffb855a0f09542f

TBR=
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true

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

8 years agoFinish conversion to sk_sp<SkShader>
reed [Mon, 14 Mar 2016 18:42:58 +0000 (11:42 -0700)]
Finish conversion to sk_sp<SkShader>

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

TBR=

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

8 years agoSkPDF: remove all globally references SkPDFObjects
halcanary [Mon, 14 Mar 2016 01:30:24 +0000 (18:30 -0700)]
SkPDF: remove all globally references SkPDFObjects

Move these singletons into SkPDFCanon (there is still a single object
per document; output PDF size will not change).

Motivation: After this change, all indirectly-referenced SkPDFObjects
are serialized exactly once.  The next CL will add a memory saving
feature: a method to purge an object's resources immediately after
serialization.  After that, further changes wil allow some objects to be
serialized *before* SkDocument::close(), leading to potentially very
large memory savings.

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

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

8 years agoReland of "more shader-->sp conversions (patchset #5 id:80001 of https://codereview...
reed [Sun, 13 Mar 2016 21:13:58 +0000 (14:13 -0700)]
Reland of "more shader-->sp conversions (patchset #5 id:80001 of https://codereview.chromium.org/1789633002/ )"

This reverts commit 9283d20afc27571f7a871d1bd1100dd5df584941.

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

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

8 years agoRevert of more shader-->sp conversions (patchset #5 id:80001 of https://codereview...
reed [Sun, 13 Mar 2016 20:01:57 +0000 (13:01 -0700)]
Revert of more shader-->sp conversions (patchset #5 id:80001 of https://codereview.chromium.org/1789633002/ )

Reason for revert:
seems to have changed pictureshadertile

Original issue's description:
> more shader-->sp conversions
>
> BUG=skia:
> GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1789633002
>
> Committed: https://skia.googlesource.com/skia/+/ce563cdd48ec7ce4e0420dd88760df9be9dba50c

TBR=fmalita@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/1790353002

8 years agomore shader-->sp conversions
reed [Sun, 13 Mar 2016 19:32:36 +0000 (12:32 -0700)]
more shader-->sp conversions

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

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