platform/upstream/libSkiaSharp.git
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

11 years agoMake GrGLShaderBuilder responsible for inserting begining of main() function defition...
bsalomon@google.com [Mon, 22 Oct 2012 14:30:50 +0000 (14:30 +0000)]
Make GrGLShaderBuilder responsible for inserting begining of main() function defition and closing brace.

This will allow another change I am working on to insert code at the begining of a shader.

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

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

11 years agoMake GrGLProgram be responsible for calling setData on custom stages.
bsalomon@google.com [Mon, 22 Oct 2012 14:11:24 +0000 (14:11 +0000)]
Make GrGLProgram be responsible for calling setData on custom stages.

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

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

11 years agoadd sample to debug in fatbits mode
mike@reedtribe.org [Mon, 22 Oct 2012 03:59:34 +0000 (03:59 +0000)]
add sample to debug in fatbits mode

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

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

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

11 years agoAdd a GM that tests xfermode-based color filters.
bsalomon@google.com [Fri, 19 Oct 2012 19:26:05 +0000 (19:26 +0000)]
Add a GM that tests xfermode-based color filters.
Review URL: https://codereview.appspot.com/6736052

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

11 years agoAdded ability to extract SkBitmaps to filter tool
robertphillips@google.com [Fri, 19 Oct 2012 19:06:11 +0000 (19:06 +0000)]
Added ability to extract SkBitmaps to filter tool

https://codereview.appspot.com/6748043/

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

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

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

11 years agoSpeculative fix for Chrome bug in SkClipStack::isWideOpen
robertphillips@google.com [Fri, 19 Oct 2012 18:19:01 +0000 (18:19 +0000)]
Speculative fix for Chrome bug in SkClipStack::isWideOpen

https://codereview.appspot.com/6743048/

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

11 years agoshape ops work in progress
caryclark@google.com [Fri, 19 Oct 2012 15:54:16 +0000 (15:54 +0000)]
shape ops work in progress

refined line/quad intersection, made more robust
still working on edge cases

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

11 years agoEnable gm/aarectmodes with pdf config. Does not crash in mac (nor windows) according...
edisonn@google.com [Fri, 19 Oct 2012 14:17:22 +0000 (14:17 +0000)]
Enable gm/aarectmodes with pdf config. Does not crash in mac (nor windows) according to comment. I am working to improve pdf, first step to have all gms export to pdf.
Review URL: https://codereview.appspot.com/6713055

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

11 years agoGPU: add failure checks for the scratch textures used in Gaussian blur.
robertphillips@google.com [Fri, 19 Oct 2012 12:56:26 +0000 (12:56 +0000)]
GPU: add failure checks for the scratch textures used in Gaussian blur.

https://codereview.appspot.com/6744047/

On behalf of senorblanco

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

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

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

