platform/upstream/libSkiaSharp.git
11 years agoBuild fix after r9598.
fmalita@google.com [Thu, 13 Jun 2013 21:25:45 +0000 (21:25 +0000)]
Build fix after r9598.

Updated include paths for debugger backend classes.

R=bungeman@google.com

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

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

11 years agoExpose debugger backend classes externally.
fmalita@google.com [Thu, 13 Jun 2013 20:59:14 +0000 (20:59 +0000)]
Expose debugger backend classes externally.

SkDebugCanvas & friends are useful beyond the Qt debugger app - Chromium's picture inspector (in development) is at the point where it could take advantage of it.

This patch moves SkDrawCommand, SkDebugCanvas & SkObjectParser from trunk/debugger to trunk/src/utils (since several tools already use these, this seems appropriate), and makes SkDrawCommand & SkDebugCanvas' symbols visible externally (SK_API).

R=reed@google.com

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

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

11 years agofix warning related to && and || and parens
reed@google.com [Thu, 13 Jun 2013 20:48:09 +0000 (20:48 +0000)]
fix warning related to && and || and parens

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

11 years agoadd validate to SkView for debugging
reed@google.com [Thu, 13 Jun 2013 20:20:17 +0000 (20:20 +0000)]
add validate to SkView for debugging

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

11 years agoFix compiler error for r9592
robertphillips@google.com [Thu, 13 Jun 2013 20:06:44 +0000 (20:06 +0000)]
Fix compiler error for r9592

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

11 years agomost pdf dictionary types suported, need enabling now
edisonn@google.com [Thu, 13 Jun 2013 20:02:29 +0000 (20:02 +0000)]
most pdf dictionary types suported, need enabling now

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

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

11 years agoHopefully fix Android warning-as-error about uninit var.
bsalomon@google.com [Thu, 13 Jun 2013 19:47:23 +0000 (19:47 +0000)]
Hopefully fix Android warning-as-error about uninit var.

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

11 years agoReplace fixed-size array of effect stages in GrDrawState with two appendable arrays...
bsalomon@google.com [Thu, 13 Jun 2013 19:34:18 +0000 (19:34 +0000)]
Replace fixed-size array of effect stages in GrDrawState with two appendable arrays, one for color, one for coverage.

R=robertphillips@google.com

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

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

11 years agoskimage self-tests: confirm correctness of bitmap hash values
epoger@google.com [Thu, 13 Jun 2013 19:12:05 +0000 (19:12 +0000)]
skimage self-tests: confirm correctness of bitmap hash values

R=scroggo@google.com

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

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

11 years agoMake text context responsible for setting GrPaint on GrDrawState.
bsalomon@google.com [Thu, 13 Jun 2013 17:44:07 +0000 (17:44 +0000)]
Make text context responsible for setting GrPaint on GrDrawState.

R=robertphillips@google.com

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

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

11 years agoParse pdf reference manual for 1.4 to extract dictionary definition, initial code...
edisonn@google.com [Thu, 13 Jun 2013 17:24:54 +0000 (17:24 +0000)]
Parse pdf reference manual for 1.4 to extract dictionary definition, initial code. Use spec2def.py <PdfReference-okular-1.txt

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

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

11 years agoEnhancements and a fix to templated containers.
bsalomon@google.com [Thu, 13 Jun 2013 15:13:46 +0000 (15:13 +0000)]
Enhancements and a fix to templated containers.

R=robertphillips@google.com

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

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

11 years agooops, fix missing change in 9532, setting hashbits to 8
reed@google.com [Thu, 13 Jun 2013 14:34:51 +0000 (14:34 +0000)]
oops, fix missing change in 9532, setting hashbits to 8

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

11 years agoFixes zero division when there are no lines to plot (only one revision in range)
bensong@google.com [Thu, 13 Jun 2013 13:53:16 +0000 (13:53 +0000)]
Fixes zero division when there are no lines to plot (only one revision in range)
(SkipBuildbotRuns)
Review URL: https://codereview.chromium.org/16907003

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

