platform/upstream/libSkiaSharp.git
12 years agorebaselined w/ new (high-fidelity-asColorMatrix) colormatrix impl from 4143
reed@google.com [Mon, 4 Jun 2012 19:37:36 +0000 (19:37 +0000)]
rebaselined w/ new (high-fidelity-asColorMatrix) colormatrix impl from 4143

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

12 years agoBreak up GrGpuGL::flushGLCommonState
bsalomon@google.com [Mon, 4 Jun 2012 19:31:00 +0000 (19:31 +0000)]
Break up GrGpuGL::flushGLCommonState

Review URL: http://codereview.appspot.com/6270049/

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

12 years agoremove mutable apis on SkColorMatrixFilter, must use constructor.
reed@google.com [Mon, 4 Jun 2012 19:07:41 +0000 (19:07 +0000)]
remove mutable apis on SkColorMatrixFilter, must use constructor.
fix flattening to not write function-ptrs (no go for serialization), so we
store the raw float values now.

Slight change to GM/DRT images for GPU possible. Just rebaseline.
Review URL: https://codereview.appspot.com/6273052

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

12 years agomove texture flush and param update to separate function
bsalomon@google.com [Mon, 4 Jun 2012 19:05:11 +0000 (19:05 +0000)]
move texture flush and param update to separate function

Review URL: http://codereview.appspot.com/6266044/

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

12 years agoremove public function-ptr based colorfilter
reed@google.com [Mon, 4 Jun 2012 18:10:33 +0000 (18:10 +0000)]
remove public function-ptr based colorfilter
Review URL: https://codereview.appspot.com/6286046

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

12 years agoTurn off pipe playback in GM by default.
scroggo@google.com [Mon, 4 Jun 2012 17:45:54 +0000 (17:45 +0000)]
Turn off pipe playback in GM by default.

Works for me, but not on all platforms.
Review URL: https://codereview.appspot.com/6293043

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

12 years agoMake the GM tool run GMs through an SkGPipe.
scroggo@google.com [Mon, 4 Jun 2012 17:17:36 +0000 (17:17 +0000)]
Make the GM tool run GMs through an SkGPipe.

Add pipe to core gyp project.

Do not run samplerstress through the pipe, since its
custom MaskFilter will not draw correctly.

Fix an assert in SkGPipeWrite when writing a typeface.
Review URL: https://codereview.appspot.com/6276044

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

12 years agochange static variable to #define
djsollen@google.com [Mon, 4 Jun 2012 14:13:06 +0000 (14:13 +0000)]
change static variable to #define

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

12 years agoAdd legacy script to enable skia roll into chromium.
djsollen@google.com [Mon, 4 Jun 2012 13:39:47 +0000 (13:39 +0000)]
Add legacy script to enable skia roll into chromium.
Review URL: https://codereview.appspot.com/6277045

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

12 years agoRevert r4134 due to bot failures
bsalomon@google.com [Mon, 4 Jun 2012 13:31:48 +0000 (13:31 +0000)]
Revert r4134 due to bot failures

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

12 years agoFixed Linux compiler complaints
robertphillips@google.com [Mon, 4 Jun 2012 13:22:14 +0000 (13:22 +0000)]
Fixed Linux compiler complaints

http://codereview.appspot.com/6269045/

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

12 years agoMove GrGpuGL::programUnitTest into its own file
bsalomon@google.com [Mon, 4 Jun 2012 13:03:25 +0000 (13:03 +0000)]
Move GrGpuGL::programUnitTest into its own file

Review URL: http://codereview.appspot.com/6272043/

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

12 years agoMove texture descriptor into GrTexture
robertphillips@google.com [Mon, 4 Jun 2012 12:48:45 +0000 (12:48 +0000)]
Move texture descriptor into GrTexture

http://codereview.appspot.com/6258068/

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

12 years ago--pictureDir foo will load serialized pictures <>.skp from the foo directory
reed@google.com [Mon, 4 Jun 2012 12:05:43 +0000 (12:05 +0000)]
--pictureDir foo will load serialized pictures <>.skp from the foo directory

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

