Commit Graph

29007 Commits

Author SHA1 Message Date
Brian Osman
cf3dc299b9 Draw zero length subpaths in AA hairline path renderer
Bug: skia:6781
Change-Id: Ife0896ab45a47910273353f1269f62dbeda67ba0
Reviewed-on: https://skia-review.googlesource.com/20986
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
2017-06-28 21:15:35 +00:00
Mike Reed
e3ab061601 Revert "remove SK_SUPPORT_LEGACY_TILED_BITMAPS flag for android"
This reverts commit e5cb7c9a5e.

Reason for revert: 	BitmapDrawableTest.testPreloadDensity (android.graphics.drawable.cts.BitmapDrawableTest) 

Original change's description:
> remove SK_SUPPORT_LEGACY_TILED_BITMAPS flag for android
> 
> Bug: skia:
> Change-Id: Ic96de4227bf7a7f0b0a0413b104d206c36809048
> Reviewed-on: https://skia-review.googlesource.com/21109
> Reviewed-by: Mike Reed <reed@google.com>
> Commit-Queue: Mike Reed <reed@google.com>

TBR=djsollen@google.com,reed@google.com

Change-Id: Ia538b0cc07042bea7bc8dcc6859535e512da68cc
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: skia:
Reviewed-on: https://skia-review.googlesource.com/21161
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
2017-06-28 21:15:26 +00:00
Florin Malita
2e409009fb 2pt conical stage for focal-pt-on-edge case
When the focal point is on the edge of the end circle, the quadratic
equation devolves to linear.  Add a stage to handle this case.

As a complication, this case can produce "degenerate" values:

 1) t == NaN
 2) R(t) < 0

For these, we're supposed to draw transparent black - which means
overwriting the color from the gradient stage.  To support this, build
a 0/1 vector mask in the context, and apply it post-gradient-stage.

Change-Id: Ice4e3243abfd8c784bb810f6c310aed7a4ac7dc8
Reviewed-on: https://skia-review.googlesource.com/21111
Commit-Queue: Florin Malita <fmalita@chromium.org>
Reviewed-by: Mike Klein <mtklein@google.com>
2017-06-28 19:15:49 +00:00
Hal Canary
c02de0b844 SkPDF: Clean up
- Use clearMaskOnGraphicState()
  - SkPDFGraphicState::MakeNoSmaskGraphicState now moved to only caller.
  - Get rid of clunky SkPDFUtils::GetCachedT

Change-Id: If76a1e915fc31e3ce2654fbe620ff44c1820c0e7
Reviewed-on: https://skia-review.googlesource.com/21142
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
2017-06-28 19:09:09 +00:00
Eric Boren
89cd35795f Fix recipes/tests for new Debian bots
Bug: skia:6612
Change-Id: I2920bb7b1aa3ebb021223ed6345f13f1f9c8bc24
Reviewed-on: https://skia-review.googlesource.com/21141
Reviewed-by: Ben Wagner <benjaminwagner@google.com>
Commit-Queue: Eric Boren <borenet@google.com>
2017-06-28 18:46:16 +00:00
Robert Phillips
a4f792da37 Fix for Android batching bug
On Android it looks like we have:
   stencilClip1
   draw1
   stencilClip2
   draw2

where draw1 is being forward combined with draw2 b.c. they are both stencil clipped but it shouldn't b.c. they are different stencil clips.

Change-Id: Ia704d7ab869022a055eed0726e2b7fab8eaaf817
Reviewed-on: https://skia-review.googlesource.com/20977
Reviewed-by: Chris Dalton <csmartdalton@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
2017-06-28 18:26:06 +00:00
Mike Klein
c55a6cb05f build regenerating SkJumper stages into GN
I _think_ this makes it so changes to _stages.cpp or _lowp.cpp get
noticed, regenerated, and baked into Skia all in the same Ninja
invocation.

