platform/upstream/libSkiaSharp.git
11 years agoSplit TLS implementation into its own translation unit.
bungeman@google.com [Tue, 16 Jul 2013 14:59:24 +0000 (14:59 +0000)]
Split TLS implementation into its own translation unit.

SkTLS has it's own header separate from SkThread, and having SkThread own
the platform implementation of SkTLS is problematic with Chromium. The
simplest way to clean this up is to put the implementation in its own set
of files, where it is also more easily found.

R=robertphillips@google.com

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10105 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoMove implementation of SkFilterShader into its source file.
tfarina@chromium.org [Tue, 16 Jul 2013 13:05:27 +0000 (13:05 +0000)]
Move implementation of SkFilterShader into its source file.

Since SkFilterShader has its own header file, makes more sense to have a
separate source file to implement it rather than placing it in a "random"
SkColorFilter.cpp file.

R=robertphillips@google.com

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10101 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoimprove convolve speed of skpdiff using direct pointers
zachr@google.com [Tue, 16 Jul 2013 12:57:29 +0000 (12:57 +0000)]
improve convolve speed of skpdiff using direct pointers

R=djsollen@google.com

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10099 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoWiden range for flaky performance trigger baseline
robertphillips@google.com [Tue, 16 Jul 2013 12:34:24 +0000 (12:34 +0000)]
Widen range for flaky performance trigger baseline

(SkipBuildbotRuns)

git-svn-id: http://skia.googlecode.com/svn/trunk@10098 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoSanitizing source files in Housekeeper-Nightly
skia.committer@gmail.com [Tue, 16 Jul 2013 07:00:56 +0000 (07:00 +0000)]
Sanitizing source files in Housekeeper-Nightly

git-svn-id: http://skia.googlecode.com/svn/trunk@10096 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoExport SkProxyCanvas and SkNWayCanvas for external use.
commit-bot@chromium.org [Mon, 15 Jul 2013 22:49:37 +0000 (22:49 +0000)]
Export SkProxyCanvas and SkNWayCanvas for external use.

R=robertphillips@google.com, fmalita@google.com

Author: fmalita@chromium.org

Review URL: https://chromiumcodereview.appspot.com/19240008

git-svn-id: http://skia.googlecode.com/svn/trunk@10095 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoConst-ify SkDebugCanvas::getSize().
commit-bot@chromium.org [Mon, 15 Jul 2013 22:47:14 +0000 (22:47 +0000)]
Const-ify SkDebugCanvas::getSize().

This is an obviously const method, no reason not to mark it as such.

R=robertphillips@google.com, fmalita@google.com

Author: fmalita@chromium.org

Review URL: https://chromiumcodereview.appspot.com/19289003

git-svn-id: http://skia.googlecode.com/svn/trunk@10094 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agocall newOneOff instead of oneOff
caryclark@google.com [Mon, 15 Jul 2013 20:50:24 +0000 (20:50 +0000)]
call newOneOff instead of oneOff

calling the latter instead of the former walked off the end of the
array causing mysterious bugs

TODO: safeguard against NaNs in the input

BUG=

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10093 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoUpdate SkGScalerContext to properly forward onCountGlyphs.
bungeman@google.com [Mon, 15 Jul 2013 19:52:13 +0000 (19:52 +0000)]
Update SkGScalerContext to properly forward onCountGlyphs.

git-svn-id: http://skia.googlecode.com/svn/trunk@10090 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoImplement onCountGlyphs and onGetUPEM on Windows.
bungeman@google.com [Mon, 15 Jul 2013 19:42:57 +0000 (19:42 +0000)]
Implement onCountGlyphs and onGetUPEM on Windows.

R=vandebo@chromium.org

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10089 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agopdfviewer: native inline images support
edisonn@google.com [Mon, 15 Jul 2013 18:20:58 +0000 (18:20 +0000)]
pdfviewer: native inline images support

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10087 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoFix build error
robertphillips@google.com [Mon, 15 Jul 2013 17:33:57 +0000 (17:33 +0000)]
Fix build error

git-svn-id: http://skia.googlecode.com/svn/trunk@10086 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoPathUtilsTest valgrind patch
robertphillips@google.com [Mon, 15 Jul 2013 17:16:48 +0000 (17:16 +0000)]
PathUtilsTest valgrind patch

https://codereview.chromium.org/18401005/

git-svn-id: http://skia.googlecode.com/svn/trunk@10085 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoReduce verylargebitmap GM's memory footprint
robertphillips@google.com [Mon, 15 Jul 2013 15:48:48 +0000 (15:48 +0000)]
Reduce verylargebitmap GM's memory footprint