12 years agoadd -wp option to write serialized pictures to the specified directory
mike@reedtribe.org [Sat, 2 Jun 2012 14:50:13 +0000 (14:50 +0000)]
add -wp option to write serialized pictures to the specified directory

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

12 years agoAdding option to serialize mutable bitmaps in SkPicture
junov@chromium.org [Fri, 1 Jun 2012 21:23:07 +0000 (21:23 +0000)]
Adding option to serialize mutable bitmaps in SkPicture

BUG=http://code.google.com/p/chromium/issues/detail?id=115654
REVIEW=http://codereview.appspot.com/6221066/

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

12 years agoFlip the switch to turn on GrCustomStage implementation of gradients;
tomhudson@google.com [Fri, 1 Jun 2012 20:42:15 +0000 (20:42 +0000)]
Flip the switch to turn on GrCustomStage implementation of gradients;
remove old implementation, including enums & state on various structs.

http://codereview.appspot.com/6245078/

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

12 years agoFix GrSamplerState::operator=() to take a reference rather than a copy.
tomhudson@google.com [Fri, 1 Jun 2012 19:50:02 +0000 (19:50 +0000)]
Fix GrSamplerState::operator=() to take a reference rather than a copy.
Visual review by bsalomon@.

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

12 years agoVC++ allows template parameter shadowing.
bungeman@google.com [Fri, 1 Jun 2012 19:47:51 +0000 (19:47 +0000)]
VC++ allows template parameter shadowing.

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

12 years agoSerialize support for GDI.
bungeman@google.com [Fri, 1 Jun 2012 19:38:19 +0000 (19:38 +0000)]
Serialize support for GDI.
http://codereview.appspot.com/6263046/

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

12 years agoread/write sfnt-data length, to match convetion of other fonthosts.
reed@google.com [Fri, 1 Jun 2012 19:36:05 +0000 (19:36 +0000)]
read/write sfnt-data length, to match convetion of other fonthosts.

TODO: move that "convention" into shared code (SkTypeface.cpp or SkFontHost.cpp)
and just require each port to support:

1. typeface <--> descriptor
2. typeface_raw_data <--> stream (possibly with algo-style flags)

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

12 years agoMove GrGpuGL::programUnitTest into its own file
bsalomon@google.com [Fri, 1 Jun 2012 19:28:26 +0000 (19:28 +0000)]
Move GrGpuGL::programUnitTest into its own file

Review URL: http://codereview.appspot.com/6272043/

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

12 years agoMove max vertex attributes value to GL Caps
bsalomon@google.com [Fri, 1 Jun 2012 19:25:00 +0000 (19:25 +0000)]
Move max vertex attributes value to GL Caps

Review URL: http://codereview.appspot.com/6271043/

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

12 years agoRemove dirty flags from GrGpuGL state flush
bsalomon@google.com [Fri, 1 Jun 2012 19:01:37 +0000 (19:01 +0000)]
Remove dirty flags from GrGpuGL state flush

Review URL: http://codereview.appspot.com/6255073/

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

12 years agoSkBool8 -> bool to suppress warning (verbal LGTM from TomH)
bsalomon@google.com [Fri, 1 Jun 2012 18:50:01 +0000 (18:50 +0000)]
SkBool8 -> bool to suppress warning (verbal LGTM from TomH)

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

12 years agoSuppress dumb warning.
bsalomon@google.com [Fri, 1 Jun 2012 18:29:37 +0000 (18:29 +0000)]
Suppress dumb warning.

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

12 years agoshape ops work in progress
caryclark@google.com [Fri, 1 Jun 2012 18:20:10 +0000 (18:20 +0000)]
shape ops work in progress

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

12 years agoshape ops work in progress
caryclark@google.com [Fri, 1 Jun 2012 17:44:28 +0000 (17:44 +0000)]
shape ops work in progress

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

