platform/upstream/libSkiaSharp.git
12 years agoDisable lighting filter unit test temporarily; unreviewed.
senorblanco@chromium.org [Wed, 11 Jul 2012 17:10:26 +0000 (17:10 +0000)]
Disable lighting filter unit test temporarily; unreviewed.

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

12 years agoMac GLSL fixes; unreviewed.
senorblanco@chromium.org [Wed, 11 Jul 2012 16:44:49 +0000 (16:44 +0000)]
Mac GLSL fixes; unreviewed.

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

12 years agoMore build fixes; unreviewed.
senorblanco@chromium.org [Wed, 11 Jul 2012 16:35:00 +0000 (16:35 +0000)]
More build fixes; unreviewed.

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

12 years agoMac build fix; unreviewed.
senorblanco@chromium.org [Wed, 11 Jul 2012 16:25:37 +0000 (16:25 +0000)]
Mac build fix; unreviewed.

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

12 years agoThis patch implements the diffuse and specular lighting filters in Ganesh.
senorblanco@chromium.org [Wed, 11 Jul 2012 16:01:22 +0000 (16:01 +0000)]
This patch implements the diffuse and specular lighting filters in Ganesh.
There are three light types for each:  distant, point and spot, whose code
generation lives in a GrGLLight class hierarchy.  This similar to the CPU
implementation, where each light type provides a function to compute the vector
from the surface plane to the light (surfaceToLight) and to compute the light
colour (emitLightColour).  Instead of templated member functions, as in the CPU
implementation, these are virtual functions to emit the light-specific GLSL
code.

All of the code for the GPU path lives in the same file as that for the CPU
path, SkLightingImageFilter.cpp.  In order to provide Ganesh a hook to access
it, SkImageFilter now has a asNewCustomStage() virtual, which allows an image
filter to return a GrCustomStage representing that filter.

Note that this patch does not handle the border conditions correctly (the
[top|bottom][Left|Right]Normal() functions in the CPU implementation).  That
will come in a future patch.

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

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

12 years agoVariableVisibility -> ShaderType
bsalomon@google.com [Wed, 11 Jul 2012 15:03:31 +0000 (15:03 +0000)]
VariableVisibility -> ShaderType

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

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

12 years agoFix assumption that enabled stage implies texture is present
bsalomon@google.com [Wed, 11 Jul 2012 14:56:33 +0000 (14:56 +0000)]
Fix assumption that enabled stage implies texture is present
Review URL: http://codereview.appspot.com/6353087/

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

12 years agoChange TextContext handling of stages and draw targets; this allows us to
tomhudson@google.com [Wed, 11 Jul 2012 14:41:19 +0000 (14:41 +0000)]
Change TextContext handling of stages and draw targets; this allows us to
assert in GrContext::setPaint() that all stages are disabled every time
the paint is set.

Watch for possible performance implications.

http://codereview.appspot.com/6347043/

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

12 years agowhitespace change to trigger Skia buildbots after master update/restart
epoger@google.com [Wed, 11 Jul 2012 13:47:04 +0000 (13:47 +0000)]
whitespace change to trigger Skia buildbots after master update/restart

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

12 years agoRevert SkNO_RETURN_HINT fix in favor of a simpler fix
bsalomon@google.com [Wed, 11 Jul 2012 13:30:08 +0000 (13:30 +0000)]
Revert SkNO_RETURN_HINT fix in favor of a simpler fix

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

12 years agoFix SkNO_RETURN_HINT warnings on mac/clang
bsalomon@google.com [Wed, 11 Jul 2012 12:52:04 +0000 (12:52 +0000)]
Fix SkNO_RETURN_HINT warnings on mac/clang

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

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

12 years agoCommit baselines for convexpaths GM.
bsalomon@google.com [Wed, 11 Jul 2012 12:45:23 +0000 (12:45 +0000)]
Commit baselines for convexpaths GM.

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

12 years agoadd SkPath::contains(x, y)
mike@reedtribe.org [Wed, 11 Jul 2012 01:51:33 +0000 (01:51 +0000)]
add SkPath::contains(x, y)

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