https://codereview.chromium.org/19217002/

git-svn-id: http://skia.googlecode.com/svn/trunk@10083 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoAdded newlines at the end of SkGpuBlurUtils.*
robertphillips@google.com [Mon, 15 Jul 2013 15:47:10 +0000 (15:47 +0000)]
Added newlines at the end of SkGpuBlurUtils.*

git-svn-id: http://skia.googlecode.com/svn/trunk@10082 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoFix compiler warning/error in r10079
robertphillips@google.com [Mon, 15 Jul 2013 15:38:55 +0000 (15:38 +0000)]
Fix compiler warning/error in r10079

git-svn-id: http://skia.googlecode.com/svn/trunk@10081 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoMove gaussianBlur functionality to src\effects
robertphillips@google.com [Mon, 15 Jul 2013 15:06:54 +0000 (15:06 +0000)]
Move gaussianBlur functionality to src\effects

https://codereview.chromium.org/18771004/

git-svn-id: http://skia.googlecode.com/svn/trunk@10080 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoadd florin tests
caryclark@google.com [Mon, 15 Jul 2013 15:00:58 +0000 (15:00 +0000)]
add florin tests

hopefully fix build

BUG=

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10079 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agofix linux point compare
caryclark@google.com [Mon, 15 Jul 2013 14:21:17 +0000 (14:21 +0000)]
fix linux point compare

fix linux pt compare

BUG=

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10076 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoRemove possiblity of NULL effect in GrEffectStage
commit-bot@chromium.org [Mon, 15 Jul 2013 13:54:06 +0000 (13:54 +0000)]
Remove possiblity of NULL effect in GrEffectStage

R=jvanverth@google.com

Author: bsalomon@google.com

Review URL: https://chromiumcodereview.appspot.com/18295008

git-svn-id: http://skia.googlecode.com/svn/trunk@10075 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoDisable bench_pictures GPU config on Nexus 10
borenet@google.com [Mon, 15 Jul 2013 13:50:35 +0000 (13:50 +0000)]
Disable bench_pictures GPU config on Nexus 10

(RunBuilders:Perf-Android-Nexus10-MaliT604-Arm7-Release)

R=bsalomon@google.com

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10074 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agopath ops near exact
caryclark@google.com [Mon, 15 Jul 2013 13:29:13 +0000 (13:29 +0000)]
path ops near exact

Modify line intersections to first
- match exact ends
- compute intersections
- match near ends
where the exact ends are preferred, then near matches, then
computed matches. This pulls matches towards existing end points
when possible, and keeps intersection distances consistent with
different line/line line/quad and line/cubic computations.

BUG=

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10073 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoARM Skia NEON patches - 01 - Simple fixes
commit-bot@chromium.org [Mon, 15 Jul 2013 13:10:31 +0000 (13:10 +0000)]
ARM Skia NEON patches - 01 - Simple fixes

This series contains a few fairly non-controversial fixes.

Misc: remove dead references to neon 4444 functions

Misc: avoid the double _neon_neon suffix in the clamp matrix functions.
MAKENAME already adds the _neon suffix

Misc: a few stupid / obvious fixes

BUG=
R=djsollen@google.com

Author: kevin.petit.arm@gmail.com

Review URL: https://chromiumcodereview.appspot.com/18666004

git-svn-id: http://skia.googlecode.com/svn/trunk@10072 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoARM Skia NEON patches - 08 - Cleaning / possible fix
commit-bot@chromium.org [Mon, 15 Jul 2013 13:00:45 +0000 (13:00 +0000)]
ARM Skia NEON patches - 08 - Cleaning / possible fix

Misc: use SK_PMCOLOR_BYTE_ORDER where appropriate

Before SK_PMCOLOR_BYTE_ORDER was introduced, I had written my own
macro for the same purpose. I had at the time spotted these two
places where it seemed to be useful.

The change in SkCreateCGImageRef.cpp may be a bugfix or a bug for the
second occurrence, I'm not sure...

BUG=
R=djsollen@google.com, caryclark@google.com, reed@google.com, tomhudson@google.com

Author: kevin.petit.arm@gmail.com

Review URL: https://chromiumcodereview.appspot.com/18024003

git-svn-id: http://skia.googlecode.com/svn/trunk@10071 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoARM Skia NEON patches - 03 - Duplicate code removal
commit-bot@chromium.org [Mon, 15 Jul 2013 12:40:54 +0000 (12:40 +0000)]
ARM Skia NEON patches - 03 - Duplicate code removal