12 years agouse SkFontDescriptor on mac
reed@google.com [Fri, 1 Jun 2012 16:19:32 +0000 (16:19 +0000)]
use SkFontDescriptor on mac
Review URL: https://codereview.appspot.com/6247064

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

12 years agoClean up duplicate code in Ganesh, moving more function onto GrGLShaderBuilder.
tomhudson@google.com [Fri, 1 Jun 2012 15:55:50 +0000 (15:55 +0000)]
Clean up duplicate code in Ganesh, moving more function onto GrGLShaderBuilder.

http://codereview.appspot.com/6245082/

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

12 years agoRemove 'legacy' font descriptor methods.
bungeman@google.com [Fri, 1 Jun 2012 15:53:06 +0000 (15:53 +0000)]
Remove 'legacy' font descriptor methods.
http://codereview.appspot.com/6261059/

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

12 years agoStore font family when serializing android fonts.
djsollen@google.com [Fri, 1 Jun 2012 15:36:39 +0000 (15:36 +0000)]
Store font family when serializing android fonts.
Review URL: https://codereview.appspot.com/6259063

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

12 years agoMove GrGpuGL::ProgramCache declaration to header
bsalomon@google.com [Fri, 1 Jun 2012 15:08:19 +0000 (15:08 +0000)]
Move GrGpuGL::ProgramCache declaration to header

Review URL: http://codereview.appspot.com/6245083/

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

12 years agoPunctuation cleanup to satisfy idiosyncracies of OpenBSD gcc 4.2.1.
tomhudson@google.com [Fri, 1 Jun 2012 13:15:47 +0000 (13:15 +0000)]
Punctuation cleanup to satisfy idiosyncracies of OpenBSD gcc 4.2.1.
Original patch by landry.breuil.

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

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

12 years agoUpdate the implementation of SkTypeface_android.h functions.
djsollen@google.com [Fri, 1 Jun 2012 12:52:26 +0000 (12:52 +0000)]
Update the implementation of SkTypeface_android.h functions.

This CL removes the hardcoded mappings of FallbackScripts to
a particular font file and replaces it with a dynamic mechanism
that takes a style and representative character code for a given
FallbackScript class and returns the most appropriate SkTypeface
that contains that character code.
Review URL: https://codereview.appspot.com/6197074

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

12 years agoadd more names to fontdescriptor
reed@google.com [Thu, 31 May 2012 21:16:48 +0000 (21:16 +0000)]
add more names to fontdescriptor
Review URL: https://codereview.appspot.com/6249074

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

12 years agoStop using deprecated functions in Mac GrGLInterface setup
bsalomon@google.com [Thu, 31 May 2012 20:39:48 +0000 (20:39 +0000)]
Stop using deprecated functions in Mac GrGLInterface setup

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

12 years agoZero out GrSamplerState in constructor to recover performance loss on Linux from...
tomhudson@google.com [Thu, 31 May 2012 20:35:27 +0000 (20:35 +0000)]
Zero out GrSamplerState in constructor to recover performance loss on Linux from r4102.
(Noise in padding bytes was breaking operator==())
Visual review by bsalomon@.

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

12 years agoupdate after dashing change
reed@google.com [Thu, 31 May 2012 20:17:16 +0000 (20:17 +0000)]
update after dashing change

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

12 years agoAdd SkFontDescriptor for serializing fonts.
djsollen@google.com [Thu, 31 May 2012 19:55:08 +0000 (19:55 +0000)]
Add SkFontDescriptor for serializing fonts.
Review URL: https://codereview.appspot.com/6250080

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

12 years agoFix SK_OVERRIDE error caught by Clang in r4105; wrong params for setData().
tomhudson@google.com [Thu, 31 May 2012 19:53:37 +0000 (19:53 +0000)]
Fix SK_OVERRIDE error caught by Clang in r4105; wrong params for setData().

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