Now you just need to set up the tools we use in GN:

  skia_jumper_clang = ...
  skia_jumper_objdump = ...
  skia_jumper_ccache = ...

Change-Id: I09fb54d965644ff6e5825056fb0be2c7cab2ea92
Reviewed-on: https://skia-review.googlesource.com/21140
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Mike Klein <mtklein@chromium.org>
2017-06-28 18:22:16 +00:00
Stan Iliev
dbba55de70 Cache GrTexture in GrAHardwareBufferImageGenerator
Cache last GrTexture needed by onGenerateTexture. Make sure
GrTexture is destroyed by the thread that owns its GrContext.
This CL avoids frequent eglDestroyImageKHR calls, which can take
more than 7ms.

Bug: skia:
Change-Id: Ic8472e7e4c55c0f559d96e16845054dc54ec8efa
Reviewed-on: https://skia-review.googlesource.com/20989
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Stan Iliev <stani@google.com>
2017-06-28 17:56:46 +00:00
Mike Klein
c2d207603e clean up low-hanging swap_rb
There are two remaining swap_rb uses that both look non-trivial to
replace:
   - sampling out of index8 when the color table is bgra
   - table transforms on bgra inputs in SkColorSpaceXform

I don't think it's a big deal to just leave swap_rb around,
just a little sad.

Change-Id: I3d30200cf867cbf37d6f86572b1574d3e22e3490
Reviewed-on: https://skia-review.googlesource.com/21040
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
2017-06-28 17:41:56 +00:00
Mike Reed
e5cb7c9a5e remove SK_SUPPORT_LEGACY_TILED_BITMAPS flag for android
Bug: skia:
Change-Id: Ic96de4227bf7a7f0b0a0413b104d206c36809048
Reviewed-on: https://skia-review.googlesource.com/21109
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
2017-06-28 17:04:27 +00:00
Stephen White
e4f195d98d GrTessellator: nuke SK_DISABLE_SCREENSPACE_TESS_AA_PATH_RENDERER ifdef.
No longer used.

Bug: skia:
Change-Id: I24424e540607b5c9a2607fd5f34034bea920f62e
Reviewed-on: https://skia-review.googlesource.com/21063
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Stephen White <senorblanco@chromium.org>
2017-06-28 16:51:26 +00:00
Florin Malita
a66ef2d106 2ptconical stage
Initial impl, for the well-behaved case (focal point inside).

MBP numbers -

Before:

   3365.87 !	gradient_conical_clamp_shallow	srgb
   3590.88 !	gradient_conical_clamp_shallow_dither	srgb
   3376.91 !	gradient_conical_clamp_3color	srgb
   3351.64 !	gradient_conical_clamp_hicolor	srgb
   3379.35 !	gradient_conical_clamp	srgb

After:

    648.93 !	gradient_conical_clamp_shallow	srgb
    665.12 !	gradient_conical_clamp_shallow_dither	srgb
    773.98 !	gradient_conical_clamp_3color	srgb
   1175.35 !	gradient_conical_clamp_hicolor	srgb
    619.17 !	gradient_conical_clamp	srgb