12 years agoRebaseline due to r4518.
bsalomon@google.com [Tue, 10 Jul 2012 21:56:41 +0000 (21:56 +0000)]
Rebaseline due to r4518.

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

12 years agoMove animated view headers to correct directory.
bungeman@google.com [Tue, 10 Jul 2012 21:54:31 +0000 (21:54 +0000)]
Move animated view headers to correct directory.

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

12 years agoReplace all instances of 'clear' with 'pop's in conical gradient pdf impl, looks...
rileya@google.com [Tue, 10 Jul 2012 20:41:38 +0000 (20:41 +0000)]
Replace all instances of 'clear' with 'pop's in conical gradient pdf impl, looks like the pdf spec doesn't support Postscript's 'clear' stack operator. Should fix some warnings on mac buildbots.

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

12 years agoAdded pdf implementation of conical gradient.
rileya@google.com [Tue, 10 Jul 2012 20:05:23 +0000 (20:05 +0000)]
Added pdf implementation of conical gradient.
Also fixed an erroneous comment in the gpu implementation.
Review URL: https://codereview.appspot.com/6351076

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

12 years agoEach benchmark that needs a bitmap will now make its own.
keyar@chromium.org [Tue, 10 Jul 2012 19:53:59 +0000 (19:53 +0000)]
Each benchmark that needs a bitmap will now make its own.

Before, the bitmaps were created and then passed to the benchmark. However, some benchmarks in the future will not require bitmaps. This will remove the necessity of passing around an extraneous bitmap to those tests.

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

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

12 years agoPreserve convex control point polygon in cubic->quadratic approximation
bsalomon@google.com [Tue, 10 Jul 2012 19:53:34 +0000 (19:53 +0000)]
Preserve convex control point polygon in cubic->quadratic approximation

GM test modified, will require rebaselining.

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

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

12 years agoChange SkFlatData to have a sentinel value, allowing the Compare function to
reed@google.com [Tue, 10 Jul 2012 19:38:01 +0000 (19:38 +0000)]
Change SkFlatData to have a sentinel value, allowing the Compare function to
not need a loop-end-test.
Review URL: https://codereview.appspot.com/6355086

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

12 years agobench_pictures can now take percentages for tiling width and height.Review URL: https...
keyar@chromium.org [Tue, 10 Jul 2012 18:30:18 +0000 (18:30 +0000)]
bench_pictures can now take percentages for tiling width and height.Review URL: https://codereview.appspot.com/6354074

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

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

12 years agoHandle convex paths with degeneracies in cheap direction computation
bsalomon@google.com [Tue, 10 Jul 2012 18:28:12 +0000 (18:28 +0000)]
Handle convex paths with degeneracies in cheap direction computation
Review URL: http://codereview.appspot.com/6349085/

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

12 years agoRemove GrStringBuilder
bsalomon@google.com [Tue, 10 Jul 2012 17:51:07 +0000 (17:51 +0000)]
Remove GrStringBuilder

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

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

12 years agor4511 with handling for the Mac-specific CAN_IMAGE_PDF path
robertphillips@google.com [Tue, 10 Jul 2012 17:50:00 +0000 (17:50 +0000)]
r4511 with handling for the Mac-specific CAN_IMAGE_PDF path

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

12 years agoFix to get r4511 compiling in Debug
robertphillips@google.com [Tue, 10 Jul 2012 17:41:27 +0000 (17:41 +0000)]
Fix to get r4511 compiling in Debug

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

12 years agoFixed Windows compiler complaints
robertphillips@google.com [Tue, 10 Jul 2012 17:30:58 +0000 (17:30 +0000)]
Fixed Windows compiler complaints

http://codereview.appspot.com/6392044

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

12 years agoMore carefully disable stages in Ganesh to avoid textures or effects
tomhudson@google.com [Tue, 10 Jul 2012 17:21:48 +0000 (17:21 +0000)]
More carefully disable stages in Ganesh to avoid textures or effects
leaking between draw calls.

http://codereview.appspot.com/6353083/

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