11 years agoAdd benchmark for PremultiplyAlpha and UnpremultiplyAlpha in Skia
commit-bot@chromium.org [Thu, 13 Jun 2013 10:18:02 +0000 (10:18 +0000)]
Add benchmark for PremultiplyAlpha and UnpremultiplyAlpha in Skia

BUG=248549
R=tomhudson@chromium.org, bsalomon@chromium.org, reed@google.com, noel@chromium.org, tomhudson@google.com

Author: jun.a.jiang@intel.com

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

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

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

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

11 years agoadd canvas scale and rotate
mike@reedtribe.org [Thu, 13 Jun 2013 01:28:56 +0000 (01:28 +0000)]
add canvas scale and rotate

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

11 years agoadd SkIntToScalar and SkFloatToScalar to stop build errors on Mac10.6
commit-bot@chromium.org [Wed, 12 Jun 2013 23:36:50 +0000 (23:36 +0000)]
add SkIntToScalar and SkFloatToScalar to stop build errors on Mac10.6

BUG=
R=vandebo@chromium.org

Author: richardlin@chromium.org

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

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

11 years agoAnother warning as error fix for r9554
robertphillips@google.com [Wed, 12 Jun 2013 22:41:30 +0000 (22:41 +0000)]
Another warning as error fix for r9554

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

11 years agoWarnings as errors fix for r9554
robertphillips@google.com [Wed, 12 Jun 2013 22:34:15 +0000 (22:34 +0000)]
Warnings as errors fix for r9554

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

11 years agoDisable the unpremultiply/remultiply in SkArithmeticMode, both raster and GPU, since...
senorblanco@chromium.org [Wed, 12 Jun 2013 22:15:43 +0000 (22:15 +0000)]
Disable the unpremultiply/remultiply in SkArithmeticMode, both raster and GPU, since the SVG spec actually defines arithmetic compositing to operate on premul colours directly.

The unpremul/remul code has been placed behind a gUseUnpremul global, which is default false. The non-unpremul path uses a min() to keep the colours to valid premult values.

Note:  This change will require new baselines for the arithmode and xfermodeimagefilter GMs.

R=reed@google.com

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

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

11 years agoAdded tests for radial gradients with shader matrices
commit-bot@chromium.org [Wed, 12 Jun 2013 21:47:39 +0000 (21:47 +0000)]
Added tests for radial gradients with shader matrices

Fixed a bug with linear gradient PDF matrices and added test cases

R=vandebo@chromium.org, reed@google.com

Author: richardlin@chromium.org

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

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

11 years agoFixed a bug with linear gradient PDF matrices and added test cases
commit-bot@chromium.org [Wed, 12 Jun 2013 21:33:02 +0000 (21:33 +0000)]
Fixed a bug with linear gradient PDF matrices and added test cases

R=vandebo@chromium.org, reed@google.com

Author: richardlin@chromium.org

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

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

11 years agoremove leftover printf
reed@google.com [Wed, 12 Jun 2013 21:07:55 +0000 (21:07 +0000)]
remove leftover printf

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

11 years agouse ForceLinking to get codecs into lua_picture
reed@google.com [Wed, 12 Jun 2013 20:07:10 +0000 (20:07 +0000)]
use ForceLinking to get codecs into lua_picture

BUG=
R=scroggo@google.com

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

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

11 years agoadd script to count glyph -vs- char draw calls
reed@google.com [Wed, 12 Jun 2013 19:53:49 +0000 (19:53 +0000)]
add script to count glyph -vs- char draw calls

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

11 years agoremove some old code
edisonn@google.com [Wed, 12 Jun 2013 19:53:42 +0000 (19:53 +0000)]
remove some old code

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

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

