platform/upstream/libSkiaSharp.git
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

11 years agorebaseline.py: if --tests is not specified, get test list from actual-results.json
epoger@google.com [Wed, 5 Jun 2013 15:43:37 +0000 (15:43 +0000)]
rebaseline.py: if --tests is not specified, get test list from actual-results.json

R=scroggo@google.com

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

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

11 years agoFixup some conventions in SkTArray and add reset to count method.
commit-bot@chromium.org [Wed, 5 Jun 2013 15:40:59 +0000 (15:40 +0000)]
Fixup some conventions in SkTArray and add reset to count method.

R=jvanverth@google.com

Author: bsalomon@google.com

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

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

11 years agoFix issues related to resolving fonts based on name.
djsollen@google.com [Wed, 5 Jun 2013 14:20:25 +0000 (14:20 +0000)]
Fix issues related to resolving fonts based on name.

1) non-system font files are not added to the cache.
2) We cache the default fonts for quick lookup.

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

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

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

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

11 years agoUpdate debugger for addition of Conic path verb
commit-bot@chromium.org [Tue, 4 Jun 2013 21:51:06 +0000 (21:51 +0000)]
Update debugger for addition of Conic path verb

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

Author: robertphillips@google.com

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

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

11 years agocreate simple skia app for android using jni
commit-bot@chromium.org [Tue, 4 Jun 2013 21:13:11 +0000 (21:13 +0000)]
create simple skia app for android using jni

R=djsollen@google.com

Author: zachr@google.com

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

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

11 years agochange impl to explicitly store length as u32, rather than size_t, so we keep a packe...
reed@google.com [Tue, 4 Jun 2013 20:36:52 +0000 (20:36 +0000)]
change impl to explicitly store length as u32, rather than size_t, so we keep a packed struct on 64bit machines

BUG=

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

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

11 years agopath ops -- try to fix build again
caryclark@google.com [Tue, 4 Jun 2013 18:30:02 +0000 (18:30 +0000)]
path ops -- try to fix build again

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

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

11 years agopath ops work in progress
caryclark@google.com [Tue, 4 Jun 2013 18:14:11 +0000 (18:14 +0000)]
path ops work in progress

do not check in

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

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

11 years agopath ops -- rewrite angle sort
caryclark@google.com [Tue, 4 Jun 2013 17:59:42 +0000 (17:59 +0000)]
path ops -- rewrite angle sort

This is a major change resulting from a minor
tweak. In the old code, the intersection point
of two curves was shared between them, but the
intersection points and end points of sorted edges was
computed directly from the intersection T value.

In this CL, both intersection points and sorted points
are the same, and intermediate control points are computed
to preserve their slope.

The sort itself has been completely rewritten to be more
robust and remove 'magic' checks, conditions that empirically
worked but couldn't be rationalized.

This CL was triggered by errors generated computing the clips
of SKP files. At this point, all 73M standard tests work and
at least the first troublesome SKPs work.

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

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

11 years agogm_json.py: add ability to load JSON file from a string, not just a local file
epoger@google.com [Tue, 4 Jun 2013 17:50:36 +0000 (17:50 +0000)]
gm_json.py: add ability to load JSON file from a string, not just a local file

This will make it easier to read JSON files from new sources (HTTP, etc.)

R=scroggo@google.com

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

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

11 years agoFix hinting menu in SampleApp.
bungeman@google.com [Tue, 4 Jun 2013 17:49:20 +0000 (17:49 +0000)]
Fix hinting menu in SampleApp.

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

11 years agoadd size limit for using glyphcache. above that, draw using paths
reed@google.com [Tue, 4 Jun 2013 16:56:27 +0000 (16:56 +0000)]
add size limit for using glyphcache. above that, draw using paths

BUG=
R=bungeman@google.com

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

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

11 years agorebaseline.py : add self-tests
epoger@google.com [Tue, 4 Jun 2013 14:58:47 +0000 (14:58 +0000)]
rebaseline.py : add self-tests

R=senorblanco@chromium.org

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

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

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

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