12 years agoDon't call glTexSubImage2D w/ indexed texture format on desktop GL
bsalomon@google.com [Tue, 10 Jul 2012 17:21:02 +0000 (17:21 +0000)]
Don't call glTexSubImage2D w/ indexed texture format on desktop GL

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

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

12 years agoFix variants in bench graphs.
bungeman@google.com [Tue, 10 Jul 2012 15:31:52 +0000 (15:31 +0000)]
Fix variants in bench graphs.

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

12 years agobench_pictures will now output the number of tiles for a tiled benchmark.
keyar@chromium.org [Tue, 10 Jul 2012 15:13:21 +0000 (15:13 +0000)]
bench_pictures will now output the number of tiles for a tiled benchmark.

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

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

12 years agoRemove redundant vlayout masks and wasted vlayout bits
bsalomon@google.com [Tue, 10 Jul 2012 15:06:59 +0000 (15:06 +0000)]
Remove redundant vlayout masks and wasted vlayout bits

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

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

12 years agoBug Fix: Pause drawing execution feature works due to fixed typo
chudy@google.com [Tue, 10 Jul 2012 14:36:14 +0000 (14:36 +0000)]
Bug Fix: Pause drawing execution feature works due to fixed typo

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

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

12 years agoBug Fix: Current command mask now dynamically changes based on bounds of window.
chudy@google.com [Tue, 10 Jul 2012 14:14:50 +0000 (14:14 +0000)]
Bug Fix: Current command mask now dynamically changes based on bounds of window.

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

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

12 years agobug fix: take the fAllocSize into account when we perform the compare, otherwise
reed@google.com [Tue, 10 Jul 2012 13:29:52 +0000 (13:29 +0000)]
bug fix: take the fAllocSize into account when we perform the compare, otherwise
we can read past the end of one of the flatdatas if we're unlucky.

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

12 years agoMade everything in SkDebuggerGUI live on the stack
chudy@google.com [Tue, 10 Jul 2012 13:19:25 +0000 (13:19 +0000)]
Made everything in SkDebuggerGUI live on the stack

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

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

12 years agochange unique_paint_dictionary to change the paint randomly, instead of just
reed@google.com [Tue, 10 Jul 2012 13:17:45 +0000 (13:17 +0000)]
change unique_paint_dictionary to change the paint randomly, instead of just
incrementing a value, to avoid accidental best/worst case behavior on our
insertion sort.

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

12 years agoAdded GM baseline images for new gradient tests.
rileya@google.com [Mon, 9 Jul 2012 21:20:57 +0000 (21:20 +0000)]
Added GM baseline images for new gradient tests.

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

12 years agoskdiff now has the option to not print out the directories it is using.
keyar@chromium.org [Mon, 9 Jul 2012 21:01:50 +0000 (21:01 +0000)]
skdiff now has the option to not print out the directories it is using.

Further, test_pictures.py will call skdiff with this option.

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

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

12 years agoAdding sanity checks on restore offsets in SkPicturePlayback::draw
junov@chromium.org [Mon, 9 Jul 2012 20:53:37 +0000 (20:53 +0000)]
Adding sanity checks on restore offsets in SkPicturePlayback::draw

Review URL: http://codereview.appspot.com/6382044/
BUG=http://code.google.com/p/chromium/issues/detail?id=133432

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

12 years ago* Adding arguments to specify the working directory and whether the script should...
rmistry@google.com [Mon, 9 Jul 2012 20:53:03 +0000 (20:53 +0000)]
* Adding arguments to specify the working directory and whether the script should try to commit at the end.
* Redirecting doxygen output to a last_run_output.txt file.
* Maintaining backwards compatibility.

Context-
This CL is a preparatory CL for the housekeeping slave. The slave will use this script to update Doxygen docs. The script will not be used to commit and instead the slave will call AddMergeIntoSvn to commit.
Review URL: https://codereview.appspot.com/6348076

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

12 years agoAdded stubs for zoom info panel.
chudy@google.com [Mon, 9 Jul 2012 20:26:53 +0000 (20:26 +0000)]
Added stubs for zoom info panel.

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

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