11 years agoCode generator for dinamic generation of podofo wrappers
edisonn@google.com [Wed, 12 Jun 2013 19:07:45 +0000 (19:07 +0000)]
Code generator for dinamic generation of podofo wrappers

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

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

11 years agorebaseline.py: keep going if we encounter an "INVALID" entry in the JSON file
epoger@google.com [Wed, 12 Jun 2013 19:07:00 +0000 (19:07 +0000)]
rebaseline.py: keep going if we encounter an "INVALID" entry in the JSON file

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

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

11 years agoSmall change that eliminates Parse Errors with encoded skps.
commit-bot@chromium.org [Wed, 12 Jun 2013 18:28:36 +0000 (18:28 +0000)]
Small change that eliminates Parse Errors with encoded skps.

R=reed@google.com, caryclark@google.com, scroggo@google.com

Author: sglez@google.com

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

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

11 years agotest thick stroking of conics
reed@google.com [Wed, 12 Jun 2013 17:46:41 +0000 (17:46 +0000)]
test thick stroking of conics

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

11 years agorebaseline.py: try to download images from Google Storage before skia-autogen
epoger@google.com [Wed, 12 Jun 2013 17:44:14 +0000 (17:44 +0000)]
rebaseline.py: try to download images from Google Storage before skia-autogen

This will allow us to complete Step 1 of https://goto.google.com/ChecksumTransitionDetail

R=scroggo@google.com

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

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

11 years agouse 8 bits for fontcache hash
reed@google.com [Wed, 12 Jun 2013 17:14:37 +0000 (17:14 +0000)]
use 8 bits for fontcache hash

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

11 years agoadd cache efficiency test
reed@google.com [Wed, 12 Jun 2013 15:50:26 +0000 (15:50 +0000)]
add cache efficiency test

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

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

11 years agoRemove svn:externals and update the README.
djsollen@google.com [Wed, 12 Jun 2013 14:57:33 +0000 (14:57 +0000)]
Remove svn:externals and update the README.

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

11 years agoFixes microbench format change caused by r9417.
bensong@google.com [Wed, 12 Jun 2013 14:45:03 +0000 (14:45 +0000)]
Fixes microbench format change caused by r9417.
r9417 introduced extra line breaks between different configs for a bench. This reverts the outputs to the previous one-line format.
Review URL: https://codereview.chromium.org/16703024

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

11 years agorebaseline.py: add --add-new option, and only add new expectations if it is set
epoger@google.com [Wed, 12 Jun 2013 14:25:30 +0000 (14:25 +0000)]
rebaseline.py: add --add-new option, and only add new expectations if it is set

R=senorblanco@chromium.org

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

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

11 years agoNexus 7 performance trigger rebaselines
robertphillips@google.com [Wed, 12 Jun 2013 13:21:49 +0000 (13:21 +0000)]
Nexus 7 performance trigger rebaselines

(SkipBuildbotRuns)

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

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

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

11 years agogenerate enums for pdf types
edisonn@google.com [Tue, 11 Jun 2013 23:06:16 +0000 (23:06 +0000)]
generate enums for pdf types

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

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

11 years agogenerate code for pdf viewer (initial draft)
edisonn@google.com [Tue, 11 Jun 2013 21:44:08 +0000 (21:44 +0000)]
generate code for pdf viewer (initial draft)

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

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

11 years agodoh. send byte length, not word count, to measureText
reed@google.com [Tue, 11 Jun 2013 21:42:54 +0000 (21:42 +0000)]
doh. send byte length, not word count, to measureText

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

11 years agomove measureText to be the only thing in the inner loop
reed@google.com [Tue, 11 Jun 2013 20:25:53 +0000 (20:25 +0000)]
move measureText to be the only thing in the inner loop

BUG=

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

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

11 years agorevert DEPS for angle until tools are fixed
djsollen@google.com [Tue, 11 Jun 2013 20:16:48 +0000 (20:16 +0000)]
revert DEPS for angle until tools are fixed