12 years agoAdd GrGradientEffects files. These implementations will be invoked from
tomhudson@google.com [Thu, 31 May 2012 19:40:13 +0000 (19:40 +0000)]
Add GrGradientEffects files. These implementations will be invoked from
GrGLPrograms in a further change, replacing the current CoordMapping
enums.

http://codereview.appspot.com/6250081/

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

12 years agoEnable typeface from stream test for Mac.
bungeman@google.com [Thu, 31 May 2012 19:10:30 +0000 (19:10 +0000)]
Enable typeface from stream test for Mac.

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

12 years agoImplement morphology as a custom effect
bsalomon@google.com [Thu, 31 May 2012 18:40:36 +0000 (18:40 +0000)]
Implement morphology as a custom effect

Review URL: http://codereview.appspot.com/6250073/

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

12 years agoWe often rgn-diff an area >= the other rgn. now we detect that and return empty
reed@google.com [Thu, 31 May 2012 18:28:59 +0000 (18:28 +0000)]
We often rgn-diff an area >= the other rgn. now we detect that and return empty
We do this when we update our devices in SkCanvas.cpp
Review URL: https://codereview.appspot.com/6249073

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

12 years agoAdd glTexParameteriv to MESA GrGLInterface (missing from r4099)
bsalomon@google.com [Thu, 31 May 2012 18:09:11 +0000 (18:09 +0000)]
Add glTexParameteriv to MESA GrGLInterface (missing from r4099)

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

12 years agoAdd glTexParameteriv to GL interface
bsalomon@google.com [Thu, 31 May 2012 17:59:23 +0000 (17:59 +0000)]
Add glTexParameteriv to GL interface

Comitted on behalf of jin.a.yang@intel.com

Review URL: http://codereview.appspot.com/6213069/

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

12 years agoWindows compiler complaint cleanup
robertphillips@google.com [Thu, 31 May 2012 15:29:44 +0000 (15:29 +0000)]
Windows compiler complaint cleanup

http://codereview.appspot.com/6262047/

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

12 years agoskdiff: return nonzero exit value if there are any mismatches
epoger@google.com [Thu, 31 May 2012 15:13:45 +0000 (15:13 +0000)]
skdiff: return nonzero exit value if there are any mismatches

This will allow us to replace "gm -r" in our buildbots with "skdiff".  This will speed things up, and work around http://code.google.com/p/skia/issues/detail?id=473 ('PDF gradtext gm image results are nondeterministic')
Review URL: https://codereview.appspot.com/6242071

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

12 years agoskdiff: internally track lists of ALL result types, not just baseMissing and comparis...
epoger@google.com [Thu, 31 May 2012 15:12:09 +0000 (15:12 +0000)]
skdiff: internally track lists of ALL result types, not just baseMissing and comparisonMissing

This does not change skdiff output at all; verified using tools/tests/run.sh
Review URL: https://codereview.appspot.com/6260057

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

12 years agoMerge GrGpuGLShaders into its parent class, GrGpuGL
bsalomon@google.com [Thu, 31 May 2012 15:07:19 +0000 (15:07 +0000)]
Merge GrGpuGLShaders into its parent class, GrGpuGL

Review URL: http://codereview.appspot.com/6245076/

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

12 years agoFix typo in r4092.
tomhudson@google.com [Thu, 31 May 2012 14:31:14 +0000 (14:31 +0000)]
Fix typo in r4092.

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

12 years agoUse element-by-element assignment in GrSamplerState::operator= instead of memcpy
tomhudson@google.com [Thu, 31 May 2012 14:23:28 +0000 (14:23 +0000)]
Use element-by-element assignment in GrSamplerState::operator= instead of memcpy
so that we can handle refcounting correctly.

http://codereview.appspot.com/6262049/

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

12 years agoUse a single GrDrawState in GrContext for direct and buffered drawing
bsalomon@google.com [Thu, 31 May 2012 14:12:46 +0000 (14:12 +0000)]
Use a single GrDrawState in GrContext for direct and buffered drawing