12 years agoAdd placement new macros to SkPostConfig, call SkNEW* from Ganesh.
tomhudson@google.com [Mon, 9 Jul 2012 20:17:56 +0000 (20:17 +0000)]
Add placement new macros to SkPostConfig, call SkNEW* from Ganesh.

TODO: unify with the placement new implementation in SkTemplatesPriv.h,
once various issues there are overcome. reed@ should be taking the lead
there.

http://codereview.appspot.com/6384043/

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

12 years agoTiles that extend beyond the picture are now clipped.
keyar@chromium.org [Mon, 9 Jul 2012 19:51:05 +0000 (19:51 +0000)]
Tiles that extend beyond the picture are now clipped.

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

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

12 years agoAdded a sgpipe benchmark.
keyar@chromium.org [Mon, 9 Jul 2012 19:37:40 +0000 (19:37 +0000)]
Added a sgpipe benchmark.

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

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

12 years agoFix misnamed function in explanatory comment.
tomhudson@google.com [Mon, 9 Jul 2012 19:07:41 +0000 (19:07 +0000)]
Fix misnamed function in explanatory comment.

http://codereview.appspot.com/6387043/

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

12 years agoAllow specific files and multiple inputs for picture testing tools.
keyar@chromium.org [Mon, 9 Jul 2012 18:44:51 +0000 (18:44 +0000)]
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.

Committed http://code.google.com/p/skia/source/detail?r=4486

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

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

12 years agoAllow specific files and multiple inputs for picture testing tools.
keyar@chromium.org [Mon, 9 Jul 2012 18:32:08 +0000 (18:32 +0000)]
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

12 years agoAdd an SK_PRINTF_LIKE macro, which declares a function to have printf-like
senorblanco@chromium.org [Mon, 9 Jul 2012 18:22:08 +0000 (18:22 +0000)]
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

12 years agoFix definition of isEqual() for two gradient effect custom stages.
tomhudson@google.com [Mon, 9 Jul 2012 18:21:28 +0000 (18:21 +0000)]
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

12 years agoFix SkBlendLCD16_SSE2 for non ARGB platforms.
bungeman@google.com [Mon, 9 Jul 2012 17:44:57 +0000 (17:44 +0000)]
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

12 years agorestore 4478 w/ fixed assert (no long need 8-byte alignment)
reed@google.com [Mon, 9 Jul 2012 17:44:44 +0000 (17:44 +0000)]
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

12 years agorevert 4478
reed@google.com [Mon, 9 Jul 2012 17:40:48 +0000 (17:40 +0000)]
revert 4478

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

12 years agoswitch callers to SkChecksum::Compute (no 32/64 preference)
reed@google.com [Mon, 9 Jul 2012 17:05:51 +0000 (17:05 +0000)]
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

12 years agoremove until PDF understands conical gradients.
reed@google.com [Mon, 9 Jul 2012 16:45:49 +0000 (16:45 +0000)]
remove until PDF understands conical gradients.

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

12 years agoadd image to macpro
reed@google.com [Mon, 9 Jul 2012 16:42:00 +0000 (16:42 +0000)]
add image to macpro

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

12 years agonew and updated images for gradients on MacPro
reed@google.com [Mon, 9 Jul 2012 16:40:32 +0000 (16:40 +0000)]
new and updated images for gradients on MacPro

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

12 years agoLeft over cleanup from r4416 (fix for lingering AA clip mask bug)
robertphillips@google.com [Mon, 9 Jul 2012 16:32:28 +0000 (16:32 +0000)]
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

12 years agoIn SkGPipe, set a limit on the amount of flattenables cached.
scroggo@google.com [Mon, 9 Jul 2012 16:05:53 +0000 (16:05 +0000)]
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

12 years agoRefactoring code in SkPictureRecord that touches fRestoreOffsetStack
junov@chromium.org [Mon, 9 Jul 2012 16:03:55 +0000 (16:03 +0000)]
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

12 years agoDelete pdf gradient image.
rileya@google.com [Mon, 9 Jul 2012 15:46:29 +0000 (15:46 +0000)]
Delete pdf gradient image.

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

12 years agoRebaseline gradients.
rileya@google.com [Mon, 9 Jul 2012 15:45:04 +0000 (15:45 +0000)]
Rebaseline gradients.

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