R=bsalomon@google.com

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

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

11 years agoupdate WebP to a dev version of 0.3.1
djsollen@google.com [Tue, 11 Jun 2013 20:03:50 +0000 (20:03 +0000)]
update WebP to a dev version of 0.3.1

This is necessary to pick up a NEON fix for the iOS build.

R=borenet@google.com

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

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

11 years agoswitch array to uint16_t to fix overflows
reed@google.com [Tue, 11 Jun 2013 19:53:19 +0000 (19:53 +0000)]
switch array to uint16_t to fix overflows

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

11 years agocomment out value > int16_t
reed@google.com [Tue, 11 Jun 2013 19:40:10 +0000 (19:40 +0000)]
comment out value > int16_t

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

11 years agoinclude the right named .h for glyph data
reed@google.com [Tue, 11 Jun 2013 19:24:08 +0000 (19:24 +0000)]
include the right named .h for glyph data

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

11 years agoFixes to make the gm run when GrContext can't be created for ANGLE context.
bsalomon@google.com [Tue, 11 Jun 2013 19:22:44 +0000 (19:22 +0000)]
Fixes to make the gm run when GrContext can't be created for ANGLE context.

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

11 years agoadd bench for fontcache performance (measurement)
reed@google.com [Tue, 11 Jun 2013 19:18:44 +0000 (19:18 +0000)]
add bench for fontcache performance (measurement)

BUG=

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

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

11 years agorebaseline.py: improve readability of dry-run output
epoger@google.com [Tue, 11 Jun 2013 16:24:37 +0000 (16:24 +0000)]
rebaseline.py: improve readability of dry-run output

Split off of already-reviewed https://codereview.chromium.org/15789010/ ('rebaseline.py: --tests and --configs are now FILTERS within json results')

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

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

11 years agorebaseline.py: if rebaselining all platforms (not listing them explicitly), allow...
epoger@google.com [Tue, 11 Jun 2013 16:16:02 +0000 (16:16 +0000)]
rebaseline.py: if rebaselining all platforms (not listing them explicitly), allow missing platforms

TBR=any-reviewer

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

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

11 years agoGYP Changes and Scripts for Compiling Skia for ChromeOS
borenet@google.com [Tue, 11 Jun 2013 15:52:19 +0000 (15:52 +0000)]
GYP Changes and Scripts for Compiling Skia for ChromeOS

For now, this requires having a complete ChromeOS checkout.

R=djsollen@google.com

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

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

11 years agorebaseline.py: in option names, replace underscores with hyphens
epoger@google.com [Tue, 11 Jun 2013 15:45:46 +0000 (15:45 +0000)]
rebaseline.py: in option names, replace underscores with hyphens

Split off of already-reviewed https://codereview.chromium.org/15789010/ ('rebaseline.py: --tests and --configs are now FILTERS within json results')

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

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

11 years agoRemove the non-separable blur because it is no longer used.
commit-bot@chromium.org [Tue, 11 Jun 2013 15:23:42 +0000 (15:23 +0000)]
Remove the non-separable blur because it is no longer used.

R=senorblanco@chromium.org, reed@google.com

Author: arbesfeld@chromium.org

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

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

11 years agoCompact the clipstack for kReplace_Op'd geometry
commit-bot@chromium.org [Tue, 11 Jun 2013 11:01:48 +0000 (11:01 +0000)]
Compact the clipstack for kReplace_Op'd geometry

When adding a clip rect or clip path to the stack with the
kReplace_Op operation, remove all previous elements within the
same save frame (elements with fSaveCount equal to the current
fSaveCount of the stack). This prevents unbounded growth of the
clipstack for long-lived instances that gets reused.

Addresses https://code.google.com/p/skia/issues/detail?id=748

R=robertphillips@google.com

Author: fs@opera.com

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

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

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

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