Review URL: http://codereview.appspot.com/5933043

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

12 years agoDisable TLSTest for now, to work around http://code.google.com/p/skia/issues/detail...
epoger@google.com [Thu, 31 May 2012 13:54:51 +0000 (13:54 +0000)]
Disable TLSTest for now, to work around code.google.com/p/skia/issues/detail?id=619
Review URL: https://codereview.appspot.com/6259056

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

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

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

12 years agoAdd a bunch of SK_OVERRIDES and remove and unused function
bsalomon@google.com [Thu, 31 May 2012 12:52:43 +0000 (12:52 +0000)]
Add a bunch of SK_OVERRIDES and remove and unused function

Review URL: http://codereview.appspot.com/6245072/

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

12 years agosuppress warning on Mac
caryclark@google.com [Thu, 31 May 2012 12:39:18 +0000 (12:39 +0000)]
suppress warning on Mac
http://codereview.appspot.com/6245070/

M    gyp/common_conditions.gypi

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

12 years agotest-only: add test coverage of skdiff over input with identical bits or pixels
epoger@google.com [Wed, 30 May 2012 19:12:45 +0000 (19:12 +0000)]
test-only: add test coverage of skdiff over input with identical bits or pixels
Review URL: https://codereview.appspot.com/6260055

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

12 years agoCondense setupFSUnis, setupVSUnis, setupVaryings into
tomhudson@google.com [Wed, 30 May 2012 18:26:03 +0000 (18:26 +0000)]
Condense setupFSUnis, setupVSUnis, setupVaryings into
GrGLProgramStage::setupVariables().
Rename appendVarying() to addVarying(), matching addUniform().

http://codereview.appspot.com/6262046/

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

12 years agoRemove a couple things missed when deleting the tessellated path renderer
bsalomon@google.com [Wed, 30 May 2012 18:13:23 +0000 (18:13 +0000)]
Remove a couple things missed when deleting the tessellated path renderer

Review URL: http://codereview.appspot.com/6249070/

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

12 years agoEncapsulate code required to create a uniform var into a single function on
tomhudson@google.com [Wed, 30 May 2012 17:38:57 +0000 (17:38 +0000)]
Encapsulate code required to create a uniform var into a single function on
GrGLShaderBuilder. This isolates internal dependencies from somebody
writing a CustomStage.

http://codereview.appspot.com/6248050/

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

12 years agoRefactor dictionaries for use by entities other than just SkPicture
djsollen@google.com [Wed, 30 May 2012 16:54:13 +0000 (16:54 +0000)]
Refactor dictionaries for use by entities other than just SkPicture
Review URL: https://codereview.appspot.com/6101043

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

12 years agoAdd bench to test the performance of creating a picture.
djsollen@google.com [Wed, 30 May 2012 16:50:11 +0000 (16:50 +0000)]
Add bench to test the performance of creating a picture.
Review URL: https://codereview.appspot.com/6258062

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

12 years agoAdded cast to get MathTest working on Windows
robertphillips@google.com [Wed, 30 May 2012 15:19:17 +0000 (15:19 +0000)]
Added cast to get MathTest working on Windows

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

12 years agoAdded knowledge of GL_RED textures to debugGLReadPixels
robertphillips@google.com [Wed, 30 May 2012 14:46:10 +0000 (14:46 +0000)]
Added knowledge of GL_RED textures to debugGLReadPixels

http://codereview.appspot.com/6257070/

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

12 years agoapply 10.p+32 -> (float)(1 << 23) fix from MathTest here as well
reed@google.com [Wed, 30 May 2012 14:08:57 +0000 (14:08 +0000)]
apply 10.p+32 -> (float)(1 << 23) fix from MathTest here as well
windows can't eat the former syntax

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

12 years agoarm: First step towards dynamic NEON support.
digit@google.com [Wed, 30 May 2012 13:54:41 +0000 (13:54 +0000)]
arm: First step towards dynamic NEON support.

