platform/upstream/libSkiaSharp.git
12 years agoChanged '0.5f' to '0.5' in conical gradient shader to fix problem with shader compile...
rileya@google.com [Tue, 3 Jul 2012 14:11:05 +0000 (14:11 +0000)]
Changed '0.5f' to '0.5' in conical gradient shader to fix problem with shader compile on Mac.

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

12 years agoadd scaling factor for subclasses, to normalize running time a little better
reed@google.com [Tue, 3 Jul 2012 13:53:41 +0000 (13:53 +0000)]
add scaling factor for subclasses, to normalize running time a little better

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

12 years agoAdded GPU implementation of 2-point conical gradient.
rileya@google.com [Tue, 3 Jul 2012 13:43:35 +0000 (13:43 +0000)]
Added GPU implementation of 2-point conical gradient.
Review URL: https://codereview.appspot.com/6354062

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

12 years agofix SkFixed build
reed@google.com [Tue, 3 Jul 2012 12:23:22 +0000 (12:23 +0000)]
fix SkFixed build

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

12 years agonormalize names for SSE levels
reed@google.com [Tue, 3 Jul 2012 12:08:39 +0000 (12:08 +0000)]
normalize names for SSE levels

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

12 years agoPointing to http://skia-autogen.googlecode.com/svn/docs/html/index.html in Doxyfile
rmistry@google.com [Tue, 3 Jul 2012 11:35:07 +0000 (11:35 +0000)]
Pointing to skia-autogen.googlecode.com/svn/docs/html/index.html in Doxyfile
Review URL: https://codereview.appspot.com/6346049

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

12 years agoadd gm for hittesting paths
mike@reedtribe.org [Tue, 3 Jul 2012 02:44:02 +0000 (02:44 +0000)]
add gm for hittesting paths

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

12 years agoexperimental hittest for paths (incomplete)
mike@reedtribe.org [Tue, 3 Jul 2012 02:35:36 +0000 (02:35 +0000)]
experimental hittest for paths (incomplete)

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

12 years agogit-svn-id: http://skia.googlecode.com/svn/trunk@4436 2bbb7eff-a529-9590-31e7-b0007b4...
bensong@google.com [Mon, 2 Jul 2012 21:49:30 +0000 (21:49 +0000)]
git-svn-id: skia.googlecode.com/svn/trunk@4436 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agogit-svn-id: http://skia.googlecode.com/svn/trunk@4433 2bbb7eff-a529-9590-31e7-b0007b4...
bensong@google.com [Mon, 2 Jul 2012 20:48:51 +0000 (20:48 +0000)]
git-svn-id: skia.googlecode.com/svn/trunk@4433 2bbb7eff-a529-9590-31e7-b0007b416f81

12 years agoupdate shapeops_edge gyp
caryclark@google.com [Mon, 2 Jul 2012 20:44:59 +0000 (20:44 +0000)]
update shapeops_edge gyp

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

12 years agoupdate test for new NewFromCString behavior
reed@google.com [Mon, 2 Jul 2012 20:29:00 +0000 (20:29 +0000)]
update test for new NewFromCString behavior

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

12 years agochange NewWithCString to allocate room for the terminating NULL, so the data
reed@google.com [Mon, 2 Jul 2012 20:28:31 +0000 (20:28 +0000)]
change NewWithCString to allocate room for the terminating NULL, so the data
can be treated as a cstring (duh).

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

12 years agoshape ops work in progress
caryclark@google.com [Mon, 2 Jul 2012 20:27:02 +0000 (20:27 +0000)]
shape ops work in progress

