platform/upstream/libSkiaSharp.git
11 years agoadd test for bug in line drawing. fix is pending a way to handle all of the
reed@google.com [Tue, 30 Oct 2012 20:26:58 +0000 (20:26 +0000)]
add test for bug in line drawing. fix is pending a way to handle all of the
rebaselines...

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

11 years agoUpstreaming changes from gpu_dev to trunk.
bsalomon@google.com [Tue, 30 Oct 2012 20:17:54 +0000 (20:17 +0000)]
Upstreaming changes from gpu_dev to trunk.

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

11 years agoEliminating implicit conversion from enum to bool. Fixes compiler warning
junov@chromium.org [Tue, 30 Oct 2012 19:05:17 +0000 (19:05 +0000)]
Eliminating implicit conversion from enum to bool. Fixes compiler warning
Review URL: https://codereview.appspot.com/6819053

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

11 years agocomment-only: add "this may change" warning to SkChecksum.h
epoger@google.com [Tue, 30 Oct 2012 17:33:09 +0000 (17:33 +0000)]
comment-only: add "this may change" warning to SkChecksum.h
Review URL: https://codereview.appspot.com/6810054

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

11 years agoRevert r6051, re-adding json to DEPS file
epoger@google.com [Tue, 30 Oct 2012 16:25:17 +0000 (16:25 +0000)]
Revert r6051, re-adding json to DEPS file
Review URL: https://codereview.appspot.com/6816059

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

11 years agoRemove unnecessary mul and assignment in gradient shaders.
bsalomon@google.com [Tue, 30 Oct 2012 15:50:22 +0000 (15:50 +0000)]
Remove unnecessary mul and assignment in gradient shaders.

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

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

11 years agoAdd GL texture validity check to GrGpuGL
robertphillips@google.com [Tue, 30 Oct 2012 15:18:10 +0000 (15:18 +0000)]
Add GL texture validity check to GrGpuGL

https://codereview.appspot.com/6817053/

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

11 years agoSimple rebaseline tool: Add support for ANGLE, DirectWrite builders.
senorblanco@chromium.org [Tue, 30 Oct 2012 14:34:55 +0000 (14:34 +0000)]
Simple rebaseline tool:  Add support for ANGLE, DirectWrite builders.
Set svn mime type to image/png.

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

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

11 years agofactor out computation for dy in SkEdge lines, so we can later try a fix.
reed@google.com [Tue, 30 Oct 2012 14:28:03 +0000 (14:28 +0000)]
factor out computation for dy in SkEdge lines, so we can later try a fix.

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

11 years agoFix cross compilation with mingw.
bungeman@google.com [Tue, 30 Oct 2012 14:15:32 +0000 (14:15 +0000)]
Fix cross compilation with mingw.

Mingw is case sensitive, so use the correct capitaliztion of dwrite.h.
https://codereview.appspot.com/6588055

Props jacek.

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

11 years agoExpose vertex position to GrGLEffect via GrGLShaderBuilder.
bsalomon@google.com [Tue, 30 Oct 2012 12:34:25 +0000 (12:34 +0000)]
Expose vertex position to GrGLEffect via GrGLShaderBuilder.

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

git-svn-id: http://skia.googlecode.com/svn/branches/gpu_dev@6195 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoUse consistent globals in AttachCache.
bungeman@google.com [Mon, 29 Oct 2012 20:16:30 +0000 (20:16 +0000)]
Use consistent globals in AttachCache.
https://codereview.appspot.com/6816052/

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

11 years agoRebase gpu_dev up to r5182
bsalomon@google.com [Mon, 29 Oct 2012 20:13:42 +0000 (20:13 +0000)]
Rebase gpu_dev up to r5182

git-svn-id: http://skia.googlecode.com/svn/branches/gpu_dev@6187 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoAdd file accidentally omitted from r6182.
bsalomon@google.com [Mon, 29 Oct 2012 20:02:06 +0000 (20:02 +0000)]
Add file accidentally omitted from r6182.

