platform/upstream/libSkiaSharp.git
11 years agoReland r5963 with two fixes:
bsalomon@google.com [Tue, 16 Oct 2012 15:19:45 +0000 (15:19 +0000)]
Reland r5963 with two fixes:

Missing ref in GrSweepGradient::TestCreate.
Must reset() the sampler in setup_drawstate_aaclip() to avoid hitting a (dubious) assert.

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

11 years agoRevert r5962 because of failures.
bsalomon@google.com [Tue, 16 Oct 2012 14:31:26 +0000 (14:31 +0000)]
Revert r5962 because of failures.

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

11 years agoRequire matrix for custom stage to be set when custom stage is installed.
bsalomon@google.com [Tue, 16 Oct 2012 14:16:11 +0000 (14:16 +0000)]
Require matrix for custom stage to be set when custom stage is installed.
Review URL: https://codereview.appspot.com/6696044

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

11 years agomore pixman work in progress
caryclark@google.com [Tue, 16 Oct 2012 12:32:33 +0000 (12:32 +0000)]
more pixman work in progress

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

11 years agopixman experiment work in progress
caryclark@google.com [Tue, 16 Oct 2012 12:31:48 +0000 (12:31 +0000)]
pixman experiment work in progress

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

11 years agoshape ops work in progress
caryclark@google.com [Tue, 16 Oct 2012 12:06:27 +0000 (12:06 +0000)]
shape ops work in progress

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

11 years agoRemove an obsolete comment.
scroggo@google.com [Mon, 15 Oct 2012 18:27:25 +0000 (18:27 +0000)]
Remove an obsolete comment.

This comment is no longer true as of r5869.

Review URL: https://codereview.appspot.com/6701043

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

11 years agoAvoid deadlock in SkGetFallbackFamilyNameForChar().
djsollen@google.com [Mon, 15 Oct 2012 16:03:41 +0000 (16:03 +0000)]
Avoid deadlock in SkGetFallbackFamilyNameForChar().

The deaklock happened when SkFontHost::CreateTypefaceFromStream() is called
indirectly from SkGetFallbackFamilyNameForChar().

This commits a change that was submitted for review by...
wangxianzhu1 @ https://codereview.appspot.com/6654051/

Review URL: https://codereview.appspot.com/6690044

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

11 years agoGenerate debugger mocs into out instead of src.
bungeman@google.com [Mon, 15 Oct 2012 14:31:29 +0000 (14:31 +0000)]
Generate debugger mocs into out instead of src.
https://codereview.appspot.com/6674044/

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

11 years agoUse AutoMatrix in GrTextContext
bsalomon@google.com [Mon, 15 Oct 2012 14:25:50 +0000 (14:25 +0000)]
Use AutoMatrix in GrTextContext
Review URL: https://codereview.appspot.com/6691043

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

11 years agoSpell correct some comments.
bsalomon@google.com [Mon, 15 Oct 2012 14:25:31 +0000 (14:25 +0000)]
Spell correct some comments.

Unreviewed

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

11 years ago#define SK_DISABLE_EXTRACTSUBSET_OPAQUE_FIX to keep old, slow, non-opaque behavior
reed@google.com [Mon, 15 Oct 2012 13:45:40 +0000 (13:45 +0000)]
#define SK_DISABLE_EXTRACTSUBSET_OPAQUE_FIX to keep old, slow, non-opaque behavior
in SkBitmap::extractSubset.

This will allow chrome to keep this behavior until we can fix the callers in
PNG and WEBP image decoders, that are incorrectly marking partially-loaded images
as opaque (which they aren't, since they have undecoded pixels, which need to be
transparent).

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

11 years agoAdd SK_API to base classes of classes with SK_API.
bungeman@google.com [Sat, 13 Oct 2012 17:13:18 +0000 (17:13 +0000)]
Add SK_API to base classes of classes with SK_API.
https://codereview.appspot.com/6683044/

This change should unblock rolling Skia DEPS past r5914.
TBR=reed

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

