external/skia/include.git
13 hours agocombine glyph and image bulk alloc, and adjust initial alloc size, to reduce total... master
reed@google.com [Wed, 19 Jun 2013 19:25:36 +0000 (19:25 +0000)]
combine glyph and image bulk alloc, and adjust initial alloc size, to reduce total waste from 50% to 30%

add diagnostics to measure cache efficiency

BUG=

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

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

14 hours agofix https://code.google.com/p/skia/issues/detail?id=1356
epoger@google.com [Wed, 19 Jun 2013 18:52:42 +0000 (18:52 +0000)]
fix https://code.google.com/p/skia/issues/detail?id=1356
('32-bit Mac compiler doesn't like https://code.google.com/p/skia/source/detail?r=9686')

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

14 hours agoAdd SkString::appendU32() and SkString::appendU64()
epoger@google.com [Wed, 19 Jun 2013 18:27:20 +0000 (18:27 +0000)]
Add SkString::appendU32() and SkString::appendU64()
as needed to re-land r9682

R=reed@google.com

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

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

2 days agouse select() so we can wait for XEvents or our timer
reed@google.com [Mon, 17 Jun 2013 13:42:43 +0000 (13:42 +0000)]
use select() so we can wait for XEvents or our timer

poll for xevents using XPending

BUG=

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

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

5 days agoSanitizing source files in Housekeeper-Nightly
skia.committer@gmail.com [Sat, 15 Jun 2013 07:00:53 +0000 (07:00 +0000)]
Sanitizing source files in Housekeeper-Nightly

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

5 days agospeculative fix in TransitionView. don't validate after detachFromParent (we may...
reed@google.com [Fri, 14 Jun 2013 17:46:07 +0000 (17:46 +0000)]
speculative fix in TransitionView. don't validate after detachFromParent (we may have been deleted)

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

5 days agoAdd an option to create unpremultiplied bitmaps.
scroggo@google.com [Fri, 14 Jun 2013 15:33:20 +0000 (15:33 +0000)]
Add an option to create unpremultiplied bitmaps.
Currently they cannot be used directly by Skia, but
the pixels can be used elsewhere.

SkImageDecoder:
Add functions to require unpremultiplied output
and query the presence of the requirement

SkImageDecoder_libpng:
SkImageDecoder_libwebp:
SkImageDecoder_WIC:
Respect the requirement for unpremultiplied output.
TODO: Fix SkImageDecoder_CG.

SkScaledBitmapSampler:
Add procs to skip premultiplication and a boolean
parameter to use those procs.

ImageDecodingTest:
Test unpremultiplied bitmap decoding.

SampleUnpremul:
Add a sample which allows visually comparing between the
unpremultiplied version (copied into a premultiplied bitmap,
since drawing unpremultiplied is not currently supported)
and a premultiplied version of image files.

gm.h:
Add a getter for the resource path, so Samples can use it.

As of patch set 13, https://codereview.chromium.org/16816016/
and https://codereview.chromium.org/16983004/, which were
approved separately.

R=reed@google.com

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

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

5 days agoFix for 9603
robertphillips@google.com [Fri, 14 Jun 2013 12:45:25 +0000 (12:45 +0000)]
Fix for 9603

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

5 days agoAdd operator delete for SkTArray to match operator new
bsalomon@google.com [Fri, 14 Jun 2013 12:30:50 +0000 (12:30 +0000)]
Add operator delete for SkTArray to match operator new

R=robertphillips@google.com

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

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

6 days 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/include@9596 2bbb7eff-a529-9590-31e7-b0007b416f81

6 days 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/include@9592 2bbb7eff-a529-9590-31e7-b0007b416f81

6 days 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/include@9588 2bbb7eff-a529-9590-31e7-b0007b416f81

6 days 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/include@9582 2bbb7eff-a529-9590-31e7-b0007b416f81

8 days 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/include@9502 2bbb7eff-a529-9590-31e7-b0007b416f81

9 days 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/include@9501 2bbb7eff-a529-9590-31e7-b0007b416f81

9 days 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/include@9500 2bbb7eff-a529-9590-31e7-b0007b416f81

9 days 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/include@9499 2bbb7eff-a529-9590-31e7-b0007b416f81

9 days 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/include@9493 2bbb7eff-a529-9590-31e7-b0007b416f81

9 days 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/include@9487 2bbb7eff-a529-9590-31e7-b0007b416f81

11 days 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/include@9479 2bbb7eff-a529-9590-31e7-b0007b416f81

12 days 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/include@9478 2bbb7eff-a529-9590-31e7-b0007b416f81

12 days 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/include@9476 2bbb7eff-a529-9590-31e7-b0007b416f81

13 days 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/include@9458 2bbb7eff-a529-9590-31e7-b0007b416f81

2 weeks 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/include@9442 2bbb7eff-a529-9590-31e7-b0007b416f81

2 weeks 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/include@9441 2bbb7eff-a529-9590-31e7-b0007b416f81

2 weeks 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/include@9440 2bbb7eff-a529-9590-31e7-b0007b416f81

2 weeks 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/include@9436 2bbb7eff-a529-9590-31e7-b0007b416f81

2 weeks 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/include@9429 2bbb7eff-a529-9590-31e7-b0007b416f81

2 weeks 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/include@9423 2bbb7eff-a529-9590-31e7-b0007b416f81

2 weeks 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/include@9408 2bbb7eff-a529-9590-31e7-b0007b416f81

2 weeks 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/include@9387 2bbb7eff-a529-9590-31e7-b0007b416f81

2 weeks 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/include@9381 2bbb7eff-a529-9590-31e7-b0007b416f81

2 weeks 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/include@9374 2bbb7eff-a529-9590-31e7-b0007b416f81

2 weeks 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/include@9373 2bbb7eff-a529-9590-31e7-b0007b416f81

2 weeks 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/include@9370 2bbb7eff-a529-9590-31e7-b0007b416f81

2 weeks 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/include@9364 2bbb7eff-a529-9590-31e7-b0007b416f81

2 weeks 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/include@9353 2bbb7eff-a529-9590-31e7-b0007b416f81

2 weeks 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/include@9347 2bbb7eff-a529-9590-31e7-b0007b416f81

2 weeks 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/include@9344 2bbb7eff-a529-9590-31e7-b0007b416f81

3 weeks 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/include@9343 2bbb7eff-a529-9590-31e7-b0007b416f81

3 weeks 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/include@9330 2bbb7eff-a529-9590-31e7-b0007b416f81

3 weeks 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/include@9329 2bbb7eff-a529-9590-31e7-b0007b416f81

3 weeks agoMoving updateClipConservativelyUsingBounds into SkCanvas
junov@chromium.org [Wed, 29 May 2013 19:09:48 +0000 (19:09 +0000)]
Moving updateClipConservativelyUsingBounds into SkCanvas

This method is being moved from SkPictureRecord to become a protected member of SkCanvas so that other classes derived from SkCanvas can use it.
This Patch also applies the fix provided by updateClipConservativelyUsingBounds to SkPictureUtils::GatherPixelRefs

BUG=https://code.google.com/p/chromium/issues/detail?id=244893

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

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

3 weeks agoRevert "Provide a GPU implementation of SkArithmeticMode, using a custom GrEffect...
senorblanco@chromium.org [Wed, 29 May 2013 19:05:54 +0000 (19:05 +0000)]
Revert "Provide a GPU implementation of SkArithmeticMode, using a custom GrEffect exposed via asNewEffectOrCoeff()."

This reverts commit b8ffe17b5c684f9cfff02285f27e6aa1f75c9b53.

TBR=robertphillips

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

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

3 weeks agoProvide a GPU implementation of SkArithmeticMode, using a custom GrEffect exposed...
senorblanco@chromium.org [Wed, 29 May 2013 18:50:46 +0000 (18:50 +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

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

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

3 weeks agoadd != operator for SkTDArray
reed@google.com [Wed, 29 May 2013 18:05:52 +0000 (18:05 +0000)]
add != operator for SkTDArray

BUG=

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

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

3 weeks agoChange SkStream.
bungeman@google.com [Wed, 29 May 2013 13:43:31 +0000 (13:43 +0000)]
Change SkStream.
https://codereview.chromium.org/15298009/

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

3 weeks agoFirst pass at Comment API
robertphillips@google.com [Wed, 29 May 2013 13:24:23 +0000 (13:24 +0000)]
First pass at Comment API

https://codereview.chromium.org/13957009/

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

3 weeks agoChanging SkDeferredCanvas to use factories for creation
junov@chromium.org [Tue, 28 May 2013 17:39:08 +0000 (17:39 +0000)]
Changing SkDeferredCanvas to use factories for creation

The objective of this change is to remove all calls to
SkCanvas::setDevice. The factory API is hidden behind
a build flag in order to ease the roll into chromium.

A side-effect of the factory pattern is that it will
no longer be possible to allocate a SkDeferredCanvas on
the stack.  This changes nothing for chrome, but it
impacts skia test programs.

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

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

3 weeks agoMake GrContext track the current matrix, render target, and clip directly rather...
commit-bot@chromium.org [Tue, 28 May 2013 17:25:49 +0000 (17:25 +0000)]
Make GrContext track the current matrix, render target, and clip directly rather than using GrDrawState.

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

Author: bsalomon@google.com

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

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

3 weeks agoReland 'Add path utils, plus a test for it.'
scroggo@google.com [Tue, 28 May 2013 16:45:07 +0000 (16:45 +0000)]
Reland 'Add path utils, plus a test for it.'

Build SkPathJoin and SkBasename on windows also.

Previous CL did not build on Windows because the two functions were
accidentally placed inside an ifdef that did not include windows.
Move the functions to the top of the file, and add a comment by the
endif for clarity.

Previously reviewed at https://codereview.chromium.org/15747004/

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

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

3 weeks agoAndroid specific changes that are upstreamed from the android framework.
djsollen@google.com [Fri, 24 May 2013 20:31:57 +0000 (20:31 +0000)]
Android specific changes that are upstreamed from the android framework.

R=reed@google.com

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

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

3 weeks agoRevert "Add path utils, plus a test for it."
scroggo@google.com [Fri, 24 May 2013 18:28:57 +0000 (18:28 +0000)]
Revert "Add path utils, plus a test for it."

This reverts commit d172374b46cae0bd5d7c024b9848f5bdafcc6a16.

This CL broke on Windows.

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

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

3 weeks agoAdd path utils, plus a test for it.
scroggo@google.com [Fri, 24 May 2013 18:12:17 +0000 (18:12 +0000)]
Add path utils, plus a test for it.

SkOSFile:
Added class SkOSPath with functions for
modifying strings representing path names.

OSPathTest.cpp:
Test of the new utilities.

factory.cpp:
Use SkPathJoin.

gmmain and gm_expectations:
Use SkOSPath::SkPathJoin instead of a local version.

skimage_main.cpp:
Use the new location of SkPathJoin and SkBasename.

R=epoger@google.com

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

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

3 weeks agoAdding setSurface public API method to SkDeferredCanvas
junov@chromium.org [Fri, 24 May 2013 17:13:00 +0000 (17:13 +0000)]
Adding setSurface public API method to SkDeferredCanvas

The purpose of this change is to provide an API that Blink 2D canvas layers can use
to install a new render target when recovering from a lost graphics context.

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

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

3 weeks agoRevert "Patch to prevent chromium breakage until the DEPS."
scroggo@google.com [Fri, 24 May 2013 16:31:30 +0000 (16:31 +0000)]
Revert "Patch to prevent chromium breakage until the DEPS."

This reverts commit d2a284728d30082d46b02c39d916294c6d36e11f.

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

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

3 weeks agoRemove SkImageFilter::getInputResult(), since its return value is not
senorblanco@chromium.org [Fri, 24 May 2013 15:04:07 +0000 (15:04 +0000)]
Remove SkImageFilter::getInputResult(), since its return value is not
style-compliant, and doesn't allow us to abort on failure.

R=reed@google.com

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

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

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

3 weeks agoAdd flag to gradients to interpolate colors in premul space. Experimental API to...
reed@google.com [Fri, 24 May 2013 14:58:44 +0000 (14:58 +0000)]
Add flag to gradients to interpolate colors in premul space. Experimental API to encapsulate the shared parameters for all gradients into a struct.

BUG=
R=bsalomon@google.com

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

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

3 weeks agoremove outdated debugging code now that we no longer support fixed point
commit-bot@chromium.org [Thu, 23 May 2013 16:41:42 +0000 (16:41 +0000)]
remove outdated debugging code now that we no longer support fixed point

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

Author: djsollen@google.com

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

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

3 weeks agoFix bug in SkAutoSMalloc::reset
robertphillips@google.com [Thu, 23 May 2013 14:59:40 +0000 (14:59 +0000)]
Fix bug in SkAutoSMalloc::reset

https://codereview.chromium.org/15858007/

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

3 weeks agoAdd printing of SkColorFilter-derived classes to debugger
robertphillips@google.com [Thu, 23 May 2013 14:00:17 +0000 (14:00 +0000)]
Add printing of SkColorFilter-derived classes to debugger

https://codereview.chromium.org/15697012/

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

4 weeks agoSanitizing source files in Housekeeper-Nightly
skia.committer@gmail.com [Thu, 23 May 2013 07:01:22 +0000 (07:01 +0000)]
Sanitizing source files in Housekeeper-Nightly

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

4 weeks agoReverting r9245 due to Chrome breakage
robertphillips@google.com [Wed, 22 May 2013 23:56:49 +0000 (23:56 +0000)]
Reverting r9245 due to Chrome breakage

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

4 weeks agoMark SkDrawPictureCallback with SK_API, so that it can be derived from by SK_API...
commit-bot@chromium.org [Wed, 22 May 2013 21:11:42 +0000 (21:11 +0000)]
Mark SkDrawPictureCallback with SK_API, so that it can be derived from by SK_API classes

R=reed@google.com

Author: vmpstr@chromium.org

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

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

4 weeks agoexpand SkLua to handle creation of its own State
reed@google.com [Wed, 22 May 2013 20:12:50 +0000 (20:12 +0000)]
expand SkLua to handle creation of its own State

add lua sample

BUG=
R=robertphillips@google.com

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

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

4 weeks agoRemove SkImageFilter::getInputResult(), since its return value is not
senorblanco@chromium.org [Wed, 22 May 2013 18:59:58 +0000 (18:59 +0000)]
Remove SkImageFilter::getInputResult(), since its return value is not
style-compliant, and doesn't allow us to abort on failure.

R=reed@google.com

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

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

4 weeks agoadd dumpops.lua as a sample scraper that just dumps the arguments
reed@google.com [Wed, 22 May 2013 15:13:18 +0000 (15:13 +0000)]
add dumpops.lua as a sample scraper that just dumps the arguments

add SkLua.h for common utilities

BUG=
R=rmistry@google.com

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

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

4 weeks agoadd kBicubicFilterBitmap_Flag to paint, just for testing purposes.
reed@google.com [Wed, 22 May 2013 13:55:54 +0000 (13:55 +0000)]
add kBicubicFilterBitmap_Flag to paint, just for testing purposes.

BUG=

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

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

4 weeks agoAdd return param to SkAutoSMalloc::reset() that indicates whether the allocation...
bsalomon@google.com [Wed, 22 May 2013 13:35:37 +0000 (13:35 +0000)]
Add return param to SkAutoSMalloc::reset() that indicates whether the allocation changed or not.

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

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

4 weeks agoAdd methods to SkLayerDrawLooper to allow adding layers on top
commit-bot@chromium.org [Wed, 22 May 2013 12:35:50 +0000 (12:35 +0000)]
Add methods to SkLayerDrawLooper to allow adding layers on top
as well as on the bottom.

This is more convenient for some callers who generate layers
from a data structure in bottom-to-top, rather than top-to-bottom,
order.

BUG=242529
R=tomhudson@chromium.org

Author: jbroman@chromium.org

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

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

4 weeks agoSanitizing source files in Housekeeper-Nightly
skia.committer@gmail.com [Wed, 22 May 2013 07:01:13 +0000 (07:01 +0000)]
Sanitizing source files in Housekeeper-Nightly

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

4 weeks agoadd SkLerpXfermode
reed@google.com [Tue, 21 May 2013 21:33:11 +0000 (21:33 +0000)]
add SkLerpXfermode

BUG=
R=bsalomon@google.com

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

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

4 weeks agoPatch to prevent chromium breakage until the DEPS.
scroggo@google.com [Tue, 21 May 2013 20:45:03 +0000 (20:45 +0000)]
Patch to prevent chromium breakage until the DEPS.

Once https://codereview.chromium.org/15489004/ is submitted to
Skia, a DEPS roll into chrome will break due to a change in the
API. A long term fix for chrome to use the new API is at
https://codereview.chromium.org/15496006/, but since it depends
on the earlier Skia change, this patch fills in the gap.

Will be reverted once https://codereview.chromium.org/15496006/
is submitted to chrome.

R=djsollen@google.com

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

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

4 weeks agoNew API for encoding bitmaps during serialization.
scroggo@google.com [Tue, 21 May 2013 20:31:23 +0000 (20:31 +0000)]
New API for encoding bitmaps during serialization.

This change gives more flexibility to the implementation of
EncodeBitmap to prefer calling refEncodedData, doing its own
encode, or even doing both and making a decision about which
to use.

The new function signature also allows the implementation to
tell the ordered write buffer whether to store the pixel offset,
in the case where the encoded bitmap represents the larger
bitmap, or to ignore the pixel offset, in the case where the
implementation only encoded the subset that is used.

Requires changes to chromium to use the new function signature.
(https://codereview.chromium.org/15496006/)

SkPicture:
New API for EncodeBitmap.

SkOrderedReadBuffer:
Ifdef'd out addition of reading the offset.

SkOrderedWriteBuffer:
Never call refEncodedData. Allow the user to call that from their
EncodeBitmap function, if desired.
This addresses https://code.google.com/p/skia/issues/detail?id=1239
Add in ifdef'd out code to record the offset.

PictureTest and PictureRenderer:
Implement the new definition of EncodeBitmap. Also update the name
of the function to meet coding style guidelines.

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

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

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

4 weeks agoAdd a fontConfig interface for android.
djsollen@google.com [Tue, 21 May 2013 16:53:50 +0000 (16:53 +0000)]
Add a fontConfig interface for android.

The contents of this CL are based on the SkFontHost_android.cpp found
in the android repository.

BUG=
R=reed@google.com

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

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

4 weeks agoAdd buffer helper to read directly into SkString to avoid extra copying
djsollen@google.com [Tue, 21 May 2013 16:17:14 +0000 (16:17 +0000)]
Add buffer helper to read directly into SkString to avoid extra copying

R=reed@google.com

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

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

4 weeks agosupport SkCanvas as a real lua object
mike@reedtribe.org [Tue, 21 May 2013 12:20:39 +0000 (12:20 +0000)]
support SkCanvas as a real lua object

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

4 weeks agoSanitizing source files in Housekeeper-Nightly
skia.committer@gmail.com [Tue, 21 May 2013 07:01:40 +0000 (07:01 +0000)]
Sanitizing source files in Housekeeper-Nightly

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

4 weeks agoadd SkDrawPictureCallback optional parameter to drawPicture(), which can abort the...
reed@google.com [Mon, 20 May 2013 17:02:41 +0000 (17:02 +0000)]
add SkDrawPictureCallback optional parameter to drawPicture(), which can abort the picture drawing.

R=bsalomon@google.com

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

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

4 weeks agoadd encodeData() to SkImageEncoder, and add encoding to SkImage
reed@google.com [Mon, 20 May 2013 16:33:41 +0000 (16:33 +0000)]
add encodeData() to SkImageEncoder, and add encoding to SkImage

BUG=
R=scroggo@google.com

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

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

4 weeks agoSanitizing source files in Housekeeper-Nightly
skia.committer@gmail.com [Mon, 20 May 2013 11:51:35 +0000 (11:51 +0000)]
Sanitizing source files in Housekeeper-Nightly

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

4 weeks agoOne SkTSearch to rule them all. Allow key to be of different type than the array.
bsalomon@google.com [Fri, 17 May 2013 19:05:03 +0000 (19:05 +0000)]
One SkTSearch to rule them all. Allow key to be of different type than the array.

R=bungeman@google.com

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

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

4 weeks agoAdd special handling of rectori case for gpu
robertphillips@google.com [Fri, 17 May 2013 12:50:27 +0000 (12:50 +0000)]
Add special handling of rectori case for gpu

https://codereview.chromium.org/15080010/

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

4 weeks agoMake the use of fallback fonts in Android a runtime decision.
djsollen@google.com [Thu, 16 May 2013 18:38:43 +0000 (18:38 +0000)]
Make the use of fallback fonts in Android a runtime decision.

R=reed@google.com

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

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

5 weeks agoSanitizing source files in Housekeeper-Nightly
skia.committer@gmail.com [Thu, 16 May 2013 07:01:00 +0000 (07:01 +0000)]
Sanitizing source files in Housekeeper-Nightly

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

5 weeks agoadd SkLuaCanvas
reed@google.com [Wed, 15 May 2013 19:34:20 +0000 (19:34 +0000)]
add SkLuaCanvas

add lua 5.2 to third_party

BUG=
R=bungeman@google.com

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

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

5 weeks agoProvide a function to print the name of a Format.
scroggo@google.com [Wed, 15 May 2013 14:53:49 +0000 (14:53 +0000)]
Provide a function to print the name of a Format.

Also use SkToU32 instead of a flat cast.

R=djsollen@google.com

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

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

5 weeks agoFix includes in SkLayerDrawLooper.h. It was previously not possible to
commit-bot@chromium.org [Tue, 14 May 2013 20:11:23 +0000 (20:11 +0000)]
Fix includes in SkLayerDrawLooper.h. It was previously not possible to
include this header unless SkPoint and SkPaint were previously defined.

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

Author: jbroman@chromium.org

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

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

5 weeks agoRe-add isIRect test for AA rect drawing
robertphillips@google.com [Tue, 14 May 2013 19:47:47 +0000 (19:47 +0000)]
Re-add isIRect test for AA rect drawing

https://codereview.chromium.org/14820035/

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

5 weeks agoAPI modifications needed to upstream Android font changes.
commit-bot@chromium.org [Mon, 13 May 2013 14:09:13 +0000 (14:09 +0000)]
API modifications needed to upstream Android font changes.

Committed: http://code.google.com/p/skia/source/detail?r=9083

R=reed@google.com

Author: djsollen@google.com

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

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

5 weeks agoCheck for NULL texture in GrAutoScratchTexture::detach()
commit-bot@chromium.org [Sat, 11 May 2013 13:21:43 +0000 (13:21 +0000)]
Check for NULL texture in GrAutoScratchTexture::detach()

R=sugoi@chromium.org, robertphillips@google.com

Author: bsalomon@google.com

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

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

5 weeks agoRemove GrPathCmd
bsalomon@google.com [Fri, 10 May 2013 17:14:06 +0000 (17:14 +0000)]
Remove GrPathCmd

R=reed@google.com

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

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

5 weeks agoUpdate shader rect drawing path for r9087 (removal of isIRect "opt")
robertphillips@google.com [Fri, 10 May 2013 13:16:13 +0000 (13:16 +0000)]
Update shader rect drawing path for r9087 (removal of isIRect "opt")

https://codereview.chromium.org/14972013/

(SkipBuildbotRuns)

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

5 weeks agoRemove isIRect "optimization" & defer computation of device Rect in AA rect rendering
robertphillips@google.com [Fri, 10 May 2013 11:05:58 +0000 (11:05 +0000)]
Remove isIRect "optimization" & defer computation of device Rect in AA rect rendering

https://chromiumcodereview.appspot.com/14890021/

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

5 weeks agoReverting 9083 & 9084 due to Android failures
robertphillips@google.com [Thu, 9 May 2013 22:47:33 +0000 (22:47 +0000)]
Reverting 9083 & 9084 due to Android failures

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

5 weeks agoAPI modifications needed to upstream Android font changes.
commit-bot@chromium.org [Thu, 9 May 2013 20:54:20 +0000 (20:54 +0000)]
API modifications needed to upstream Android font changes.

R=reed@google.com

Author: djsollen@google.com

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

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

5 weeks agoRevert r9081
epoger@google.com [Thu, 9 May 2013 20:01:26 +0000 (20:01 +0000)]
Revert r9081

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

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

5 weeks agoadd SkString::append(const char c)
epoger@google.com [Thu, 9 May 2013 19:37:41 +0000 (19:37 +0000)]
add SkString::append(const char c)

R=bsalomon@google.com

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

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

5 weeks agoMake GrGLShaderBuilder check whether GrEffect advertised that it would require the...
commit-bot@chromium.org [Thu, 9 May 2013 14:55:46 +0000 (14:55 +0000)]
Make GrGLShaderBuilder check whether GrEffect advertised that it would require the dst color or fragment position

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

Author: bsalomon@google.com

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

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

6 weeks agoadd SK_API
reed@google.com [Wed, 8 May 2013 13:25:02 +0000 (13:25 +0000)]
add SK_API

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