Misc: remove some duplicate code

SkAlphaMul does exactly the same thing as the mul function above,
so use it.

BUG=
R=djsollen@google.com

Author: kevin.petit.arm@gmail.com

Review URL: https://chromiumcodereview.appspot.com/18997003

git-svn-id: http://skia.googlecode.com/svn/trunk@10070 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoARM Skia NEON patches - 07 - Equation simplification
commit-bot@chromium.org [Mon, 15 Jul 2013 12:20:36 +0000 (12:20 +0000)]
ARM Skia NEON patches - 07 - Equation simplification

Misc: simplify the equation of the exclusion Xfermode

The equation can be dramatically simplified. The results with gm are
the same except that the code is faster.

BUG=
R=djsollen@google.com, reed@google.com, bsalomon@google.com, cabanier@adobe.com

Author: kevin.petit.arm@gmail.com

Review URL: https://chromiumcodereview.appspot.com/18112016

git-svn-id: http://skia.googlecode.com/svn/trunk@10069 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoFlaky Ubuntu performance trigger rebaselines
robertphillips@google.com [Sun, 14 Jul 2013 13:41:53 +0000 (13:41 +0000)]
Flaky Ubuntu performance trigger rebaselines

(SkipBuildbotRuns)

git-svn-id: http://skia.googlecode.com/svn/trunk@10068 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoSanitizing source files in Housekeeper-Nightly
skia.committer@gmail.com [Sun, 14 Jul 2013 07:01:15 +0000 (07:01 +0000)]
Sanitizing source files in Housekeeper-Nightly

git-svn-id: http://skia.googlecode.com/svn/trunk@10067 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agofix trivial matrix computation
humper@google.com [Sun, 14 Jul 2013 01:44:59 +0000 (01:44 +0000)]
fix trivial matrix computation

Revert "Reverted 10056-10059"

This reverts commit bab4ebcaa7270c3b866a8e10917c39b055ebd51a.

Fix broken GM test, reintroduce image scaling.

BUG=

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10066 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoMore valgrind suppressions
robertphillips@google.com [Sat, 13 Jul 2013 19:50:40 +0000 (19:50 +0000)]
More valgrind suppressions

git-svn-id: http://skia.googlecode.com/svn/trunk@10065 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoReverting 10063 due to Win7 crashes in RenderPDFs step
robertphillips@google.com [Sat, 13 Jul 2013 18:33:27 +0000 (18:33 +0000)]
Reverting 10063 due to Win7 crashes in RenderPDFs step

git-svn-id: http://skia.googlecode.com/svn/trunk@10064 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years ago[PDF] Use SkTypeface::countGlyphs instead of getAdvancedTypefaceMetrics
commit-bot@chromium.org [Sat, 13 Jul 2013 17:24:30 +0000 (17:24 +0000)]
[PDF] Use SkTypeface::countGlyphs instead of getAdvancedTypefaceMetrics

BUG=1088
R=bungeman@google.com

Author: vandebo@chromium.org

Review URL: https://chromiumcodereview.appspot.com/18886005

git-svn-id: http://skia.googlecode.com/svn/trunk@10063 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoMake GrPaint have a variable sized array of color and coverage stages rather than...
commit-bot@chromium.org [Sat, 13 Jul 2013 17:24:24 +0000 (17:24 +0000)]
Make GrPaint have a variable sized array of color and coverage stages rather than a fixed size.

R=robertphillips@google.com, jvanverth@google.com

Author: bsalomon@google.com

Review URL: https://chromiumcodereview.appspot.com/18686007

git-svn-id: http://skia.googlecode.com/svn/trunk@10062 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoMore valgrind suppressions
robertphillips@google.com [Sat, 13 Jul 2013 17:11:59 +0000 (17:11 +0000)]
More valgrind suppressions

git-svn-id: http://skia.googlecode.com/svn/trunk@10061 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoReverted 10056-10059
robertphillips@google.com [Sat, 13 Jul 2013 15:37:25 +0000 (15:37 +0000)]
Reverted 10056-10059

git-svn-id: http://skia.googlecode.com/svn/trunk@10060 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoSanitizing source files in Housekeeper-Nightly
skia.committer@gmail.com [Sat, 13 Jul 2013 07:00:56 +0000 (07:00 +0000)]
Sanitizing source files in Housekeeper-Nightly

git-svn-id: http://skia.googlecode.com/svn/trunk@10059 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agofix windows warning
humper@google.com [Fri, 12 Jul 2013 22:15:12 +0000 (22:15 +0000)]
fix windows warning

