platform/upstream/libSkiaSharp.git
8 years agoRemove SK_IGNORE_MAC_FONT_WEIGHT_FIX.
bungeman [Mon, 28 Mar 2016 18:24:04 +0000 (11:24 -0700)]
Remove SK_IGNORE_MAC_FONT_WEIGHT_FIX.

This is now a dead define, and the changes have been rebased in both
Skia gold and Blink layout tests.

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

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

8 years agoTemporary fix for --preAbandonGpuContext bug
robertphillips [Mon, 28 Mar 2016 18:07:43 +0000 (11:07 -0700)]
Temporary fix for --preAbandonGpuContext bug

In this instance what is going wrong is:
  the context gets abandoned
  SkCanvas tries to create a new SkGpuDevice (which fails)
  if then creates a bitmap device
  it then attempts to draw the abandoned GrTexture (behind the old SkGpuDevice into the new bitmap device with an image filter
  b.c. some image filters still switch their behavior based on the presence of a texture bad stuff happens

This used to be resolved by the new bitmap device getting forced down the bitmap path and then failing when it attempted to readback the GrTexture.

BUG=skia:5138

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

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

8 years agoMake SkFixed private.
benjaminwagner [Mon, 28 Mar 2016 17:32:05 +0000 (10:32 -0700)]
Make SkFixed private.

Removed from Chromium in https://codereview.chromium.org/1698083004 and https://codereview.chromium.org/1752953003.

Removed from Android in 895781.

Removed from Google3 in internal cl/118359061.

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

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

8 years agoSkip toolchain downloads for a few android tools.
rmistry [Mon, 28 Mar 2016 16:35:41 +0000 (09:35 -0700)]
Skip toolchain downloads for a few android tools.

This is an attempt to avoid downloading the android toolchain when not required.
I went through all binaries listed in https://code.google.com/p/chromium/codesearch#chromium/build/scripts/slave/recipe_modules/skia/android_flavor.py except for android_ninja.

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

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

8 years agorm src/ports/SkTime_*.cpp
halcanary [Mon, 28 Mar 2016 16:00:22 +0000 (09:00 -0700)]
rm src/ports/SkTime_*.cpp
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1833283002

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

8 years agoSkPDF s/SkAutoTDelete/std::unique_ptr/
halcanary [Mon, 28 Mar 2016 14:58:30 +0000 (07:58 -0700)]
SkPDF s/SkAutoTDelete/std::unique_ptr/

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

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

8 years agoAdd WSI functions to GrVkInterface
jvanverth [Mon, 28 Mar 2016 14:03:06 +0000 (07:03 -0700)]
Add WSI functions to GrVkInterface

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

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

8 years agoUpdate SKP version
update-skps [Sun, 27 Mar 2016 07:30:19 +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=1835193002

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

8 years agoDon't crash when resource path is omitted
Brian Salomon [Sat, 26 Mar 2016 01:38:09 +0000 (21:38 -0400)]
Don't crash when resource path is omitted

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

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

8 years agorm src/animator/SkTime.cpp
halcanary [Fri, 25 Mar 2016 22:22:47 +0000 (15:22 -0700)]
rm src/animator/SkTime.cpp

It was empty anyway.

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

8 years agoSkPDF: remove margin foolishness
halcanary [Fri, 25 Mar 2016 21:44:33 +0000 (14:44 -0700)]
SkPDF: remove margin foolishness

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

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

8 years agoDon't crash when resource path isn't specified
Brian Salomon [Fri, 25 Mar 2016 21:02:20 +0000 (17:02 -0400)]
Don't crash when resource path isn't specified

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

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

8 years agoRemove Sk48Dot16. No longer used.
benjaminwagner [Fri, 25 Mar 2016 20:41:38 +0000 (13:41 -0700)]
Remove Sk48Dot16. No longer used.

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

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

8 years agoRe-enable CPU mipmap generation for Ganesh. Aniso mips were landed a while ago. Howev...
brianosman [Fri, 25 Mar 2016 20:03:03 +0000 (13:03 -0700)]
Re-enable CPU mipmap generation for Ganesh. Aniso mips were landed a while ago. However, the CPU builder fails when it sees Index8 (among other things), so change the code to fallback to GPU in that case. Additionally, if we're going to be mipping an sRGB image, don't use the CPU code (which is not yet gamma correct). Unfortunately, this means that we will often be using the GPU path, still - with recent codec changes, most images are coming in tagged as sRGB.

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

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

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

8 years agoChange SkTime::GetMSecs to double; ensure values stored in SkMSec do not overflow.
benjaminwagner [Fri, 25 Mar 2016 19:59:53 +0000 (12:59 -0700)]
Change SkTime::GetMSecs to double; ensure values stored in SkMSec do not overflow.

The following are currently unused in Android, Google3, Chromium, and Mozilla:
  - SkEvent
  - SkTime::GetMSecs
  - SK_TIME_FACTOR (also unused in Skia)
  - SkAutoTime

I left uses of SkMSec more-or-less intact for SkEvent, SkAnimator, and SkInterpolator. SkInterpolator is used in Chromium, so I did not want to change the API. The views/ and animator/ code is crufty, so it didn't seem worthwhile to refactor it. Instead, I added SkEvent::GetMSecsSinceStartup, which is likely to be adequate for use in SampleApp.

I also left SkMSec where it is used to measure a duration rather than a timestamp. With the exception of SkMovie, which is used in Android, all of the uses appear to measure the execution time of a piece of code, which I would hope does not exceed 2^31 milliseconds.

Added skiatest::Timer to support a common idiom in tests where we want to measure the wallclock time in integer milliseconds. (Not used in tests/PathOpsSkpClipTest.cpp because it redefines things in Test.h.)

Removed tabs in tests/StrokerTest.cpp.

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

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

8 years agoSkMipMap::Build supports 1xN and Nx1 inputs, so remove the special case from the...
brianosman [Fri, 25 Mar 2016 19:55:52 +0000 (12:55 -0700)]
SkMipMap::Build supports 1xN and Nx1 inputs, so remove the special case from the test harness. Update a no-longer-correct comment.

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

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

8 years agoConsolidate GPU buffer implementations
cdalton [Fri, 25 Mar 2016 19:15:03 +0000 (12:15 -0700)]
Consolidate GPU buffer implementations

Consolidates all the different buffer implementations into a single
GrBuffer class. This will allow us to add new buffer types, use DSA in
OpenGL, track buffer bindings by unique ID, cache buffers without
respect to the type of data they have been used for previously, etc.
This change is strictly a refactor; it introduces no change in
functionality.

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

Committed: https://skia.googlesource.com/skia/+/8b1bff29675afd25843439eade634a57f68fe16f

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

8 years agoCompile default SkMovie on cmake
msarett [Fri, 25 Mar 2016 19:13:17 +0000 (12:13 -0700)]
Compile default SkMovie on cmake

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1835033002
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/1835033002

8 years agoMove SkRWBuffer.h to include/ and add SK_API
scroggo [Fri, 25 Mar 2016 19:00:14 +0000 (12:00 -0700)]
Move SkRWBuffer.h to include/ and add SK_API

Needed for use in Blink in crrev.com/1812273003
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1838463003

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

8 years agoSkPDF: draw{Image,Bitmap} always serializes early
halcanary [Fri, 25 Mar 2016 18:57:49 +0000 (11:57 -0700)]
SkPDF: draw{Image,Bitmap} always serializes early

Before this change, the PDFCanon held a map from BitmapKeys
to SkImages for de-duping bitmaps.  Even if the PDFDocument
serialized images early, the Canon still held a ref to that
image inside the map.  With this change, the Canon holds a
single map from BitmapKeys to PDFObjects.  Now, Images are
only held by the PDFObject, which the document serializes
and drops early.

This change also:

-   Moves SkBitmapKey into its own header (for possible
    reuse); it now can operate with images as well as
    bitmaps.

-   Creates SkImageBitmap, which wraps a pointer to a bitmap
    or an image and abstracts out some common tasks so that
    drawBitmap and drawImage behave the same.

-   Modifies SkPDFCreateBitmapObject to take and return a
    sk_sp<T>, not a T*.

-   Refactors SkPDFDevice::internalDrawImage to use bitmaps
    or images (via a SkImageBitmap).

-   Turns on pre-serialization of all images.

BUG=skia:5087

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

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

8 years agoRevert of Re-enable CPU mipmap generation for Ganesh. Aniso mips were landed a while...
brianosman [Fri, 25 Mar 2016 18:54:32 +0000 (11:54 -0700)]
Revert of Re-enable CPU mipmap generation for Ganesh. Aniso mips were landed a while ago. However, the CPU bu… (patchset #1 id:1 of https://codereview.chromium.org/1835003002/ )

Reason for revert:
Speculative - seems likely to be the results of nanobench crashes on several bots.

Original issue's description:
> Re-enable CPU mipmap generation for Ganesh. Aniso mips were landed a while ago. However, the CPU builder fails when it sees Index8 (among other things), so change the code to fallback to GPU in that case. Additionally, if we're going to be mipping an sRGB image, don't use the CPU code (which is not yet gamma correct). Unfortunately, this means that we will often be using the GPU path, still - with recent codec changes, most images are coming in tagged as sRGB.
>
> BUG=skia:
> GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1835003002
>
> Committed: https://skia.googlesource.com/skia/+/b0ac1af7fab467aacbc27d20d14a09bcb960472f

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

8 years agoexperimental/fiddle: update to work again
halcanary [Fri, 25 Mar 2016 18:29:34 +0000 (11:29 -0700)]
experimental/fiddle: update to work again

NOTRY=true

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

8 years agoRe-enable CPU mipmap generation for Ganesh. Aniso mips were landed a while ago. Howev...
brianosman [Fri, 25 Mar 2016 18:26:26 +0000 (11:26 -0700)]
Re-enable CPU mipmap generation for Ganesh. Aniso mips were landed a while ago. However, the CPU builder fails when it sees Index8 (among other things), so change the code to fallback to GPU in that case. Additionally, if we're going to be mipping an sRGB image, don't use the CPU code (which is not yet gamma correct). Unfortunately, this means that we will often be using the GPU path, still - with recent codec changes, most images are coming in tagged as sRGB.

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

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

8 years agoDon't convert to Sk48Dot16 in DrawOneGlyph.
benjaminwagner [Fri, 25 Mar 2016 18:24:30 +0000 (11:24 -0700)]
Don't convert to Sk48Dot16 in DrawOneGlyph.

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

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

8 years agoRemove extra definitions of SkMovie
msarett [Fri, 25 Mar 2016 18:08:14 +0000 (11:08 -0700)]
Remove extra definitions of SkMovie

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

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

8 years agogot Vulkan compiling on Linux again
ethannicholas [Fri, 25 Mar 2016 18:04:06 +0000 (11:04 -0700)]
got Vulkan compiling on Linux again
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1834953003

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

8 years agoDelete SkPageFlipper
msarett [Fri, 25 Mar 2016 17:31:22 +0000 (10:31 -0700)]
Delete SkPageFlipper

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

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

8 years agoTurn off Discardable scaled image cache
robertphillips [Fri, 25 Mar 2016 16:48:45 +0000 (09:48 -0700)]
Turn off Discardable scaled image cache

This change accidentally slipped into the checked in version of https://codereview.chromium.org/1785643003/ (Switch SkBlurImageFilter over to new onFilterImage interface). It is the reason why we're seeing performance improvements on Android and Ubuntu for the ugamsolutions skp (and others).

I guess the real question is, since it isn't crashing, do we want to leave it enabled?

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

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

8 years agoForward serial (fixes charging)
kjlubick [Fri, 25 Mar 2016 16:47:55 +0000 (09:47 -0700)]
Forward serial (fixes charging)

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

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

8 years agoadded support for glMinSampleShading
ethannicholas [Fri, 25 Mar 2016 16:26:03 +0000 (09:26 -0700)]
added support for glMinSampleShading
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1812223002

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

8 years agoFix typo in SkTLazy copy ctor. src is a reference, not a pointer.
mtklein [Fri, 25 Mar 2016 16:11:35 +0000 (09:11 -0700)]
Fix typo in SkTLazy copy ctor.  src is a reference, not a pointer.

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

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

8 years agomove setshader to sk_sp, re-using SK_SUPPORT_LEGACY_CREATESHADER_PTR
reed [Fri, 25 Mar 2016 16:08:00 +0000 (09:08 -0700)]
move setshader to sk_sp, re-using SK_SUPPORT_LEGACY_CREATESHADER_PTR

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

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

8 years ago[CMake fixes] Linux X11 pixel format and Windows compilation fix
marco.diiga [Fri, 25 Mar 2016 16:01:26 +0000 (09:01 -0700)]
[CMake fixes] Linux X11 pixel format and Windows compilation fix

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

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

8 years agoRename encoders to Sk*ImageEncoder
msarett [Fri, 25 Mar 2016 15:58:55 +0000 (08:58 -0700)]
Rename encoders to Sk*ImageEncoder

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1836493002
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/1836493002

8 years agoFix old debugger for sk_sp changes
robertphillips [Fri, 25 Mar 2016 14:04:35 +0000 (07:04 -0700)]
Fix old debugger for sk_sp changes
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1827403002

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

8 years agoRevise layer, extension and feature setup for Vulkan
jvanverth [Fri, 25 Mar 2016 13:29:52 +0000 (06:29 -0700)]
Revise layer, extension and feature setup for Vulkan

Moves all the extension setup logic into GrVkBackendContext, and
pass extension and feature information to Skia via flags. Also adds
version information to GrVkBackendContext.

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

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

8 years agoRequire sRGB write control for sRGB support. Add flag to GrPaint to suppress linear...
brianosman [Fri, 25 Mar 2016 13:01:59 +0000 (06:01 -0700)]
Require sRGB write control for sRGB support. Add flag to GrPaint to suppress linear -> sRGB conversion on write. Use that to fix YUV conversion, which directly produces sRGB data. (Technically, it produces data in whatever the color space of the JPEG might be).

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

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

8 years agopatch battery charging until recipe is updated
kjlubick [Fri, 25 Mar 2016 12:53:57 +0000 (05:53 -0700)]
patch battery charging until recipe is updated

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

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

8 years agoSkPDF: speed up SkPDFShader generation.
halcanary [Fri, 25 Mar 2016 12:52:57 +0000 (05:52 -0700)]
SkPDF: speed up SkPDFShader generation.

Stop using SkString::append() when SkDynamicMemoryWStream
works better.

Also add a bench to prove that this speeds things up:
    before:
        micros    bench
         59.33 ? PDFShader nonrendering
    after:
        micros    bench
         34.55 ? PDFShader nonrendering
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1833793002

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

8 years agoSplitting up wait_for_device into two pieces
kjlubick [Fri, 25 Mar 2016 12:22:40 +0000 (05:22 -0700)]
Splitting up wait_for_device into two pieces

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

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

8 years agoRevert of Consolidate GPU buffer implementations (patchset #10 id:180001 of https...
robertphillips [Fri, 25 Mar 2016 11:55:58 +0000 (04:55 -0700)]
Revert of Consolidate GPU buffer implementations (patchset #10 id:180001 of https://codereview.chromium.org/1825393002/ )

Reason for revert:
Lots of Android redness

Original issue's description:
> Consolidate GPU buffer implementations
>
> Consolidates all the different buffer implementations into a single
> GrBuffer class. This will allow us to add new buffer types, use DSA in
> OpenGL, track buffer bindings by unique ID, cache buffers without
> respect to the type of data they have been used for previously, etc.
> This change is strictly a refactor; it introduces no change in
> functionality.
>
> BUG=skia:
> GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1825393002
>
> Committed: https://skia.googlesource.com/skia/+/8b1bff29675afd25843439eade634a57f68fe16f

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

8 years agoSwitch SkMorphologyImageFilter over to new onFilterImage interface
robertphillips [Fri, 25 Mar 2016 11:49:22 +0000 (04:49 -0700)]
Switch SkMorphologyImageFilter over to new onFilterImage interface

This now relies on: https://codereview.chromium.org/1826233002/ (Add rowBytesAsPixels and shiftPerPixel to SkPixmap)

TBR=bsalomon@google.com

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

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

8 years agoConsolidate GPU buffer implementations
cdalton [Fri, 25 Mar 2016 08:54:54 +0000 (01:54 -0700)]
Consolidate GPU buffer implementations

Consolidates all the different buffer implementations into a single
GrBuffer class. This will allow us to add new buffer types, use DSA in
OpenGL, track buffer bindings by unique ID, cache buffers without
respect to the type of data they have been used for previously, etc.
This change is strictly a refactor; it introduces no change in
functionality.

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

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

8 years agoChange type of SkGlyph::fAdvance[XY] to float.
benjaminwagner [Fri, 25 Mar 2016 02:07:58 +0000 (19:07 -0700)]
Change type of SkGlyph::fAdvance[XY] to float.

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

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

8 years agoAdd getDeferredTextureImageData early out
ericrk [Thu, 24 Mar 2016 22:35:45 +0000 (15:35 -0700)]
Add getDeferredTextureImageData early out

Currently, when dealing with deferred texture image data, we will decode the image even if it will later fail to
upload to the GPU due to size constraints.

This change adds an early out to our initial decode /
sizing logic.

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

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

8 years agoIgnore sampleapp_prefs.txt in git.
brianosman [Thu, 24 Mar 2016 19:20:01 +0000 (12:20 -0700)]
Ignore sampleapp_prefs.txt in git.

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

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

8 years agoDraw black on white for CG glyph masks.
bungeman [Thu, 24 Mar 2016 18:27:05 +0000 (11:27 -0700)]
Draw black on white for CG glyph masks.

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

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

8 years agoAdd rowBytesAsPixels and shiftPerPixel to SkPixmap
robertphillips [Thu, 24 Mar 2016 18:21:25 +0000 (11:21 -0700)]
Add rowBytesAsPixels and shiftPerPixel to SkPixmap

This is intended to make it easier to manipulate SkBitmaps and SkPixmaps in a parallel manner (e.g., in https://codereview.chromium.org/1819393002/ (Switch SkMorphologyImageFilter over to new onFilterImage interface))

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

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

8 years agoRelocate SK_SUPPORT_LEGACY_PICTURE_PTR
fmalita [Thu, 24 Mar 2016 18:05:28 +0000 (11:05 -0700)]
Relocate SK_SUPPORT_LEGACY_PICTURE_PTR

Move to platform-specific defines.

(Chromium already has this guard)

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

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

8 years agoDelete SkImageDecoder
msarett [Thu, 24 Mar 2016 17:41:47 +0000 (10:41 -0700)]
Delete SkImageDecoder

This image decoding implementation has been replaced
by SkCodec in Android.

Additionally, we have replaced uses of SkImageDecoder
in Skia and Google3 with uses of SkCodec.

Now we can delete SkImageDecoder :).

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

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

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

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

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

8 years agoBlacklist giant (4k) wbmp from GPU bots.
brianosman [Thu, 24 Mar 2016 17:33:42 +0000 (10:33 -0700)]
Blacklist giant (4k) wbmp from GPU bots.

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

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

8 years agoSk4x4f: NEON impl.
mtklein [Thu, 24 Mar 2016 17:12:37 +0000 (10:12 -0700)]
Sk4x4f: NEON impl.

Notable tricks:
  - v{ld,st}4q_f32 handle transposing loads and stores of floats in one step
  - vcvtq_n_{f32_u32,u32_f32} let us do conversion to and from floats without shifts

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

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

8 years agoRemove debug prints in GrVkGpu
egdaniel [Thu, 24 Mar 2016 16:50:58 +0000 (09:50 -0700)]
Remove debug prints in GrVkGpu

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

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

8 years agoimages with offset bitmap don't share genid
halcanary [Thu, 24 Mar 2016 16:18:14 +0000 (09:18 -0700)]
images with offset bitmap don't share genid

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

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

8 years agoFix debugger w.r.t. sk_sp changes
robertphillips [Thu, 24 Mar 2016 15:29:40 +0000 (08:29 -0700)]
Fix debugger w.r.t. sk_sp changes

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

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

8 years agoDon't force lcd on non-opaque portion of layer.
bungeman [Thu, 24 Mar 2016 15:17:55 +0000 (08:17 -0700)]
Don't force lcd on non-opaque portion of layer.

SkCanvas::saveLayerPreserveLCDTextRequests allows for lcd in layers but
forces the user to ensure that the lcd text is only drawn on opaque parts
of the layer. Otherwise the behavior is more or less undefined. This GM
did this on purpose to demonstrate, but it turns out this is unstable and
depends on the alignment of the glyph masks in CPU. Since we don't support
this mode anyway, drop it from the gm.

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

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

8 years agoAdd missing SK_API to SkSwizzle.h
tomhudson [Thu, 24 Mar 2016 14:50:14 +0000 (07:50 -0700)]
Add missing SK_API to SkSwizzle.h
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1828733003

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

8 years agohttps://codereview.chromium.org/1830973002 fixed this bug. Re-enable the
brianosman [Thu, 24 Mar 2016 14:27:43 +0000 (07:27 -0700)]
https://codereview.chromium.org/1830973002 fixed this bug. Re-enable the
tests and remove comments referencing it.

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

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

8 years agoSwitch new SkImageFilter internal methods over to sk_sp
robertphillips [Thu, 24 Mar 2016 14:26:32 +0000 (07:26 -0700)]
Switch new SkImageFilter internal methods over to sk_sp

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

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

8 years agoConvert Gray8 images to N32 before uploading. Previously, we were
brianosman [Thu, 24 Mar 2016 13:56:32 +0000 (06:56 -0700)]
Convert Gray8 images to N32 before uploading. Previously, we were
treating them as Alpha8, which was wrong. Fixes incorrect images on the
filterbitmap_image_mandrill_64.png_g8 GM.

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

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

8 years agoNDK: r11 -> r11b
mtklein [Thu, 24 Mar 2016 13:44:03 +0000 (06:44 -0700)]
NDK: r11 -> r11b

Just bug fixes.  Nothing terribly exciting.

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

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

8 years agoSwitch SkColorFilterImageFilter over to new onFilterImage interface
robertphillips [Thu, 24 Mar 2016 13:31:25 +0000 (06:31 -0700)]
Switch SkColorFilterImageFilter over to new onFilterImage interface

TBR=bsalomon@google.com

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

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

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

8 years agoSwitch SkBlurImageFilter over to new onFilterImage interface
robertphillips [Thu, 24 Mar 2016 12:01:23 +0000 (05:01 -0700)]
Switch SkBlurImageFilter over to new onFilterImage interface

This CL relies on:
https://codereview.chromium.org/1787883002/ (Add SkSpecialImage::extractSubset & NewFromPixmap)
https://codereview.chromium.org/1808743003/ (Allow SkGpuDevice::drawSprite to handle subset SkBitmaps)
https://codereview.chromium.org/1813813002/ (Add SkSpecialImage::makeTextureImage entry point)

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

Committed: https://skia.googlesource.com/skia/+/3c935bc87020bfd19a08922f7394db3a801d168b

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

8 years agoRevert of Delete SkImageDecoder (patchset #9 id:150001 of https://codereview.chromium...
msarett [Thu, 24 Mar 2016 11:45:39 +0000 (04:45 -0700)]
Revert of Delete SkImageDecoder (patchset #9 id:150001 of https://codereview.chromium.org/1820503002/ )

Reason for revert:
Roll still failing

Original issue's description:
> Delete SkImageDecoder
>
> This image decoding implementation has been replaced
> by SkCodec in Android.
>
> Additionally, we have replaced uses of SkImageDecoder
> in Skia and Google3 with uses of SkCodec.
>
> Now we can delete SkImageDecoder :).
>
> BUG=skia:
> GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1820503002
> CQ_EXTRA_TRYBOTS=client.skia.compile:Build-Ubuntu-GCC-x86_64-Release-CMake-Trybot,Build-Mac-Clang-x86_64-Release-CMake-Trybot
>
> Committed: https://skia.googlesource.com/skia/+/f799706656f2581c5bf5510d94df3fa17cce1607
>
> Committed: https://skia.googlesource.com/skia/+/5b6e73e0c8282c4d85accbfbcecc6dee84f8a1eb
>
> Committed: https://skia.googlesource.com/skia/+/f037fdebda2a2626e6512d7532063f2cd41a264d

TBR=scroggo@google.com,djsollen@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/1830943002

8 years agoDelete SkImageDecoder
msarett [Thu, 24 Mar 2016 02:19:28 +0000 (19:19 -0700)]
Delete SkImageDecoder

This image decoding implementation has been replaced
by SkCodec in Android.

Additionally, we have replaced uses of SkImageDecoder
in Skia and Google3 with uses of SkCodec.

Now we can delete SkImageDecoder :).

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

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

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

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

8 years agoswitch surface to sk_sp
reed [Thu, 24 Mar 2016 01:59:25 +0000 (18:59 -0700)]
switch surface to sk_sp

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1817383002
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/1817383002

8 years agoRevert of Delete SkImageDecoder (patchset #8 id:130001 of https://codereview.chromium...
msarett [Thu, 24 Mar 2016 01:52:40 +0000 (18:52 -0700)]
Revert of Delete SkImageDecoder (patchset #8 id:130001 of https://codereview.chromium.org/1820503002/ )

Reason for revert:
Testing the roll - it's still failing

Original issue's description:
> Delete SkImageDecoder
>
> This image decoding implementation has been replaced
> by SkCodec in Android.
>
> Additionally, we have replaced uses of SkImageDecoder
> in Skia and Google3 with uses of SkCodec.
>
> Now we can delete SkImageDecoder :).
>
> BUG=skia:
> GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1820503002
> CQ_EXTRA_TRYBOTS=client.skia.compile:Build-Ubuntu-GCC-x86_64-Release-CMake-Trybot,Build-Mac-Clang-x86_64-Release-CMake-Trybot
>
> Committed: https://skia.googlesource.com/skia/+/f799706656f2581c5bf5510d94df3fa17cce1607
>
> Committed: https://skia.googlesource.com/skia/+/5b6e73e0c8282c4d85accbfbcecc6dee84f8a1eb

TBR=scroggo@google.com,djsollen@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/1828433004

8 years agoDelete SkImageDecoder
msarett [Thu, 24 Mar 2016 01:10:14 +0000 (18:10 -0700)]
Delete SkImageDecoder

This image decoding implementation has been replaced
by SkCodec in Android.

Additionally, we have replaced uses of SkImageDecoder
in Skia and Google3 with uses of SkCodec.

Now we can delete SkImageDecoder :).

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

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

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

8 years agoRevert of Switch SkColorFilterImageFilter over to new onFilterImage interface (patchs...
robertphillips [Wed, 23 Mar 2016 23:38:05 +0000 (16:38 -0700)]
Revert of Switch SkColorFilterImageFilter over to new onFilterImage interface (patchset #5 id:80001 of https://codereview.chromium.org/1782083002/ )

Reason for revert:
seems to be breaking the 10k skp bot

Original issue's description:
> Switch SkColorFilterImageFilter over to new onFilterImage interface
>
> TBR=bsalomon@google.com
>
> GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1782083002
>
> Committed: https://skia.googlesource.com/skia/+/ec950c4d215c6141b31b98ed6a8182a97baeb8b9

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

8 years agoAdd index-8 sampler to the pipeline.
herb [Wed, 23 Mar 2016 22:14:23 +0000 (15:14 -0700)]
Add index-8 sampler to the pipeline.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1829883002

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

8 years agoMake GrGLGetDriverInfo work for null strings.
bsalomon [Wed, 23 Mar 2016 21:55:21 +0000 (14:55 -0700)]
Make GrGLGetDriverInfo work for null strings.

The media unit tests in Chromium use a test context that returns nullptr for its vendor/renderer strings.

TBR=robertphillips@google.com

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

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

8 years agoRevert of Switch SkBlurImageFilter over to new onFilterImage interface (patchset...
robertphillips [Wed, 23 Mar 2016 21:03:43 +0000 (14:03 -0700)]
Revert of Switch SkBlurImageFilter over to new onFilterImage interface (patchset #15 id:270001 of https://codereview.chromium.org/1785643003/ )

Reason for revert:
serialize-8888 broken for some reason

Original issue's description:
> Switch SkBlurImageFilter over to new onFilterImage interface
>
> This CL relies on:
> https://codereview.chromium.org/1787883002/ (Add SkSpecialImage::extractSubset & NewFromPixmap)
> https://codereview.chromium.org/1808743003/ (Allow SkGpuDevice::drawSprite to handle subset SkBitmaps)
> https://codereview.chromium.org/1813813002/ (Add SkSpecialImage::makeTextureImage entry point)
>
> GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1785643003
>
> Committed: https://skia.googlesource.com/skia/+/3c935bc87020bfd19a08922f7394db3a801d168b

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

8 years agoSet up cache in vulkan to reuse GrVkPrograms (aka VkPipelines)
egdaniel [Wed, 23 Mar 2016 20:49:40 +0000 (13:49 -0700)]
Set up cache in vulkan to reuse GrVkPrograms (aka VkPipelines)

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

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

8 years agoMake a generic list of filters for use in ImageFilterTests.
senorblanco [Wed, 23 Mar 2016 20:44:26 +0000 (13:44 -0700)]
Make a generic list of filters for use in ImageFilterTests.

Factor list of image filters out of one test for re-use elsewhere.
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1829913002

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

8 years agoforce no SSE on iOS simulator
mtklein [Wed, 23 Mar 2016 19:54:54 +0000 (12:54 -0700)]
force no SSE on iOS simulator

TBR=reed@google.com

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

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

8 years agoSwitch SkBlurImageFilter over to new onFilterImage interface
robertphillips [Wed, 23 Mar 2016 19:50:46 +0000 (12:50 -0700)]
Switch SkBlurImageFilter over to new onFilterImage interface

This CL relies on:
https://codereview.chromium.org/1787883002/ (Add SkSpecialImage::extractSubset & NewFromPixmap)
https://codereview.chromium.org/1808743003/ (Allow SkGpuDevice::drawSprite to handle subset SkBitmaps)
https://codereview.chromium.org/1813813002/ (Add SkSpecialImage::makeTextureImage entry point)

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

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

8 years agoPlanar ramp() for S32 linear gradients
fmalita [Wed, 23 Mar 2016 19:28:14 +0000 (12:28 -0700)]
Planar ramp() for S32 linear gradients

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

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

8 years agoRevert of Delete SkImageDecoder (patchset #7 id:110001 of https://codereview.chromium...
msarett [Wed, 23 Mar 2016 19:26:29 +0000 (12:26 -0700)]
Revert of Delete SkImageDecoder (patchset #7 id:110001 of https://codereview.chromium.org/1820503002/ )

Reason for revert:
Various problems

Original issue's description:
> Delete SkImageDecoder
>
> This image decoding implementation has been replaced
> by SkCodec in Android.
>
> Additionally, we have replaced uses of SkImageDecoder
> in Skia and Google3 with uses of SkCodec.
>
> Now we can delete SkImageDecoder :).
>
> BUG=skia:
> GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1820503002
> CQ_EXTRA_TRYBOTS=client.skia.compile:Build-Ubuntu-GCC-x86_64-Release-CMake-Trybot,Build-Mac-Clang-x86_64-Release-CMake-Trybot
>
> Committed: https://skia.googlesource.com/skia/+/f799706656f2581c5bf5510d94df3fa17cce1607

TBR=scroggo@google.com,djsollen@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/1830723002

8 years agoAdd unit test for vertex attribute count.
bsalomon [Wed, 23 Mar 2016 18:50:26 +0000 (11:50 -0700)]
Add unit test for vertex attribute count.

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

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

8 years agoDelete SkImageDecoder
msarett [Wed, 23 Mar 2016 18:28:09 +0000 (11:28 -0700)]
Delete SkImageDecoder

This image decoding implementation has been replaced
by SkCodec in Android.

Additionally, we have replaced uses of SkImageDecoder
in Skia and Google3 with uses of SkCodec.

Now we can delete SkImageDecoder :).

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1820503002
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/1820503002

8 years agofix path getSegment comment
caryclark [Wed, 23 Mar 2016 18:15:57 +0000 (11:15 -0700)]
fix path getSegment comment

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

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

8 years agoGrVkGpu initialization cleanup.
jvanverth [Wed, 23 Mar 2016 18:01:22 +0000 (11:01 -0700)]
GrVkGpu initialization cleanup.

Add GrVkBackendContext for GrVkGpu initialization
Add missing extension initialization
Use device function pointers rather than instance

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

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

8 years agoPublicly expose one accelerated swizzle.
tomhudson [Wed, 23 Mar 2016 17:51:20 +0000 (10:51 -0700)]
Publicly expose one accelerated swizzle.

SkOpts is intentionally internal, but we want to give Chrome access
to those pieces that would seriously benefit them.
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1822363002

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

8 years agoMake max number of vertex attributes be checked dynamically
bsalomon [Wed, 23 Mar 2016 17:40:53 +0000 (10:40 -0700)]
Make max number of vertex attributes be checked dynamically
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1822343002

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

8 years agoSk4x4f: Simplify x86 down to SSE2.
mtklein [Wed, 23 Mar 2016 16:52:13 +0000 (09:52 -0700)]
Sk4x4f: Simplify x86 down to SSE2.

  - This drops the minimum requirement for Sk4x4f on x86 to SSE2 by
    removing calls to _mm_shuffle_epi8().  Instead we use good old
    shifting and masking.

  - Performance is very similar to SSSE3, close enough I'm having trouble
    telling which is faster.  I think we should let ourselves circle back
    on whether we need an SSSE3 version later.  When possible it's nice
    to stick to SSE2: it's most available, and performs most uniformly
    across different chips.

This makes Sk4x4f fast on Windows and Linux, and may help mobile x86.

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

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

8 years agoSwitch SkColorFilterImageFilter over to new onFilterImage interface
robertphillips [Wed, 23 Mar 2016 16:42:12 +0000 (09:42 -0700)]
Switch SkColorFilterImageFilter over to new onFilterImage interface

TBR=bsalomon@google.com

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

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

8 years agoWIP: experimental bilerp pipeline.
herb [Wed, 23 Mar 2016 16:00:33 +0000 (09:00 -0700)]
WIP: experimental bilerp pipeline.

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

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

8 years agoGoogle3 Android no longer has undefok.
benjaminwagner [Wed, 23 Mar 2016 15:38:59 +0000 (08:38 -0700)]
Google3 Android no longer has undefok.

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

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

8 years agoWorkaround to set the sRGB flag on SkImageGenerator
msarett [Wed, 23 Mar 2016 13:50:59 +0000 (06:50 -0700)]
Workaround to set the sRGB flag on SkImageGenerator

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

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

8 years agoPort S32A_opaque blit row to SkOpts.
mtklein [Wed, 23 Mar 2016 13:29:12 +0000 (06:29 -0700)]
Port S32A_opaque blit row to SkOpts.

This should be a pixel-for-pixel (i.e. bug-for-bug) port.

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

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

8 years agoSkPDF: Hold page objects, not SkPDFDevices.
halcanary [Wed, 23 Mar 2016 13:26:31 +0000 (06:26 -0700)]
SkPDF: Hold page objects, not SkPDFDevices.

Page Contents:
    serialize early, at endPage()

SkPDFDocument:
   Rather than holding all SkPDFDevices until onClose(), store
   fGlyphUseage and array of pages objects.

perform_font_subsetting function removed:
   First half moved to onEndPage.
   Second half moved to onClose.

create_pdf_page function removed:
   Merged into onEndPage.

generate_page_tree:
   Refactored to use SkTArray<sk_sp<T>> over SkTDArray<T*>.
   (the former is explicit about ownership, the latter is unclear.)

   No longer populates a structure of objects to be dumped,
   unnecessary since dump is always called after serialization.
   Takes ownership of fPages and returns root of tree-ified version.
   Less reference churn.

SkPDFGlyphSetMap:
    use new-style iterator.

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

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

8 years agoSwitch SkDropShaderImageFilter over to new onFilterImage interface
robertphillips [Wed, 23 Mar 2016 12:00:01 +0000 (05:00 -0700)]
Switch SkDropShaderImageFilter over to new onFilterImage interface

TBR=bsalomon@google.com

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

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

8 years agoSwitch SkLocalMatrixImageFilter over to new onFilterImage interface
robertphillips [Wed, 23 Mar 2016 11:40:01 +0000 (04:40 -0700)]
Switch SkLocalMatrixImageFilter over to new onFilterImage interface

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

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

8 years agoUse Sk4x4f in srcover_srgb_dst_1.
mtklein [Wed, 23 Mar 2016 01:30:44 +0000 (18:30 -0700)]
Use Sk4x4f in srcover_srgb_dst_1.

I've also pulled out the common parts shared with sRGB srcover_n,
and rearranged to make the similarities a bit more clear.

This speeds up about 25%.

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

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

8 years agoRemove SK_SUPPORT_LEGACY_FILTERBOUNDS_RETURN.
senorblanco [Wed, 23 Mar 2016 00:32:59 +0000 (17:32 -0700)]
Remove SK_SUPPORT_LEGACY_FILTERBOUNDS_RETURN.

It's now-unused.

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

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

8 years agoSk4x4f
mtklein [Wed, 23 Mar 2016 00:17:44 +0000 (17:17 -0700)]
Sk4x4f

   An API for loading and storing 4 Sk4f with transpose.
   This has SSSE3+ and portable versions.
   SSE2 and NEON versions to follow.

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

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

8 years agoUse SkColorSpacePrintf instead of SkDebugf
msarett [Tue, 22 Mar 2016 21:30:27 +0000 (14:30 -0700)]
Use SkColorSpacePrintf instead of SkDebugf

TBR=reed@google.com

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

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

8 years agoFix borrowed GrVkImage::Resource.
jvanverth [Tue, 22 Mar 2016 20:15:44 +0000 (13:15 -0700)]
Fix borrowed GrVkImage::Resource.

With the current system, if we wrap a given GrVkTextureInfo*, add a
command using it to the command buffer, then delete the texture, the
command buffer will unref the GrVkImage::Resource when it's done, which
will delete the VkImage and VkDeviceMemory. This subclasses
GrVkImage::Resource for those cases, and will not delete the data on
an unref.
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1824123002

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

8 years agofix --threads 4, blacklist interlaced1,2,3 on GPU
mtklein [Tue, 22 Mar 2016 19:36:01 +0000 (12:36 -0700)]
fix --threads 4, blacklist interlaced1,2,3 on GPU

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

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

8 years agoRemove SkPixmap::release
robertphillips [Tue, 22 Mar 2016 19:20:15 +0000 (12:20 -0700)]
Remove SkPixmap::release

No longer need this for ImageFilters

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

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