M    Intersection/DataTypes.cpp
M    Intersection/QuadraticIntersection_Test.cpp
M    Intersection/EdgeWalker.cpp
M    Intersection/LineQuadraticIntersection_Test.cpp
M    Intersection/LineIntersection_Test.cpp
M    Intersection/LineIntersection.cpp
D    Intersection/edge.xcodeproj
M    Intersection/SimplifyFindTop_Test.cpp
M    Intersection/DataTypes.h
A    Intersection/SimplifyRect4x4_Test.cpp
M    Intersection/CubicIntersection_Test.cpp
M    Intersection/QuadraticUtilities.h
M    Intersection/LineCubicIntersection_Test.cpp
A    Intersection/CurveUtilities.h
M    Intersection/QuadraticBezierClip.cpp
M    Intersection/QuadraticBounds.cpp
M    Intersection/LineUtilities.h
M    Intersection/Intersection_Tests.cpp
M    Intersection/Simplify.cpp
M    Intersection/EdgeWalker_TestUtility.cpp
M    Intersection/QuadraticUtilities.cpp
M    Intersection/thingsToDo.txt
M    Intersection/LineUtilities.cpp
M    Intersection/CubicUtilities.h
M    Intersection/SimplifyFindNext_Test.cpp
M    Intersection/Intersection_Tests.h
M    Intersection/CubicBezierClip.cpp
M    Intersection/ActiveEdge_Test.cpp
M    Intersection/CubicBounds.cpp
M    Intersection/Simplify.h
M    Intersection/SimplifyNew_Test.cpp
M    Intersection/EdgeWalker_Test.h
M    Intersection/CubicUtilities.cpp
M    Intersection/op.htm
M    Intersection/ConvexHull.cpp
D    Intersection/RectUtilities.cpp
M    Intersection/SimplifyAddIntersectingTs_Test.cpp

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

12 years agofix type
reed@google.com [Mon, 2 Jul 2012 19:36:47 +0000 (19:36 +0000)]
fix type

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

12 years agoadd read/write SkData methods
reed@google.com [Mon, 2 Jul 2012 19:35:13 +0000 (19:35 +0000)]
add read/write SkData methods

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

12 years agoProvide static global initializers for SkColorTable and SkComposeShader.
scroggo [Mon, 2 Jul 2012 19:07:57 +0000 (19:07 +0000)]
Provide static global initializers for SkColorTable and SkComposeShader.

This makes some GMs which were broken on Android work. Reenable them on
Android.

Also fix a typo in gmmain.
Review URL: https://codereview.appspot.com/6344069

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

12 years agodetect SSE level in visual studio
reed@google.com [Mon, 2 Jul 2012 19:00:27 +0000 (19:00 +0000)]
detect SSE level in visual studio

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

12 years agoundo accidental checkin
reed@google.com [Mon, 2 Jul 2012 17:29:44 +0000 (17:29 +0000)]
undo accidental checkin

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

12 years agocreate symbols for the various SSE values
reed@google.com [Mon, 2 Jul 2012 17:27:51 +0000 (17:27 +0000)]
create symbols for the various SSE values
add GCC check for SSSE3, and assume it is ordered SSE3 < SSSE3 < SSE4

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

12 years agoadd SK_CPU_SSE_LEVEL, which may be defined to 2 or 3 (or 41 or 42 in the future)
reed@google.com [Mon, 2 Jul 2012 14:36:37 +0000 (14:36 +0000)]
add SK_CPU_SSE_LEVEL, which may be defined to 2 or 3 (or 41 or 42 in the future)
to tell us at compile-time what SSE instructions are available. If none are
known to be available (though we still can check at runtime) SK_CPU_SSE_LEVEL
will be undefined.

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

12 years agoFix buildbot.
scroggo@google.com [Mon, 2 Jul 2012 14:36:33 +0000 (14:36 +0000)]
Fix buildbot.

GM is currently broken due to my new test. Disable the portion that
causes a crash.

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

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

12 years agoProperly handle extracted bitmaps in cross process/shared addr space SkGPipe.
scroggo@google.com [Mon, 2 Jul 2012 13:35:09 +0000 (13:35 +0000)]
Properly handle extracted bitmaps in cross process/shared addr space SkGPipe.

Use the pixel ref which we have already copied and the appropriate pixel ref
offset.

Turn SampleDrawBitmap into a GM to test this functionality.

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

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

12 years agoFixed lingering gpu-path AA clip mask generation bug
robertphillips@google.com [Fri, 29 Jun 2012 21:38:47 +0000 (21:38 +0000)]
Fixed lingering gpu-path AA clip mask generation bug

http://codereview.appspot.com/6351055/

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

12 years agoPartially rolled forward the SkGrPixelRef changes
robertphillips@google.com [Fri, 29 Jun 2012 20:55:14 +0000 (20:55 +0000)]
Partially rolled forward the SkGrPixelRef changes

http://codereview.appspot.com/6354060/

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