git-svn-id: http://skia.googlecode.com/svn/trunk@10058 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years ago64bitmac buildfix
humper@google.com [Fri, 12 Jul 2013 21:25:05 +0000 (21:25 +0000)]
64bitmac buildfix

git-svn-id: http://skia.googlecode.com/svn/trunk@10057 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoWorking plumb of image scaling:
humper@google.com [Fri, 12 Jul 2013 21:14:33 +0000 (21:14 +0000)]
Working plumb of image scaling:

1) always generate mipmaps if we detect that we are downsampling.
2) pre-scale the image if we detect that we are upsampling
   (currently valid for scale+translate only)
3) A few miscellaneous bug fixes related to image scaling.

Still need SSE/Neon versions of these image scalers.

BUG=
R=bsalomon@google.com, robertphillips@google.com

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10056 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoAdd implicit hairline conic rendering to GPU
egdaniel@google.com [Fri, 12 Jul 2013 20:15:34 +0000 (20:15 +0000)]
Add implicit hairline conic rendering to GPU

R=bsalomon@google.com

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10055 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoFix valgrind suppressions file
robertphillips@google.com [Fri, 12 Jul 2013 19:58:37 +0000 (19:58 +0000)]
Fix valgrind suppressions file

git-svn-id: http://skia.googlecode.com/svn/trunk@10054 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoFix leak in SkAutoSTArray
robertphillips@google.com [Fri, 12 Jul 2013 18:44:23 +0000 (18:44 +0000)]
Fix leak in SkAutoSTArray

https://codereview.chromium.org/18915010/

git-svn-id: http://skia.googlecode.com/svn/trunk@10053 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoclean up extra printfs in count_effects.lua
reed@google.com [Fri, 12 Jul 2013 18:36:12 +0000 (18:36 +0000)]
clean up extra printfs in count_effects.lua

git-svn-id: http://skia.googlecode.com/svn/trunk@10052 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoAdd newline for r10050.
bungeman@google.com [Fri, 12 Jul 2013 18:31:59 +0000 (18:31 +0000)]
Add newline for r10050.

git-svn-id: http://skia.googlecode.com/svn/trunk@10051 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoR=mtklein@google.com
bungeman@google.com [Fri, 12 Jul 2013 18:22:49 +0000 (18:22 +0000)]
R=mtklein@google.com

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10050 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoIf a user requests a try on "all" builders, ask for confirmation
borenet@google.com [Fri, 12 Jul 2013 18:11:04 +0000 (18:11 +0000)]
If a user requests a try on "all" builders, ask for confirmation

Addresses https://code.google.com/p/skia/issues/detail?id=1208
(SkipBuildbotRuns)

R=epoger@google.com

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10049 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoMore valgrind suppressions
robertphillips@google.com [Fri, 12 Jul 2013 17:29:30 +0000 (17:29 +0000)]
More valgrind suppressions

(SkipBuildbotRuns)

git-svn-id: http://skia.googlecode.com/svn/trunk@10048 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agogm: since we don't record output of gpudebug test, don't record checksums either
epoger@google.com [Fri, 12 Jul 2013 15:52:59 +0000 (15:52 +0000)]
gm: since we don't record output of gpudebug test, don't record checksums either
BUG=https://code.google.com/p/skia/issues/detail?id=1410
R=robertphillips@google.com

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10046 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agomodularize the display of diffs for skpdiff
zachr@google.com [Fri, 12 Jul 2013 13:39:53 +0000 (13:39 +0000)]
modularize the display of diffs for skpdiff

R=djsollen@google.com

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10044 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoRevert "switch all the arm7 devices to build with thumb for a while"
djsollen@google.com [Fri, 12 Jul 2013 13:31:51 +0000 (13:31 +0000)]
Revert "switch all the arm7 devices to build with thumb for a while"

This reverts r10028 which has altered the GM expectations.

R=caryclark@google.com

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10043 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agorebaseline.py: until we fix bug 1410, keep going if we can't download an actual GM...
epoger@google.com [Fri, 12 Jul 2013 12:32:32 +0000 (12:32 +0000)]
rebaseline.py: until we fix bug 1410, keep going if we can't download an actual GM result

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10037 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoSanitizing source files in Housekeeper-Nightly
skia.committer@gmail.com [Fri, 12 Jul 2013 07:01:14 +0000 (07:01 +0000)]
Sanitizing source files in Housekeeper-Nightly

