bsalomon@google.com [Tue, 5 Feb 2013 20:04:38 +0000 (20:04 +0000)]
Re-enable static asserts with windows warning fix.
git-svn-id: http://skia.googlecode.com/svn/trunk@7595
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Tue, 5 Feb 2013 19:50:46 +0000 (19:50 +0000)]
Implement support for origin-TopLeft render targets. Note that the default behaviour remains the same: textures default to origin-TopLeft, render targets default to origin-BottomLeft, and backend textures default to origin-BottomLeft. However, the caller can override the default by setting fOrigin in GrTextureDesc, GrBackendTextureDesc or GrBackendRenderTargetDesc.
Review URL: https://codereview.appspot.com/7230049
git-svn-id: http://skia.googlecode.com/svn/trunk@7594
2bbb7eff-a529-9590-31e7-
b0007b416f81
jvanverth@google.com [Tue, 5 Feb 2013 19:44:07 +0000 (19:44 +0000)]
Fix for issue 1029: Debugger opens files with ^O, but crashes when opening files through other methods
Don't append leading '/' if path is local
git-svn-id: http://skia.googlecode.com/svn/trunk@7593
2bbb7eff-a529-9590-31e7-
b0007b416f81
scroggo@google.com [Tue, 5 Feb 2013 19:22:27 +0000 (19:22 +0000)]
Implement support for origin-TopLeft render targets in GL backend.
Committed: https://code.google.com/p/skia/source/detail?r=7545
Reverted in r7571; re-opening.
Review URL: https://codereview.appspot.com/7230049
git-svn-id: http://skia.googlecode.com/svn/trunk@7592
2bbb7eff-a529-9590-31e7-
b0007b416f81
scroggo@google.com [Tue, 5 Feb 2013 18:49:00 +0000 (18:49 +0000)]
Fix some 64 bit warnings on mac.
SkAAClip:
Change fDataSize to a size_t, since that is how it is used in all
cases.
SkAlphaRuns.cpp:
Use SkToS32 when subtracting a pointer from another pointer to
return an int.
BUG=http://code.google.com/p/skia/issues/detail?id=1103
Review URL: https://codereview.appspot.com/7314043
git-svn-id: http://skia.googlecode.com/svn/trunk@7591
2bbb7eff-a529-9590-31e7-
b0007b416f81
djsollen@google.com [Tue, 5 Feb 2013 17:00:02 +0000 (17:00 +0000)]
Fix unbalanced Shader set/endContext calls in drawVertices
Review URL: https://codereview.appspot.com/7309047
git-svn-id: http://skia.googlecode.com/svn/trunk@7588
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 5 Feb 2013 16:42:28 +0000 (16:42 +0000)]
hide the static-assert block altogether, until we can find a construct that
doesn't have warngs on mac or windows
git-svn-id: http://skia.googlecode.com/svn/trunk@7586
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 5 Feb 2013 16:18:20 +0000 (16:18 +0000)]
fix (new annoying) warning (mac only I think)
git-svn-id: http://skia.googlecode.com/svn/trunk@7583
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 5 Feb 2013 16:14:15 +0000 (16:14 +0000)]
Make windows GrGLCreateNatriveInterface not us GL.h and not use linker to resolve gl functions. Instead load the GL library and use GetProcAddress.
R=robertphillips@google.com
Review URL: https://codereview.appspot.com/7308047
git-svn-id: http://skia.googlecode.com/svn/trunk@7582
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 5 Feb 2013 15:44:21 +0000 (15:44 +0000)]
Actually fix angle GLPrograms test.
git-svn-id: http://skia.googlecode.com/svn/trunk@7578
2bbb7eff-a529-9590-31e7-
b0007b416f81
jvanverth@google.com [Tue, 5 Feb 2013 14:15:31 +0000 (14:15 +0000)]
Restore variable to release builds.
git-svn-id: http://skia.googlecode.com/svn/trunk@7572
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Tue, 5 Feb 2013 14:05:06 +0000 (14:05 +0000)]
Reverting r7545 (render target origin change) due to layout test issues (see https://codereview.chromium.org/
12210002/)
git-svn-id: http://skia.googlecode.com/svn/trunk@7571
2bbb7eff-a529-9590-31e7-
b0007b416f81
skia.committer@gmail.com [Tue, 5 Feb 2013 07:02:01 +0000 (07:02 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@7567
2bbb7eff-a529-9590-31e7-
b0007b416f81
mike@reedtribe.org [Tue, 5 Feb 2013 02:58:00 +0000 (02:58 +0000)]
remove define for SK_IGNORE_GRADIENT_DITHER_FIX to trigger rebaselines
git-svn-id: http://skia.googlecode.com/svn/trunk@7564
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Mon, 4 Feb 2013 22:57:21 +0000 (22:57 +0000)]
Nuke SkSingleInputImageFilter. 99% of its functionality was refactored into SkImageFilterUtils in https://code.google.com/p/skia/source/detail?r=7467, so it has outlived its usefulness.
Review URL: https://codereview.appspot.com/7277055
git-svn-id: http://skia.googlecode.com/svn/trunk@7563
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 4 Feb 2013 22:40:28 +0000 (22:40 +0000)]
use SkToS32 to turn a ptrdiff_t into an int (on 64bit build)
git-svn-id: http://skia.googlecode.com/svn/trunk@7562
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 4 Feb 2013 22:17:13 +0000 (22:17 +0000)]
Use XQuartz's version of OSMesa rather than Mac SDK's. It is newer and has a fix for a bug that unit tests and GM trigger.
git-svn-id: http://skia.googlecode.com/svn/trunk@7561
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 4 Feb 2013 21:03:11 +0000 (21:03 +0000)]
remove vestiges of 32BIT_GRADIENT flag, as we always dither gradients now
(even in chrome)
Review URL: https://codereview.appspot.com/7281049
git-svn-id: http://skia.googlecode.com/svn/trunk@7558
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 4 Feb 2013 20:46:08 +0000 (20:46 +0000)]
add kMultiply_Mode to switch statement (fix warning)
git-svn-id: http://skia.googlecode.com/svn/trunk@7556
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 4 Feb 2013 20:06:00 +0000 (20:06 +0000)]
land https://codereview.appspot.com/7221086/ -- add Multiply xfermode matching CSS spec
git-svn-id: http://skia.googlecode.com/svn/trunk@7553
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Mon, 4 Feb 2013 19:54:15 +0000 (19:54 +0000)]
Simplify and speed up SkIntroSort.
https://codereview.appspot.com/7273048/
git-svn-id: http://skia.googlecode.com/svn/trunk@7552
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 4 Feb 2013 18:46:49 +0000 (18:46 +0000)]
Commit file missing from r7550
git-svn-id: http://skia.googlecode.com/svn/trunk@7551
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 4 Feb 2013 18:39:24 +0000 (18:39 +0000)]
Attempt to fix GLPrograms test on ANGLE bot.
R=senorblanco@chromium.org
Review URL: https://codereview.appspot.com/7281050
git-svn-id: http://skia.googlecode.com/svn/trunk@7550
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 4 Feb 2013 18:21:23 +0000 (18:21 +0000)]
Go from a 1x2 to a 2x2 dither cell, and change/simplify the logic for how we
compute the "dithered" version of a color to just a graduated fixed-point-round.
Also, add this new dither to conical and sweep, which before had no dithering.
Disabled for now using SK_IGNORE_GRADIENT_DITHER_FIX. Will enable this and
and rebaseline skia.
http://code.google.com/p/skia/issues/detail?id=1098
Review URL: https://codereview.appspot.com/7248046
git-svn-id: http://skia.googlecode.com/svn/trunk@7549
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 4 Feb 2013 18:09:58 +0000 (18:09 +0000)]
extend gradient_create bench to test opaque and alpha gradient ramps
git-svn-id: http://skia.googlecode.com/svn/trunk@7548
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 4 Feb 2013 18:00:54 +0000 (18:00 +0000)]
cleanup: use DEF_BENCH macro
git-svn-id: http://skia.googlecode.com/svn/trunk@7547
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 4 Feb 2013 17:59:02 +0000 (17:59 +0000)]
fix unused variable warning
git-svn-id: http://skia.googlecode.com/svn/trunk@7546
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Mon, 4 Feb 2013 17:29:51 +0000 (17:29 +0000)]
Implement support for origin-TopLeft render targets in GL backend.
Review URL: https://codereview.appspot.com/7230049
git-svn-id: http://skia.googlecode.com/svn/trunk@7545
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 4 Feb 2013 16:56:15 +0000 (16:56 +0000)]
add new gms for shallow_gradient, in preparation for improving their quality
git-svn-id: http://skia.googlecode.com/svn/trunk@7544
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Mon, 4 Feb 2013 16:24:44 +0000 (16:24 +0000)]
Change comment to avoid warning (don't end line comment with '\').
git-svn-id: http://skia.googlecode.com/svn/trunk@7542
2bbb7eff-a529-9590-31e7-
b0007b416f81
rmistry@google.com [Mon, 4 Feb 2013 16:22:06 +0000 (16:22 +0000)]
Rebaselined webpage image GMs for ['base-shuttle_ubuntu12_ati5770', 'base-shuttle-win7-intel-float', 'base-shuttle-win7-intel-angle', 'base-shuttle-win7-intel-directwrite'] on Google Storage.
git-svn-id: http://skia.googlecode.com/svn/trunk@7541
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 4 Feb 2013 16:13:32 +0000 (16:13 +0000)]
Make GPU unit tests use GrContexts of different GL types.
Review URL: https://codereview.appspot.com/7281046
git-svn-id: http://skia.googlecode.com/svn/trunk@7540
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Mon, 4 Feb 2013 15:58:08 +0000 (15:58 +0000)]
Add sk_ignore_unused_variable to avoid warnings.
https://codereview.appspot.com/7218045/
git-svn-id: http://skia.googlecode.com/svn/trunk@7539
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 4 Feb 2013 14:57:28 +0000 (14:57 +0000)]
add benchmark for stroked drawRect/drawOval/drawRRect, to prepare for optimizing
those based on special-casing stroking for single-contour-convex shapes.
git-svn-id: http://skia.googlecode.com/svn/trunk@7537
2bbb7eff-a529-9590-31e7-
b0007b416f81
caryclark@google.com [Mon, 4 Feb 2013 14:06:49 +0000 (14:06 +0000)]
shape ops work in progress
git-svn-id: http://skia.googlecode.com/svn/trunk@7535
2bbb7eff-a529-9590-31e7-
b0007b416f81
skia.committer@gmail.com [Mon, 4 Feb 2013 12:57:42 +0000 (12:57 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@7533
2bbb7eff-a529-9590-31e7-
b0007b416f81
mike@reedtribe.org [Mon, 4 Feb 2013 05:17:10 +0000 (05:17 +0000)]
move kStyleCount out of Style enum, and into its own, to avoid
1. someone passing kStyleCount as a parameter
2. warnings about not handling all enum values in a switch
We should probably move to remove kCountFoo from all of our enums for these reasons.
git-svn-id: http://skia.googlecode.com/svn/trunk@7532
2bbb7eff-a529-9590-31e7-
b0007b416f81
mike@reedtribe.org [Mon, 4 Feb 2013 05:05:36 +0000 (05:05 +0000)]
use DEF_BENCH macro
git-svn-id: http://skia.googlecode.com/svn/trunk@7531
2bbb7eff-a529-9590-31e7-
b0007b416f81
rmistry@google.com [Sun, 3 Feb 2013 21:04:27 +0000 (21:04 +0000)]
Rebaselined webpage image GMs for ['base-shuttle_ubuntu12_ati5770', 'base-shuttle-win7-intel-float', 'base-shuttle-win7-intel-angle', 'base-shuttle-win7-intel-directwrite'] on Google Storage.
git-svn-id: http://skia.googlecode.com/svn/trunk@7530
2bbb7eff-a529-9590-31e7-
b0007b416f81
junov@chromium.org [Fri, 1 Feb 2013 20:39:48 +0000 (20:39 +0000)]
Accelerate handling of clipRRect in calls to SkPictureUtils::GatherPixelRefs
BUG=https://code.google.com/p/chromium/issues/detail?id=173718
Review URL: https://codereview.appspot.com/7252048
git-svn-id: http://skia.googlecode.com/svn/trunk@7527
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Fri, 1 Feb 2013 20:39:15 +0000 (20:39 +0000)]
gm: report max-pixel-error if comparing against PNG files (not checksums)
Review URL: https://codereview.appspot.com/7241064
git-svn-id: http://skia.googlecode.com/svn/trunk@7526
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 1 Feb 2013 19:34:59 +0000 (19:34 +0000)]
Move dither toggle logic into common helper functions, to make it easier to
change their behavior later. No functional change.
Review URL: https://codereview.appspot.com/7241063
git-svn-id: http://skia.googlecode.com/svn/trunk@7525
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 1 Feb 2013 19:05:48 +0000 (19:05 +0000)]
landing https://codereview.appspot.com/7225077/ -- tweak for GIF 5.x api
git-svn-id: http://skia.googlecode.com/svn/trunk@7523
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 1 Feb 2013 18:42:50 +0000 (18:42 +0000)]
Fix init order warning
git-svn-id: http://skia.googlecode.com/svn/trunk@7522
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 1 Feb 2013 16:44:50 +0000 (16:44 +0000)]
remove the kMultiply_Mode alias for kModulate_Mode. We plan to re-target kMultiply_Mode
in the future, to match the CSS spec.
git-svn-id: http://skia.googlecode.com/svn/trunk@7518
2bbb7eff-a529-9590-31e7-
b0007b416f81
junov@google.com [Fri, 1 Feb 2013 16:41:47 +0000 (16:41 +0000)]
Prevent SkPictureUtils::GatherPixelRefs from generating bitmaps from gradient
shaders.
BUG=https://code.google.com/p/chromium/issues/detail?id=173657
Review URL: https://codereview.appspot.com/7220074
git-svn-id: http://skia.googlecode.com/svn/trunk@7517
2bbb7eff-a529-9590-31e7-
b0007b416f81
djsollen@google.com [Fri, 1 Feb 2013 16:18:09 +0000 (16:18 +0000)]
Only support SkPicture abort for Android due to the fragility of the existing API
Review URL: https://codereview.appspot.com/7225083
git-svn-id: http://skia.googlecode.com/svn/trunk@7515
2bbb7eff-a529-9590-31e7-
b0007b416f81
djsollen@google.com [Fri, 1 Feb 2013 15:57:13 +0000 (15:57 +0000)]
Fix android errors when unflattening an SkImageRef_ashmem object.
Review URL: https://codereview.appspot.com/7228071
git-svn-id: http://skia.googlecode.com/svn/trunk@7514
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 1 Feb 2013 15:42:59 +0000 (15:42 +0000)]
Fix unused var warning-as-error
git-svn-id: http://skia.googlecode.com/svn/trunk@7513
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 1 Feb 2013 15:05:18 +0000 (15:05 +0000)]
don't use NULL when comparing against ints/size_t (fixes warning)
git-svn-id: http://skia.googlecode.com/svn/trunk@7512
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 1 Feb 2013 15:01:24 +0000 (15:01 +0000)]
add width() and height() helpers
git-svn-id: http://skia.googlecode.com/svn/trunk@7511
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 1 Feb 2013 14:35:09 +0000 (14:35 +0000)]
revert name changes to SkBlendImageFilter. It (correctly) named its enum kMultiply_Mode,
and handled that itself internally, rather than calling SkXfermode. This CL removes
the kModulate_Mode alias from its list.
git-svn-id: http://skia.googlecode.com/svn/trunk@7509
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 1 Feb 2013 14:19:27 +0000 (14:19 +0000)]
Make drawIndexedInstances non-virtual and rewrite GrIODB's drawRect on top of drawIndexedInstances.
R=robertphillips@google.com
Review URL: https://codereview.appspot.com/7221078
git-svn-id: http://skia.googlecode.com/svn/trunk@7508
2bbb7eff-a529-9590-31e7-
b0007b416f81
rmistry@google.com [Fri, 1 Feb 2013 14:12:49 +0000 (14:12 +0000)]
Rebaselined webpage image GMs for ['base-shuttle-win7-intel-angle'] on Google Storage.
git-svn-id: http://skia.googlecode.com/svn/trunk@7507
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 1 Feb 2013 12:59:40 +0000 (12:59 +0000)]
restore cache-count for gradients to p.o.2. so we can perform fancier dithering
in the future.
Review URL: https://codereview.appspot.com/7254043
git-svn-id: http://skia.googlecode.com/svn/trunk@7506
2bbb7eff-a529-9590-31e7-
b0007b416f81
jvanverth@google.com [Thu, 31 Jan 2013 21:34:25 +0000 (21:34 +0000)]
Change vertex buffer allocator functions to take size rather than layout, take two.
Resubmission of r7498.
https://codereview.appspot.com/7228078
git-svn-id: http://skia.googlecode.com/svn/trunk@7501
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Thu, 31 Jan 2013 20:36:30 +0000 (20:36 +0000)]
Fix warnings resulting from 7496.
git-svn-id: http://skia.googlecode.com/svn/trunk@7500
2bbb7eff-a529-9590-31e7-
b0007b416f81
skia.committer@gmail.com [Thu, 31 Jan 2013 20:28:24 +0000 (20:28 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@7499
2bbb7eff-a529-9590-31e7-
b0007b416f81
jvanverth@google.com [Thu, 31 Jan 2013 20:15:36 +0000 (20:15 +0000)]
Change vertex buffer allocator functions to take size rather than layout.
https://codereview.appspot.com/7228078
git-svn-id: http://skia.googlecode.com/svn/trunk@7498
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Thu, 31 Jan 2013 19:47:48 +0000 (19:47 +0000)]
Add SHA1 and MD5 to utils.
https://codereview.appspot.com/7071055/
git-svn-id: http://skia.googlecode.com/svn/trunk@7496
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Thu, 31 Jan 2013 16:52:43 +0000 (16:52 +0000)]
Added cast to make SkIntToScalar happy with size_t in debug (in SkDrawCommand.cpp)
git-svn-id: http://skia.googlecode.com/svn/trunk@7495
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Thu, 31 Jan 2013 16:45:43 +0000 (16:45 +0000)]
Removed unused variable
git-svn-id: http://skia.googlecode.com/svn/trunk@7494
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Thu, 31 Jan 2013 16:30:55 +0000 (16:30 +0000)]
gm: force all pixels opaque earlier in the process
Review URL: https://codereview.appspot.com/7251043
git-svn-id: http://skia.googlecode.com/svn/trunk@7493
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Thu, 31 Jan 2013 15:56:22 +0000 (15:56 +0000)]
Update filter tool to allow more flexible filtering
https://codereview.appspot.com/7227055/
git-svn-id: http://skia.googlecode.com/svn/trunk@7492
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 31 Jan 2013 15:24:24 +0000 (15:24 +0000)]
optimize region::intersect when one wholly contains the other
clone of https://codereview.appspot.com/7237055/
git-svn-id: http://skia.googlecode.com/svn/trunk@7491
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 31 Jan 2013 15:23:44 +0000 (15:23 +0000)]
add new test for region::intersect, when one is a rect, and it wholly contains
a complex region.
git-svn-id: http://skia.googlecode.com/svn/trunk@7490
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Thu, 31 Jan 2013 15:06:36 +0000 (15:06 +0000)]
gm self-tests: add 565 mode testing, in addition to 8888 mode
Review URL: https://codereview.appspot.com/7229061
git-svn-id: http://skia.googlecode.com/svn/trunk@7489
2bbb7eff-a529-9590-31e7-
b0007b416f81
rmistry@google.com [Thu, 31 Jan 2013 14:17:14 +0000 (14:17 +0000)]
All skp files in Google Storage have been updated (AddDashboardAnnotation)
git-svn-id: http://skia.googlecode.com/svn/trunk@7487
2bbb7eff-a529-9590-31e7-
b0007b416f81
rmistry@google.com [Thu, 31 Jan 2013 12:18:51 +0000 (12:18 +0000)]
Whitespace change to trigger rebuilds after r7485
git-svn-id: http://skia.googlecode.com/svn/trunk@7486
2bbb7eff-a529-9590-31e7-
b0007b416f81
skia.committer@gmail.com [Thu, 31 Jan 2013 07:06:15 +0000 (07:06 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@7484
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Thu, 31 Jan 2013 02:33:09 +0000 (02:33 +0000)]
Speculative change to SkImageFilterUtils.cpp to try to get compiling in Chrome
git-svn-id: http://skia.googlecode.com/svn/trunk@7483
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Thu, 31 Jan 2013 01:47:58 +0000 (01:47 +0000)]
Adding kMultiply_Mode (as an alias to kModulate_Mode) in SkBlendImageFilter.h to get Chrome compiling
git-svn-id: http://skia.googlecode.com/svn/trunk@7482
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Thu, 31 Jan 2013 01:23:39 +0000 (01:23 +0000)]
Readding kMultiply_Mode (as an alias to kModulate_Mode) in SkXfermode.h to get Chrome to compile
git-svn-id: http://skia.googlecode.com/svn/trunk@7480
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Thu, 31 Jan 2013 00:03:27 +0000 (00:03 +0000)]
Add SkImageFilterUtils.h to effects.gypi
git-svn-id: http://skia.googlecode.com/svn/trunk@7479
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Wed, 30 Jan 2013 21:44:40 +0000 (21:44 +0000)]
[PDF] Fix multi-level page count calculation.
BUG=1091
Review URL: https://codereview.appspot.com/7220045
git-svn-id: http://skia.googlecode.com/svn/trunk@7478
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 30 Jan 2013 21:36:11 +0000 (21:36 +0000)]
clone of https://codereview.appspot.com/7208043/
Review URL: https://codereview.appspot.com/7232062
git-svn-id: http://skia.googlecode.com/svn/trunk@7476
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Wed, 30 Jan 2013 21:23:13 +0000 (21:23 +0000)]
SkNextLog2 requires positive values.
git-svn-id: http://skia.googlecode.com/svn/trunk@7474
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Wed, 30 Jan 2013 21:10:05 +0000 (21:10 +0000)]
SkNextLog2 requires values > 0.
git-svn-id: http://skia.googlecode.com/svn/trunk@7472
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Wed, 30 Jan 2013 21:09:09 +0000 (21:09 +0000)]
Added option of profiling GPU backend to debugger
https://codereview.appspot.com/7248045/
git-svn-id: http://skia.googlecode.com/svn/trunk@7471
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Wed, 30 Jan 2013 21:01:26 +0000 (21:01 +0000)]
Avoid possible O(n) stack space use by skqsort.
https://codereview.appspot.com/7222043/
git-svn-id: http://skia.googlecode.com/svn/trunk@7470
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Wed, 30 Jan 2013 20:33:12 +0000 (20:33 +0000)]
Start addressing the clang static analyzer issues
https://codereview.appspot.com/7249043/
git-svn-id: http://skia.googlecode.com/svn/trunk@7469
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Wed, 30 Jan 2013 19:22:51 +0000 (19:22 +0000)]
bench_compare proper spacing and tab option.
https://codereview.appspot.com/6908056/
git-svn-id: http://skia.googlecode.com/svn/trunk@7468
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Wed, 30 Jan 2013 19:08:47 +0000 (19:08 +0000)]
This changes the signature of SkImageFilter::filterImageGPU() to use SkBitmaps for input and output, and removes the rect param. This allows us to return textures which are larger than the actual result, such as when GrAutoScratchTextures are used. The SkBitmap's size represents the active region, while the GrTexture's size is the full texture size.
This fixes the bicubic image filter GM on the GPU, which otherwise draws garbage outside the filtered region. It also moves us closer to unifying the signatures of SkImageFilter::onFilterImage() and SkImageFilter::filterImageGPU().
Review URL: https://codereview.appspot.com/7180048
git-svn-id: http://skia.googlecode.com/svn/trunk@7467
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 30 Jan 2013 16:12:41 +0000 (16:12 +0000)]
Add GrDrawTarget::DrawInfo, combine API for performing indexed/non-indexed draws in subclasses.
Review URL: https://codereview.appspot.com/7237045
git-svn-id: http://skia.googlecode.com/svn/trunk@7466
2bbb7eff-a529-9590-31e7-
b0007b416f81
junov@chromium.org [Wed, 30 Jan 2013 15:52:06 +0000 (15:52 +0000)]
Adding a new unit test that demonstrates that dithering affects constant gradients
Related bug: crbug.com/169602
Review URL: https://codereview.appspot.com/7220063
git-svn-id: http://skia.googlecode.com/svn/trunk@7465
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 30 Jan 2013 15:47:42 +0000 (15:47 +0000)]
return if we're invertible for the fast scale+trans case when we have no inverse
matrix to return.
Review URL: https://codereview.appspot.com/7231063
git-svn-id: http://skia.googlecode.com/svn/trunk@7464
2bbb7eff-a529-9590-31e7-
b0007b416f81
jvanverth@google.com [Wed, 30 Jan 2013 15:42:19 +0000 (15:42 +0000)]
Adds SkMWCRandom, which generates random numbers using a variant of George Marsaglia's multiply-with-carry "mother-of-all" method. This passes the tuftests suite so it should be much better than the current method (which does not).
https://codereview.appspot.com/7235056/
git-svn-id: http://skia.googlecode.com/svn/trunk@7463
2bbb7eff-a529-9590-31e7-
b0007b416f81
junov@chromium.org [Wed, 30 Jan 2013 15:34:57 +0000 (15:34 +0000)]
Re-enbling blurrect gm test wich no longer fails with rtree/tileGrid
Some re-baselining may be necessary since the existing ones may be out of date.
Unreviewed.
git-svn-id: http://skia.googlecode.com/svn/trunk@7462
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 30 Jan 2013 13:17:32 +0000 (13:17 +0000)]
add SK_DISABLE_PIXELREF_LOCKCOUNT_BALANCE_CHECK option, to disable check for
lock-count-balance when we use pixelrefs.
git-svn-id: http://skia.googlecode.com/svn/trunk@7460
2bbb7eff-a529-9590-31e7-
b0007b416f81
caryclark@google.com [Wed, 30 Jan 2013 12:50:38 +0000 (12:50 +0000)]
shape ops work in progress
git-svn-id: http://skia.googlecode.com/svn/trunk@7459
2bbb7eff-a529-9590-31e7-
b0007b416f81
skia.committer@gmail.com [Wed, 30 Jan 2013 07:05:59 +0000 (07:05 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@7458
2bbb7eff-a529-9590-31e7-
b0007b416f81
caryclark@google.com [Tue, 29 Jan 2013 20:28:49 +0000 (20:28 +0000)]
shape ops work in progress
git-svn-id: http://skia.googlecode.com/svn/trunk@7453
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Tue, 29 Jan 2013 19:04:14 +0000 (19:04 +0000)]
Mark SkPictureStateTree::Draw::operator< as const.
https://codereview.appspot.com/7222043/
git-svn-id: http://skia.googlecode.com/svn/trunk@7452
2bbb7eff-a529-9590-31e7-
b0007b416f81
djsollen@google.com [Tue, 29 Jan 2013 15:39:35 +0000 (15:39 +0000)]
Fix Japanese font issue for devices running JB MR1 and higher.
Android JB MR1 is using a new format of /system/etc/fallback_fonts.xml.
This CL preserves backwards compatibility, while also recognizing the
new fallback_fonts.xml format ("lang" attrbiute in <file/>).
NOTE: This CL was originally sumbitted for Chrome on Android (m18)
Review URL: https://codereview.appspot.com/7226053
git-svn-id: http://skia.googlecode.com/svn/trunk@7448
2bbb7eff-a529-9590-31e7-
b0007b416f81
caryclark@google.com [Tue, 29 Jan 2013 14:34:03 +0000 (14:34 +0000)]
shape ops work in progress
update gyp files
git-svn-id: http://skia.googlecode.com/svn/trunk@7445
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 29 Jan 2013 13:03:36 +0000 (13:03 +0000)]
add SK_API to SkMutex (for chrome)
git-svn-id: http://skia.googlecode.com/svn/trunk@7443
2bbb7eff-a529-9590-31e7-
b0007b416f81
rmistry@google.com [Tue, 29 Jan 2013 12:25:35 +0000 (12:25 +0000)]
Whitespace change to trigger rebuilds
git-svn-id: http://skia.googlecode.com/svn/trunk@7442
2bbb7eff-a529-9590-31e7-
b0007b416f81
rmistry@google.com [Tue, 29 Jan 2013 12:23:53 +0000 (12:23 +0000)]
Whitespace change (SkipBuildbotRuns)
git-svn-id: http://skia.googlecode.com/svn/trunk@7441
2bbb7eff-a529-9590-31e7-
b0007b416f81
skia.committer@gmail.com [Tue, 29 Jan 2013 07:05:52 +0000 (07:05 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@7439
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 28 Jan 2013 22:36:34 +0000 (22:36 +0000)]
tweak to comments, ws change to trigger bots
git-svn-id: http://skia.googlecode.com/svn/trunk@7435
2bbb7eff-a529-9590-31e7-
b0007b416f81