keyar@chromium.org
d1dc920097
Allow specific files and multiple inputs for picture testing tools.
...
Changed the render_pictures, bench_pictures and test_pictures.py so that multiple inputs can be given. Furthermore, specific files can also be specified.
Unit tests have also been added for picture_utils.cpp.
Review URL: https://codereview.appspot.com/6345054
git-svn-id: http://skia.googlecode.com/svn/trunk@4486 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-09 18:32:08 +00:00
senorblanco@chromium.org
3a67a668db
Add an SK_PRINTF_LIKE macro, which declares a function to have printf-like
...
semantics, allowing gcc and clang to check the format string against the
arguments. Enable its use on SkString (printf, appendf, and prependf). Also
define an SK_SIZE_T_SPECIFIER macro so there's a cross-platform way of
printing a size_t.
Review URL: http://codereview.appspot.com/6375043/
git-svn-id: http://skia.googlecode.com/svn/trunk@4485 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-09 18:22:08 +00:00
tomhudson@google.com
1dcfa1fcbd
Fix definition of isEqual() for two gradient effect custom stages.
...
Expand comments defining isEqual() to better distinguish equality from
equivalence, which is more significant in Ganesh shader cache management.
http://codereview.appspot.com/6379043/
git-svn-id: http://skia.googlecode.com/svn/trunk@4484 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-09 18:21:28 +00:00
bungeman@google.com
8cd5ae79c6
Fix SkBlendLCD16_SSE2 for non ARGB platforms.
...
http://codereview.appspot.com/6356062/
git-svn-id: http://skia.googlecode.com/svn/trunk@4481 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-09 17:44:57 +00:00
reed@google.com
142e1fe7cf
restore 4478 w/ fixed assert (no long need 8-byte alignment)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@4480 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-09 17:44:44 +00:00
reed@google.com
fc8581b2d8
revert 4478
...
git-svn-id: http://skia.googlecode.com/svn/trunk@4479 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-09 17:40:48 +00:00
reed@google.com
f8affe5adf
switch callers to SkChecksum::Compute (no 32/64 preference)
...
Review URL: https://codereview.appspot.com/6377043
git-svn-id: http://skia.googlecode.com/svn/trunk@4478 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-09 17:05:51 +00:00
reed@google.com
de1cf48790
remove until PDF understands conical gradients.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@4477 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-09 16:45:49 +00:00
reed@google.com
473f3b44d2
add image to macpro
...
git-svn-id: http://skia.googlecode.com/svn/trunk@4476 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-09 16:42:00 +00:00
reed@google.com
5fb296ec03
new and updated images for gradients on MacPro
...
git-svn-id: http://skia.googlecode.com/svn/trunk@4475 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-09 16:40:32 +00:00
robertphillips@google.com
5dfb67219a
Left over cleanup from r4416 (fix for lingering AA clip mask bug)
...
http://codereview.appspot.com/6356058/
git-svn-id: http://skia.googlecode.com/svn/trunk@4474 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-09 16:32:28 +00:00
scroggo@google.com
d3ba5cc85e
In SkGPipe, set a limit on the amount of flattenables cached.
...
Also fix a type in gmmain.
Review URL: https://codereview.appspot.com/6351061
git-svn-id: http://skia.googlecode.com/svn/trunk@4473 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-09 16:05:53 +00:00
junov@chromium.org
e3dbedb44c
Refactoring code in SkPictureRecord that touches fRestoreOffsetStack
...
Review URL: http://codereview.appspot.com/6350059/
BUG=http://code.google.com/p/chromium/issues/detail?id=133432
git-svn-id: http://skia.googlecode.com/svn/trunk@4472 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-09 16:03:55 +00:00
rileya@google.com
2eb479555b
Delete pdf gradient image.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@4471 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-09 15:46:29 +00:00
rileya@google.com
9a6b93eec3
Rebaseline gradients.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@4470 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-09 15:45:04 +00:00
rileya@google.com
5cf2c28427
Added conical gradient to gm gradients test, and added two variants of that test, one with perspective applied to the local matrices of the gradients and the other with perspective applied to the overall view matrix.
...
Will require GM rebaselining.
Review URL: https://codereview.appspot.com/6344091
git-svn-id: http://skia.googlecode.com/svn/trunk@4468 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-09 14:42:16 +00:00
bsalomon@google.com
21320a17aa
Fix bug in calling NV DeletePaths
...
Review URL: http://codereview.appspot.com/6345078/
git-svn-id: http://skia.googlecode.com/svn/trunk@4467 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-09 14:30:26 +00:00
senorblanco@chromium.org
bdb1ec453a
Minor cleanup in lighting image filters: Made the light color a member of the
...
light, rather than the filter, so computation is localized. Changed a couple
of non-const refs in the image filter creation API const refs. Changed "const
SkColor&" to "SkColor", since it's just a uint32_t anyway.
Review URL: http://codereview.appspot.com/6352071/
git-svn-id: http://skia.googlecode.com/svn/trunk@4466 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-09 14:29:51 +00:00
borenet@google.com
303b799ce1
Add gm baseline images for Xoom.
...
Note that these are only what could be matched against the Nexus S images or
the Linux images. Since neither set is complete, this set is also incomplete.
Review URL: https://codereview.appspot.com/6350070
git-svn-id: http://skia.googlecode.com/svn/trunk@4465 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-09 13:51:32 +00:00
reed@google.com
b158a82bc1
fix 64bit warnings (use: GYP_DEFINES=skia_arch_width=64 make ... )
...
git-svn-id: http://skia.googlecode.com/svn/trunk@4464 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-09 13:13:23 +00:00
reed@google.com
00aad94f01
define SK_CPU_SSE_LEVEL to a min of SSE2 if we're on 64bit x86
...
git-svn-id: http://skia.googlecode.com/svn/trunk@4463 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-09 13:02:35 +00:00
mike@reedtribe.org
e60b9106ba
add test for SkChecksum
...
git-svn-id: http://skia.googlecode.com/svn/trunk@4462 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-09 01:53:07 +00:00
mike@reedtribe.org
9ef23a3e05
HitTest: 10% speedup by adding quick-reject/accept using X bounds
...
git-svn-id: http://skia.googlecode.com/svn/trunk@4461 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-07 00:28:17 +00:00
mike@reedtribe.org
a920a35c0f
add support for cubics to SkHitTestPathEx
...
git-svn-id: http://skia.googlecode.com/svn/trunk@4460 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-07 00:12:12 +00:00
chudy@google.com
f14143226a
Adds missing function
...
Review URL: https://codereview.appspot.com/6346067
git-svn-id: http://skia.googlecode.com/svn/trunk@4459 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-03 20:28:14 +00:00
caryclark@google.com
b973801328
shape ops work in progress
...
git-svn-id: http://skia.googlecode.com/svn/trunk@4458 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-03 19:53:30 +00:00
reed@google.com
88db9ef0cd
add SkChecksum as a static class, for the replacement API
...
after this lands, plan to deprecate/remove the older APIs
Review URL: https://codereview.appspot.com/6356059
git-svn-id: http://skia.googlecode.com/svn/trunk@4457 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-03 19:44:20 +00:00
robertphillips@google.com
54823c227d
Rolling back r4034 (Proposed plumbing to propagate save & restore)
...
http://codereview.appspot.com/6346066/
git-svn-id: http://skia.googlecode.com/svn/trunk@4456 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-03 19:12:29 +00:00
rileya@google.com
e38160c38c
Reworked gradient shader to no longer explicitly set gl_FragColor or return prematurely.
...
This should fix failing linux buildbot, and should play nicer with programs that don't use the gl_FragColor global, or that have multiple stages.
Also disabled debug printing from revision 4445.
Review URL: https://codereview.appspot.com/6345063
git-svn-id: http://skia.googlecode.com/svn/trunk@4454 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-03 18:03:04 +00:00
chudy@google.com
2f89179395
Adds functionality to the matrix and clip widget.
...
Review URL: https://codereview.appspot.com/6348058
git-svn-id: http://skia.googlecode.com/svn/trunk@4453 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-03 16:05:59 +00:00
borenet@google.com
0fcf474921
Remove unnecessary lines after Android gyp fix
...
Review URL: https://codereview.appspot.com/6353066
git-svn-id: http://skia.googlecode.com/svn/trunk@4452 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-03 16:03:51 +00:00
scroggo@google.com
d7dbd423f2
Ensure that SkDeferredCanvas::onCreateCompatibleDevice unrefs its temp device.
...
Also update my GM to use createCompatibleDevice.
Review URL: https://codereview.appspot.com/6357061
git-svn-id: http://skia.googlecode.com/svn/trunk@4450 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-03 15:16:30 +00:00
bsalomon@google.com
44f7c4a6f8
Make SkTSearch variants with compare func as template param
...
Review URL: https://codereview.appspot.com/6345060/
git-svn-id: http://skia.googlecode.com/svn/trunk@4449 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-03 15:03:10 +00:00
scroggo@google.com
6ea165dd8f
Another fix for drawing bitmaps through an SkGPipe that share pixelrefs.
...
In addition to checking the offset, also check to ensure that the width
and height match, so that a subset which includes the upper left corner
will be handled properly as well.
Review URL: https://codereview.appspot.com/6352066
git-svn-id: http://skia.googlecode.com/svn/trunk@4448 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-03 14:52:08 +00:00
caryclark@google.com
66ca2fba44
shape ops work in progress
...
git-svn-id: http://skia.googlecode.com/svn/trunk@4446 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-03 14:30:08 +00:00
rileya@google.com
11b2d8b8d2
Temporary checkin to debug Linux bot issue.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@4445 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-03 14:22:11 +00:00
rileya@google.com
baaaeebf17
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
2012-07-03 14:11:05 +00:00
reed@google.com
f1d4695cae
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
2012-07-03 13:53:41 +00:00
rileya@google.com
3e33258cd1
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
2012-07-03 13:43:35 +00:00
reed@google.com
dbc5d28979
fix SkFixed build
...
git-svn-id: http://skia.googlecode.com/svn/trunk@4441 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-03 12:23:22 +00:00
reed@google.com
8dbd5725c0
normalize names for SSE levels
...
git-svn-id: http://skia.googlecode.com/svn/trunk@4440 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-03 12:08:39 +00:00
rmistry@google.com
6e5d63a4a2
Pointing to http://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
2012-07-03 11:35:07 +00:00
mike@reedtribe.org
43c62b11ec
add gm for hittesting paths
...
git-svn-id: http://skia.googlecode.com/svn/trunk@4438 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-03 02:44:02 +00:00
mike@reedtribe.org
a2a95f9def
experimental hittest for paths (incomplete)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@4437 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-03 02:35:36 +00:00
bensong@google.com
ead2b39ab1
git-svn-id: http://skia.googlecode.com/svn/trunk@4436 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-02 21:49:30 +00:00
bensong@google.com
af3d79a8c8
git-svn-id: http://skia.googlecode.com/svn/trunk@4433 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-02 20:48:51 +00:00
caryclark@google.com
ec390ea610
update shapeops_edge gyp
...
git-svn-id: http://skia.googlecode.com/svn/trunk@4432 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-02 20:44:59 +00:00
reed@google.com
a63a851afb
update test for new NewFromCString behavior
...
git-svn-id: http://skia.googlecode.com/svn/trunk@4431 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-07-02 20:29:00 +00:00
reed@google.com
fd59d12000
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
2012-07-02 20:28:31 +00:00
caryclark@google.com
8dcf114db9
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
2012-07-02 20:27:02 +00:00