git-svn-id: http://skia.googlecode.com/svn/trunk@10033 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoMore valgrind suppressions
robertphillips@google.com [Thu, 11 Jul 2013 23:49:56 +0000 (23:49 +0000)]
More valgrind suppressions

(SkipBuildbotRuns)

git-svn-id: http://skia.googlecode.com/svn/trunk@10031 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoThe two leaks are:
commit-bot@chromium.org [Thu, 11 Jul 2013 22:29:29 +0000 (22:29 +0000)]
The two leaks are:
  missing unrefs in megalooper GM
  missing reset capability in oval renderer

This CL also expands the instance counting system to some recently adding classes (e.g., SkFontStyleSet)

R=bsalomon@google.com, jvanverth@google.com

Author: robertphillips@google.com

Review URL: https://chromiumcodereview.appspot.com/18461007

git-svn-id: http://skia.googlecode.com/svn/trunk@10030 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoInitialize the matrix used when recursing from a GPU image filter -> raster image...
senorblanco@chromium.org [Thu, 11 Jul 2013 20:50:10 +0000 (20:50 +0000)]
Initialize the matrix used when recursing from a GPU image filter -> raster image filter.

BUG=
R=bsalomon@google.com

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10029 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoswitch all the arm7 devices to build with thumb for a while
commit-bot@chromium.org [Thu, 11 Jul 2013 20:28:38 +0000 (20:28 +0000)]
switch all the arm7 devices to build with thumb for a while

BUG=
R=djsollen@google.com

Author: mtklein@google.com

Review URL: https://chromiumcodereview.appspot.com/18563004

git-svn-id: http://skia.googlecode.com/svn/trunk@10028 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoreenable the scale benchmark, and only bench actual canvas draw commands
humper@google.com [Thu, 11 Jul 2013 20:28:30 +0000 (20:28 +0000)]
reenable the scale benchmark, and only bench actual canvas draw commands
instead of direct invocations of the (now private) bitmap scale method

BUG=
R=reed@google.com

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10027 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoARM Skia NEON patches - 13 - S32A_Opaque
commit-bot@chromium.org [Thu, 11 Jul 2013 20:28:24 +0000 (20:28 +0000)]
ARM Skia NEON patches - 13 - S32A_Opaque

Blitrow32: S32A_Opaque code cleaning and speed improvement

- the old way of calculating alpha doesn't seem to be used anymore,
  so remove the remaining code
- adding prefetching allows to improve performance greatly in some
  cases at the expense of a little trade-off:

+-------+-----------+------------+
| count | Cortex-A9 | Cortex-A15 |
+-------+-----------+------------+
| 1,2   | 0         | 0          |
+-------+-----------+------------+
| 4     | 0         | -3%        |
+-------+-----------+------------+
| 8     | 0         | -4%        |
+-------+-----------+------------+
| 16    | 0         | -5%        |
+-------+-----------+------------+
| 64    | +14%      | 0          |
+-------+-----------+------------+
| 256   | +14%      | +12%       |
+-------+-----------+------------+
| 1024  | +115%     | +15%       |
+-------+-----------+------------+

BUG=
R=djsollen@google.com

Author: kevin.petit.arm@gmail.com

Review URL: https://chromiumcodereview.appspot.com/18459008

git-svn-id: http://skia.googlecode.com/svn/trunk@10026 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agorebaseline.py: skip any platforms we don't have actual results for, with warning...
epoger@google.com [Thu, 11 Jul 2013 19:20:30 +0000 (19:20 +0000)]
rebaseline.py: skip any platforms we don't have actual results for, with warning message

R=borenet@google.com

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10022 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoDisable soft floating point on ChromeOS
borenet@google.com [Thu, 11 Jul 2013 18:46:30 +0000 (18:46 +0000)]
Disable soft floating point on ChromeOS

Should fix the Daisy build.

R=djsollen@google.com

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10020 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoMake ChromeOS build exit nonzero on failure
borenet@google.com [Thu, 11 Jul 2013 18:11:56 +0000 (18:11 +0000)]
Make ChromeOS build exit nonzero on failure

R=djsollen@google.com

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10018 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoAdd script to verify that image files exist for every actual_result checksum
borenet@google.com [Thu, 11 Jul 2013 18:05:25 +0000 (18:05 +0000)]
Add script to verify that image files exist for every actual_result checksum

Should help with https://code.google.com/p/skia/issues/detail?id=1410
(SkipBuildbotRuns)