This patch adds minimal support for dynamic ARM NEON support,
i.e. the ability to probe the CPU at runtime for NEON and
provide alternate code paths when it is available.

- Add include/core/SkUtilsArm.h, which declares a few helper
  macros (e.g. SK_NEON_ARM_IS_DYNAMIC), plus the handy
  function 'sk_cpu_arm_has_neon()' which returns true if
  the target CPU supports the ARM NEON instruction set.

  Note that the header is in include/core/ because it will
  have to be included from NEON-specific code under src/code/

  It would probably be more logical to put it under include/opts/
  instead, but this would require moving all the NEON-specific
  stuff under src/code/ into src/opts/, which is not trivial
  due to the way the code is currently architected.

- Add src/core/SkUtilsArm.cpp which implements
  'sk_cpu_arm_has_neon' for ARM-based Linux systems, only
  when SK_NEON_ARM_IS_DYNAMIC is true.

  (For other cases, 'sk_cpu_arm_has_neon' is an inline function
   that returns a constant 'true' or 'false' value).

  There is no user-level accessible CPUID instruction on ARM,
  so do all CPU feature probing by parsing /proc/cpuinfo.
  This is Linux-specific.

  For Debug build types, the CPU probing result is printed
  to the Android log (or Linux command-line) for easier
  debugging.

- Create a new 'opts_neon' target (static library) which shall
  contain all the NEON-specific code paths for the library.

  This is necessary because -mfpu=neon impacts also non-scalar
  code. Just like with -mssse3 on x86, we can't build the rest
  of the library with this flag.

  Note that for now, we only include memset16_neon and
  memset32_neon in this library.

- Modify opts_check_arm.cpp to implement SK_ARM_NEON_IS_DYNAMIC
  properly.

Compared to a 'xoom' build, the only difference is the use of
NEON-optimized memset16/32 functions. Later patches will move
more NEON-specific code paths to 'opts_neon'.
Review URL: https://codereview.appspot.com/6247058

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

12 years agouse (float)(1 << 23) instead of 1.0p+23 since the latter isn't supported in VS
reed@google.com [Wed, 30 May 2012 13:48:14 +0000 (13:48 +0000)]
use (float)(1 << 23) instead of 1.0p+23 since the latter isn't supported in VS

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

12 years agowin can't eat 1.0p+23 syntax for floats :(
reed@google.com [Wed, 30 May 2012 12:43:59 +0000 (12:43 +0000)]
win can't eat 1.0p+23 syntax for floats :(

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

12 years agoremove debugf
reed@google.com [Wed, 30 May 2012 12:30:09 +0000 (12:30 +0000)]
remove debugf

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

12 years agoadd bench for floor variants
reed@google.com [Wed, 30 May 2012 12:26:52 +0000 (12:26 +0000)]
add bench for floor variants

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

12 years agoFixed small bug in shader generation
robertphillips@google.com [Wed, 30 May 2012 12:26:39 +0000 (12:26 +0000)]
Fixed small bug in shader generation

http://codereview.appspot.com/6259053/

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

12 years agosvndiff: report added and deleted files, not just modified files
epoger@google.com [Tue, 29 May 2012 21:28:12 +0000 (21:28 +0000)]
svndiff: report added and deleted files, not just modified files
Review URL: https://codereview.appspot.com/6260052

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

12 years agospecial-case dashing a single line-segment. We can go much faster since we
reed@google.com [Tue, 29 May 2012 20:48:50 +0000 (20:48 +0000)]
special-case dashing a single line-segment. We can go much faster since we
can apply the stroke as we go, eliminating the generic stroker.
Review URL: https://codereview.appspot.com/6250070

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

12 years agoaddPoly() entry-point, to quickly add MoveTo+N*LineTo (useful in dashing)
reed@google.com [Tue, 29 May 2012 19:54:52 +0000 (19:54 +0000)]
addPoly() entry-point, to quickly add MoveTo+N*LineTo (useful in dashing)
Review URL: https://codereview.appspot.com/6256063

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