11 years agoFix signed/unsigned comparison warning as error from r9421.
bungeman@google.com [Mon, 3 Jun 2013 21:35:03 +0000 (21:35 +0000)]
Fix signed/unsigned comparison warning as error from r9421.

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

11 years agoFix hinting and add subpixel to SampleApp.
bungeman@google.com [Mon, 3 Jun 2013 21:26:34 +0000 (21:26 +0000)]
Fix hinting and add subpixel to SampleApp.

This change allows users of SampleApp to cycle through all of the hinting modes
(using the 'h' key) and also toggle subpixel positioning on the paint (using
the 's' key). Because 'up' and 'down' have replaced its functionality,
'scale', the exising user of 's', is removed.

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

11 years agoTesting the Commit Queue (SkipBuildbotRuns)
commit-bot@chromium.org [Mon, 3 Jun 2013 20:41:50 +0000 (20:41 +0000)]
Testing the Commit Queue (SkipBuildbotRuns)

R=borenet@google.com

Author: rmistry@google.com

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

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

11 years agoRemove assertion in debug GL impl that stencil buffers are deleted after FBOs to...
commit-bot@chromium.org [Mon, 3 Jun 2013 20:09:08 +0000 (20:09 +0000)]
Remove assertion in debug GL impl that stencil buffers are deleted after FBOs to which they are bound.

R=robertphillips@google.com

Author: bsalomon@google.com

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

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

11 years agoFix leak of effect in SkXfermodeImageFilter::filterImageGPU()
commit-bot@chromium.org [Mon, 3 Jun 2013 19:40:17 +0000 (19:40 +0000)]
Fix leak of effect in SkXfermodeImageFilter::filterImageGPU()

R=senorblanco@chromium.org

Author: bsalomon@google.com

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

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

11 years agoDon't crash if device creation fails in bench.
commit-bot@chromium.org [Mon, 3 Jun 2013 19:31:07 +0000 (19:31 +0000)]
Don't crash if device creation fails in bench.

R=robertphillips@google.com

Author: bsalomon@google.com

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

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

11 years agoreenable colortype gm
reed@google.com [Mon, 3 Jun 2013 17:49:37 +0000 (17:49 +0000)]
reenable colortype gm

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

11 years agoif we can't load Times, use default font
reed@google.com [Mon, 3 Jun 2013 17:45:29 +0000 (17:45 +0000)]
if we can't load Times, use default font

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

11 years agoFix Win7 warning-as-error complaint
robertphillips@google.com [Mon, 3 Jun 2013 17:29:58 +0000 (17:29 +0000)]
Fix Win7 warning-as-error complaint

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

11 years agoFollow on to r9408, implement sk_fileno in SkOSFile_none.cpp.
bungeman@google.com [Mon, 3 Jun 2013 17:20:21 +0000 (17:20 +0000)]
Follow on to r9408, implement sk_fileno in SkOSFile_none.cpp.

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

11 years agoAdded megalooper GM
robertphillips@google.com [Mon, 3 Jun 2013 17:13:25 +0000 (17:13 +0000)]
Added megalooper GM

https://codereview.chromium.org/16004011/

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

11 years agoAdd SkData::NewFromFD.
bungeman@google.com [Mon, 3 Jun 2013 17:10:35 +0000 (17:10 +0000)]
Add SkData::NewFromFD.

Chromium needs a SkStream backed by a file descriptor.
Skia already has the code and can do the work, this change exposes the
functionality in Skia in a clean way.

https://codereview.chromium.org/15941025/

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

11 years agoAdded comment to SkDrawLooper fix
robertphillips@google.com [Mon, 3 Jun 2013 16:58:58 +0000 (16:58 +0000)]
Added comment to SkDrawLooper fix

(SkipBuildbotRuns)

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

11 years agoadd bench for sk_memset16/32
reed@google.com [Mon, 3 Jun 2013 16:54:10 +0000 (16:54 +0000)]
add bench for sk_memset16/32

BUG=

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

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

11 years agoupdate android_gdb_exe to work with skia shared lib
djsollen@google.com [Mon, 3 Jun 2013 16:02:22 +0000 (16:02 +0000)]
update android_gdb_exe to work with skia shared lib

