platform/upstream/libSkiaSharp.git
12 years agoGPU would ignore the path effect when its stroke is zero, fix it
bsalomon@google.com [Mon, 18 Jun 2012 12:52:56 +0000 (12:52 +0000)]
GPU would ignore the path effect when its stroke is zero, fix it

Committed on behalf of Guanqun.Lu@gmail.com

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

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

12 years agofix gl error of 'invalid enum' from GL_COLOR_TABLE
bsalomon@google.com [Mon, 18 Jun 2012 12:47:06 +0000 (12:47 +0000)]
fix gl error of 'invalid enum' from GL_COLOR_TABLE

Committed on behalf of Guanqun.Lu@gmail.com

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

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

12 years agoshow meaningful GL error strings during debugging
bsalomon@google.com [Mon, 18 Jun 2012 12:27:29 +0000 (12:27 +0000)]
show meaningful GL error strings during debugging

Committed on behalf of Guanqun.Lu@gmail.com

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

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

12 years agoAvoid un-necessary re-calculations of width in for loop of emitFS function
bsalomon@google.com [Fri, 15 Jun 2012 21:50:15 +0000 (21:50 +0000)]
Avoid un-necessary re-calculations of width in for loop of emitFS function

Committed on behalf of kondapallykalyan@gmail.com

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

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

12 years agoGive GrClipMaskManager a GrGpu*
bsalomon@google.com [Fri, 15 Jun 2012 21:09:40 +0000 (21:09 +0000)]
Give GrClipMaskManager a GrGpu*
Review URL: http://codereview.appspot.com/6301090/

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

12 years agoRemove unused function left in GrGLProgram.cpp
bsalomon@google.com [Fri, 15 Jun 2012 20:36:33 +0000 (20:36 +0000)]
Remove unused function left in GrGLProgram.cpp

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

12 years agoadd test for http://code.google.com/p/chromium/issues/detail?id=131181
reed@google.com [Fri, 15 Jun 2012 18:26:04 +0000 (18:26 +0000)]
add test for code.google.com/p/chromium/issues/detail?id=131181

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

12 years agoSuppress annoying printf in GM when MSAA is not supported.
bsalomon@google.com [Fri, 15 Jun 2012 14:30:34 +0000 (14:30 +0000)]
Suppress annoying printf in GM when MSAA is not supported.

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

12 years agoadd more font names to our extra-bottom-space hack
reed@google.com [Fri, 15 Jun 2012 14:27:15 +0000 (14:27 +0000)]
add more font names to our extra-bottom-space hack
http://code.google.com/p/chromium/issues/detail?id=130842

Change cached names to be UTF8 encoded, since we now have some non-ascii names

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

12 years agoAdd strings to debug/null interfaces glGetString
bsalomon@google.com [Fri, 15 Jun 2012 14:16:00 +0000 (14:16 +0000)]
Add strings to debug/null interfaces glGetString
Review URL: http://codereview.appspot.com/6294062/

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

12 years agoTLS GrContext count
bsalomon@google.com [Fri, 15 Jun 2012 14:10:09 +0000 (14:10 +0000)]
TLS GrContext count

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

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

12 years agoUse GrAARectRenderer in GPU AA clip mask generation
robertphillips@google.com [Fri, 15 Jun 2012 13:58:07 +0000 (13:58 +0000)]
Use GrAARectRenderer in GPU AA clip mask generation

http://codereview.appspot.com/6300097/

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

12 years agoRevert r4259
borenet@google.com [Fri, 15 Jun 2012 13:46:44 +0000 (13:46 +0000)]
Revert r4259

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

12 years agoSerialize by Default
borenet@google.com [Fri, 15 Jun 2012 12:53:04 +0000 (12:53 +0000)]
Serialize by Default

- doSerialize is true by default
- "--serialize" flag replaced by "--noserialize"
Review URL: https://codereview.appspot.com/6274045

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

12 years agotools/pinspect: quick tool to inspeact the header (and rough validity) of 1 or more...
reed@google.com [Thu, 14 Jun 2012 18:58:40 +0000 (18:58 +0000)]
tools/pinspect: quick tool to inspeact the header (and rough validity) of 1 or more picture files
Review URL: https://codereview.appspot.com/6295085

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