12 years agoFix line ending, mark svn:eol-style LF
bsalomon@google.com [Tue, 29 May 2012 19:44:14 +0000 (19:44 +0000)]
Fix line ending, mark svn:eol-style LF

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

12 years agoFixing a reader size overflow with SkOrderedReadBuffer, when unflattening large bitmaps.
junov@chromium.org [Tue, 29 May 2012 16:53:04 +0000 (16:53 +0000)]
Fixing a reader size overflow with SkOrderedReadBuffer, when unflattening large bitmaps.

REVIEW=http://codereview.appspot.com/6250054/

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

12 years agoUpdate list of trybots used by https://goto.google.com/HowToLandSkiaChangesThatChange...
epoger@google.com [Tue, 29 May 2012 15:33:30 +0000 (15:33 +0000)]
Update list of trybots used by https://goto.google.com/HowToLandSkiaChangesThatChangeWebkitLayoutTests

TBR=reed
Review URL: https://codereview.appspot.com/6250071

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

12 years agoDetect when the caller was hairline AND strokeandfill, and resolve that into FILL
reed@google.com [Tue, 29 May 2012 12:03:46 +0000 (12:03 +0000)]
Detect when the caller was hairline AND strokeandfill, and resolve that into FILL
This fixes the unittests on WIN in the trybot for DEPS roll 4048
Review URL: https://codereview.appspot.com/6242057

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

12 years agoadd SkPoint::isZero(), match the existing method on SkIPoint
mike@reedtribe.org [Tue, 29 May 2012 01:40:15 +0000 (01:40 +0000)]
add SkPoint::isZero(), match the existing method on SkIPoint

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

12 years agoRolling back 4053
robertphillips@google.com [Mon, 28 May 2012 14:10:15 +0000 (14:10 +0000)]
Rolling back 4053

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

12 years agoSpeculative fix for Android Debug only crash in r4049
robertphillips@google.com [Mon, 28 May 2012 13:37:25 +0000 (13:37 +0000)]
Speculative fix for Android Debug only crash in r4049

http://codereview.appspot.com/6251049/

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

12 years agoAdd svndiff tool: runs skdiff over all pending changes in SVN checkout
epoger@google.com [Fri, 25 May 2012 19:48:05 +0000 (19:48 +0000)]
Add svndiff tool: runs skdiff over all pending changes in SVN checkout

This is needed for
https://goto.google.com/HowToLandSkiaChangesThatChangeWebkitLayoutTests ,
and will be generally useful beyond that too.
Review URL: https://codereview.appspot.com/6256052

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

12 years agoRolling back r4049
robertphillips@google.com [Fri, 25 May 2012 12:46:55 +0000 (12:46 +0000)]
Rolling back r4049

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

12 years agoWhitespace change - could not reproduce r4049's Debug Android failure locally
robertphillips@google.com [Fri, 25 May 2012 12:26:30 +0000 (12:26 +0000)]
Whitespace change - could not reproduce r4049's Debug Android failure locally

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

12 years agoAltered GrDrawState to always ref textures and render target
robertphillips@google.com [Fri, 25 May 2012 11:45:40 +0000 (11:45 +0000)]
Altered GrDrawState to always ref textures and render target

http://codereview.appspot.com/6251049/

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

12 years agoChange patheffect to take a (new) StrokeRec object, which encapsulates the fill
reed@google.com [Fri, 25 May 2012 01:04:12 +0000 (01:04 +0000)]
Change patheffect to take a (new) StrokeRec object, which encapsulates the fill
or stroke parameters for a path.

Today, the patheffect only sees if the caller was going to stroke or fill, and
if stroke, it just sees the width. With this change, the effect can see all of the
related parameters (e.g. cap/join/miter). No other change is intended at this
time.

After this change, I hope to use this additional data to allow SkDashPathEffect
to, at times, apply the stroke as part of its effect, which may be much more
efficient than first dashing, and then reading that and stroking it.