12 years agoAdded conical gradient to gm gradients test, and added two variants of that test...
rileya@google.com [Mon, 9 Jul 2012 14:42:16 +0000 (14:42 +0000)]
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

12 years agoFix bug in calling NV DeletePaths
bsalomon@google.com [Mon, 9 Jul 2012 14:30:26 +0000 (14:30 +0000)]
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

12 years agoMinor cleanup in lighting image filters: Made the light color a member of the
senorblanco@chromium.org [Mon, 9 Jul 2012 14:29:51 +0000 (14:29 +0000)]
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

12 years agoAdd gm baseline images for Xoom.
borenet@google.com [Mon, 9 Jul 2012 13:51:32 +0000 (13:51 +0000)]
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

12 years agofix 64bit warnings (use: GYP_DEFINES=skia_arch_width=64 make ... )
reed@google.com [Mon, 9 Jul 2012 13:13:23 +0000 (13:13 +0000)]
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

12 years agodefine SK_CPU_SSE_LEVEL to a min of SSE2 if we're on 64bit x86
reed@google.com [Mon, 9 Jul 2012 13:02:35 +0000 (13:02 +0000)]
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

12 years agoadd test for SkChecksum
mike@reedtribe.org [Mon, 9 Jul 2012 01:53:07 +0000 (01:53 +0000)]
add test for SkChecksum

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

12 years agoHitTest: 10% speedup by adding quick-reject/accept using X bounds
mike@reedtribe.org [Sat, 7 Jul 2012 00:28:17 +0000 (00:28 +0000)]
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

12 years agoadd support for cubics to SkHitTestPathEx
mike@reedtribe.org [Sat, 7 Jul 2012 00:12:12 +0000 (00:12 +0000)]
add support for cubics to SkHitTestPathEx

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

12 years agoAdds missing function
chudy@google.com [Tue, 3 Jul 2012 20:28:14 +0000 (20:28 +0000)]
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

12 years agoshape ops work in progress
caryclark@google.com [Tue, 3 Jul 2012 19:53:30 +0000 (19:53 +0000)]
shape ops work in progress

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

12 years agoadd SkChecksum as a static class, for the replacement API
reed@google.com [Tue, 3 Jul 2012 19:44:20 +0000 (19:44 +0000)]
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

12 years agoRolling back r4034 (Proposed plumbing to propagate save & restore)
robertphillips@google.com [Tue, 3 Jul 2012 19:12:29 +0000 (19:12 +0000)]
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

12 years agoReworked gradient shader to no longer explicitly set gl_FragColor or return prematurely.
rileya@google.com [Tue, 3 Jul 2012 18:03:04 +0000 (18:03 +0000)]
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

12 years agoAdds functionality to the matrix and clip widget.
chudy@google.com [Tue, 3 Jul 2012 16:05:59 +0000 (16:05 +0000)]
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

12 years agoRemove unnecessary lines after Android gyp fix
borenet@google.com [Tue, 3 Jul 2012 16:03:51 +0000 (16:03 +0000)]
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

12 years agoEnsure that SkDeferredCanvas::onCreateCompatibleDevice unrefs its temp device.
scroggo@google.com [Tue, 3 Jul 2012 15:16:30 +0000 (15:16 +0000)]
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

12 years agoMake SkTSearch variants with compare func as template param
bsalomon@google.com [Tue, 3 Jul 2012 15:03:10 +0000 (15:03 +0000)]
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

12 years agoAnother fix for drawing bitmaps through an SkGPipe that share pixelrefs.
scroggo@google.com [Tue, 3 Jul 2012 14:52:08 +0000 (14:52 +0000)]
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

12 years agoshape ops work in progress
caryclark@google.com [Tue, 3 Jul 2012 14:30:08 +0000 (14:30 +0000)]
shape ops work in progress

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

12 years agoTemporary checkin to debug Linux bot issue.
rileya@google.com [Tue, 3 Jul 2012 14:22:11 +0000 (14:22 +0000)]
Temporary checkin to debug Linux bot issue.

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

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