git-svn-id: http://skia.googlecode.com/svn/branches/gpu_dev@6186 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoPass GrCustomStage to key-generation functions and emitCode().
bsalomon@google.com [Mon, 29 Oct 2012 19:51:22 +0000 (19:51 +0000)]
Pass GrCustomStage to key-generation functions and emitCode().

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

git-svn-id: http://skia.googlecode.com/svn/branches/gpu_dev@6182 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoFix alpha computation for specular lighting filter (GPU path).
senorblanco@chromium.org [Mon, 29 Oct 2012 19:47:06 +0000 (19:47 +0000)]
Fix alpha computation for specular lighting filter (GPU path).
Change lighting GM background to show blending.

NOTE:  This will require new results for the lighting GM.

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

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

11 years agoAllow default texture cache limit to be set within gyp.
djsollen@google.com [Mon, 29 Oct 2012 19:24:45 +0000 (19:24 +0000)]
Allow default texture cache limit to be set within gyp.

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

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

11 years agoAlphabetize gm options (in usage message and option parser).
epoger@google.com [Mon, 29 Oct 2012 18:59:17 +0000 (18:59 +0000)]
Alphabetize gm options (in usage message and option parser).
Also add long-form option names for all options.
Review URL: https://codereview.appspot.com/6817050

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

11 years agoFirst stab at a simple rebaseline script.
senorblanco@chromium.org [Mon, 29 Oct 2012 18:06:26 +0000 (18:06 +0000)]
First stab at a simple rebaseline script.

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

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

11 years agoAdd option to gm: write out images into a hierarchy, rather than a flat set of files
epoger@google.com [Mon, 29 Oct 2012 16:42:11 +0000 (16:42 +0000)]
Add option to gm: write out images into a hierarchy, rather than a flat set of files
BUG=https://code.google.com/p/skia/issues/detail?id=743
Review URL: https://codereview.appspot.com/6810047

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

11 years agoMake GrEffectStage keep a const ptr (rather than non-const) to GrEffect.
bsalomon@google.com [Mon, 29 Oct 2012 16:25:04 +0000 (16:25 +0000)]
Make GrEffectStage keep a const ptr (rather than non-const) to GrEffect.

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

git-svn-id: http://skia.googlecode.com/svn/branches/gpu_dev@6166 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoMake lighting filters directly inherit from GrGLEffect.
bsalomon@google.com [Mon, 29 Oct 2012 14:53:53 +0000 (14:53 +0000)]
Make lighting filters directly inherit from GrGLEffect.

Delete GrGLLegacyEffect.
Review URL: https://codereview.appspot.com/6815050

git-svn-id: http://skia.googlecode.com/svn/branches/gpu_dev@6165 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoMake GrGLConvolutionEffect, GrGLMorphologyEffect, and GrGLMagnifierEffect derive...
bsalomon@google.com [Mon, 29 Oct 2012 12:47:51 +0000 (12:47 +0000)]
Make GrGLConvolutionEffect, GrGLMorphologyEffect, and GrGLMagnifierEffect derive directly from GrGLEffect.

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

git-svn-id: http://skia.googlecode.com/svn/branches/gpu_dev@6164 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoMake GrGLGradientEffect derive directly from GrGLEffect.
bsalomon@google.com [Mon, 29 Oct 2012 12:43:38 +0000 (12:43 +0000)]
Make GrGLGradientEffect derive directly from GrGLEffect.
Review URL: https://codereview.appspot.com/6784053