Change-Id: I07b22a758363e1f340a6041bca53bdef74229eb9
Reviewed-on: https://skia-review.googlesource.com/20906
Commit-Queue: Florin Malita <fmalita@chromium.org>
Reviewed-by: Mike Klein <mtklein@chromium.org>
2017-06-28 16:49:31 +00:00
Robert Phillips
2de8cfadc3 Move copy operation from GrRenderTargetContext/GrTextureContext to GrSurfaceContext
Change-Id: I5f48ce9978370f07238a7318ccb6270e10069c92
Reviewed-on: https://skia-review.googlesource.com/21104
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
2017-06-28 16:44:36 +00:00
Mike Reed
90ca37726b use rasterpipline for hq scaling
Bug: skia:
Change-Id: Ic67f869ba35be17d49d371bb7f3fa60b6b2e20ee
Reviewed-on: https://skia-review.googlesource.com/21105
Reviewed-by: Mike Klein <mtklein@google.com>
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Mike Reed <reed@google.com>
2017-06-28 16:44:26 +00:00
Eric Boren
bb198fb371 Fix Linux Swarming dimensions after Debian transition
Bug: skia:6612
Change-Id: I87fe68f485ef5f148ab289c96a916f03db008493
Reviewed-on: https://skia-review.googlesource.com/21101
Reviewed-by: Ben Wagner <benjaminwagner@google.com>
2017-06-28 15:56:28 +00:00
Mike Klein
cefd059b2a be more explicit about not expecting 32-bit x86 jumper backend on windows
Looks like Clang/Win is defining __i386__, but we're not linking in
stage functions (they don't exist yet for Windows).

Change-Id: I78fdd3e1d89020bc6c64bc1cd5dfb3fbca720b2e
Reviewed-on: https://skia-review.googlesource.com/21103
Commit-Queue: Mike Klein <mtklein@chromium.org>
Commit-Queue: Mike Klein <mtklein@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
2017-06-28 14:18:52 +00:00
Eric Boren
746e2632c6 Move all Linux GCE bots to Debian
NOTREECHECKS:true
Bug: skia:
Change-Id: I612989c6ce2f309d2f70f896500f73e4baa971a7
Reviewed-on: https://skia-review.googlesource.com/19811
Commit-Queue: Eric Boren <borenet@google.com>
Reviewed-by: Eric Boren <borenet@google.com>
2017-06-28 12:38:28 +00:00
Mike Klein
111f8a9eea add bgra as 1st class format
This is a start to eliminating swap_rb as a stage.

I've just hit the main hot spots here.  Going to look into
the ~dozen other spots to see how they should work next.

Change-Id: I26fb46a042facf7bd6fff3b47c9fcee86d7142fd
Reviewed-on: https://skia-review.googlesource.com/20982
Commit-Queue: Mike Klein <mtklein@chromium.org>
Reviewed-by: Mike Reed <reed@google.com>
2017-06-27 23:30:23 +00:00
Mike Klein
5ce3972055 Revert "Re-land sksl fragment processor support"
This reverts commit c070939fd1.

Reason for revert: 

This has some knock-on effects in the generation of Android.bp from our GN files.  See gn/gn_to_bp.py?  We're seeing things like "tmp/tmpsBVycx/gen/" end up in the include search path in Android.bp, which obviously don't exist there...

Original change's description:
> Re-land sksl fragment processor support
> 
> This reverts commit ed50200682.
> 
> Bug: skia:
> Change-Id: I9caa7454b391450620d6989dc472abb3cf7a2cab
> Reviewed-on: https://skia-review.googlesource.com/20965
> Reviewed-by: Ben Wagner <benjaminwagner@google.com>
> Commit-Queue: Ethan Nicholas <ethannicholas@google.com>

TBR=benjaminwagner@google.com,ethannicholas@google.com

Change-Id: I502486b5405923b322429219f4cc396a45a14cea
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: skia:
Reviewed-on: https://skia-review.googlesource.com/20990
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Mike Klein <mtklein@google.com>
2017-06-27 22:52:10 +00:00
Mike Reed
3fe44544c9 use blitMask for left/right edges in blur-nine
Seems about same speed for legacy blitter, but much faster for raster-pipeline

Bug: skia:
Change-Id: I19be307c01a199e2477e045fb8c2cca7784564a5
Reviewed-on: https://skia-review.googlesource.com/20967
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
2017-06-27 22:00:53 +00:00
Mike Klein
9f2b3d1fbf remove unused "swap" stage
Change-Id: I25619f010f8ac6441529cfe8dff2d8c42d7400cf
Reviewed-on: https://skia-review.googlesource.com/20988
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
2017-06-27 21:50:53 +00:00
Mike Reed
279091ef85 specialize loaders for dst registers, to avoid move/swap stages
Bug: skia:
Change-Id: I75d82ef2226c5f116b7de2208c4e914739414b6d
Reviewed-on: https://skia-review.googlesource.com/20984
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
2017-06-27 21:20:53 +00:00
Derek Sollenberger
7a86987815 Use the NDK headers for AHardwareBuffer.
Bug: 6672
Change-Id: I5abd86149e912d91234853109ebd2a6b0ac5eaa2
Reviewed-on: https://skia-review.googlesource.com/20980
Reviewed-by: Stan Iliev <stani@google.com>
Commit-Queue: Derek Sollenberger <djsollen@google.com>
2017-06-27 20:28:13 +00:00
Jim Van Verth
3921ba236f Enable SDF text when using a perspective matrix.
Also fixes some state issues in SampleApp.

Change-Id: I854754e8b547f7e62aa90914520aaaa20095f965
Reviewed-on: https://skia-review.googlesource.com/20975
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
2017-06-27 20:17:23 +00:00
Mike Klein
d08109f344 try not zeroing registers in start_pipeline
Generally stages take care of state setup themselves, either with
seed_shader, constant_color, a load, etc.  I think these zeros may
be unnecessarily cautious.

This can't make anything draw more correctly, but it could make things
   - draw wrong
   - draw more slowly
   - draw more quickly
so it's an interesting thing to try and keep an eye on.

Change-Id: I7e5ea3cd79e55a65e1dbd214601e147ba3815b87
Reviewed-on: https://skia-review.googlesource.com/20976
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
2017-06-27 20:11:33 +00:00
Hal Canary
51329c944c SkPDF: clean up PDFDevice.
Motivation:  factor out some code for later re-use; clean up.

  - mask_to_greyscale_image()
  - addSMaskGraphicState()
  - clearMaskOnGraphicState()
  - stop using bare pointer to indicate ownership.
  - add ScopedContentEntry::stream()

Change-Id: I7abe7ff9eab89e1002692017000cda2ca7642631
Reviewed-on: https://skia-review.googlesource.com/20978
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
2017-06-27 19:56:43 +00:00
Florin Malita
0bb0411f59 2pt conical stage for concentric case
If the circles are concentric, we can use the radial stage and
post-massage t with a 2x3 stage.

Change-Id: I744bc889d509d5f9ff162c179e8ec7ca35410e3c
Reviewed-on: https://skia-review.googlesource.com/20972
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Florin Malita <fmalita@chromium.org>
2017-06-27 19:20:17 +00:00
recipe-roller
42c5af786f Roll recipe dependencies (trivial).
This is an automated CL created by the recipe roller. This CL rolls recipe
changes from upstream projects (e.g. depot_tools) into downstream projects
(e.g. tools/build).


More info is at https://goo.gl/zkKdpD. Use https://goo.gl/noib3a to file a bug.
depot_tools:
  https://crrev.com/96e1d788304830a9e405925d3c0a38953502558c gclient flatten: add support for hooks_os (phajdan.jr@chromium.org)
  https://crrev.com/aee6c8527222f719c55eb9d3e1dcdd6bcd808e95 git-cl-issue: respect --gerrit/--rietveld with integer argument (agable@chromium.org)
recipe_engine:
  https://crrev.com/097a0dbe9f6b8eae39e690de848aea5c3d8ea38b [test] minor refactoring. (iannucci@chromium.org)


TBR=borenet@google.com

Recipe-Tryjob-Bypass-Reason: Autoroller
Bugdroid-Send-Email: False
Change-Id: Ic6d97eeb4356ca28e0f3c6e507616b96cc6dfad6
Reviewed-on: https://skia-review.googlesource.com/20973
Reviewed-by: Recipe Roller <recipe-roller@chromium.org>
Commit-Queue: Recipe Roller <recipe-roller@chromium.org>
2017-06-27 19:15:37 +00:00
Brian Osman
515ccafc98 Adjust path_stroke_with_zero_length to draw on pixel centers
Bug: skia:
Change-Id: I1183574de4e3a429fe00c5a6a0f71745f1f6f5b4
Reviewed-on: https://skia-review.googlesource.com/20969
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2017-06-27 19:08:47 +00:00
Ben Wagner
47ac02467b Turn on verbose logging on flakily dying bots.
No-Try: true

Change-Id: I2c1b598f03d8536aa3ef118630a0aed63fe54f9e
Reviewed-on: https://skia-review.googlesource.com/10526
Commit-Queue: Ben Wagner <benjaminwagner@google.com>
Reviewed-by: Eric Boren <borenet@google.com>
2017-06-27 19:02:27 +00:00
Ethan Nicholas
c070939fd1 Re-land sksl fragment processor support
This reverts commit ed50200682.

Bug: skia:
Change-Id: I9caa7454b391450620d6989dc472abb3cf7a2cab
Reviewed-on: https://skia-review.googlesource.com/20965
Reviewed-by: Ben Wagner <benjaminwagner@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
2017-06-27 18:27:57 +00:00
Florin Malita
26249e0e1d Expand 2pt conical gradient gm with repeat/mirror
Change-Id: Iabb67dbf133690c649e9687233c4bfcb396db0cf
Reviewed-on: https://skia-review.googlesource.com/20971
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Florin Malita <fmalita@chromium.org>
2017-06-27 18:27:47 +00:00
Derek Sollenberger
19b2a56ad7 Upgrade android build (and infrastructure) to use ndk r15.
Bug: 6672
Change-Id: Ia6c6bae8a9adfd75172d7116487dfa63c3d69670
Reviewed-on: https://skia-review.googlesource.com/20904
Commit-Queue: Derek Sollenberger <djsollen@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
Reviewed-by: Mike Klein <mtklein@chromium.org>
Reviewed-by: Eric Boren <borenet@google.com>
2017-06-27 16:32:15 +00:00
Jim Van Verth
52fb02edf2 Fix TransferBufferTest for TegraX1
Bug: skia:
Change-Id: Ia64f48581e8003baec2eeaa4821354350b3333f4
Reviewed-on: https://skia-review.googlesource.com/20504
Reviewed-by: Robert Phillips <robertphillips@google.com>
Reviewed-by: Eric Boren <borenet@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
2017-06-27 15:42:25 +00:00
Hal Canary
b964238f0b SkDevice::drawBitmap takes x,y, not matrix
Motivation:  a simpler call should make it easier for SkPDF to learn how
to do drawBitmap with A8 bitmap and a maskfilter.
Change-Id: I1a5d190b40b0e9e08fa8876d265a9835a3e9987d
Reviewed-on: https://skia-review.googlesource.com/20961
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
2017-06-27 15:33:35 +00:00
Mike Klein
ca0b43803b add dumbest possible 32-bit SkJumper backend
Everything uses a ton of stack, nothing tail calls, and for now this is
non-Windows only.  But, it does run faster than the portable serial code.

On my trashcan, running `monobench SkRasterPipeline_compile`:
   - Normal 64-bit AVX build:  43.6ns
   - Before this CL, 32-bit:  707.9ns
   - This CL:                 147.5ns

Change-Id: I4a8929570ace47193ed8925c58b70bb22d6b1447
Reviewed-on: https://skia-review.googlesource.com/20964
Reviewed-by: Mike Reed <reed@google.com>
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
2017-06-27 15:20:56 +00:00
Ethan Nicholas
ed50200682 Revert "sksl fragment processor support"
This reverts commit ccf59917d3.

Reason for revert: breaking iOS bots

Original change's description:
> sksl fragment processor support
> 
> Bug: skia:
> Change-Id: Ia3b0305c2b0c78074303831f628fb01852b90d34
> Reviewed-on: https://skia-review.googlesource.com/17843
> Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
> Reviewed-by: Ben Wagner <benjaminwagner@google.com>
> Reviewed-by: Mike Klein <mtklein@google.com>

TBR=mtklein@google.com,benjaminwagner@google.com,ethannicholas@google.com

Change-Id: I0a33060c7c42c7b44c5c13d443ac42958291c2f1
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: skia:
Reviewed-on: https://skia-review.googlesource.com/20962
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
2017-06-27 14:36:44 +00:00
Ethan Nicholas
ccf59917d3 sksl fragment processor support
Bug: skia:
Change-Id: Ia3b0305c2b0c78074303831f628fb01852b90d34
Reviewed-on: https://skia-review.googlesource.com/17843
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: Ben Wagner <benjaminwagner@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
2017-06-27 14:20:05 +00:00
Ben Wagner
c3aef18419 Load FreeType glyph bitmap before emboldening.
If a bitmap glyph was loaded with FT_LOAD_BITMAP_METRICS_ONLY then the
glyph must be re-loaded without this flag before accessing the bitmap.

BUG=chromium:725975

Change-Id: If5e5a6844e9c32238560135e141fea7f77ad7fac
Reviewed-on: https://skia-review.googlesource.com/20830
Reviewed-by: Herb Derby <herb@google.com>
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Ben Wagner <bungeman@google.com>
2017-06-27 14:01:35 +00:00
Mike Klein
8c3d5156c7 add _hsw lowp backend
CQ_INCLUDE_TRYBOTS=skia.primary:Build-Ubuntu-Clang-x86_64-Debug-MSAN

Change-Id: Id53279c17589b3434629bb644358ee238af8649f
Reviewed-on: https://skia-review.googlesource.com/20269
Commit-Queue: Mike Klein <mtklein@chromium.org>
Reviewed-by: Herb Derby <herb@google.com>
Reviewed-by: Mike Reed <reed@google.com>
2017-06-27 13:31:05 +00:00
Jim Van Verth
7f7b902d51 Add shading language version to GL dump
Bug: skia:6759
Change-Id: I021a8487ccb1d127b2005285e439be34d644f333
Reviewed-on: https://skia-review.googlesource.com/20905
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
2017-06-27 13:04:05 +00:00
Robert Phillips
70e3e9adc5 Remove SkImageFilter::MakeBlur entry point
AFAICT none of our clients use this entry point and it is tangling up efforts to add a new parameter to the BlurImageFilter.

Change-Id: I494634db98a1d246854a5e3735380fbe55f425c2
Reviewed-on: https://skia-review.googlesource.com/20837
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
2017-06-27 12:49:25 +00:00
wutao
0dc1f4f4cd Add GM image test for blur with clamp mode.
Adding a GM (Golden Master) image test in Skia to reproduce the bleed
black issue in Chrome. This would allow regressions to be caught in
Skia's status page before being rolled into Chrome.

Bug: 622128
Change-Id: Ifd2824fff59483c8e4be48392ba467414d41ca13
TEST=imageblurclampmode.cpp
Reviewed-on: https://skia-review.googlesource.com/20778
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
2017-06-27 11:37:26 +00:00
Mike Reed
7944756396 attempt to fix android roll
Bug: skia:
Change-Id: I78147d215b752b6622a3c96508a6f21bf0284bb8
Reviewed-on: https://skia-review.googlesource.com/20907
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Mike Reed <reed@google.com>
2017-06-27 01:53:10 +00:00
Mike Klein
c908906f06 run NexusPlayer CPU tests verbosely
These were relying on a 15-minute status thread to keep them from timing
out.  --verbose ought to do the same.

CQ_INCLUDE_TRYBOTS=skia.primary:Test-Android-Clang-NexusPlayer-CPU-Moorefield-x86-Debug-Android

Change-Id: I1d1467a5e777df6ec5e79d2d9ea992e69bfaeeb7
Reviewed-on: https://skia-review.googlesource.com/20821
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Mike Klein <mtklein@chromium.org>
2017-06-26 22:19:33 +00:00
Mike Klein
c4fcbed6b2 somewhat less silly tail loads and stores
No reason to keep going one at a time when we know there are generally
better ways to handle loading a power-of-two number of low lanes.

This strategy scales up too, with quick answers for 8 (one 8 byte load),
12 (one 8 byte, one 4 byte), etc.

$ ninja -C out monobench; and out/monobench SkRasterPipeline_compile 300

    Before: 46.946ns
    After:  43.341ns

(This happens to be _lowp.  Expect similar small speedups elsewhere.)

Change-Id: I08f87769ea3c9f06ad13d2b1d5326e542b9b63a8
Reviewed-on: https://skia-review.googlesource.com/20903
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
2017-06-26 20:51:52 +00:00
Greg Daniel
660cc9910f Restrict acceptable bounds for uploading data to mip levels on GPU
The help simplify the code (and currect a current bug) inside the uploadPixel
functions in GL and Vulkan, we not restrict the bounds upload/write bounds
on a higher level. For non mipped uploads, we requiring the bounds to be within
the bounds on the texture, and for mipped uploads we require the bounds to be
the full texture.

Bug: skia:6780
Change-Id: Ia1cff3ee48edd3676afce6265d60e81ccea6ca6a
Reviewed-on: https://skia-review.googlesource.com/20825
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
2017-06-26 19:49:50 +00:00
recipe-roller
4e942a301a Roll recipe dependencies (trivial).
This is an automated CL created by the recipe roller. This CL rolls recipe
changes from upstream projects (e.g. depot_tools) into downstream projects
(e.g. tools/build).


More info is at https://goo.gl/zkKdpD. Use https://goo.gl/noib3a to file a bug.
depot_tools:
  https://crrev.com/c9603f57350caa7f43e7fc5173c56194e81eacaf gclient flatten: add support for deps_os (phajdan.jr@chromium.org)
  https://crrev.com/a89d443c2eaa4d2f38ce52846dd96183ef5107d4 gclient: remove hookinfo command (phajdan.jr@chromium.org)
  https://crrev.com/c10a4d88a42c01d1eea007248f29bae002c01b25 gclient: extract Hook class (phajdan.jr@chromium.org)
  https://crrev.com/c93643954df2265d7d3febd9d6509238fffb45b4 gclient: add cwd support for hooks (phajdan.jr@chromium.org)
  https://crrev.com/f79f0da8c68eee72de38f5d0fdbe5faa4ea044f0 gclient: remove unused ast code (phajdan.jr@chromium.org)
  https://crrev.com/1c5c118cfd533f2242f95aafbf9aa275031e535a Clean up a confusing gclient_utils.py message (brucedawson@chromium.org)
  https://crrev.com/c7f8791a0dde00b091dd6c924dd0ec1817b5076c [led] update to a05c9b0865abbfa27673528c5d95c80b55ff87bb (iannucci@chromium.org)
  https://crrev.com/78753da20ee812116f2cec5daed8a22b20e66352 Accept URLs in 'git cl issue' (agable@chromium.org)
  https://crrev.com/61373ee4bcaf9c875536cd877547725939f7d9cf [led] update led to a3890a6e0b276b35d734b13a82b164dd7fd8f2b5. (iannucci@chromium.org)
  https://crrev.com/44398faeeddeed1a91f2d3752afd1ed1fa2c81fc [vpython] Bump version. (dnj@chromium.org)
  https://crrev.com/9df9e9f8f9b218862b41817dd7604251484cc884 Dump reviewers set when failing _check_reviewers (gab@chromium.org)
  https://crrev.com/62619a38110f1a49f7ed40128f843cf4bf803dc1 git-cl-patch: Return to cherry-pick, but hard reset with --force (agable@chromium.org)
  https://crrev.com/257c9b2a70300faf1fa03f66f1b53176a0fe5c11 Use extended path syntax on windows when extracting tarball in download script (ricow@google.com)
  https://crrev.com/66945379c69dca334b61ebb4728b4a6ee95fde79 gclient: throw errors if values from deps_os override deps (phajdan.jr@chromium.org)
  https://crrev.com/4b73b02b36238fe6c8e71b647b0e1367c9ead9cc gclient: remove unused depth_first_tree (phajdan.jr@chromium.org)
  https://crrev.com/dce2250d14923170c281295588e3e1ac103d6a47 Presubmit: Treat changes with Gerrit-style Tbr: header as TBRed. (jbroman@chromium.org)
  https://crrev.com/529d6a4e4aed18b48a8fc0e9351a5d4a07ca597d gclient: include deps_os entries in dependencies (phajdan.jr@chromium.org)
  https://crrev.com/f1587bf5a9b8dcf8af47156dbcb553291150b0af gclient: remove unused "use strict" logic (phajdan.jr@chromium.org)
  https://crrev.com/806b70187d8bff7c51fb3bad730b189b505ed937 Revert "gclient: include deps_os entries in dependencies" (tandrii@chromium.org)
  https://crrev.com/fd0057e42be2906e79060085201494e7df1d0e8b gclient: include deps_os entries in dependencies (reland #1) (phajdan.jr@chromium.org)
  https://crrev.com/9756104b69447e418b55732e737f605cb1786069 Document drover process for re-landing a CL in a release branch. (agable@chromium.org)
  https://crrev.com/b983ac1ae28165b738aa77ad56103312f0e0fc58 Update VC++ packaging script to not package vctip.exe (brucedawson@chromium.org)
  https://crrev.com/032d54594781e12361cb5e644204cfb786cd3a16 gclient: implement conditions for hooks (phajdan.jr@chromium.org)
  https://crrev.com/1306bd03c96bf8b36b68f19f86d656e24c959df6 Support dumping json to stdout. (szager@chromium.org)
  https://crrev.com/7625d880d7a0f2e272dd1c9a7e9fba0de8885497 git-cl-description: use atomic edit API (agable@chromium.org)
  https://crrev.com/ad30de63893abcb18f4cc1d031dcc5096723fedf gclient flatten: syntax and schema fixes from actual testing (phajdan.jr@chromium.org)
recipe_engine:
  https://crrev.com/8c0fd220f89fdee4865b016def85a4ad8d04fec5 Add experimental downstream trybots (phajdan.jr@chromium.org)


TBR=borenet@google.com

Recipe-Tryjob-Bypass-Reason: Autoroller
Bugdroid-Send-Email: False
Change-Id: I1f4cf28b0dc5fee467f21f797c034c5fef8587d0
Reviewed-on: https://skia-review.googlesource.com/20901
Reviewed-by: Recipe Roller <recipe-roller@chromium.org>
Commit-Queue: Recipe Roller <recipe-roller@chromium.org>
2017-06-26 19:46:10 +00:00
Brian Osman
a98e399ba5 Exclude AALinearizingConvexPathRenderer from zero size paths
Per SVG, stroking a zero length line with square or round caps should draw
a square or circle. This path renderer has lots of baked in assumptions
that prevent that behavior, so the easy solution is to let some other path
renderer handle it.

Bug: skia:6781
Change-Id: I9d2da94f75d96554e3cd218848aa552f63add679
Reviewed-on: https://skia-review.googlesource.com/20900
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2017-06-26 19:41:40 +00:00
Mike Reed
8fa0ca2bb0 remove unneeded guards for android
Bug: skia:
Change-Id: I4c0116a9ec27a0c0aa853ce1585d457c7c485b67
Reviewed-on: https://skia-review.googlesource.com/20832
Reviewed-by: Mike Reed <reed@google.com>
2017-06-26 19:25:12 +00:00