R=epoger@google.com

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10017 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agocheck JSON-format expectations into experimental/ for manual testing
epoger@google.com [Thu, 11 Jul 2013 17:51:26 +0000 (17:51 +0000)]
check JSON-format expectations into experimental/ for manual testing

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10016 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoSkObjectParser::SaveFlagsToString() should handle SaveFlags as a bitmask.
fmalita@google.com [Thu, 11 Jul 2013 16:25:55 +0000 (16:25 +0000)]
SkObjectParser::SaveFlagsToString() should handle SaveFlags as a bitmask.

Test one SaveFlags bit at a time instead of exploring the whole value space.

R=robertphillips@google.com

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10014 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agopdfviewer: add option to run the load or render multiple times, --benchLoad, --benchR...
edisonn@google.com [Thu, 11 Jul 2013 16:25:51 +0000 (16:25 +0000)]
pdfviewer: add option to run the load or render multiple times, --benchLoad, --benchRender

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10013 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agofix build break on sample app
edisonn@google.com [Thu, 11 Jul 2013 15:40:31 +0000 (15:40 +0000)]
fix build break on sample app

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10011 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoadd ability to specify the DPI at which to render the page
edisonn@google.com [Thu, 11 Jul 2013 15:20:50 +0000 (15:20 +0000)]
add ability to specify the DPI at which to render the page

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10009 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agopdfviewer: render in the same way regadless if we write the result to a file or not.
edisonn@google.com [Thu, 11 Jul 2013 14:50:12 +0000 (14:50 +0000)]
pdfviewer: render in the same way regadless if we write the result to a file or not.

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10008 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years ago(unreviewed) sample app: fix break in pdf viewer (podofo was replaced by native parser)
edisonn@google.com [Thu, 11 Jul 2013 14:45:20 +0000 (14:45 +0000)]
(unreviewed) sample app: fix break in pdf viewer (podofo was replaced by native parser)

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10007 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agopdfviewer: some code cleanup in renderer
edisonn@google.com [Thu, 11 Jul 2013 14:43:15 +0000 (14:43 +0000)]
pdfviewer: some code cleanup in renderer

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10006 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoAdd an option to have a PdfViewer in SampleApp. Add a parameter --pdfDir to pass...
edisonn@google.com [Thu, 11 Jul 2013 14:28:04 +0000 (14:28 +0000)]
Add an option to have a PdfViewer in SampleApp. Add a parameter --pdfDir to pass the dir with pdfs. Add flag --sort to sort samples acording to title, so foo.skp follows foo.pdf and we can quickly compare diffs.
The option needs to be enabled manually by developer to be compiled locally, since the pdf viewer is work in progress.

R=reed@google.com

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10004 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoStreamline picture_record_recurring_ bench.
commit-bot@chromium.org [Thu, 11 Jul 2013 14:26:09 +0000 (14:26 +0000)]
Streamline picture_record_recurring_ bench.

Reduce benchmark runtime from ~17 ms to ~13.25ms by moving SkPaint
construction out of the inner loop and by using random colors in the
SkPaints instead of sequential integers, which were seeing bad hashing.

This doesn't actually improve our performance, but makes the benchmark
more focused on pure recording costs.

BUG=
R=mtklein@google.com, reed@google.com, tomhudson@google.com

Author: tomhudson@chromium.org

Review URL: https://chromiumcodereview.appspot.com/18119011

git-svn-id: http://skia.googlecode.com/svn/trunk@10003 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoadd _thumb variants for arm devices
commit-bot@chromium.org [Thu, 11 Jul 2013 13:57:29 +0000 (13:57 +0000)]
add _thumb variants for arm devices

BUG=
R=djsollen@google.com

Author: mtklein@google.com

Review URL: https://chromiumcodereview.appspot.com/19024002

git-svn-id: http://skia.googlecode.com/svn/trunk@10001 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoadd newline to bitmap rotation script output
humper@google.com [Thu, 11 Jul 2013 13:53:44 +0000 (13:53 +0000)]
add newline to bitmap rotation script output