git-svn-id: http://skia.googlecode.com/svn/branches/gpu_dev@6163 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoSanitizing source files in Skia_Periodic_House_Keeping
skia.committer@gmail.com [Sat, 27 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@6161 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoRebaseline gpu_dev from trunk at r6159.
bsalomon@google.com [Fri, 26 Oct 2012 21:14:10 +0000 (21:14 +0000)]
Rebaseline gpu_dev from trunk at r6159.

git-svn-id: http://skia.googlecode.com/svn/branches/gpu_dev@6160 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoshape ops work in progress
caryclark@google.com [Fri, 26 Oct 2012 21:03:50 +0000 (21:03 +0000)]
shape ops work in progress

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

11 years agoFix generateMask to properly apply pre-blend.
bungeman@google.com [Fri, 26 Oct 2012 20:48:54 +0000 (20:48 +0000)]
Fix generateMask to properly apply pre-blend.

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

11 years agoAdd a factory Create function for SkColorFilterImageFilter, and move the matrix optim...
senorblanco@chromium.org [Fri, 26 Oct 2012 19:37:00 +0000 (19:37 +0000)]
Add a factory Create function for SkColorFilterImageFilter, and move the matrix optimization there.  This will allow the Chrome compositor to extract the optimized matrix, and potentially apply the color matrix itself, saving a buffer allocation & draw.

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

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

11 years agoClean up usage of mask gamma.
bungeman@google.com [Fri, 26 Oct 2012 19:35:54 +0000 (19:35 +0000)]
Clean up usage of mask gamma.
https://codereview.appspot.com/6749061/

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

11 years agoMake a bunch of GrGLEffects derive directly from GrGLEffect rather than GrGLLegacyEffect.
bsalomon@google.com [Fri, 26 Oct 2012 19:16:46 +0000 (19:16 +0000)]
Make a bunch of GrGLEffects derive directly from GrGLEffect rather than GrGLLegacyEffect.
Review URL: https://codereview.appspot.com/6783053

git-svn-id: http://skia.googlecode.com/svn/branches/gpu_dev@6150 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoMerging trunk revs up to 6147 into gpu_dev.
bsalomon@google.com [Fri, 26 Oct 2012 19:14:16 +0000 (19:14 +0000)]
Merging trunk revs up to 6147 into gpu_dev.

git-svn-id: http://skia.googlecode.com/svn/branches/gpu_dev@6149 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoMake the orientation of a texture accessible from and known by GrSurface.
bsalomon@google.com [Fri, 26 Oct 2012 19:01:17 +0000 (19:01 +0000)]
Make the orientation of a texture accessible from and known by GrSurface.

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

git-svn-id: http://skia.googlecode.com/svn/branches/gpu_dev@6148 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoobject-ify gmmain.cpp (no functional change) to ease planned changes later
epoger@google.com [Fri, 26 Oct 2012 18:56:36 +0000 (18:56 +0000)]
object-ify gmmain.cpp (no functional change) to ease planned changes later
Review URL: https://codereview.appspot.com/6801043

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

11 years agoWhitespace change to trigger bots
borenet@google.com [Fri, 26 Oct 2012 18:03:09 +0000 (18:03 +0000)]
Whitespace change to trigger bots

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

11 years agoMake GrGLEffect::setData take GrEffectStage rather than GrEffect.
bsalomon@google.com [Fri, 26 Oct 2012 17:53:18 +0000 (17:53 +0000)]
Make GrGLEffect::setData take GrEffectStage rather than GrEffect.

This allows the coord-change matrix to be communicated to setData(). An accessor for this matrix is also added to GrEffectStage.

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

git-svn-id: http://skia.googlecode.com/svn/branches/gpu_dev@6143 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoRefactor gm to minimize wasted passes through picture and pipe code paths.
djsollen@google.com [Fri, 26 Oct 2012 14:07:13 +0000 (14:07 +0000)]
Refactor gm to minimize wasted passes through picture and pipe code paths.

Testing this CL shows around a 40% time reduction when running gm on a mac debug build.

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

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

11 years agoCreate a branch for continued GPU development during Chrome branching.
bsalomon@google.com [Fri, 26 Oct 2012 13:44:54 +0000 (13:44 +0000)]
Create a branch for continued GPU development during Chrome branching.

git-svn-id: http://skia.googlecode.com/svn/branches/gpu_dev@6139 2bbb7eff-a529-9590-31e7-b0007b416f81

11 years agoUpdate comment in GrDrawState.h to reflect renaming changes and expansion of the...
bsalomon@google.com [Fri, 26 Oct 2012 13:41:59 +0000 (13:41 +0000)]
Update comment in GrDrawState.h to reflect renaming changes and expansion of the scope of effects.
Review URL: https://codereview.appspot.com/6777059

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

11 years agoMake output path to render_pictures optional
borenet@google.com [Fri, 26 Oct 2012 13:26:55 +0000 (13:26 +0000)]
Make output path to render_pictures optional
Review URL: https://codereview.appspot.com/6779049

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

11 years agoRename GrSamplerState to GrEffectStage.
bsalomon@google.com [Fri, 26 Oct 2012 13:01:20 +0000 (13:01 +0000)]
Rename GrSamplerState to GrEffectStage.

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

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

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

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

11 years agoMisc stage->effect renaming
bsalomon@google.com [Thu, 25 Oct 2012 21:52:43 +0000 (21:52 +0000)]
Misc stage->effect renaming

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

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

11 years agoGrGLGradientStage->GrGLGradientEffect
bsalomon@google.com [Thu, 25 Oct 2012 21:45:42 +0000 (21:45 +0000)]
GrGLGradientStage->GrGLGradientEffect

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

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

11 years agoRename StageKey and related stuff.
bsalomon@google.com [Thu, 25 Oct 2012 21:42:05 +0000 (21:42 +0000)]
Rename StageKey and related stuff.

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

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

11 years agoFix WIN64 break from variable redefinition.
scroggo@google.com [Thu, 25 Oct 2012 19:57:06 +0000 (19:57 +0000)]
Fix WIN64 break from variable redefinition.

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

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

11 years agoFix self assignment in GrGLShaderVar
bsalomon@google.com [Thu, 25 Oct 2012 19:35:05 +0000 (19:35 +0000)]
Fix self assignment in GrGLShaderVar

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

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

11 years agoAdd a callback to cleanup TLS data on Windows.
scroggo@google.com [Thu, 25 Oct 2012 19:12:40 +0000 (19:12 +0000)]
Add a callback to cleanup TLS data on Windows.

Add a test to ensure that it works.

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

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

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

11 years agoRename GrProgramStageFactory to GrBackendEffectFactory.
bsalomon@google.com [Thu, 25 Oct 2012 19:00:29 +0000 (19:00 +0000)]
Rename GrProgramStageFactory to GrBackendEffectFactory.
Review URL: https://codereview.appspot.com/6773044

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

11 years agoFiles accidentally omitted from r6123.
bsalomon@google.com [Thu, 25 Oct 2012 18:56:10 +0000 (18:56 +0000)]
Files accidentally omitted from r6123.

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

11 years agoPlatform/Engine -> Backend
bsalomon@google.com [Thu, 25 Oct 2012 18:43:28 +0000 (18:43 +0000)]
Platform/Engine -> Backend
createPlatform -> wrapBackend

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

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

11 years agodon't send % by itself to printf
reed@google.com [Thu, 25 Oct 2012 17:58:23 +0000 (17:58 +0000)]
don't send % by itself to printf

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

11 years agouse subclasses instead of function-ptrs for hairline specializations.
reed@google.com [Thu, 25 Oct 2012 17:37:03 +0000 (17:37 +0000)]
use subclasses instead of function-ptrs for hairline specializations.
1. enables easy grouping of procs, e.g. cap -vs- line
2. easy to extend for more shared state (e.g. gamma table, etc.)

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

11 years agoadd bench for hairlines
reed@google.com [Thu, 25 Oct 2012 17:32:10 +0000 (17:32 +0000)]
add bench for hairlines

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

11 years agoadd MACRO macros to help with concat. Stolen from gpu headers
reed@google.com [Thu, 25 Oct 2012 17:31:39 +0000 (17:31 +0000)]
add MACRO macros to help with concat. Stolen from gpu headers

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

11 years agogyp: generate "everything" and "most" targets instead of "all"
epoger@google.com [Thu, 25 Oct 2012 16:32:07 +0000 (16:32 +0000)]
gyp: generate "everything" and "most" targets instead of "all"
"make all" at the toplevel now chains to "make everything"

BUG=http://code.google.com/p/skia/issues/detail?id=932
Review URL: https://codereview.appspot.com/6651064

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

11 years agoclarify code/comments in gmmain.cpp (no functional change)
epoger@google.com [Thu, 25 Oct 2012 16:27:34 +0000 (16:27 +0000)]
clarify code/comments in gmmain.cpp (no functional change)
Review URL: https://codereview.appspot.com/6749067

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

11 years agoRemove SK_DISABLE_EXTRACTSUBSET_OPAQUE_FIX test since it has been rebaselined.
bungeman@google.com [Thu, 25 Oct 2012 15:48:17 +0000 (15:48 +0000)]
Remove SK_DISABLE_EXTRACTSUBSET_OPAQUE_FIX test since it has been rebaselined.
https://codereview.appspot.com/6778044/

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

11 years agoFix decl of gl_FragCoord in GLSL versions <= 1.20.
bsalomon@google.com [Thu, 25 Oct 2012 14:57:46 +0000 (14:57 +0000)]
Fix decl of gl_FragCoord in GLSL versions <= 1.20.

We we're saying "in" instead of "varying".
Review URL: https://codereview.appspot.com/6779043

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

11 years agoCorrectly set width & height in filtered SkPictures
robertphillips@google.com [Thu, 25 Oct 2012 14:45:08 +0000 (14:45 +0000)]
Correctly set width & height in filtered SkPictures

https://codereview.appspot.com/6772047/

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

11 years agoGrGLProgramStage Renaming Part 3
bsalomon@google.com [Thu, 25 Oct 2012 14:11:03 +0000 (14:11 +0000)]
GrGLProgramStage Renaming Part 3

s/GLProgramStage/GLEffect
minor whitespace/spelling fixup

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

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

11 years agoWhitespace change to trigger bot
borenet@google.com [Thu, 25 Oct 2012 13:59:14 +0000 (13:59 +0000)]
Whitespace change to trigger bot

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

11 years agoGrGLProgramStage Renaming Part 2
bsalomon@google.com [Thu, 25 Oct 2012 13:29:20 +0000 (13:29 +0000)]
GrGLProgramStage Renaming Part 2

s/GrGLLegacyProgramStage/GrGLLegacyEffect
Review URL: https://codereview.appspot.com/6761056

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

11 years agoGrGLProgramStage Renaming Part 1.
bsalomon@google.com [Thu, 25 Oct 2012 13:22:00 +0000 (13:22 +0000)]
GrGLProgramStage Renaming Part 1.

Renamed cpp and h
s/GrGLProgramStage/GrGLEffect/
Review URL: https://codereview.appspot.com/6759054

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

11 years agoGrCustomStage Renaming Part 5
bsalomon@google.com [Thu, 25 Oct 2012 12:47:42 +0000 (12:47 +0000)]
GrCustomStage Renaming Part 5

Stuff found by searching for "stage".

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

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

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

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

11 years agoIf a path is known to be nonfinite, don't forget that in our autobounds
reed@google.com [Wed, 24 Oct 2012 21:04:04 +0000 (21:04 +0000)]
If a path is known to be nonfinite, don't forget that in our autobounds
helper. "Once a non-finite, always a non-finite".

Inspired by crbug/157157
Review URL: https://codereview.appspot.com/6764047

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

11 years agoGrCustomStage Renaming Part 4
bsalomon@google.com [Wed, 24 Oct 2012 20:11:30 +0000 (20:11 +0000)]
GrCustomStage Renaming Part 4

Rename a bunch of things found by searching for "custom".
Review URL: https://codereview.appspot.com/6765048

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

11 years agoGrCustomStage Renaming Part 3
bsalomon@google.com [Wed, 24 Oct 2012 19:35:13 +0000 (19:35 +0000)]
GrCustomStage Renaming Part 3

Rename all things *CUSTOM_STAGE*, customStage*, and other miscellany

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

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

11 years agoMake filter tool actually filter the read in SkPicture
robertphillips@google.com [Wed, 24 Oct 2012 19:30:41 +0000 (19:30 +0000)]
Make filter tool actually filter the read in SkPicture

https://codereview.appspot.com/6765046/

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

11 years agoGrCustomStage Renaming Part 2
bsalomon@google.com [Wed, 24 Oct 2012 19:07:10 +0000 (19:07 +0000)]
GrCustomStage Renaming Part 2

GrSamplerState member rename
GrCustomStageUnitTest rename
some comment updates
Review URL: https://codereview.appspot.com/6771043

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

11 years agoCustomStage Renaming Part 1
bsalomon@google.com [Wed, 24 Oct 2012 18:28:34 +0000 (18:28 +0000)]
CustomStage Renaming Part 1

Search and replace:
GrCustomStage->GrEffect
GrCustomStageTestFactory->GrEffectTestFactory

renamed the cpp/h files from customStage->effect

reordered gypi, #includes, forward decls to maintain alphabetical sort.

manually fixed up some whitespace and linewraps

deleted a commented out #include

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

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

11 years agoPass the GrCustomStage and key to GrGLProgramStage emitCode.
bsalomon@google.com [Wed, 24 Oct 2012 17:34:46 +0000 (17:34 +0000)]
Pass the GrCustomStage and key to GrGLProgramStage emitCode.

The key computation may encode some analysis that emitCode may be able to skip by examining the key.
Review URL: https://codereview.appspot.com/6709075

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

11 years agoProtect filter_texture() against render target change.
senorblanco@chromium.org [Wed, 24 Oct 2012 15:14:26 +0000 (15:14 +0000)]
Protect filter_texture() against render target change.
Fix blend filters when input textures are "sloppy" (approx scratch texture match)
Add a new test case to gm/imagefiltersgraph, and reduce its size.

NOTE:  this will require new baselines for the imagefiltersgraph GM.

BUG=950

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

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

11 years agoReset clip in ~SkGpuDevice
robertphillips@google.com [Wed, 24 Oct 2012 13:24:11 +0000 (13:24 +0000)]
Reset clip in ~SkGpuDevice

https://codereview.appspot.com/6763044/

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

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

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

11 years agoCatch callers who pass invalid glyph ids and improve SkPdfFont desructor.
edisonn@google.com [Tue, 23 Oct 2012 21:32:39 +0000 (21:32 +0000)]
Catch callers who pass invalid glyph ids and improve SkPdfFont desructor.

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

11 years agoEnable Android executables (like skia_launcher) to redirect SkDebugf output to stdout...
djsollen@google.com [Tue, 23 Oct 2012 17:37:30 +0000 (17:37 +0000)]
Enable Android executables (like skia_launcher) to redirect SkDebugf output to stdout as well as the system logs.

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

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

11 years agoCombine the emit functions in GrGLProgramStage.
bsalomon@google.com [Tue, 23 Oct 2012 17:30:45 +0000 (17:30 +0000)]
Combine the emit functions in GrGLProgramStage.

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

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

11 years agoRemoved degenerate quads from zero radius Chrome-style round rects
robertphillips@google.com [Tue, 23 Oct 2012 16:56:56 +0000 (16:56 +0000)]
Removed degenerate quads from zero radius Chrome-style round rects

https://codereview.appspot.com/6737059/

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

11 years agoRemove extra dependencies on json-cpp
borenet@google.com [Tue, 23 Oct 2012 16:00:02 +0000 (16:00 +0000)]
Remove extra dependencies on json-cpp
Review URL: https://codereview.appspot.com/6752052

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

11 years agoadd label
reed@google.com [Tue, 23 Oct 2012 15:33:41 +0000 (15:33 +0000)]
add label

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

11 years agoReland r6330 thru r6333 but do without enabling GL_ARB_fragment_coord_conventions...
bsalomon@google.com [Tue, 23 Oct 2012 14:53:55 +0000 (14:53 +0000)]
Reland r6330 thru r6333 but do without enabling GL_ARB_fragment_coord_conventions on Intel GPUs.

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

11 years agoAdd support for GLSL 1.40.
bsalomon@google.com [Tue, 23 Oct 2012 14:31:30 +0000 (14:31 +0000)]
Add support for GLSL 1.40.
Review URL: https://codereview.appspot.com/6709070

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

11 years agoReorder the vertex attributes to be friendlier to android.
bsalomon@google.com [Tue, 23 Oct 2012 14:21:11 +0000 (14:21 +0000)]
Reorder the vertex attributes to be friendlier to android.
Review URL: https://codereview.appspot.com/6742068

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

11 years agoAdd vendor to context info.
bsalomon@google.com [Tue, 23 Oct 2012 13:52:43 +0000 (13:52 +0000)]
Add vendor to context info.

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

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

11 years agoMake Debugger print out more information (mainly w.r.t. SkBitmap)
robertphillips@google.com [Tue, 23 Oct 2012 12:13:35 +0000 (12:13 +0000)]
Make Debugger print out more information (mainly w.r.t. SkBitmap)

https://codereview.appspot.com/6709069/

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

11 years agosupport click-drag translate
mike@reedtribe.org [Tue, 23 Oct 2012 03:10:46 +0000 (03:10 +0000)]
support click-drag translate

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

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

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

11 years agoupdate
reed@google.com [Mon, 22 Oct 2012 22:10:20 +0000 (22:10 +0000)]
update

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

11 years agoupdate
reed@google.com [Mon, 22 Oct 2012 22:00:08 +0000 (22:00 +0000)]
update

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

11 years agoRevert r6330 thru 6333 while we figure out what to do about Intel bots (possible...
bsalomon@google.com [Mon, 22 Oct 2012 20:36:53 +0000 (20:36 +0000)]
Revert r6330 thru 6333 while we figure out what to do about Intel bots (possible driver bug).

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

11 years agoFix slow gm debug builds that are doing large path validation runs.
djsollen@google.com [Mon, 22 Oct 2012 20:23:32 +0000 (20:23 +0000)]
Fix slow gm debug builds that are doing large path validation runs.

Add a new compile flag to allow path validation to be selectively
enabled instead of being always on.

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

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

11 years ago[PDF] Fix gradient generation code (remove extra 'dup' in some cases)
vandebo@chromium.org [Mon, 22 Oct 2012 20:12:40 +0000 (20:12 +0000)]
[PDF] Fix gradient generation code (remove extra 'dup' in some cases)

Fixes http://crbug.com/157006

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

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

11 years ago[PDF] Fix index calculation for Type1 advance retrieval.
vandebo@chromium.org [Mon, 22 Oct 2012 20:09:31 +0000 (20:09 +0000)]
[PDF] Fix index calculation for Type1 advance retrieval.

This should fix http://crbug.com/154590

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

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

11 years agoFix name of extension enabled in r6031 (should be plural "conventions").
bsalomon@google.com [Mon, 22 Oct 2012 18:47:17 +0000 (18:47 +0000)]
Fix name of extension enabled in r6031 (should be plural "conventions").

Unreviewed.

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

11 years agoEnable extension GL_ARB_fragment_coord_convention in FS. Speculative fix for Intel...
bsalomon@google.com [Mon, 22 Oct 2012 18:19:33 +0000 (18:19 +0000)]
Enable extension GL_ARB_fragment_coord_convention in FS. Speculative fix for Intel Win7 buildbots.

Unreviewed.

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

11 years agoRemove two params from GrGLProgramStage::setData that are no longer necessary.
bsalomon@google.com [Mon, 22 Oct 2012 17:47:22 +0000 (17:47 +0000)]
Remove two params from GrGLProgramStage::setData that are no longer necessary.

R=senorblanco@chromium.org
Review URL: https://codereview.appspot.com/6744062

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

11 years agoAutomatically handle converting gl_FragCoord to Skia's y-down device coords.
bsalomon@google.com [Mon, 22 Oct 2012 17:40:14 +0000 (17:40 +0000)]
Automatically handle converting gl_FragCoord to Skia's y-down device coords.

NOTE: THIS WILL LIKELY REQUIRE GM REBASELINING.

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

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

11 years agoRemove use of varargs in SkImageFilter. This is causing a crash in recent
senorblanco@chromium.org [Mon, 22 Oct 2012 15:07:14 +0000 (15:07 +0000)]
Remove use of varargs in SkImageFilter.  This is causing a crash in recent
builds of clang.  (It was also masking the fact that SkMergeImageFilter was
calling the wrong constructor!)

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

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