R=borenet@google.com

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

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

11 years agofix gm on android
djsollen@google.com [Mon, 3 Jun 2013 15:56:44 +0000 (15:56 +0000)]
fix gm on android

R=borenet@google.com

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

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

11 years agoyet another build fix for skia_launcher
djsollen@google.com [Mon, 3 Jun 2013 14:51:14 +0000 (14:51 +0000)]
yet another build fix for skia_launcher

R=borenet@google.com

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

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

11 years agoFix broken include path for directwrite backend
djsollen@google.com [Mon, 3 Jun 2013 14:44:52 +0000 (14:44 +0000)]
Fix broken include path for directwrite backend

R=borenet@google.com

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

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

11 years agofix broken skia_launcher app
djsollen@google.com [Mon, 3 Jun 2013 14:02:15 +0000 (14:02 +0000)]
fix broken skia_launcher app

R=borenet@google.com

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

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

11 years agoWhitespace change to trigger rebuilds
borenet@google.com [Mon, 3 Jun 2013 13:06:42 +0000 (13:06 +0000)]
Whitespace change to trigger rebuilds

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

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

11 years agoPrepare skia for shared library build on android
djsollen@google.com [Mon, 3 Jun 2013 12:10:19 +0000 (12:10 +0000)]
Prepare skia for shared library build on android

This reapplies revision 9378 after the buildbot has been updated.

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

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

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

11 years agoHamfisted fix to drawLooper w/ 0 stages bug
robertphillips@google.com [Sun, 2 Jun 2013 16:47:06 +0000 (16:47 +0000)]
Hamfisted fix to drawLooper w/ 0 stages bug

https://codereview.chromium.org/16305002/

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

11 years agoDisable colortype GM due to crash
robertphillips@google.com [Sun, 2 Jun 2013 15:01:06 +0000 (15:01 +0000)]
Disable colortype GM due to crash

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

11 years agoN7 performance trigger rebaselines after skp update
robertphillips@google.com [Sun, 2 Jun 2013 13:37:32 +0000 (13:37 +0000)]
N7 performance trigger rebaselines after skp update

(SkipBuildbotRuns)

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

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

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

11 years agofix another int -- float warning
reed@google.com [Fri, 31 May 2013 21:13:36 +0000 (21:13 +0000)]
fix another int -- float warning

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

11 years agoskip_picture in colortype gm for now
reed@google.com [Fri, 31 May 2013 21:09:06 +0000 (21:09 +0000)]
skip_picture in colortype gm for now

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

11 years agouse SkIntToScalar to fix warning
reed@google.com [Fri, 31 May 2013 21:06:03 +0000 (21:06 +0000)]
use SkIntToScalar to fix warning

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

11 years agostart a wrapper for color fonts
reed@google.com [Fri, 31 May 2013 20:17:57 +0000 (20:17 +0000)]
start a wrapper for color fonts

BUG=
R=bungeman@google.com

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

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

11 years agoprepare skia for shared library build on android
djsollen@google.com [Fri, 31 May 2013 20:09:47 +0000 (20:09 +0000)]
prepare skia for shared library build on android

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

Committed: https://code.google.com/p/skia/source/detail?r=9378

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

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

11 years agoprepare skia for shared library build on android
djsollen@google.com [Fri, 31 May 2013 20:02:56 +0000 (20:02 +0000)]
prepare skia for shared library build on android

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

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

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

11 years agosort the glyphID arrays
reed@google.com [Fri, 31 May 2013 19:46:02 +0000 (19:46 +0000)]
sort the glyphID arrays

add head/tail code

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

11 years agoRemove SK_API, from SkTSet. the template is not public.
edisonn@google.com [Fri, 31 May 2013 18:04:20 +0000 (18:04 +0000)]
Remove SK_API, from SkTSet. the template is not public.
Review URL: https://codereview.chromium.org/15792016

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