11 years agoadd drawImage to lua
mike@reedtribe.org [Tue, 11 Jun 2013 02:20:28 +0000 (02:20 +0000)]
add drawImage to lua

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

11 years agoImprove batching of drawBitmap* calls
robertphillips@google.com [Mon, 10 Jun 2013 22:07:19 +0000 (22:07 +0000)]
Improve batching of drawBitmap* calls

https://codereview.chromium.org/16406006/

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

11 years agoCompile pdf viewer manaully only, disable on build bots.
edisonn@google.com [Mon, 10 Jun 2013 21:10:50 +0000 (21:10 +0000)]
Compile pdf viewer manaully only, disable on build bots.

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

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

11 years agosimple podofo and skia based pdf viewer
edisonn@google.com [Mon, 10 Jun 2013 20:44:45 +0000 (20:44 +0000)]
simple podofo and skia based pdf viewer

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

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

11 years agoadd conic support to hairlines
reed@google.com [Mon, 10 Jun 2013 18:58:11 +0000 (18:58 +0000)]
add conic support to hairlines

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

11 years agoAdd 2 missing neon files for the android build
djsollen@google.com [Mon, 10 Jun 2013 16:50:18 +0000 (16:50 +0000)]
Add 2 missing neon files for the android build

R=borenet@google.com

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

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

11 years agoUpdate DEPS to use only googlesource.com repositories.
djsollen@google.com [Mon, 10 Jun 2013 15:19:33 +0000 (15:19 +0000)]
Update DEPS to use only googlesource.com repositories.

R=borenet@google.com, scroggo@google.com

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

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

11 years agoForce checking of all color, stencil and FBO allocations for SkSurface_Gpu. This...
senorblanco@chromium.org [Mon, 10 Jun 2013 15:06:09 +0000 (15:06 +0000)]
Force checking of all color, stencil and FBO allocations for SkSurface_Gpu. This fixes the software canvas fallback in Chrome.

R=bsalomon@google.com

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

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

11 years agoFixed gpu perlin noise on Windows
sugoi@google.com [Mon, 10 Jun 2013 13:59:25 +0000 (13:59 +0000)]
Fixed gpu perlin noise on Windows

I just cleaned up and re-ordered some instructions to reduce the number of registers used under the register limit. Instead of looping over channels, the function now only loops over octaves and computes all 4 channels separately within each octave loop. I made a noise function to make it simpler to make the changes and I fixed the code's alignment so that it's more readable.

R=bsalomon@google.com, senorblanco@chromium.org

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

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

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

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

11 years agomore paint methods to lua
mike@reedtribe.org [Sun, 9 Jun 2013 01:54:56 +0000 (01:54 +0000)]
more paint methods to lua

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

11 years agoadd pdf lib to lua_pictures to fix linker error
mike@reedtribe.org [Sat, 8 Jun 2013 16:39:44 +0000 (16:39 +0000)]
add pdf lib to lua_pictures to fix linker error

Revert "Revert "add document and textAlign support to lua""

This reverts commit f603260d7df6315788af3eadb18db556daf41c13.

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

11 years agoRevert "add document and textAlign support to lua"
mike@reedtribe.org [Sat, 8 Jun 2013 13:50:37 +0000 (13:50 +0000)]
Revert "add document and textAlign support to lua"

This reverts commit cdeacf8628757dc3464b26edd148c83bff02f43d.

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

11 years agoadd document and textAlign support to lua
mike@reedtribe.org [Sat, 8 Jun 2013 13:25:23 +0000 (13:25 +0000)]
add document and textAlign support to lua

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

11 years agomove kAlignCount out of Align enum, so it can't accidentally be passed as a parameter
mike@reedtribe.org [Sat, 8 Jun 2013 12:58:19 +0000 (12:58 +0000)]
move kAlignCount out of Align enum, so it can't accidentally be passed as a parameter

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

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

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