12 years agoOnly skip pipe playback for blurs GM in FIXED mode.
scroggo@google.com [Fri, 29 Jun 2012 19:25:21 +0000 (19:25 +0000)]
Only skip pipe playback for blurs GM in FIXED mode.

Only skip it when it would actually fail. Also add a comment
describing why it fails:

// SkCanvas::drawCircle, used by this test, performs a quick reject.
// The large size given to the device used by SkGPipeCanvas means that
// the device clip will not be set properly and circles will be
// rejected when in FIXED.

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

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

12 years agoFix a warning on linux when compiling SkGPipeWrite.cpp
scroggo@google.com [Fri, 29 Jun 2012 19:24:25 +0000 (19:24 +0000)]
Fix a warning on linux when compiling SkGPipeWrite.cpp

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

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

12 years agoFix build by reverting make all to not include the debugger
djsollen@google.com [Fri, 29 Jun 2012 18:51:29 +0000 (18:51 +0000)]
Fix build by reverting make all to not include the debugger

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

12 years agoUn-trifurcate GrTextContext: get rid of Default and Batched subclasses,
tomhudson@google.com [Fri, 29 Jun 2012 18:37:57 +0000 (18:37 +0000)]
Un-trifurcate GrTextContext: get rid of Default and Batched subclasses,
folding their functionality back into the base class.

Requires gyp changes.

http://codereview.appspot.com/6357048/

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

12 years agoUpdate the makefile and gyp for the debugger.
djsollen@google.com [Fri, 29 Jun 2012 18:26:27 +0000 (18:26 +0000)]
Update the makefile and gyp for the debugger.
Review URL: https://codereview.appspot.com/6355052

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

12 years agoDisable pipe playback on android for composeshader GM.
scroggo@google.com [Fri, 29 Jun 2012 18:11:31 +0000 (18:11 +0000)]
Disable pipe playback on android for composeshader GM.

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

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

12 years agoAllow composeshader GM to run PDF.
scroggo@google.com [Fri, 29 Jun 2012 17:45:49 +0000 (17:45 +0000)]
Allow composeshader GM to run PDF.

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

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

12 years agoCreate a new GM to exercise ComposeShader.
scroggo@google.com [Fri, 29 Jun 2012 17:28:50 +0000 (17:28 +0000)]
Create a new GM to exercise ComposeShader.

Code borrowed from samplecode/SampleShaders.cpp

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

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

12 years agoAdd missing gyp dependencies for debugger
chudy@google.com [Fri, 29 Jun 2012 14:34:58 +0000 (14:34 +0000)]
Add missing gyp dependencies for debugger

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

12 years agoclt debugger
chudy@google.com [Fri, 29 Jun 2012 14:21:22 +0000 (14:21 +0000)]
clt debugger
Review URL: https://codereview.appspot.com/6267043

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

12 years agoFix some NV path rendering issues with perspective and inverse paths
bsalomon@google.com [Fri, 29 Jun 2012 14:01:53 +0000 (14:01 +0000)]
Fix some NV path rendering issues with perspective and inverse paths
Review URL: http://codereview.appspot.com/6347050/

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

12 years agoPseudo-reverted r4396 (SkGrPixelRef files are still in source pool but are unused)
robertphillips@google.com [Fri, 29 Jun 2012 00:30:13 +0000 (00:30 +0000)]
Pseudo-reverted r4396 (SkGrPixelRef files are still in source pool but are unused)

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

12 years agoTemporarily readding SkGrTexturePixelRef.h/.cpp until WebKit is transitioned to SkGrP...
robertphillips@google.com [Thu, 28 Jun 2012 21:59:38 +0000 (21:59 +0000)]
Temporarily readding SkGrTexturePixelRef.h/.cpp until WebKit is transitioned to SkGrPixelRef

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

12 years ago[PDF] Fix PDF code to not crash on SkComposeShader.
vandebo@chromium.org [Thu, 28 Jun 2012 21:37:20 +0000 (21:37 +0000)]
[PDF] Fix PDF code to not crash on SkComposeShader.

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

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

12 years agoFixed memory deletion error in instance counting mechanism
robertphillips@google.com [Thu, 28 Jun 2012 21:30:45 +0000 (21:30 +0000)]
Fixed memory deletion error in instance counting mechanism

http://codereview.appspot.com/6344057/

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