11 years agoImplement SkXfermode image filter. This required changing the signature of SkXfermode...
senorblanco@chromium.org [Fri, 31 May 2013 17:49:12 +0000 (17:49 +0000)]
Implement SkXfermode image filter. This required changing the signature of SkXfermode::asNewEffectOrCoeffs(), to add an optional background texture.

For the raster path, we do a straightforward 2-pass method: draw background, then composite the foreground over it.

For the GPU path, if the xfermode can be expressed as an effect, we build an effect with the background texture incorporated, then do a single-pass draw fetching both foreground and background textures, and compositing to the result. If the xfermode is expressed as src/dst coefficients, we do a 2-pass draw as in the raster path and use fixed-function blending.

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

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

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

11 years agoAll SKP files in Google Storage have been updated. (AddDashboardAnnotation)
rmistry@google.com [Fri, 31 May 2013 17:41:03 +0000 (17:41 +0000)]
All SKP files in Google Storage have been updated. (AddDashboardAnnotation)

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

11 years agobump picture version since SkPath has changed (conics)
reed@google.com [Fri, 31 May 2013 15:17:50 +0000 (15:17 +0000)]
bump picture version since SkPath has changed (conics)

enable conics in SkPath

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

11 years agoRead and write pixel offset when serializing bitmaps.
scroggo@google.com [Fri, 31 May 2013 14:39:54 +0000 (14:39 +0000)]
Read and write pixel offset when serializing bitmaps.

Remove ifdef's preventing a change to read and write offsets.
This fixes a bug where the SKP will draw the wrong portion
of bitmaps.

In addition, read the offset from the stream whether the
bitmap decoder succeeds or not, so that a failure to decode
still advances the stream to the correct spot.

Set the offset to 0 before calling SkPicture::EncodeBitmap,
so that if the function does not set it, we will not
modify the offset.

REQUIRES A CHANGE TO THE PICTURE VERSION. Does not change
PICTURE_VERSION itself, since other CLs are also requiring
a change.

BUG=https://code.google.com/p/skia/issues/detail?id=1301
R=djsollen@google.com

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

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

11 years agoFix iOS build.
scroggo@google.com [Fri, 31 May 2013 14:27:55 +0000 (14:27 +0000)]
Fix iOS build.

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

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

11 years agoFix build.
scroggo@google.com [Fri, 31 May 2013 14:06:16 +0000 (14:06 +0000)]
Fix build.

Remove CreateDefaultDecoder call, since the function was removed.

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

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

11 years agoSeparate core and images project.
scroggo@google.com [Fri, 31 May 2013 14:00:10 +0000 (14:00 +0000)]
Separate core and images project.