11 years agoadd drawtext to lua
mike@reedtribe.org [Sat, 8 Jun 2013 03:15:47 +0000 (03:15 +0000)]
add drawtext to lua

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

11 years agoSkDocument base for pdf, xps, etc.
reed@google.com [Fri, 7 Jun 2013 20:30:16 +0000 (20:30 +0000)]
SkDocument base for pdf, xps, etc.

R=scroggo@google.com

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

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

11 years agoFix for caller of GetTmpDir.
scroggo@google.com [Fri, 7 Jun 2013 14:30:36 +0000 (14:30 +0000)]
Fix for caller of GetTmpDir.

Since I changed GetTmpDir to create an SkString each time, it
needs to be assigned to a variable in order for it to stick around.
Update a test which I missed because my client was out of date.

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

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

11 years agoPreparations for running skimage tool on bots.
scroggo@google.com [Fri, 7 Jun 2013 12:43:15 +0000 (12:43 +0000)]
Preparations for running skimage tool on bots.

skimage_main:
Specify the full name of the expectations file to write on the command line,
rather than the folder to write 'results.json'. This is consistent with
writeJsonSummaryPath in GM, as well as the format for reading the file.
Further, it allows more flexibility to name the file.
Do not force opaque when writing bitmaps. skimage does its comparison on
the raw bitmaps. The images are written for visual comparison, and mostly
transparent bitmaps (like resources/plane.png) aren't meaningful when
forced opaque.
Provide an option to to write only mismatches to a directory. Handled
similar to the writePath.
Report a failure if there is no expectations file. This allows writing
to the mismatchPath so we can create an initial baseline.
Pass SkBitmap by const&.

skimage_self_test:
Include the name of the json file in the parameter passed to
createExpectationsPath. The name has been changed to be more specific.

.gitignore:
Ignore the new name of the file created by skimage_self_test.

run.sh:
Run skimage_self_tests.py

BUG=http://code.google.com/p/skia/issues/detail?id=1241
R=epoger@google.com

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

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

11 years agoRun skimage as part of run.sh
scroggo@google.com [Fri, 7 Jun 2013 12:40:35 +0000 (12:40 +0000)]
Run skimage as part of run.sh

Test skimage to ensure that it does not break.

Split off from https://codereview.chromium.org/15813016/

BUG=http://code.google.com/p/skia/issues/detail?id=1241
R=epoger@google.com

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

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

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

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

11 years agoMake SkDrawCommands lighter weight
robertphillips@google.com [Thu, 6 Jun 2013 23:59:28 +0000 (23:59 +0000)]
Make SkDrawCommands lighter weight

https://codereview.chromium.org/15907023/

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

11 years agoDisable msaa16 by default
robertphillips@google.com [Thu, 6 Jun 2013 21:29:39 +0000 (21:29 +0000)]
Disable msaa16 by default

https://codereview.chromium.org/16035011/

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

11 years agoFix crash when attempting to use a font fallback chain with a custom font.
djsollen@google.com [Thu, 6 Jun 2013 21:25:09 +0000 (21:25 +0000)]
Fix crash when attempting to use a font fallback chain with a custom font.

This is a cherry-pick of a CL that has already been merged into Android.

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

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

11 years agoseparate arrays for color and coverage effects.
bsalomon@google.com [Thu, 6 Jun 2013 20:28:57 +0000 (20:28 +0000)]
separate arrays for color and coverage effects.

R=robertphillips@google.com

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

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

11 years agoAdd dependency to podofo at skia_ext branch.
commit-bot@chromium.org [Thu, 6 Jun 2013 18:39:53 +0000 (18:39 +0000)]
Add dependency to podofo at skia_ext branch.

R=djsollen@google.com

Author: edisonn@google.com

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

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

11 years agoFix ninja/angle build with new gyp rev.
bsalomon@google.com [Thu, 6 Jun 2013 18:34:13 +0000 (18:34 +0000)]
Fix ninja/angle build with new gyp rev.

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