12 years agoMoved SkGrTexturePixelRef to SkGrPixelRef
robertphillips@google.com [Thu, 28 Jun 2012 20:59:13 +0000 (20:59 +0000)]
Moved SkGrTexturePixelRef to SkGrPixelRef

http://codereview.appspot.com/6344054/

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

12 years agoCollapsed SkGrTexturePixelRef and SkGrRenderTargetPixelRef into SkGrPixelRef using...
robertphillips@google.com [Thu, 28 Jun 2012 20:02:39 +0000 (20:02 +0000)]
Collapsed SkGrTexturePixelRef and SkGrRenderTargetPixelRef into SkGrPixelRef using new GrSurface class

http://codereview.appspot.com/6359045/

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

12 years agoDisable pipe for bitmapfilters gm on Android.
scroggo@google.com [Thu, 28 Jun 2012 19:55:06 +0000 (19:55 +0000)]
Disable pipe for bitmapfilters gm on Android.

Until I can investigate why the test is broken.

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

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

12 years agoRebaseline MSAA16 AA clip images. We now enable MSAA when stencil clipping if the...
bsalomon@google.com [Thu, 28 Jun 2012 19:50:27 +0000 (19:50 +0000)]
Rebaseline MSAA16 AA clip images. We now enable MSAA when stencil clipping if the clip element is AA.

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

12 years agoChange CT assert to RT assert
bsalomon@google.com [Thu, 28 Jun 2012 18:56:22 +0000 (18:56 +0000)]
Change CT assert to RT assert

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

12 years agoInitial support for GL_NV_path_renering. Experimental, there are still some issues...
bsalomon@google.com [Thu, 28 Jun 2012 18:48:06 +0000 (18:48 +0000)]
Initial support for GL_NV_path_renering. Experimental, there are still some issues to resolve, set gyp variable skia_nv_path_rendering=1 or build flag GR_GL_USE_NV_PATH_RENDERING to enable.

http://codereview.appspot.com/6349049/

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

12 years agoImprove sorting of skdiff output, and make it consistent across platforms
epoger@google.com [Thu, 28 Jun 2012 16:47:34 +0000 (16:47 +0000)]
Improve sorting of skdiff output, and make it consistent across platforms
BUG=https://code.google.com/p/skia/issues/detail?id=677
Review URL: https://codereview.appspot.com/6351045

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

12 years agofix the build
djsollen@google.com [Thu, 28 Jun 2012 16:19:03 +0000 (16:19 +0000)]
fix the build

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

12 years agoTurn off the blurs GM for Pipe playback.
scroggo@google.com [Thu, 28 Jun 2012 16:09:39 +0000 (16:09 +0000)]
Turn off the blurs GM for Pipe playback.

It was failing on FIXED. Turn it off while we fix the real problem.

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

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

12 years agoSeparate target architecture type and width into separate variables.
djsollen@google.com [Thu, 28 Jun 2012 16:08:05 +0000 (16:08 +0000)]
Separate target architecture type and width into separate variables.

Also add support for building mac in 64 bit mode.
Review URL: https://codereview.appspot.com/6343050

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

12 years agoFix SkGPipe drawing, and turn it on by default.
scroggo@google.com [Thu, 28 Jun 2012 15:41:32 +0000 (15:41 +0000)]
Fix SkGPipe drawing, and turn it on by default.

A recent change broke SkGPipe. Fix it, and turn on pipe drawing
in GM by default so we will catch these in the future.

We already had a bug where SkGPipeWriter had to use its Cross Process
flag to work, so for a quick fix, force the reader to use the Cross
Process flag as well. The bug to allow both cross and non cross process
is http://code.google.com/p/skia/issues/detail?id=663

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

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

12 years agoadd SkData::NewFromCString()
reed@google.com [Thu, 28 Jun 2012 15:40:09 +0000 (15:40 +0000)]
add SkData::NewFromCString()

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

12 years agofixed another clang++ compiler error
robertphillips@google.com [Thu, 28 Jun 2012 01:01:53 +0000 (01:01 +0000)]
fixed another clang++ compiler error

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

12 years agoAdded EOF marker to address clang++ error
robertphillips@google.com [Thu, 28 Jun 2012 00:29:23 +0000 (00:29 +0000)]
Added EOF marker to address clang++ error

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