12 years agohttp://codereview.appspot.com/6307089
reed@google.com [Wed, 13 Jun 2012 20:01:44 +0000 (20:01 +0000)]
http://codereview.appspot.com/6307089

Detect bad font, and adjust glyph heights to avoid clipping

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

12 years agoFix calling (and checking) the decal_ functions when the input is SkFractionalInt.
reed@google.com [Wed, 13 Jun 2012 19:39:03 +0000 (19:39 +0000)]
Fix calling (and checking) the decal_ functions when the input is SkFractionalInt.
The bug was to cast to SkFixed from SkFractionalInt, when what we needed to do
was shift the fractional guy down to fixed.

This bug was only caught on an android device w/o neon, since other configs have
assembly for their matrixproc that didn't have this bug.
Review URL: https://codereview.appspot.com/6303074

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

12 years agoVersion 2 of the Instance Counting system. This one simplifies the print out of infor...
robertphillips@google.com [Wed, 13 Jun 2012 18:54:08 +0000 (18:54 +0000)]
Version 2 of the Instance Counting system. This one simplifies the print out of information.

http://codereview.appspot.com/6296069/

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

12 years agoreleaseTextures portion of GrDrawState Ref textures CL (http://codereview.appspot...
robertphillips@google.com [Wed, 13 Jun 2012 18:49:30 +0000 (18:49 +0000)]
releaseTextures portion of GrDrawState Ref textures CL (codereview.appspot.com/6251049/)

http://codereview.appspot.com/6299081/

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

12 years agoReally fix the build.
schenney@chromium.org [Wed, 13 Jun 2012 18:29:20 +0000 (18:29 +0000)]
Really fix the build.

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

12 years agoAdd BSON implementation to third_party
djsollen@google.com [Wed, 13 Jun 2012 18:22:09 +0000 (18:22 +0000)]
Add BSON implementation to third_party
Review URL: https://codereview.appspot.com/6267044

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

12 years agoAdd JSON dependency to build.
djsollen@google.com [Wed, 13 Jun 2012 18:21:47 +0000 (18:21 +0000)]
Add JSON dependency to build.

This dependency is a mirror of the one that Chrome
uses to import jsoncpp.
Review URL: https://codereview.appspot.com/6269043

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

12 years agoRemove local variable from GrConvolutionEffect GLSL code; reported to give marginal...
tomhudson@google.com [Wed, 13 Jun 2012 18:12:57 +0000 (18:12 +0000)]
Remove local variable from GrConvolutionEffect GLSL code; reported to give marginal speedup
on some Intel architectures. Original patch from kondapallykalyan@.

http://codereview.appspot.com/6302070/

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

12 years agoFor SkGPipe, store bitmaps in a common location.
scroggo@google.com [Wed, 13 Jun 2012 17:47:52 +0000 (17:47 +0000)]
For SkGPipe, store bitmaps in a common location.

Also make a change to SkBitmap::copyTo() so that we do not
crash.
Review URL: https://codereview.appspot.com/6296066

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

12 years agoSpeculative build fix. Tests do not fail locally.
schenney@chromium.org [Wed, 13 Jun 2012 17:41:00 +0000 (17:41 +0000)]
Speculative build fix. Tests do not fail locally.

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

12 years agoFix the problem of rendering closePath not properly after a moveTo call in
schenney@chromium.org [Wed, 13 Jun 2012 17:05:43 +0000 (17:05 +0000)]
Fix the problem of rendering closePath not properly after a moveTo call in
canvas 2D interface. If there is a polyline, followed by a moveTo and a
closePath, both the moveTo and the closePath should be ignored for the purposes
of drawing, and the polyline should not be closed (unless force closed is true
(for filling, for instance).

Tested for path with both valid and degenerate content, when asked to
consume degenerates and not, force closed and not.

This patch also includes a uni test refactoring to reduce the amount of code
to test path iteration and zero length paths.

BUG=6297049

TEST=tests/PathTest.cpp, testIter method.
Review URL: https://codereview.appspot.com/6300086

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

12 years agoSplit two-point radial gradient parameters into two arrays of uniforms,
tomhudson@google.com [Wed, 13 Jun 2012 15:22:18 +0000 (15:22 +0000)]
Split two-point radial gradient parameters into two arrays of uniforms,
to avoid sharing arrays between fragment & vertex shaders. Appears to
work around driver bug on Xoom.

http://codereview.appspot.com/6304070/

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

12 years agoNV PR spec update to function param, use GrGL typedefs rather than fundamental types
bsalomon@google.com [Wed, 13 Jun 2012 14:16:03 +0000 (14:16 +0000)]
NV PR spec update to function param, use GrGL typedefs rather than fundamental types

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

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

12 years agofaster SkScalarIsFinite()
reed@google.com [Wed, 13 Jun 2012 13:03:08 +0000 (13:03 +0000)]
faster SkScalarIsFinite()

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

12 years agoAdded Texture desc to render target
robertphillips@google.com [Wed, 13 Jun 2012 12:53:07 +0000 (12:53 +0000)]
Added Texture desc to render target

http://codereview.appspot.com/6302068/

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

12 years agofix bogus assert
reed@google.com [Wed, 13 Jun 2012 12:30:35 +0000 (12:30 +0000)]
fix bogus assert

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

12 years agoReverting r4239 & r4240
robertphillips@google.com [Tue, 12 Jun 2012 21:58:09 +0000 (21:58 +0000)]
Reverting r4239 & r4240

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

12 years agopass -fArray[i] instead of fArray[i], to skip a compiler optimization where it
reed@google.com [Tue, 12 Jun 2012 21:40:13 +0000 (21:40 +0000)]
pass -fArray[i] instead of fArray[i], to skip a compiler optimization where it
thought it could tread the memory as if it pointed to an int instead of a float.

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

12 years agoadd bench for SkScalarIsFinite
reed@google.com [Tue, 12 Jun 2012 21:29:43 +0000 (21:29 +0000)]
add bench for SkScalarIsFinite

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

12 years agoCompiler complaints + some minor cleanup
robertphillips@google.com [Tue, 12 Jun 2012 21:23:49 +0000 (21:23 +0000)]
Compiler complaints + some minor cleanup

http://codereview.appspot.com/6295070/

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

12 years agoadd readPtr and writePtr to SkReader32 and SkWriter32
reed@google.com [Tue, 12 Jun 2012 20:47:53 +0000 (20:47 +0000)]
add readPtr and writePtr to SkReader32 and SkWriter32
add template helper SkSWriter32, which allocates initial storage buffer
Review URL: https://codereview.appspot.com/6299075

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

12 years agoMove SkColorTable into its own header and reduce includes in SkFlattenable.h
djsollen@google.com [Tue, 12 Jun 2012 15:17:27 +0000 (15:17 +0000)]
Move SkColorTable into its own header and reduce includes in SkFlattenable.h
Review URL: https://codereview.appspot.com/6299072

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

12 years agoAdding the render_pictures test tool
junov@chromium.org [Tue, 12 Jun 2012 14:56:36 +0000 (14:56 +0000)]
Adding the render_pictures test tool

Submitted on behalf of keyar@chromium.org

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

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

12 years agoAdding API to GrTexture to reset cached texture parameter values
junov@chromium.org [Tue, 12 Jun 2012 13:58:36 +0000 (13:58 +0000)]
Adding API to GrTexture to reset cached texture parameter values

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

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

12 years agoSplit GrContext's AA Rect drawing methods into helper class
robertphillips@google.com [Tue, 12 Jun 2012 00:32:28 +0000 (00:32 +0000)]
Split GrContext's AA Rect drawing methods into helper class

http://codereview.appspot.com/6300070/

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

12 years agoremove SK_CAN_USE_FLOAT (deprecated)
reed@google.com [Mon, 11 Jun 2012 21:21:26 +0000 (21:21 +0000)]
remove SK_CAN_USE_FLOAT (deprecated)

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

12 years agoDisable morphology benchmarks on fixed point builds.
tomhudson@google.com [Mon, 11 Jun 2012 20:48:18 +0000 (20:48 +0000)]
Disable morphology benchmarks on fixed point builds.

http://codereview.appspot.com/6300082/

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

12 years agoDilate & Erode benchmarks. Unlike the blur benchmarks (which test
tomhudson@google.com [Mon, 11 Jun 2012 19:22:01 +0000 (19:22 +0000)]
Dilate & Erode benchmarks.  Unlike the blur benchmarks (which test
Convolution), they show no improvement from unrolling the GLSL loops
in src/gpu/effects/GrMorphologyEffect.cpp

http://codereview.appspot.com/6299067/

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

12 years agofix missing switch-statement handler (for conical gradient)
reed@google.com [Mon, 11 Jun 2012 18:54:07 +0000 (18:54 +0000)]
fix missing switch-statement handler (for conical gradient)

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

12 years agonew baselines for new test (pathinvfill). PDF and GPU fail, so no baselines for them
reed@google.com [Mon, 11 Jun 2012 17:41:14 +0000 (17:41 +0000)]
new baselines for new test (pathinvfill). PDF and GPU fail, so no baselines for them

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

12 years agoBetter fix for rev. 4214 (inverse-fill and clipping). This fix avoids changing
reed@google.com [Mon, 11 Jun 2012 17:30:33 +0000 (17:30 +0000)]
Better fix for rev. 4214 (inverse-fill and clipping). This fix avoids changing
the actual clipping bounds, which caused tiny differences in the scan converter.
Also adding a gm (which I should have the first time.)
Review URL: https://codereview.appspot.com/6297073

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

12 years agoRegister Two_Point_Conical_Gradient for flattening.
scroggo@google.com [Mon, 11 Jun 2012 16:51:45 +0000 (16:51 +0000)]
Register Two_Point_Conical_Gradient for flattening.

Without being registered, the twopointconical GM fails
when using --pipe or --serialize, since this gradient
will not be flattened/unflattened.
Review URL: https://codereview.appspot.com/6294060

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

12 years agofix include name (masked by case insensitiviy on windows)
bsalomon@google.com [Mon, 11 Jun 2012 15:55:58 +0000 (15:55 +0000)]
fix include name (masked by case insensitiviy on windows)

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

12 years agofix SkNWayCanvas cons call again.
bsalomon@google.com [Mon, 11 Jun 2012 15:52:55 +0000 (15:52 +0000)]
fix SkNWayCanvas cons call again.

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

12 years agoFix SkNWayCanvas cons call when creating null canvas.
bsalomon@google.com [Mon, 11 Jun 2012 15:47:23 +0000 (15:47 +0000)]
Fix SkNWayCanvas cons call when creating null canvas.

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

12 years agoFix Fixed-Point build by changing static_assert around scalar=float to a runtime...
bsalomon@google.com [Mon, 11 Jun 2012 15:46:05 +0000 (15:46 +0000)]
Fix Fixed-Point build by changing static_assert around scalar=float to a runtime crash.

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

12 years agoAdd SK_API to null canvas create method
bsalomon@google.com [Mon, 11 Jun 2012 15:41:25 +0000 (15:41 +0000)]
Add SK_API to null canvas create method

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

12 years agoNull canvas
bsalomon@google.com [Mon, 11 Jun 2012 15:39:15 +0000 (15:39 +0000)]
Null canvas

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

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

12 years agoTowards NV path rendering
bsalomon@google.com [Mon, 11 Jun 2012 15:36:13 +0000 (15:36 +0000)]
Towards NV path rendering

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

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

12 years agoManually unroll loop in convolution (blur) - most GL drivers do, but some
tomhudson@google.com [Mon, 11 Jun 2012 12:42:24 +0000 (12:42 +0000)]
Manually unroll loop in convolution (blur) - most GL drivers do, but some
don't, and this leads to 20-30% benchmark speedup.

http://codereview.appspot.com/6308057/

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

12 years agofix typo: fA is dx^2 + dx^2 - dr^2, not dx^2 - dy^2 - dr^2
mike@reedtribe.org [Sat, 9 Jun 2012 02:03:40 +0000 (02:03 +0000)]
fix typo: fA is dx^2 + dx^2 - dr^2, not dx^2 - dy^2 - dr^2

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

12 years agoRemove glBlendEquation and glColorPointer
bsalomon@google.com [Fri, 8 Jun 2012 20:36:22 +0000 (20:36 +0000)]
Remove glBlendEquation and glColorPointer

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

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

12 years agoRename the existing flatten(void*) methods.
djsollen@google.com [Fri, 8 Jun 2012 18:30:46 +0000 (18:30 +0000)]
Rename the existing flatten(void*) methods.

This change avoids naminc confusion with the SkFlattenable flatten methods and
also changes SkPath to use the void* model instead of taking a SkReader32.
Review URL: https://codereview.appspot.com/6299062

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

12 years agoDetect inverse-fill, and treat its bounds as huge (all of integer space) for the
reed@google.com [Fri, 8 Jun 2012 16:30:12 +0000 (16:30 +0000)]
Detect inverse-fill, and treat its bounds as huge (all of integer space) for the
purposes of comparing w/ the clip-bounds, otherwise we can reject the draw if
the bounds of the path are outside the bounds of the clip.
Review URL: https://codereview.appspot.com/6302058

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

12 years agoAdd a tiled pipe mode to SampleApp.
scroggo@google.com [Fri, 8 Jun 2012 15:35:03 +0000 (15:35 +0000)]
Add a tiled pipe mode to SampleApp.

Using the "Pipe" checkbox in SamleApp, you can now
toggle amongst three states: no pipe, a normal pipe
(or others depending on #defines), and a tiled pipe.
You can also use shift + p to toggle.
Review URL: https://codereview.appspot.com/6303055

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

12 years agoFix for r4201 performance regression (http://code.google.com/p/skia/issues/detail...
robertphillips@google.com [Fri, 8 Jun 2012 14:21:26 +0000 (14:21 +0000)]
Fix for r4201 performance regression (code.google.com/p/skia/issues/detail?id=640)

http://codereview.appspot.com/6299060/

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

12 years agoCall flushMiscFixedFunctionState (D'oh!)
bsalomon@google.com [Fri, 8 Jun 2012 14:13:02 +0000 (14:13 +0000)]
Call flushMiscFixedFunctionState (D'oh!)
Review URL: http://codereview.appspot.com/6302057/

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

12 years agoAdd SkPath::getVerbs/countVerbs
bsalomon@google.com [Thu, 7 Jun 2012 21:43:15 +0000 (21:43 +0000)]
Add SkPath::getVerbs/countVerbs
Review URL: http://codereview.appspot.com/6306053/

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

12 years agoshape ops work in progress
caryclark@google.com [Thu, 7 Jun 2012 21:09:20 +0000 (21:09 +0000)]
shape ops work in progress

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

12 years agoextend asAGradient for Conical type (to be implemented by PDF and XPS)
reed@google.com [Thu, 7 Jun 2012 20:26:47 +0000 (20:26 +0000)]
extend asAGradient for Conical type (to be implemented by PDF and XPS)
Review URL: https://codereview.appspot.com/6308051

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

12 years agoMake SkPath::RawIter require a non-NULL pts pointer.
bsalomon@google.com [Thu, 7 Jun 2012 17:47:33 +0000 (17:47 +0000)]
Make SkPath::RawIter require a non-NULL pts pointer.

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

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

12 years agoAdd the ability to specify config to GM.
scroggo@google.com [Thu, 7 Jun 2012 17:39:48 +0000 (17:39 +0000)]
Add the ability to specify config to GM.

Code adapted from bench.

To specify a config, add -config <configName1>|<configName2> etc
to the command line.

To find the valid names (which can depend on flags passed in), use
-h or --help.
Review URL: https://codereview.appspot.com/6297053

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

12 years agooptimize quad-root for conical gradients
reed@google.com [Thu, 7 Jun 2012 14:20:52 +0000 (14:20 +0000)]
optimize quad-root for conical gradients
Review URL: https://codereview.appspot.com/6307052

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

12 years agoadd bench for conical Gradient
reed@google.com [Thu, 7 Jun 2012 14:18:34 +0000 (14:18 +0000)]
add bench for conical Gradient

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

12 years agoFix dumb bug in checking gl interface validation against binding from gl version...
bsalomon@google.com [Thu, 7 Jun 2012 13:03:03 +0000 (13:03 +0000)]
Fix dumb bug in checking gl interface validation against binding from gl version string

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

12 years agoMove clientID into texture desc
robertphillips@google.com [Thu, 7 Jun 2012 12:08:45 +0000 (12:08 +0000)]
Move clientID into texture desc

http://codereview.appspot.com/6305044/

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

12 years agoFix the build for GM.
scroggo [Wed, 6 Jun 2012 21:26:31 +0000 (21:26 +0000)]
Fix the build for GM.

Add src/pipe/utils as an include directory.

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

12 years agoAdd tiled rendering as an option to GM.
scroggo@google.com [Wed, 6 Jun 2012 21:07:10 +0000 (21:07 +0000)]
Add tiled rendering as an option to GM.

Use an SkGPipe to play back drawing into tiles.
This will help us to debug differences in drawing
while tiled.

Pass --tiledPipe to gm to use the tiled pipe.
Review URL: https://codereview.appspot.com/6295050

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

12 years agoSearch and replace change. Some Gr enum value names didn't have a "Gr" in their suffix.
bsalomon@google.com [Wed, 6 Jun 2012 20:51:20 +0000 (20:51 +0000)]
Search and replace change. Some Gr enum value names didn't have a "Gr" in their suffix.

Verbal LGTM from TomH

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

12 years agoAdd new gradient to support HTML Canvas2D two-point-radial-gradient. Ours is
reed@google.com [Wed, 6 Jun 2012 20:31:56 +0000 (20:31 +0000)]
Add new gradient to support HTML Canvas2D two-point-radial-gradient. Ours is
called (for now at least) TwoPointConical, to distinguish it from the
existing one (TwoPointRadial), and to reflect its odd behavior where it draws
transparent outside the boundary of the "cone" between the two circles.

This impl is unsupported by GPU and Printing at the moment, and Chrome does not
yet invoke it.
Review URL: https://codereview.appspot.com/6299051

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

12 years agoReenable running samplerstress GM in pipe mode.
scroggo@google.com [Wed, 6 Jun 2012 19:13:46 +0000 (19:13 +0000)]
Reenable running samplerstress GM in pipe mode.

It was disabled because samplerstress did was not
registered for flattening. Now that it is, do not
skip it when running GM in pipe mode.
Review URL: https://codereview.appspot.com/6305057

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

12 years agoRemove gpu stats tracking
bsalomon@google.com [Wed, 6 Jun 2012 18:21:18 +0000 (18:21 +0000)]
Remove gpu stats tracking

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

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

12 years agofix bug in GrGLInterface validation added in r4192
bsalomon@google.com [Wed, 6 Jun 2012 15:38:52 +0000 (15:38 +0000)]
fix bug in GrGLInterface validation added in r4192

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

12 years agoAdd GL function pointers for GL_NV_path_rendering
bsalomon@google.com [Wed, 6 Jun 2012 15:17:54 +0000 (15:17 +0000)]
Add GL function pointers for GL_NV_path_rendering
Review URL: http://codereview.appspot.com/6296046/

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

12 years agoone more warning suppressed (make unused code
caryclark@google.com [Wed, 6 Jun 2012 12:13:40 +0000 (12:13 +0000)]
one more warning suppressed (make unused code
avoid bit rot)

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

12 years agoTurn more warnings on, including
caryclark@google.com [Wed, 6 Jun 2012 12:12:28 +0000 (12:12 +0000)]
Turn more warnings on, including

- unused functions
- unused locals
- sign mismatch
- missing function prototypes
- missing newline at end of file
- 64 to 32 bit truncation
Review URL: https://codereview.appspot.com/6307043

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

12 years agofix warnings on Mac in src/animator
caryclark@google.com [Wed, 6 Jun 2012 12:11:55 +0000 (12:11 +0000)]
fix warnings on Mac in src/animator

Fix these class of warnings:
- unused functions
- unused locals
- sign mismatch
- missing function prototypes
- missing newline at end of file
- 64 to 32 bit truncation

The changes prefer to link in dead code in the debug build
with 'if (false)' than to comment it out, but trivial cases
are commented out or sometimes deleted if it appears to be
a copy/paste error.
Review URL: https://codereview.appspot.com/6306044

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

12 years agofix warnings on Mac in bench
caryclark@google.com [Wed, 6 Jun 2012 12:11:45 +0000 (12:11 +0000)]
fix warnings on Mac in bench

Fix these class of warnings:
- unused functions
- unused locals
- sign mismatch
- missing function prototypes
- missing newline at end of file
- 64 to 32 bit truncation

The changes prefer to link in dead code in the debug build
with 'if (false)' than to comment it out, but trivial cases
are commented out or sometimes deleted if it appears to be
a copy/paste error.
Review URL: https://codereview.appspot.com/6302044

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

12 years agofix warnings on Mac in experimental
caryclark@google.com [Wed, 6 Jun 2012 12:11:33 +0000 (12:11 +0000)]
fix warnings on Mac in experimental

Fix these class of warnings:
- unused functions
- unused locals
- sign mismatch
- missing function prototypes
- missing newline at end of file
- 64 to 32 bit truncation

The changes prefer to link in dead code in the debug build
with 'if (false)' than to comment it out, but trivial cases
are commented out or sometimes deleted if it appears to be
a copy/paste error.
Review URL: https://codereview.appspot.com/6307044

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

12 years agofix warnings on Mac in miscellaneous files
caryclark@google.com [Wed, 6 Jun 2012 12:11:10 +0000 (12:11 +0000)]
fix warnings on Mac in miscellaneous files

Fix these class of warnings:
- unused functions
- unused locals
- sign mismatch
- missing function prototypes
- missing newline at end of file
- 64 to 32 bit truncation

The changes prefer to link in dead code in the debug build
with 'if (false)' than to comment it out, but trivial cases
are commented out or sometimes deleted if it appears to be
a copy/paste error.
Review URL: https://codereview.appspot.com/6305047

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

12 years agofix warnings on Mac in gm
caryclark@google.com [Wed, 6 Jun 2012 12:10:45 +0000 (12:10 +0000)]
fix warnings on Mac in gm

Fix these class of warnings:
- unused functions
- unused locals
- sign mismatch
- missing function prototypes
- missing newline at end of file
- 64 to 32 bit truncation

The changes prefer to link in dead code in the debug build
with 'if (false)' than to comment it out, but trivial cases
are commented out or sometimes deleted if it appears to be
a copy/paste error.
Review URL: https://codereview.appspot.com/6305046

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

12 years agofix warnings on Mac in src/opts
caryclark@google.com [Wed, 6 Jun 2012 12:10:26 +0000 (12:10 +0000)]
fix warnings on Mac in src/opts

Fix these class of warnings:
- unused functions
- unused locals
- sign mismatch
- missing function prototypes
- missing newline at end of file
- 64 to 32 bit truncation

The changes prefer to link in dead code in the debug build
with 'if (false)' than to comment it out, but trivial cases
are commented out or sometimes deleted if it appears to be
a copy/paste error.
Review URL: https://codereview.appspot.com/6303045

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

12 years agofix warnings on Mac in ssamplecode
caryclark@google.com [Wed, 6 Jun 2012 12:09:51 +0000 (12:09 +0000)]
fix warnings on Mac in ssamplecode

Fix these class of warnings:
- unused functions
- unused locals
- sign mismatch
- missing function prototypes
- missing newline at end of file
- 64 to 32 bit truncation

The changes prefer to link in dead code in the debug build
with 'if (false)' than to comment it out, but trivial cases
are commented out or sometimes deleted if it appears to be
a copy/paste error.
Review URL: https://codereview.appspot.com/6301044

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

12 years agofix warnings on Mac in src/core
caryclark@google.com [Wed, 6 Jun 2012 12:09:34 +0000 (12:09 +0000)]
fix warnings on Mac in src/core

Fix these class of warnings:
- unused functions
- unused locals
- sign mismatch
- missing function prototypes
- missing newline at end of file
- 64 to 32 bit truncation

The changes prefer to link in dead code in the debug build
with 'if (false)' than to comment it out, but trivial cases
are commented out or sometimes deleted if it appears to be
a copy/paste error.
Review URL: https://codereview.appspot.com/6301046

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

12 years agofix warnings on Mac in src/effects
caryclark@google.com [Wed, 6 Jun 2012 12:09:18 +0000 (12:09 +0000)]
fix warnings on Mac in src/effects

Fix these class of warnings:
- unused functions
- unused locals
- sign mismatch
- missing function prototypes
- missing newline at end of file
- 64 to 32 bit truncation

The changes prefer to link in dead code in the debug build
with 'if (false)' than to comment it out, but trivial cases
are commented out or sometimes deleted if it appears to be
a copy/paste error.
Review URL: https://codereview.appspot.com/6299049

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

12 years agofix warnings on Mac in src/gpu and include/gpu
caryclark@google.com [Wed, 6 Jun 2012 12:09:01 +0000 (12:09 +0000)]
fix warnings on Mac in src/gpu and include/gpu

Fix these class of warnings:
- unused functions
- unused locals
- sign mismatch
- missing function prototypes
- missing newline at end of file
- 64 to 32 bit truncation

The changes prefer to link in dead code in the debug build
with 'if (false)' than to comment it out, but trivial cases
are commented out or sometimes deleted if it appears to be
a copy/paste error.
Review URL: https://codereview.appspot.com/6296044

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

12 years agofix warnings on Mac in src/images
caryclark@google.com [Wed, 6 Jun 2012 12:04:36 +0000 (12:04 +0000)]
fix warnings on Mac in src/images

Fix these class of warnings:
- unused functions
- unused locals
- sign mismatch
- missing function prototypes
- missing newline at end of file
- 64 to 32 bit truncation

The changes prefer to link in dead code in the debug build
with 'if (false)' than to comment it out, but trivial cases
are commented out or sometimes deleted if it appears to be
a copy/paste error.
Review URL: https://codereview.appspot.com/6299048

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

12 years agofix warnings on Mac in src/pdf
caryclark@google.com [Wed, 6 Jun 2012 12:04:24 +0000 (12:04 +0000)]
fix warnings on Mac in src/pdf

Fix these class of warnings:
- unused functions
- unused locals
- sign mismatch
- missing function prototypes
- missing newline at end of file
- 64 to 32 bit truncation

The changes prefer to link in dead code in the debug build
with 'if (false)' than to comment it out, but trivial cases
are commented out or sometimes deleted if it appears to be
a copy/paste error.
Review URL: https://codereview.appspot.com/6299047

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

12 years agofix warnings on Mac in src/pipe
caryclark@google.com [Wed, 6 Jun 2012 12:04:11 +0000 (12:04 +0000)]
fix warnings on Mac in src/pipe

Fix these class of warnings:
- unused functions
- unused locals
- sign mismatch
- missing function prototypes
- missing newline at end of file
- 64 to 32 bit truncation

The changes prefer to link in dead code in the debug build
with 'if (false)' than to comment it out, but trivial cases
are commented out or sometimes deleted if it appears to be
a copy/paste error.
Review URL: https://codereview.appspot.com/6302045

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

12 years agofix warnings on Mac in src/views
caryclark@google.com [Wed, 6 Jun 2012 12:04:00 +0000 (12:04 +0000)]
fix warnings on Mac in src/views

Fix these class of warnings:
- unused functions
- unused locals
- sign mismatch
- missing function prototypes
- missing newline at end of file
- 64 to 32 bit truncation

The changes prefer to link in dead code in the debug build
with 'if (false)' than to comment it out, but trivial cases
are commented out or sometimes deleted if it appears to be
a copy/paste error.
Review URL: https://codereview.appspot.com/6300045

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

12 years agofix warnings on Mac in tests
caryclark@google.com [Wed, 6 Jun 2012 12:03:39 +0000 (12:03 +0000)]
fix warnings on Mac in tests

Fix these class of warnings:
- unused functions
- unused locals
- sign mismatch
- missing function prototypes
- missing newline at end of file
- 64 to 32 bit truncation

The changes prefer to link in dead code in the debug build
with 'if (false)' than to comment it out, but trivial cases
are commented out or sometimes deleted if it appears to be
a copy/paste error.
Review URL: https://codereview.appspot.com/6301045

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

12 years agoshape ops work in progress
caryclark@google.com [Wed, 6 Jun 2012 11:52:28 +0000 (11:52 +0000)]
shape ops work in progress

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

12 years agoMove stencil param adjustment to GrClipMaskManager, attempt to make GrGpuGL::flushSte...
bsalomon@google.com [Tue, 5 Jun 2012 20:24:20 +0000 (20:24 +0000)]
Move stencil param adjustment to GrClipMaskManager, attempt to make GrGpuGL::flushStencil readable

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

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

12 years agorebaseline after filtered-gradients-gpu change
reed@google.com [Tue, 5 Jun 2012 19:57:42 +0000 (19:57 +0000)]
rebaseline after filtered-gradients-gpu change

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

12 years agoInstance counting for SkRefCnt-derived objects (w/ CanvasTest fix)
robertphillips@google.com [Tue, 5 Jun 2012 19:35:09 +0000 (19:35 +0000)]
Instance counting for SkRefCnt-derived objects (w/ CanvasTest fix)

http://codereview.appspot.com/6242070/

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