11 years agoPlace r5997 (make arcto's convex) behind a compiler flag to delay day of reckoning...
robertphillips@google.com [Fri, 19 Oct 2012 01:26:18 +0000 (01:26 +0000)]
Place r5997 (make arcto's convex) behind a compiler flag to delay day of reckoning with Webkit baselines

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

11 years agoAdd SK_API to SkString for hclam@chromium.org
vandebo@chromium.org [Thu, 18 Oct 2012 23:26:44 +0000 (23:26 +0000)]
Add SK_API to SkString for hclam@chromium.org

TBR=reed@google.com

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

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

11 years agoadd --modulo A B option to gm, so we can only execute 1/B of the tests in a
reed@google.com [Thu, 18 Oct 2012 21:30:57 +0000 (21:30 +0000)]
add --modulo A B option to gm, so we can only execute 1/B of the tests in a
given instance.
Review URL: https://codereview.appspot.com/6739044

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

11 years agoPDF: Fail fast if in the tree of resources a child references a parent. Ideally I...
edisonn@google.com [Thu, 18 Oct 2012 21:03:59 +0000 (21:03 +0000)]
PDF: Fail fast if in the tree of resources a child references a parent. Ideally I want a crash when the tree of resources became corrupt, not later when we try to finalize the pdf.
Review URL: https://codereview.appspot.com/6740047

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

11 years agoadd a "most" target, and make it the default
epoger@google.com [Thu, 18 Oct 2012 16:10:56 +0000 (16:10 +0000)]
add a "most" target, and make it the default

split out of https://codereview.appspot.com/6651064/ ('gyp: generate "everything" and "most" targets instead of "all"')
tests: "make most" now works, "make" now calls "make most"
Review URL: https://codereview.appspot.com/6740045

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

11 years agoUpdate CanvasTest to do elementary tests for PDF too.
edisonn@google.com [Thu, 18 Oct 2012 15:58:23 +0000 (15:58 +0000)]
Update CanvasTest to do elementary tests for PDF too.
Review URL: https://codereview.appspot.com/6709053

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

11 years agoAltered arcTo's canonical points to (usually) be convex
robertphillips@google.com [Thu, 18 Oct 2012 15:26:12 +0000 (15:26 +0000)]
Altered arcTo's canonical points to (usually) be convex

https://codereview.appspot.com/6709051/

This will require rebaselining of: degeneratesegments, shadertext & shadertext2

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

11 years agoMake debugger print more information for paths
robertphillips@google.com [Thu, 18 Oct 2012 13:30:18 +0000 (13:30 +0000)]
Make debugger print more information for paths

https://codereview.appspot.com/6727052/

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

11 years agoadd two more tilemode gms, in advance of experimenting w/ decal
mike@reedtribe.org [Thu, 18 Oct 2012 02:01:59 +0000 (02:01 +0000)]
add two more tilemode gms, in advance of experimenting w/ decal

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

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

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

11 years agoAttempt to patch GR_STATIC_RECT_VB path
robertphillips@google.com [Thu, 18 Oct 2012 00:17:53 +0000 (00:17 +0000)]
Attempt to patch GR_STATIC_RECT_VB path

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

11 years agoMunch the incoming inverse to force nearly-no-scale to no-scale, if we think
reed@google.com [Wed, 17 Oct 2012 21:11:56 +0000 (21:11 +0000)]
Munch the incoming inverse to force nearly-no-scale to no-scale, if we think
the cheat won't be noticed. This allows us to take a fast case if the caller
gave us a matrix scale of (for instance) 1.0000001 instead of 1.0

drawBitmap already has this logic, it just wasn't ever propogated to bitmapShader before.
Review URL: https://codereview.appspot.com/6720052

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

11 years agoFixing refcount leak in SkBitmapHeap caused by collisions in SkFlatDictionary
junov@chromium.org [Wed, 17 Oct 2012 19:36:09 +0000 (19:36 +0000)]
Fixing refcount leak in SkBitmapHeap caused by collisions in SkFlatDictionary

BUG=http://code.google.com/p/chromium/issues/detail?id=155875
TEST=DeferredCanvas unit test, subtest TestDeferredCanvasBitmapShaderNoLeak
Review URL: https://codereview.appspot.com/6713048

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

11 years agowrap check for gLCDSupported w/ a guard, so we don't have to grab the mutex
reed@google.com [Wed, 17 Oct 2012 15:49:36 +0000 (15:49 +0000)]
wrap check for gLCDSupported w/ a guard, so we don't have to grab the mutex
on every call to FilterRec.
Review URL: https://codereview.appspot.com/6713052

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

11 years agoAdd new bench to exercise SkPath::arcTo (arbroundrect)
robertphillips@google.com [Wed, 17 Oct 2012 15:23:21 +0000 (15:23 +0000)]
Add new bench to exercise SkPath::arcTo (arbroundrect)

https://codereview.appspot.com/6718053/

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

11 years agoMake table color filter use asNewCustomStage.
bsalomon@google.com [Wed, 17 Oct 2012 15:00:32 +0000 (15:00 +0000)]
Make table color filter use asNewCustomStage.

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

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

11 years agoUse GrCustomStage to implement color matrix.
bsalomon@google.com [Wed, 17 Oct 2012 13:36:14 +0000 (13:36 +0000)]
Use GrCustomStage to implement color matrix.

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

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

11 years agoMake Ganesh's resource cache limits more representative
robertphillips@google.com [Wed, 17 Oct 2012 13:35:24 +0000 (13:35 +0000)]
Make Ganesh's resource cache limits more representative

https://codereview.appspot.com/6709048/

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

11 years agoSeparate out the texture matrix from the coord-system change matrix in GrSamplerState...
bsalomon@google.com [Wed, 17 Oct 2012 12:53:54 +0000 (12:53 +0000)]
Separate out the texture matrix from the coord-system change matrix in GrSamplerState. This is a step towards moving texture matrix to GrCustomStage.

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

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

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

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

12 years agofast case for translate-only repeat bitmapshader, so Tom can be happy
reed@google.com [Tue, 16 Oct 2012 20:23:25 +0000 (20:23 +0000)]
fast case for translate-only repeat bitmapshader, so Tom can be happy
Review URL: https://codereview.appspot.com/6721045

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

12 years agoadd opaque/alpha variants
reed@google.com [Tue, 16 Oct 2012 19:47:54 +0000 (19:47 +0000)]
add opaque/alpha variants

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

12 years agoAdd transparent source bitmap to colormatrix GM.
bsalomon@google.com [Tue, 16 Oct 2012 17:50:48 +0000 (17:50 +0000)]
Add transparent source bitmap to colormatrix GM.

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

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

12 years agoDelete three class declarations that we don't provide implementations anymore.
tfarina@chromium.org [Tue, 16 Oct 2012 17:30:07 +0000 (17:30 +0000)]
Delete three class declarations that we don't provide implementations anymore.

This can be removed now that https://codereview.appspot.com/6650055/ was landed
in r5942.

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

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

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

12 years agoDo not git ignore files like /debugger/QT/moc_*.
scroggo@google.com [Tue, 16 Oct 2012 17:25:36 +0000 (17:25 +0000)]
Do not git ignore files like /debugger/QT/moc_*.

Prior to r5953, gyp_skia would generate files for QT in
debugger/QT. A line in .gitignore was added so these
files did not show up in git status. Now that the
generated files are in the out directory, the line is no
longer necessary.

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

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

12 years agoadd DEF_BENCH marco to make it easy to register new benches
reed@google.com [Tue, 16 Oct 2012 15:57:13 +0000 (15:57 +0000)]
add DEF_BENCH marco to make it easy to register new benches
extend bitmaprect bench to include drawing with non-opaque alpha

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

12 years agoReland r5963 with two fixes:
bsalomon@google.com [Tue, 16 Oct 2012 15:19:45 +0000 (15:19 +0000)]
Reland r5963 with two fixes:

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

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

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

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

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

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

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

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

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

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

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

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

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

This comment is no longer true as of r5869.

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

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

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

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

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

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

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

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

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

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

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

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

Unreviewed

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

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

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

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

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

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

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