11 years agoChange FreeType lcd filter to provide better results.
bungeman@google.com [Sat, 13 Oct 2012 03:21:53 +0000 (03:21 +0000)]
Change FreeType lcd filter to provide better results.
https://codereview.appspot.com/6652046/

Will require rebaselines on systems using lcd smoothed FreeType.

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

11 years agoSanitizing source files in Skia_Periodic_House_Keeping
skia.committer@gmail.com [Sat, 13 Oct 2012 02:01:56 +0000 (02:01 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping

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

11 years agoDelete SkWidget.cpp, which has been #ifdef'ed out for 4+ years.
tfarina@chromium.org [Fri, 12 Oct 2012 23:29:40 +0000 (23:29 +0000)]
Delete SkWidget.cpp, which has been #ifdef'ed out for 4+ years.

R=epoger@google.com

Review URL: https://codereview.appspot.com/6650055

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

11 years agoretool fFilterOne[X,Y] to store the translate dx, dy, so we can avoid float
reed@google.com [Fri, 12 Oct 2012 20:50:24 +0000 (20:50 +0000)]
retool fFilterOne[X,Y] to store the translate dx, dy, so we can avoid float
conversions on every scanline.

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

11 years agoRemove support for building skia android apps outside of an APK.
djsollen@google.com [Fri, 12 Oct 2012 19:44:35 +0000 (19:44 +0000)]
Remove support for building skia android apps outside of an APK.

Review URL: https://codereview.appspot.com/6663043

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

11 years agoAdd new GM, shadertext3. It would have revealed a bug in the GPU draw-large-text...
bsalomon@google.com [Fri, 12 Oct 2012 19:26:15 +0000 (19:26 +0000)]
Add new GM, shadertext3. It would have revealed a bug in the GPU draw-large-text-as-path code path that was recently fixed.

R=reed@google.com
Review URL: https://codereview.appspot.com/6638057

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

11 years agoWhen two or more color matrix image filters are connected together, and the non-leaf...
senorblanco@chromium.org [Fri, 12 Oct 2012 19:14:06 +0000 (19:14 +0000)]
When two or more color matrix image filters are connected together, and the non-leaf matrices do not require clamping, we can concatenate their matrices and apply them together.

Review URL: https://codereview.appspot.com/6489054

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

11 years agoAdd SkShader::asShadeProc to fast-path the caller when the shader is fast
reed@google.com [Fri, 12 Oct 2012 18:56:18 +0000 (18:56 +0000)]
Add SkShader::asShadeProc to fast-path the caller when the shader is fast
Review URL: https://codereview.appspot.com/6649055

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

11 years agoFonts with cubic outlines are rendered without ClearType by GDI.
bungeman@google.com [Fri, 12 Oct 2012 18:48:35 +0000 (18:48 +0000)]
Fonts with cubic outlines are rendered without ClearType by GDI.
https://codereview.appspot.com/6643060/

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

11 years agoreland 5926 w/ fix in middle loop (thank you asserts)
reed@google.com [Fri, 12 Oct 2012 18:21:37 +0000 (18:21 +0000)]
reland 5926 w/ fix in middle loop (thank you asserts)

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

11 years agorevert 5926 (debug assert)
reed@google.com [Fri, 12 Oct 2012 17:38:40 +0000 (17:38 +0000)]
revert 5926 (debug assert)

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

11 years agoadd shaderproc32 for translate+clamp+nofilter.
reed@google.com [Fri, 12 Oct 2012 17:30:25 +0000 (17:30 +0000)]
add shaderproc32 for translate+clamp+nofilter.

todo: should be pretty easy to have a variant for repeat tilemode as well
Review URL: https://codereview.appspot.com/6658053

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

11 years agoCommit SkGpuDevice.h which was omitted from r5918 for some reason.
bsalomon@google.com [Fri, 12 Oct 2012 15:01:38 +0000 (15:01 +0000)]
Commit SkGpuDevice.h which was omitted from r5918 for some reason.

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

11 years agoBeef up GrContext::AutoMatrix to handle doing GrPaint matrix adjustments.
bsalomon@google.com [Fri, 12 Oct 2012 14:51:52 +0000 (14:51 +0000)]
Beef up GrContext::AutoMatrix to handle doing GrPaint matrix adjustments.

R=robertphillips@google.com
Review URL: https://codereview.appspot.com/6656047

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

11 years agoadd experimental test for different 8888->565 blends (disabled)
reed@google.com [Fri, 12 Oct 2012 14:43:28 +0000 (14:43 +0000)]
add experimental test for different 8888->565 blends (disabled)

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

11 years agoadd bench for drawBitmapRectToRect
reed@google.com [Fri, 12 Oct 2012 14:42:38 +0000 (14:42 +0000)]
add bench for drawBitmapRectToRect

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

11 years agoExport effects classes with SK_API.
tfarina@chromium.org [Fri, 12 Oct 2012 14:41:39 +0000 (14:41 +0000)]
Export effects classes with SK_API.

So this works in shared_library build in chromium.

This issue was raised up in the following chromium-dev thread:
https://groups.google.com/a/chromium.org/forum/?hl=en&fromgroups=#!topic/chromium-dev/Z6qzEw8MwVY

R=epoger@google.com,tomhudson@google.com

Review URL: https://codereview.appspot.com/6601065

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

11 years agoFix matrix type in setRectToRect
reed@google.com [Fri, 12 Oct 2012 14:35:48 +0000 (14:35 +0000)]
Fix matrix type in setRectToRect
Review URL: https://codereview.appspot.com/6655055

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

11 years agoWhitespace change to trigger rebuild after build master migration
borenet@google.com [Fri, 12 Oct 2012 14:07:09 +0000 (14:07 +0000)]
Whitespace change to trigger rebuild after build master migration

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

11 years agoRevert r3219. r3219 was a revert of r3036. r3036 made extractSubset copy the opaque...
bsalomon@google.com [Fri, 12 Oct 2012 13:42:36 +0000 (13:42 +0000)]
Revert r3219. r3219 was a revert of r3036. r3036 made extractSubset copy the opaque bit but was reverted because of a partally-loaded jpeg issue in WK which has since been fixed:
https://bugs.webkit.org/show_bug.cgi?id=78239

Related chrome bug: http://code.google.com/p/chromium/issues/detail?id=114107

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

11 years agoTurn on GPU AA clipping
robertphillips@google.com [Fri, 12 Oct 2012 11:33:56 +0000 (11:33 +0000)]
Turn on GPU AA clipping

https://codereview.appspot.com/6638048/

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

11 years agoSanitizing source files in Skia_Periodic_House_Keeping
skia.committer@gmail.com [Fri, 12 Oct 2012 02:01:15 +0000 (02:01 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping

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

11 years agoFixing SkDeferredCanvas to not consider paint as opaque when xfermode source coeff...
junov@chromium.org [Thu, 11 Oct 2012 20:19:15 +0000 (20:19 +0000)]
Fixing SkDeferredCanvas to not consider paint as opaque when xfermode source coeff depends
on destination pixel value

TEST=DeferredCanvas unit test
BUG=http://code.google.com/p/chromium/issues/detail?id=154748

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

11 years agoMinimize use of SkDraw's matrix in SkGpuDevice.
bsalomon@google.com [Thu, 11 Oct 2012 19:39:09 +0000 (19:39 +0000)]
Minimize use of SkDraw's matrix in SkGpuDevice.

R=robertphillips@google.com
Review URL: https://codereview.appspot.com/6604068

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

11 years agoSkTCopyOnFirstWrite
bsalomon@google.com [Thu, 11 Oct 2012 19:32:32 +0000 (19:32 +0000)]
SkTCopyOnFirstWrite

R=reed@google.com
Review URL: https://codereview.appspot.com/6650047

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

11 years agoFix ANGLE build
borenet@google.com [Thu, 11 Oct 2012 19:23:46 +0000 (19:23 +0000)]
Fix ANGLE build

Removed this in r5889.
Review URL: https://codereview.appspot.com/6651051

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

11 years agoTurn off some debugging statements.
scroggo@google.com [Thu, 11 Oct 2012 19:12:03 +0000 (19:12 +0000)]
Turn off some debugging statements.

Review URL: https://codereview.appspot.com/6646044

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

11 years agoFix a warning.
scroggo@google.com [Thu, 11 Oct 2012 19:10:33 +0000 (19:10 +0000)]
Fix a warning.

Review URL: https://codereview.appspot.com/6650048

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

11 years agoCreateTypefaceFromFile for GDI.
bungeman@google.com [Thu, 11 Oct 2012 19:03:12 +0000 (19:03 +0000)]
CreateTypefaceFromFile for GDI.
https://codereview.appspot.com/6658045/

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

11 years agoWhitespace change to triger rebuild after master restart
borenet@google.com [Thu, 11 Oct 2012 15:01:23 +0000 (15:01 +0000)]
Whitespace change to triger rebuild after master restart

Hopefully the madness is over.

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

11 years agoFix Qt OpenGL lib name on Windows and change the default qt_sdk var value on windows.
bsalomon@google.com [Thu, 11 Oct 2012 14:33:10 +0000 (14:33 +0000)]
Fix Qt OpenGL lib name on Windows and change the default qt_sdk var value on windows.

Over-the-shoulder review from robertphillips@google.com

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

11 years agoshape ops work in progress
caryclark@google.com [Thu, 11 Oct 2012 12:54:23 +0000 (12:54 +0000)]
shape ops work in progress

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

11 years agoSanitizing source files in Skia_Periodic_House_Keeping
skia.committer@gmail.com [Thu, 11 Oct 2012 02:01:14 +0000 (02:01 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping

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

11 years agoThis patch implements generalized DAG connectivity for SkImageFilter. SkImageFilter...
senorblanco@chromium.org [Wed, 10 Oct 2012 20:36:13 +0000 (20:36 +0000)]
This patch implements generalized DAG connectivity for SkImageFilter.  SkImageFilter maintains a list of inputs, which can be constructed either from a SkImageFilter** or zero or more SkImageFilter* arguments (varargs).

Existing filters which maintained their own filter connectivity were refactored to use the new constructors and flattening/unflattening code.  Modifying the remaining filters which are not yet DAG-friendly is left for future work; they are considered to have zero inputs for now.

Review URL: https://codereview.appspot.com/6443119

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

11 years agoBuild Skia as a static library
borenet@google.com [Wed, 10 Oct 2012 19:45:51 +0000 (19:45 +0000)]
Build Skia as a static library

- Roll GYP so that we get non-thin archives on Linux
- Add merge_static_libs.py
- Add skia_core_lib target which builds core, ports, opts*, and utils
- Replace dependencies on core/ports/opts/utils with skia_core_libs
- Rename exportable libraries with "skia_"
Review URL: https://codereview.appspot.com/6619049

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

11 years agoDisable transitions for the Android SampleApp.
djsollen@google.com [Wed, 10 Oct 2012 18:29:31 +0000 (18:29 +0000)]
Disable transitions for the Android SampleApp.

Review URL: https://codereview.appspot.com/6642063

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

11 years agoFix build break. a cpp file was not included in the checkin list. will send to code...
edisonn@google.com [Wed, 10 Oct 2012 16:42:26 +0000 (16:42 +0000)]
Fix build break. a cpp file was not included in the checkin list. will send to code review and check it in too

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

11 years agoDraw hairline text as path.
bsalomon@google.com [Wed, 10 Oct 2012 16:12:14 +0000 (16:12 +0000)]
Draw hairline text as path.

R=reed@google.com
Review URL: https://codereview.appspot.com/6632060

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

11 years agoReland r5861 but leave setMatrixClip virtual on SkDevice (IOW this is a partial rever...
bsalomon@google.com [Wed, 10 Oct 2012 15:25:50 +0000 (15:25 +0000)]
Reland r5861 but leave setMatrixClip virtual on SkDevice (IOW this is a partial revert of r5871 which reverted r5861).

Unreviewed
Review URL: https://codereview.appspot.com/6631062

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

11 years agoAdd an SKP to PDF rendered. test_pdfs.py will be hooked up in buildbot testing later.
edisonn@google.com [Wed, 10 Oct 2012 15:20:34 +0000 (15:20 +0000)]
Add an SKP to PDF rendered. test_pdfs.py will be hooked up in buildbot testing later.
Review URL: https://codereview.appspot.com/6610056

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

11 years agoadd ability to skip 565 test in gm (until I can fix an assert in debug build)
reed@google.com [Wed, 10 Oct 2012 15:17:24 +0000 (15:17 +0000)]
add ability to skip 565 test in gm (until I can fix an assert in debug build)

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

11 years agoRefactor test_pictures so we can add test_pdfs without code duplication.
edisonn@google.com [Wed, 10 Oct 2012 15:08:12 +0000 (15:08 +0000)]
Refactor test_pictures so we can add test_pdfs without code duplication.
Review URL: https://codereview.appspot.com/6611050

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

11 years agoAdd a new GM: shadertext2.
bsalomon@google.com [Wed, 10 Oct 2012 13:35:23 +0000 (13:35 +0000)]
Add a new GM: shadertext2.

It tests a bitmap shader with various combinations of matrices and shader matrices. The text is drawn filled and stroked.
Review URL: https://codereview.appspot.com/6639052

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

11 years agoSanitizing source files in Skia_Periodic_House_Keeping
skia.committer@gmail.com [Wed, 10 Oct 2012 02:01:30 +0000 (02:01 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping

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

11 years agoReverting r5861 (remove gainfocus and setMatixClip) due to Chrome compilation issues
robertphillips@google.com [Tue, 9 Oct 2012 22:30:18 +0000 (22:30 +0000)]
Reverting r5861 (remove gainfocus and setMatixClip) due to Chrome compilation issues

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

11 years agoMake SkPictures valid regardless of SK_SUPPORT_HINTING_SCALE_FACTOR.
scroggo@google.com [Tue, 9 Oct 2012 20:02:20 +0000 (20:02 +0000)]
Make SkPictures valid regardless of SK_SUPPORT_HINTING_SCALE_FACTOR.

When the build flag is not set, read/write dummy values
so that the creator of an SKP file need not have the same
support/lack of support of the feature as the reader.

Will separately update the checked in skps to the new version when checking in.

BUG=http://code.google.com/p/skia/issues/detail?id=922

Review URL: https://codereview.appspot.com/6642057

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

11 years agocorrectly handle negative values in fixed_clamp()
reed@google.com [Tue, 9 Oct 2012 19:45:59 +0000 (19:45 +0000)]
correctly handle negative values in fixed_clamp()
Review URL: https://codereview.appspot.com/6633049

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

11 years agoDisable automatic font fallback of SkFontHost_android when building for WebKit
djsollen@google.com [Tue, 9 Oct 2012 19:26:59 +0000 (19:26 +0000)]
Disable automatic font fallback of SkFontHost_android when building for WebKit

The internal font fallback mechanism prevents WebKit from getting
the properties of the actually used font. Disable the internal fallback
mechanism when building for WebKit and add SkGetFallbackFamilyNameForChar()
to let the upper level know the fallback font for individial characters.

This commits a change that was submitted for review by...
wangxianzhu1 @ https://codereview.appspot.com/6572059/

BUG=913 (http://code.google.com/p/skia/issues/detail?id=913)

Review URL: https://codereview.appspot.com/6640048

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

11 years agoFixed xoom bug introduced in r5830
robertphillips@google.com [Tue, 9 Oct 2012 17:40:32 +0000 (17:40 +0000)]
Fixed xoom bug introduced in r5830

https://codereview.appspot.com/6604053/

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

11 years agoRemove gainFocus() and setMatrixClip() virtuals from SkDevice.
bsalomon@google.com [Tue, 9 Oct 2012 14:20:37 +0000 (14:20 +0000)]
Remove gainFocus() and setMatrixClip() virtuals from SkDevice.

R=reed@google.com,robertphillips@google.com
Review URL: https://codereview.appspot.com/6636050

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

11 years agocheckpoint for shape ops
caryclark@google.com [Tue, 9 Oct 2012 14:11:58 +0000 (14:11 +0000)]
checkpoint for shape ops

at minimum, the unit tests in SimplyNew_Test pass

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

11 years agofix filter for ios
caryclark@google.com [Tue, 9 Oct 2012 12:32:37 +0000 (12:32 +0000)]
fix filter for ios
Review URL: https://codereview.appspot.com/6635047

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

11 years agoSanitizing source files in Skia_Periodic_House_Keeping
skia.committer@gmail.com [Tue, 9 Oct 2012 02:01:37 +0000 (02:01 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping

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

11 years agoRemove external matrix feature.
bsalomon@google.com [Mon, 8 Oct 2012 20:44:25 +0000 (20:44 +0000)]
Remove external matrix feature.

We haven't been testing this for nearly two years.

R=reed@google.com
Review URL: https://codereview.appspot.com/6640044

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

11 years agoMake additional code paths go through GrDrawState helper classes for their matrix...
bsalomon@google.com [Mon, 8 Oct 2012 18:59:39 +0000 (18:59 +0000)]
Make additional code paths go through GrDrawState helper classes for their matrix manipulations.

R=robertphillips@google.com
Review URL: https://codereview.appspot.com/6615064

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

11 years agoSpeculative fix for Chrome bug
robertphillips@google.com [Mon, 8 Oct 2012 18:42:14 +0000 (18:42 +0000)]
Speculative fix for Chrome bug

https://codereview.appspot.com/6632045/

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

11 years agoMake GrDrawState::AutoRestoreViewMatrix handle sampler matrices.
bsalomon@google.com [Mon, 8 Oct 2012 17:15:55 +0000 (17:15 +0000)]
Make GrDrawState::AutoRestoreViewMatrix handle sampler matrices.

R=robertphillips@google.com
Review URL: https://codereview.appspot.com/6618065

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

11 years agoRemove translate param from GrContext::drawPath (and subsequent calls).
bsalomon@google.com [Mon, 8 Oct 2012 14:48:36 +0000 (14:48 +0000)]
Remove translate param from GrContext::drawPath (and subsequent calls).
Review URL: https://codereview.appspot.com/6615062

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

11 years agoRemove unnecessary function declaration.
tfarina@chromium.org [Mon, 8 Oct 2012 14:41:10 +0000 (14:41 +0000)]
Remove unnecessary function declaration.

R=robertphillips@google.com

Review URL: https://codereview.appspot.com/6593082

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

11 years agoFix typo in SkFontHost_win_dw.cpp.
bungeman@google.com [Sun, 7 Oct 2012 22:51:21 +0000 (22:51 +0000)]
Fix typo in SkFontHost_win_dw.cpp.

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

11 years agoSanitizing source files in Skia_Periodic_House_Keeping
skia.committer@gmail.com [Sat, 6 Oct 2012 02:05:26 +0000 (02:05 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping

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

11 years agoMove some auto restore helpers from GrDrawTarget to GrDrawState.
bsalomon@google.com [Fri, 5 Oct 2012 20:13:28 +0000 (20:13 +0000)]
Move some auto restore helpers from GrDrawTarget to GrDrawState.

R=robertphillips@google.com

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

11 years agoGrPaint encapsulation.
bsalomon@google.com [Fri, 5 Oct 2012 19:04:13 +0000 (19:04 +0000)]
GrPaint encapsulation.

R=robertphillips@google.com
Review URL: https://codereview.appspot.com/6624052

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

11 years agoNo hinting on Mac should be lower priority than subpixel rendering.
bungeman@google.com [Fri, 5 Oct 2012 18:43:58 +0000 (18:43 +0000)]
No hinting on Mac should be lower priority than subpixel rendering.
https://codereview.appspot.com/6612056/

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

11 years agoFix find/replace missed in #ifdef'ed out code in r5827.
bsalomon@google.com [Fri, 5 Oct 2012 18:08:27 +0000 (18:08 +0000)]
Fix find/replace missed in #ifdef'ed out code in r5827.

Unreviewed.

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

11 years agoChange SkLightingImageFilter to derive from SkSingleInputImageFilter, so that it...
senorblanco@chromium.org [Fri, 5 Oct 2012 17:38:00 +0000 (17:38 +0000)]
Change SkLightingImageFilter to derive from SkSingleInputImageFilter, so that it can participate in filter DAGs.

No tests yet.

Review URL: https://codereview.appspot.com/6620055

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

11 years agoMoved paint color to vertex colors for batched rects
robertphillips@google.com [Fri, 5 Oct 2012 15:37:00 +0000 (15:37 +0000)]
Moved paint color to vertex colors for batched rects

https://codereview.appspot.com/6620045/

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

11 years agocleanup coding style for r5825
djsollen@google.com [Fri, 5 Oct 2012 15:19:27 +0000 (15:19 +0000)]
cleanup coding style for r5825

Review URL: https://codereview.appspot.com/6621054

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

11 years agoRename GrPaint fields/enums/members texture->color mask->coverage.
bsalomon@google.com [Fri, 5 Oct 2012 14:54:42 +0000 (14:54 +0000)]
Rename GrPaint fields/enums/members texture->color mask->coverage.

R=robertphillips@google.com
Review URL: https://codereview.appspot.com/6615046

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

11 years agoReduce Android Log Spam.
djsollen@google.com [Fri, 5 Oct 2012 14:48:32 +0000 (14:48 +0000)]
Reduce Android Log Spam.

The logging of system fonts is now hidden behind a #define

Review URL: https://codereview.appspot.com/6609048

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

11 years agoAdds a script to help analyze bench ranges to add/change in bench/bench_expectations.txt
bensong@google.com [Fri, 5 Oct 2012 14:02:33 +0000 (14:02 +0000)]
Adds a script to help analyze bench ranges to add/change in bench/bench_expectations.txt

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

11 years agoMove setPaint from GrContext to GrDrawState.
bsalomon@google.com [Fri, 5 Oct 2012 13:23:24 +0000 (13:23 +0000)]
Move setPaint from GrContext to GrDrawState.

R=robertphillips@google.com
Review URL: https://codereview.appspot.com/6624045

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

11 years agoSanitizing source files in Skia_Periodic_House_Keeping
skia.committer@gmail.com [Fri, 5 Oct 2012 02:01:40 +0000 (02:01 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping

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

11 years agoRemove state from SkColorSpaceLuminance to avoid memory management.
bungeman@google.com [Thu, 4 Oct 2012 22:03:41 +0000 (22:03 +0000)]
Remove state from SkColorSpaceLuminance to avoid memory management.
https://codereview.appspot.com/6610047/

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

11 years agoDo not do PNG encoding/decoding when testing picture serialization.
scroggo@google.com [Thu, 4 Oct 2012 22:02:46 +0000 (22:02 +0000)]
Do not do PNG encoding/decoding when testing picture serialization.

Fixes the build.

Review URL: https://codereview.appspot.com/6624046

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

11 years agoAdd the ability to provide function pointers to SkPicture serialization
scroggo@google.com [Thu, 4 Oct 2012 21:46:08 +0000 (21:46 +0000)]
Add the ability to provide function pointers to SkPicture serialization
and deserialization for encoding and decoding bitmaps.

Remove kForceFlattenBitmapPixels_Flag, which is no longer used.

When an SkOrderedReadBuffer needs to read a bitmap, if it does not
have an image decoder, use a dummy bitmap.

In GM, add a tolerance option for color differences, used when
testing picture serialization, so it can assume two images are the
same even though PNG encoding/decoding may have resulted in small
differences.

Create dummy implementations for SkImageDecoder and SkImageEncoder
functions in SkImageDecoder_empty so that a project that does not
want to include the images project it can still build.

Allow ports to build without images project.

In Mac's image encoder, copy 4444 to 8888 before encoding.

Add SkWriter32::reservePad, to provide a pointer to write non 4 byte
aligned data, padded with zeroes.

In bench_ and render_ pictures, pass decode function to SkPicture
creation from a stream.

BUG=https://code.google.com/p/skia/issues/detail?id=842

Review URL: https://codereview.appspot.com/6551071

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

11 years agoLock gFTMutex when modifying FT globals.
scroggo@google.com [Thu, 4 Oct 2012 20:45:06 +0000 (20:45 +0000)]
Lock gFTMutex when modifying FT globals.

This prevents a crash when running bench_pictures with multiple threads.

Also remove an unused function and fix a typo in SkFontHost.
Review URL: https://codereview.appspot.com/6625043

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

11 years agoAdd convenience function on GrDrawState to set state bit based on a bool.
bsalomon@google.com [Thu, 4 Oct 2012 19:42:00 +0000 (19:42 +0000)]
Add convenience function on GrDrawState to set state bit based on a bool.

R=robertphillips@google.com
Review URL: https://codereview.appspot.com/6615044

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

11 years agoBuild fix: work around what appears to be an Intel GLSL driver bug. Unreviewed.
senorblanco@chromium.org [Thu, 4 Oct 2012 18:15:15 +0000 (18:15 +0000)]
Build fix:  work around what appears to be an Intel GLSL driver bug.  Unreviewed.

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

11 years agoFixed bug(s) in batching of rects
robertphillips@google.com [Thu, 4 Oct 2012 17:57:05 +0000 (17:57 +0000)]
Fixed bug(s) in batching of rects

https://codereview.appspot.com/6608043/

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

11 years agoDisable SK_DEBUG_PATH_REF in debug builds.
bsalomon@google.com [Thu, 4 Oct 2012 17:55:30 +0000 (17:55 +0000)]
Disable SK_DEBUG_PATH_REF in debug builds.

R=reed@google.com
Review URL: https://codereview.appspot.com/6602056

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

11 years agoImplement GPU path for matrix convolution. Note that when not convolving alpha,
senorblanco@chromium.org [Thu, 4 Oct 2012 17:18:20 +0000 (17:18 +0000)]
Implement GPU path for matrix convolution.  Note that when not convolving alpha,
the premultiplying is done less efficiently than in the raster path:  it's
done on each texture access, rather than as a pre-processing pass.   This was
so I could do the filter as a single custom stage; will try the optimization
separately.

This implementation gives a ~30X speedup on the GPU results for the
matrixconvolution bench (~10X due to the GPU, and ~3X due to texture
uploads/readback removal).

Note:  this changes the matrixconvolution for the software path as well, so
it will likely break the bots until that test is rebaselined.

Review URL:  https://codereview.appspot.com/6585069/

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

11 years agoChange default skia_osx_sdkroot to "macosx" (suitable for Xcode 3.2.6+)
epoger@google.com [Thu, 4 Oct 2012 14:50:18 +0000 (14:50 +0000)]
Change default skia_osx_sdkroot to "macosx" (suitable for Xcode 3.2.6+)
See https://codereview.appspot.com/6553044
BUG=https://code.google.com/p/skia/issues/detail?id=796
Review URL: https://codereview.appspot.com/6598055

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

11 years agoMake numTextures() be non-virtual on GrCustomStage.
bsalomon@google.com [Thu, 4 Oct 2012 14:38:48 +0000 (14:38 +0000)]
Make numTextures() be non-virtual on GrCustomStage.

R=tomhudson@google.com,robertphillips@google.com,senorblanco@chromium.org
Review URL: https://codereview.appspot.com/6586081

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

11 years agoOmit shader swizzle if it is rgba.
bsalomon@google.com [Thu, 4 Oct 2012 13:26:32 +0000 (13:26 +0000)]
Omit shader swizzle if it is rgba.

R=robertphilips@google.com
Review URL: https://codereview.appspot.com/6585082

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

11 years agoCreated filter command line tool
robertphillips@google.com [Thu, 4 Oct 2012 13:00:33 +0000 (13:00 +0000)]
Created filter command line tool

https://codereview.appspot.com/6595066/

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

11 years agoAllow Xcode to change paths to frameworks based on whether a device or simulator...
bsalomon@google.com [Thu, 4 Oct 2012 12:52:03 +0000 (12:52 +0000)]
Allow Xcode to change paths to frameworks based on whether a device or simulator was selected.

R=caryclark@google.com
Review URL: https://codereview.appspot.com/6590068

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