BUG=

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10000 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agopdfviewer: add --pages arg: render a certain page (all, all in desceding order, firsl...
edisonn@google.com [Thu, 11 Jul 2013 12:53:06 +0000 (12:53 +0000)]
pdfviewer: add --pages arg: render a certain page (all, all in desceding order, firsl, last and by page number)

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

git-svn-id: http://skia.googlecode.com/svn/trunk@9999 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoARM Skia NEON patches - 10 - ARM build
commit-bot@chromium.org [Thu, 11 Jul 2013 12:48:14 +0000 (12:48 +0000)]
ARM Skia NEON patches - 10 - ARM build

ARM-Build: make Linux arm/NEON builds possible

This factorizes the definitions common to Linux & assimilated
and Android. It also enables to do native builds on Linux for
ARM processors.

BUG=
R=djsollen@google.com, borenet@google.com

Author: kevin.petit.arm@gmail.com

Review URL: https://chromiumcodereview.appspot.com/18243007

git-svn-id: http://skia.googlecode.com/svn/trunk@9997 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agopdfviewer: measure mem usage, command line flags library.
edisonn@google.com [Thu, 11 Jul 2013 12:27:21 +0000 (12:27 +0000)]
pdfviewer: measure mem usage, command line flags library.

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

git-svn-id: http://skia.googlecode.com/svn/trunk@9996 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoAdd safesync_url to build-tot-chromium.sh
rmistry@google.com [Thu, 11 Jul 2013 11:28:41 +0000 (11:28 +0000)]
Add safesync_url to build-tot-chromium.sh

(SkipBuildbotRuns)

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

git-svn-id: http://skia.googlecode.com/svn/trunk@9993 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoSanitizing source files in Housekeeper-Nightly
skia.committer@gmail.com [Thu, 11 Jul 2013 07:01:01 +0000 (07:01 +0000)]
Sanitizing source files in Housekeeper-Nightly

git-svn-id: http://skia.googlecode.com/svn/trunk@9992 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoWin7/8 compiler warnings/errors fix for r9980
robertphillips@google.com [Thu, 11 Jul 2013 00:01:39 +0000 (00:01 +0000)]
Win7/8 compiler warnings/errors fix for r9980

git-svn-id: http://skia.googlecode.com/svn/trunk@9991 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agopdfviewer: ignore more bad stauff in pdfs
edisonn@google.com [Wed, 10 Jul 2013 23:36:56 +0000 (23:36 +0000)]
pdfviewer: ignore more bad stauff in pdfs

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

git-svn-id: http://skia.googlecode.com/svn/trunk@9990 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agopdfviewer: don't delete variables, they are managed by the doc now
edisonn@google.com [Wed, 10 Jul 2013 23:26:54 +0000 (23:26 +0000)]
pdfviewer: don't delete variables, they are managed by the doc now

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

git-svn-id: http://skia.googlecode.com/svn/trunk@9989 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agopdfviewer: more load references dinamically plumming
edisonn@google.com [Wed, 10 Jul 2013 23:17:31 +0000 (23:17 +0000)]
pdfviewer: more load references dinamically plumming

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

git-svn-id: http://skia.googlecode.com/svn/trunk@9988 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agopdfviewer: don't crash when trailer is missing
edisonn@google.com [Wed, 10 Jul 2013 22:53:40 +0000 (22:53 +0000)]
pdfviewer: don't crash when trailer is missing

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

git-svn-id: http://skia.googlecode.com/svn/trunk@9987 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoadd matrix objects to the lua bindings, as well as a lua script to find the proportio...
humper@google.com [Wed, 10 Jul 2013 22:42:30 +0000 (22:42 +0000)]
add matrix objects to the lua bindings, as well as a lua script to find the proportion of image draw commands with different kinds of matrices

git-svn-id: http://skia.googlecode.com/svn/trunk@9986 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agopdfviewer: fix bug, page -1 means render page 0 with no page extension
edisonn@google.com [Wed, 10 Jul 2013 22:37:38 +0000 (22:37 +0000)]
pdfviewer: fix bug, page -1 means render page 0 with no page extension

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

git-svn-id: http://skia.googlecode.com/svn/trunk@9985 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agofix 64 bit warnings
humper@google.com [Wed, 10 Jul 2013 22:34:05 +0000 (22:34 +0000)]
fix 64 bit warnings

git-svn-id: http://skia.googlecode.com/svn/trunk@9984 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agopdf viewer: refactor, add -w parameter to pdfviewer, add -n to remove extenassion...
edisonn@google.com [Wed, 10 Jul 2013 22:33:10 +0000 (22:33 +0000)]
pdf viewer: refactor, add -w parameter to pdfviewer, add -n to remove extenassion page when there is a single page (so skdiff can be run easily) and fix a bug (SkPdfobject should not reset on destruct)

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

git-svn-id: http://skia.googlecode.com/svn/trunk@9983 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoremove unused variables
humper@google.com [Wed, 10 Jul 2013 22:21:03 +0000 (22:21 +0000)]
remove unused variables

git-svn-id: http://skia.googlecode.com/svn/trunk@9982 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agouse SkIntToScalar
reed@google.com [Wed, 10 Jul 2013 21:51:47 +0000 (21:51 +0000)]
use SkIntToScalar

BUG=
R=senorblanco@chromium.org

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

git-svn-id: http://skia.googlecode.com/svn/trunk@9981 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agofix bug with awesome filtered images sometimes being slightly offset.
humper@google.com [Wed, 10 Jul 2013 21:49:29 +0000 (21:49 +0000)]
fix bug with awesome filtered images sometimes being slightly offset.

BUG=

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

git-svn-id: http://skia.googlecode.com/svn/trunk@9980 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoadd paint:getEffects to return table of bools of a given effect is present on the...
reed@google.com [Wed, 10 Jul 2013 21:23:49 +0000 (21:23 +0000)]
add paint:getEffects to return table of bools of a given effect is present on the paint

git-svn-id: http://skia.googlecode.com/svn/trunk@9978 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoImplement offset for GPU filter path. Although we can't yet use this in Blink for...
commit-bot@chromium.org [Wed, 10 Jul 2013 21:22:18 +0000 (21:22 +0000)]
Implement offset for GPU filter path. Although we can't yet use this in Blink for FEOffset, due to SVG semantics, we can use it to support crop rect (upcoming patch).

This patch adds the parameter to the filterImageGPU() signature, plumbs through the code on the GPU side, and implements support for it in SkXfermodeImageFilter for both raster and GPU.

Of the remaining filters with GPU implementations, Blur, Morphology, Bicubic and Displacement work fine; they're commutative wrt offset and can simply pass it up the chain. Blend is not, but will be removed shortly anyway (has been replaced with SkXfermodeImageFilter in Blink).

R=reed@google.com, bsalomon@google.com

Author: senorblanco@chromium.org

Review URL: https://chromiumcodereview.appspot.com/15995026

git-svn-id: http://skia.googlecode.com/svn/trunk@9977 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoRemove SkRasterClip::setPath(const SkPath&, const SkRasterClip&, bool).
commit-bot@chromium.org [Wed, 10 Jul 2013 20:55:39 +0000 (20:55 +0000)]
Remove SkRasterClip::setPath(const SkPath&, const SkRasterClip&, bool).

The method is only used in SkCanvas::clipPathHelper() and only called when isRect() is true (which effectively disables the !isBW branch).

Thus, we can promote the isBW branch to the caller and drop the rest of the method.

R=reed@google.com

Author: fmalita@chromium.org

Review URL: https://chromiumcodereview.appspot.com/18552004

git-svn-id: http://skia.googlecode.com/svn/trunk@9974 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agodon't leak the bitmap filter
commit-bot@chromium.org [Wed, 10 Jul 2013 20:42:12 +0000 (20:42 +0000)]
don't leak the bitmap filter

BUG=
R=reed@google.com

Author: humper@google.com

Review URL: https://chromiumcodereview.appspot.com/18999005

git-svn-id: http://skia.googlecode.com/svn/trunk@9973 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoAllow use of SKIA_OUT on Windows
borenet@google.com [Wed, 10 Jul 2013 19:07:56 +0000 (19:07 +0000)]
Allow use of SKIA_OUT on Windows

This works as expected, except that %SKIA_OUT% must be on the same drive

R=djsollen@google.com

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

git-svn-id: http://skia.googlecode.com/svn/trunk@9972 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agopdfviewer: remove assert
edisonn@google.com [Wed, 10 Jul 2013 18:38:02 +0000 (18:38 +0000)]
pdfviewer: remove assert

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

git-svn-id: http://skia.googlecode.com/svn/trunk@9971 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agopdfviewer: fix warnings on mac
edisonn@google.com [Wed, 10 Jul 2013 18:20:06 +0000 (18:20 +0000)]
pdfviewer: fix warnings on mac
Review URL: https://codereview.chromium.org/18293014

git-svn-id: http://skia.googlecode.com/svn/trunk@9970 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agomake svndiff.py executable
epoger@google.com [Wed, 10 Jul 2013 18:09:55 +0000 (18:09 +0000)]
make svndiff.py executable

git-svn-id: http://skia.googlecode.com/svn/trunk@9969 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agopdf viewer: fix a few warnings, and enable warning as errors
edisonn@google.com [Wed, 10 Jul 2013 17:44:55 +0000 (17:44 +0000)]
pdf viewer: fix a few warnings, and enable warning as errors

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

git-svn-id: http://skia.googlecode.com/svn/trunk@9966 2bbb7eff-a529-9590-31e7-b0007b416f81