SkImage calls functions on SkImageDecoder and SkImageEncoder. This
is desired behavior, and it is also desired to include SkImage as
a part of core. In order to keep core from depending on images,
update SkImageDecoder_empty.cpp to implement all of SkImageDecoder
and SkImageEncoder. This file will be built by chrome (in
https://codereview.chromium.org/15960015).

Move force_linking from SkImageDecoder.cpp to its own file. It must
be called to force linking with the image decoders if desired. Call
the function in tools that need it:
sk_image
render_pictures
render_pdfs
sk_hello
filter
bench_pictures
debugger

SkImageDecoder:
Derive from SkNoncopyable, instead of duplicating its
hiding of constructors.

skhello:
Return rather than trying to write a null SkData to the stream.

Revert "Hamfistedly removed core dependence on images"
(commit 0f05f682a90bc125323677abf3476e1027d174f5) and
"Move SkImage::encode to SkImage_Codec.cpp."
(commit 83e47a954d0bf65439f3d9c0c93213063dd70da3.)
These two commits were temporary fixes that this change
cleans up.

SkSnapshot.cpp:
Check for a NULL encoder returned by SkImageEncoder::Create.

BUG=https://code.google.com/p/skia/issues/detail?id=1275
R=djsollen@google.com, robertphillips@google.com

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

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

11 years agoAdd atlasing option to GameBench bench
robertphillips@google.com [Fri, 31 May 2013 13:27:02 +0000 (13:27 +0000)]
Add atlasing option to GameBench bench

https://codereview.chromium.org/15660012/

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

11 years agofix warnings on MacOS 10.6
humper@google.com [Fri, 31 May 2013 12:58:29 +0000 (12:58 +0000)]
fix warnings on MacOS 10.6

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

11 years agoMore general GM for testing bitmap filtering, including checkerboards, images, and...
humper@google.com [Fri, 31 May 2013 12:50:39 +0000 (12:50 +0000)]
More general GM for testing bitmap filtering, including checkerboards, images, and text.

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

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

11 years agospecialize bicubic filtering for scale-only
humper@google.com [Fri, 31 May 2013 12:49:18 +0000 (12:49 +0000)]
specialize bicubic filtering for scale-only

BUG=

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

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

11 years agoMark picture record benches as non-rendering.
bsalomon@google.com [Thu, 30 May 2013 19:52:38 +0000 (19:52 +0000)]
Mark picture record benches as non-rendering.

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

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

11 years agoadd script to scrape glyph usage in drawText calls
reed@google.com [Thu, 30 May 2013 18:55:14 +0000 (18:55 +0000)]
add script to scrape glyph usage in drawText calls

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

11 years agorebaseline.py: use argparse command-line flags for more flexibility
epoger@google.com [Thu, 30 May 2013 15:46:19 +0000 (15:46 +0000)]
rebaseline.py: use argparse command-line flags for more flexibility

--tests is the only mandatory argument.

If you used to run this:
rebaseline.py aaclip bigmatrix

Run this instead:
rebaseline.py --tests aaclip bigmatrix

That's the only change you NEED to make.

And then, if you WANT to specify --configs, --subdirs, etc. you CAN.

R=senorblanco@chromium.org

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

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

11 years agoRevert "add asserts to point<-->verb helpers"
reed@google.com [Thu, 30 May 2013 15:29:48 +0000 (15:29 +0000)]
Revert "add asserts to point<-->verb helpers"

This reverts commit b4775ac7b55802e87231768f002e4b42f233b0aa.

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

11 years agoadd asserts to point<-->verb helpers
reed@google.com [Thu, 30 May 2013 14:57:55 +0000 (14:57 +0000)]
add asserts to point<-->verb helpers

patch from issue 16153005

BUG=

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

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

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

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

11 years agoSpeculative fix for Tegra-based Androids: don't try to unpremultiply dstColor in...
senorblanco@chromium.org [Wed, 29 May 2013 23:41:28 +0000 (23:41 +0000)]
Speculative fix for Tegra-based Androids: don't try to unpremultiply dstColor in-place; put it in a temporary.

TBR=bsalomon

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

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

11 years agoReplace GrDrawState::AutoDeviceCoordDraw with GrDrawState::AutoViewMatrixRestore...
bsalomon@google.com [Wed, 29 May 2013 21:27:53 +0000 (21:27 +0000)]
Replace GrDrawState::AutoDeviceCoordDraw with GrDrawState::AutoViewMatrixRestore::setIdentity(). s

R=robertphillips@google.com

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

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

11 years agoProvide a GPU implementation of SkArithmeticMode, using a custom GrEffect exposed...
senorblanco@chromium.org [Wed, 29 May 2013 20:55:09 +0000 (20:55 +0000)]
Provide a GPU implementation of SkArithmeticMode, using a custom GrEffect exposed via asNewEffectOrCoeff().

Doing it this way required modifying the arithmode GM to use saveLayer()/restore() rather than creating an offscreen SkBitmap, since otherwise the compositing is always done in raster mode. Fixing that in turn exposed that SkArithmeticMode did not work in Picture mode, since it wasn't flattenable. Made it so.

Note: this will require rebaselining the arithmode GM (again).

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

Originally committed: https://code.google.com/p/skia/source/detail?r=9324
Reverted: https://code.google.com/p/skia/source/detail?r=9325

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

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

11 years agoUse macros for new and delete in SkTemplates.h
scroggo@google.com [Wed, 29 May 2013 20:10:25 +0000 (20:10 +0000)]
Use macros for new and delete in SkTemplates.h

Remove use of new placement array.

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

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

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