11 years agoMake GrGLProgram no longer depend on kNumStages
bsalomon@google.com [Thu, 6 Jun 2013 18:04:38 +0000 (18:04 +0000)]
Make GrGLProgram no longer depend on kNumStages

R=robertphillips@google.com

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

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

11 years agoWhitespace change to test Commit Queue (SkipBuildbotRuns)
commit-bot@chromium.org [Thu, 6 Jun 2013 18:02:22 +0000 (18:02 +0000)]
Whitespace change to test Commit Queue (SkipBuildbotRuns)

R=borenet@google.com

Author: rmistry@google.com

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

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

11 years agoFix leak in SkFontHost_fontconfig temporary code.
bungeman@google.com [Thu, 6 Jun 2013 17:25:42 +0000 (17:25 +0000)]
Fix leak in SkFontHost_fontconfig temporary code.

https://codereview.chromium.org/16525003

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

11 years agorebaseline.py self-tests: split test inputs and outputs into completely separate...
epoger@google.com [Thu, 6 Jun 2013 15:11:11 +0000 (15:11 +0000)]
rebaseline.py self-tests: split test inputs and outputs into completely separate directories

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

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

11 years agoFix bug in setting directories for tests.
scroggo@google.com [Thu, 6 Jun 2013 14:59:56 +0000 (14:59 +0000)]
Fix bug in setting directories for tests.

make_canonical_dir_path only worked if the provided directory
did not end with a slash. Remove this function, and call
SkPathJoin instead. Update the documentation to acknowledge
that this is an acceptable use of SkPathJoin, and update its
test.

R=epoger@google.com

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

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

11 years agoif you use --picture in SampleApp, make that sample come up first
reed@google.com [Thu, 6 Jun 2013 13:14:13 +0000 (13:14 +0000)]
if you use --picture in SampleApp, make that sample come up first

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

11 years agoWhitespace change to verify builds after r9453
borenet@google.com [Thu, 6 Jun 2013 12:02:25 +0000 (12:02 +0000)]
Whitespace change to verify builds after r9453

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

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

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

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

11 years agoUse all available texture units.
commit-bot@chromium.org [Wed, 5 Jun 2013 23:29:25 +0000 (23:29 +0000)]
Use all available texture units.

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

Author: bsalomon@google.com

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

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

11 years agoUpdate gyp from 1563 to 1643 (take two).
bungeman@google.com [Wed, 5 Jun 2013 18:35:22 +0000 (18:35 +0000)]
Update gyp from 1563 to 1643 (take two).

Re-land 9445 (reverted 9448), but add back the libs no longer provided by gyp.

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

11 years agocall through to the device from SkDraw
reed@google.com [Wed, 5 Jun 2013 18:00:30 +0000 (18:00 +0000)]
call through to the device from SkDraw

BUG=
R=robertphillips@google.com

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

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

11 years agoReverting gyp roll in 9445 due to Windows failures.
bungeman@google.com [Wed, 5 Jun 2013 17:32:27 +0000 (17:32 +0000)]
Reverting gyp roll in 9445 due to Windows failures.

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

11 years agoadd more rebaseline test resources (no behavioral changes)
epoger@google.com [Wed, 5 Jun 2013 16:26:23 +0000 (16:26 +0000)]
add more rebaseline test resources (no behavioral changes)
(SkipBuildbotRuns)

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

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

11 years agoUpdate gyp from 1563 to 1643.
bungeman@google.com [Wed, 5 Jun 2013 16:15:15 +0000 (16:15 +0000)]
Update gyp from 1563 to 1643.
https://codereview.chromium.org/16384005/

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

11 years agoadd launcher icon for android hello_skia_app
djsollen@google.com [Wed, 5 Jun 2013 15:44:16 +0000 (15:44 +0000)]
add launcher icon for android hello_skia_app

R=zachr@google.com

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

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