12 years agoSplit GrSWMaskHelper into its own files
robertphillips@google.com [Wed, 27 Jun 2012 20:44:52 +0000 (20:44 +0000)]
Split GrSWMaskHelper into its own files

http://codereview.appspot.com/6350046/

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

12 years agofixed missing "return" error
robertphillips@google.com [Wed, 27 Jun 2012 20:13:49 +0000 (20:13 +0000)]
fixed missing "return" error

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

12 years agoAdding checksum to SkFlatData to accelerate SkPicture recording.
junov@chromium.org [Wed, 27 Jun 2012 20:03:16 +0000 (20:03 +0000)]
Adding checksum to SkFlatData to accelerate SkPicture recording.
The checksum triggers an early exit in the mem compare use to search for duplicate flattened objects. Also, call to memcmp was replaced with 64-bit at a time comparison loop.

Review URL: http://codereview.appspot.com/6339046/
BUG=http://code.google.com/p/chromium/issues/detail?id=54079
TEST=Checksum and PictureRecord tests in bench.exe

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

12 years agoAltered SkInstCnt to print out atexit
robertphillips@google.com [Wed, 27 Jun 2012 19:52:20 +0000 (19:52 +0000)]
Altered SkInstCnt to print out atexit

http://codereview.appspot.com/6348043/

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

12 years agoSeparated Inst counting from the SK_DEBUG #define (now SK_ENABLE_INST_COUNT)
robertphillips@google.com [Wed, 27 Jun 2012 19:41:42 +0000 (19:41 +0000)]
Separated Inst counting from the SK_DEBUG #define (now SK_ENABLE_INST_COUNT)

http://codereview.appspot.com/6353047/

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

12 years agoland https://codereview.appspot.com/6349043/
reed@google.com [Wed, 27 Jun 2012 19:33:29 +0000 (19:33 +0000)]
land https://codereview.appspot.com/6349043/

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

12 years agoAdded ReadPixels format-supported check to GL Caps
robertphillips@google.com [Wed, 27 Jun 2012 19:31:41 +0000 (19:31 +0000)]
Added ReadPixels format-supported check to GL Caps

http://codereview.appspot.com/6336055/

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

12 years agowhitespace change to trigger Skia buildbots after updating Android build
epoger@google.com [Wed, 27 Jun 2012 19:08:37 +0000 (19:08 +0000)]
whitespace change to trigger Skia buildbots after updating Android build

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

12 years agowhitespace change to trigger Skia buildbots after updating Android build
epoger@google.com [Wed, 27 Jun 2012 19:06:59 +0000 (19:06 +0000)]
whitespace change to trigger Skia buildbots after updating Android build

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

12 years agoWhen building for Android, package executables in APKs (trunk)
borenet@google.com [Wed, 27 Jun 2012 19:04:39 +0000 (19:04 +0000)]
When building for Android, package executables in APKs (trunk)
Review URL: https://codereview.appspot.com/6307101

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

12 years agoadd explicit purgeAll() so we don't get foiled by the min cache-limit
reed@google.com [Wed, 27 Jun 2012 18:23:01 +0000 (18:23 +0000)]
add explicit purgeAll() so we don't get foiled by the min cache-limit
call unref instead of delete on the GrFontScaler
Review URL: https://codereview.appspot.com/6353045

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

12 years agoEnable Scratch texture detach in SW path renderer's onDrawPath (again)
robertphillips@google.com [Wed, 27 Jun 2012 18:02:57 +0000 (18:02 +0000)]
Enable Scratch texture detach in SW path renderer's onDrawPath (again)

http://codereview.appspot.com/6331057/

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

12 years agoBump max flattenable from 64 to 1024.
bungeman@google.com [Wed, 27 Jun 2012 15:57:34 +0000 (15:57 +0000)]
Bump max flattenable from 64 to 1024.
Ran into limit on Mac.

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

12 years agoremove duplicate definition of SkAlign8()
reed@google.com [Wed, 27 Jun 2012 15:41:54 +0000 (15:41 +0000)]
remove duplicate definition of SkAlign8()

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

12 years agoadd SkAlign8 and SkIsAlign8 macros
reed@google.com [Wed, 27 Jun 2012 15:07:11 +0000 (15:07 +0000)]
add SkAlign8 and SkIsAlign8 macros

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