Most of these files changed just because of the new parameter to filterPath. The
key changes are in SkPathEffect.[h,cpp], SkPaint.cpp and SkScalerContext.cpp
Review URL: https://codereview.appspot.com/6250051

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

12 years agorevert 4046 -- GM:pathfill failed on one bot, maybe uninitialized memory somewhere?
reed@google.com [Thu, 24 May 2012 20:32:22 +0000 (20:32 +0000)]
revert 4046 -- GM:pathfill failed on one bot, maybe uninitialized memory somewhere?

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

12 years agoChange patheffect to take a (new) StrokeRec object, which encapsulates the fill
reed@google.com [Thu, 24 May 2012 20:13:57 +0000 (20:13 +0000)]
Change patheffect to take a (new) StrokeRec object, which encapsulates the fill
or stroke parameters for a path.

Today, the patheffect only sees if the caller was going to stroke or fill, and if
stroke, it just sees the width. With this change, the effect can see all of the
related parameters (e.g. cap/join/miter). No other change is intended at this
time.

After this change, I hope to use this additional data to allow SkDashPathEffect
to, at times, apply the stroke as part of its effect, which may be much more
efficient than first dashing, and then reading that and stroking it.

Most of these files changed just because of the new parameter to filterPath. The
key changes are in SkPathEffect.[h,cpp], SkPaint.cpp and SkScalerContext.cpp
Review URL: https://codereview.appspot.com/6249050

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

12 years agoMove swizzle & modulation computation, non-virtual functions onto
tomhudson@google.com [Thu, 24 May 2012 17:44:30 +0000 (17:44 +0000)]
Move swizzle & modulation computation, non-virtual functions onto
GrGLShaderBuilder. This lets us access all the default computations
when there's no GrCustomStage specified, and means that GrGLProgramStage
is effectively an interface class, all of whose functions can/should
be overriden.

http://codereview.appspot.com/6242051/

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

12 years agoadd baselines for macpro
reed@google.com [Thu, 24 May 2012 16:28:11 +0000 (16:28 +0000)]
add baselines for macpro

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

12 years agoadd baselines for macpro
reed@google.com [Thu, 24 May 2012 16:25:13 +0000 (16:25 +0000)]
add baselines for macpro

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

12 years agoadd baselines for macpro
reed@google.com [Thu, 24 May 2012 16:22:53 +0000 (16:22 +0000)]
add baselines for macpro

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

12 years agoadd baselines for macpro
reed@google.com [Thu, 24 May 2012 15:15:04 +0000 (15:15 +0000)]
add baselines for macpro

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

12 years agoFirst stage of reworking custom shader infrastructure to allow
tomhudson@google.com [Thu, 24 May 2012 15:10:14 +0000 (15:10 +0000)]
First stage of reworking custom shader infrastructure to allow
radial mappings.

http://codereview.appspot.com/6239043/

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

12 years agoFix some EOLs, mark files with the LF property.
bsalomon@google.com [Thu, 24 May 2012 12:43:36 +0000 (12:43 +0000)]
Fix some EOLs, mark files with the LF property.

Review URL: http://codereview.appspot.com/6230046/

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

12 years agoUpdated useSWOnlyPath method to use path chain instead of raw path renderer methods
robertphillips@google.com [Thu, 24 May 2012 12:42:24 +0000 (12:42 +0000)]
Updated useSWOnlyPath method to use path chain instead of raw path renderer methods

http://codereview.appspot.com/6211083/

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

12 years agoshape ops work in progress (get rid of some warnings)
caryclark@google.com [Wed, 23 May 2012 18:09:25 +0000 (18:09 +0000)]
shape ops work in progress (get rid of some warnings)

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

12 years agoRemoved SoftwarePathRenderer from GrContext's path renderer chain
robertphillips@google.com [Wed, 23 May 2012 13:19:12 +0000 (13:19 +0000)]
Removed SoftwarePathRenderer from GrContext's path renderer chain

http://codereview.appspot.com/6221065/

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