12 years agoFixed Resource counting bug in AutoScratchTexture detach mechanism
robertphillips@google.com [Wed, 27 Jun 2012 14:59:18 +0000 (14:59 +0000)]
Fixed Resource counting bug in AutoScratchTexture detach mechanism

http://codereview.appspot.com/6356043/

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

12 years agofix leak of Light object (in this private instance, the caller is transferring
reed@google.com [Wed, 27 Jun 2012 14:24:29 +0000 (14:24 +0000)]
fix leak of Light object (in this private instance, the caller is transferring
ownership of the object, so the receive does not need to call ref).
Review URL: https://codereview.appspot.com/6348045

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

12 years agoAdded Inst counting to SkFlattenable-derived classes
robertphillips@google.com [Wed, 27 Jun 2012 14:03:26 +0000 (14:03 +0000)]
Added Inst counting to SkFlattenable-derived classes

http://codereview.appspot.com/6355043/

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

12 years agodon't leak filters
reed@google.com [Wed, 27 Jun 2012 14:00:06 +0000 (14:00 +0000)]
don't leak filters

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

12 years agowrite my own os.path.abspath() to work around Win path-length limits
epoger@google.com [Wed, 27 Jun 2012 13:38:37 +0000 (13:38 +0000)]
write my own os.path.abspath() to work around Win path-length limits
BUG=https://code.google.com/p/skia/issues/detail?id=674
Review URL: https://codereview.appspot.com/6342052

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

12 years agoMake GrInOrderDrawBuffer playback command driven
bsalomon@google.com [Tue, 26 Jun 2012 21:04:22 +0000 (21:04 +0000)]
Make GrInOrderDrawBuffer playback command driven

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

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

12 years agoFixed alignment issue in Linux build
robertphillips@google.com [Tue, 26 Jun 2012 21:01:05 +0000 (21:01 +0000)]
Fixed alignment issue in Linux build

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

12 years agoRemoved cached copy of the GrDebugGLInterface
robertphillips@google.com [Tue, 26 Jun 2012 20:19:41 +0000 (20:19 +0000)]
Removed cached copy of the GrDebugGLInterface

http://codereview.appspot.com/6329068/

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

12 years agoplumb SkInstCnt to all subclasses of GrRefCnt
reed@google.com [Tue, 26 Jun 2012 20:16:17 +0000 (20:16 +0000)]
plumb SkInstCnt to all subclasses of GrRefCnt

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

12 years agoremove SkInstCnt tracking of SkViewRegistry
reed@google.com [Tue, 26 Jun 2012 20:15:42 +0000 (20:15 +0000)]
remove SkInstCnt tracking of SkViewRegistry

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

12 years agodon't add SkViewRegistry to SkInstCnt
reed@google.com [Tue, 26 Jun 2012 19:54:52 +0000 (19:54 +0000)]
don't add SkViewRegistry to SkInstCnt

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

12 years agoremove bogus SkViewFactory reference
reed@google.com [Tue, 26 Jun 2012 19:48:09 +0000 (19:48 +0000)]
remove bogus SkViewFactory reference

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

12 years agoadd dump for SkWStream inst-leaks
reed@google.com [Tue, 26 Jun 2012 19:25:18 +0000 (19:25 +0000)]
add dump for SkWStream inst-leaks

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

12 years agomore SkInstCnt plumbing
reed@google.com [Tue, 26 Jun 2012 19:24:50 +0000 (19:24 +0000)]
more SkInstCnt plumbing
fix some typeface leaks

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

12 years agoshow # of unknown subclasses in dump
reed@google.com [Tue, 26 Jun 2012 18:58:03 +0000 (18:58 +0000)]
show # of unknown subclasses in dump

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

12 years agoIn GrBatchedTextContext, use GrSafeSetNull(), for more safeness!
tomhudson@google.com [Tue, 26 Jun 2012 17:57:03 +0000 (17:57 +0000)]
In GrBatchedTextContext, use GrSafeSetNull(), for more safeness!

http://codereview.appspot.com/6326058/

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

12 years agomore SkInstCnt plumbing
reed@google.com [Tue, 26 Jun 2012 17:55:30 +0000 (17:55 +0000)]
more SkInstCnt plumbing

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

12 years agoadd more SkInstCnt plumbing
reed@google.com [Tue, 26 Jun 2012 17:43:26 +0000 (17:43 +0000)]
add more SkInstCnt plumbing

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

12 years agoRe-enable gm fontscaler for Android
borenet@google.com [Tue, 26 Jun 2012 17:23:52 +0000 (17:23 +0000)]
Re-enable gm fontscaler for Android

This was fixed in 4.1, and we're upgrading the bots since no non-beta client
uses 4.0.
Review URL: https://codereview.appspot.com/6334058

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

12 years agostick SkInstCnt in more classes, to help track down leaks
reed@google.com [Tue, 26 Jun 2012 15:30:08 +0000 (15:30 +0000)]
stick SkInstCnt in more classes, to help track down leaks

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

12 years agoCleanup flattening code to properly serialize lighting image filters.
djsollen@google.com [Tue, 26 Jun 2012 14:33:13 +0000 (14:33 +0000)]
Cleanup flattening code to properly serialize lighting image filters.
Review URL: https://codereview.appspot.com/6333070

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

12 years agoReduce iteration count on picture_playback benchmarks to bring their cost
tomhudson@google.com [Tue, 26 Jun 2012 14:25:53 +0000 (14:25 +0000)]
Reduce iteration count on picture_playback benchmarks to bring their cost
more in line with the rest of the benches.

http://codereview.appspot.com/6325063/

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

12 years agoReverting r4324
robertphillips@google.com [Tue, 26 Jun 2012 12:56:54 +0000 (12:56 +0000)]
Reverting r4324

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

12 years agoBaseline images for msaa complexclip tests
bsalomon@google.com [Mon, 25 Jun 2012 22:04:13 +0000 (22:04 +0000)]
Baseline images for msaa complexclip tests

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

12 years agoTemporarily disable failing GM tests on Android
borenet@google.com [Mon, 25 Jun 2012 21:03:04 +0000 (21:03 +0000)]
Temporarily disable failing GM tests on Android

- fontscaler - this test fails due to a GL driver bug fixed in Jelly Bean
- drawbitmaprect - suspect this is also a driver bug
- shadertext - causes the device to reboot
Review URL: https://codereview.appspot.com/6330057

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

12 years agoRegister some flattenable factories.
scroggo@google.com [Mon, 25 Jun 2012 20:32:12 +0000 (20:32 +0000)]
Register some flattenable factories.

Now, SkComposeShaders, SkDiscreteMapper, SkCosineMapper,
Line2DPathEffect, and SkTransparentShader can be flattened
and unflattened. This makes more of our samples work when
using a pipe.

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

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

12 years agoAdd -o option to bench_graph_svg.py: write the output to a file rather than stdout
epoger@google.com [Mon, 25 Jun 2012 20:29:04 +0000 (20:29 +0000)]
Add -o option to bench_graph_svg.py: write the output to a file rather than stdout
While I was at it, put the command-line options in alphabetical order.
BUG=https://code.google.com/p/skia/issues/detail?id=674
Review URL: https://codereview.appspot.com/6329061

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

12 years agoDisable assert blocking DEPS roll. This is a sanity-checking assert not
tomhudson@google.com [Mon, 25 Jun 2012 20:18:47 +0000 (20:18 +0000)]
Disable assert blocking DEPS roll. This is a sanity-checking assert not
necessary to correct operation (yet). Will pursue a fix & reenable.

http://codereview.appspot.com/6330056/

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

12 years agoif bounds don't intersect in DIFF mode, just return src (don't return empty)
reed@google.com [Mon, 25 Jun 2012 20:06:33 +0000 (20:06 +0000)]
if bounds don't intersect in DIFF mode, just return src (don't return empty)
Review URL: https://codereview.appspot.com/6337052

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

12 years agoskdiff: no longer skip .pdf files by default
epoger@google.com [Mon, 25 Jun 2012 18:45:50 +0000 (18:45 +0000)]
skdiff: no longer skip .pdf files by default
Review URL: https://codereview.appspot.com/6257080

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

12 years agoFix crash when buidling with no deferred drawing in grcontext
bsalomon@google.com [Mon, 25 Jun 2012 18:41:04 +0000 (18:41 +0000)]
Fix crash when buidling with no deferred drawing in grcontext

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