Commit Graph

6274 Commits

Author SHA1 Message Date
skia.committer@gmail.com
ae683921ff Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@7608 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-02-06 07:01:54 +00:00
mike@reedtribe.org
53f3f31e17 tweak to spacing, to trigger build
git-svn-id: http://skia.googlecode.com/svn/trunk@7607 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-02-06 03:43:57 +00:00
edisonn@google.com
2e6a69b7a2 If the stack is too deep we could get Stack Overflow in pdf's ContentEntry's destructor.
Review URL: https://codereview.appspot.com/7313045

git-svn-id: http://skia.googlecode.com/svn/trunk@7605 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-02-05 23:13:39 +00:00
robertphillips@google.com
55cac11d8e Fix calls to setVertexSourceToBuffer
git-svn-id: http://skia.googlecode.com/svn/trunk@7604 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-02-05 22:55:18 +00:00
bsalomon@google.com
f3a7bc7954 Fix bench crash (calling method on NULL object).
Review URL: https://codereview.appspot.com/7305048

git-svn-id: http://skia.googlecode.com/svn/trunk@7603 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-02-05 21:32:06 +00:00
jvanverth@google.com
a4d18ddb23 Reinstate r7546: fix unused variable warning
https://codereview.appspot.com/7309051


git-svn-id: http://skia.googlecode.com/svn/trunk@7602 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-02-05 21:05:04 +00:00
robertphillips@google.com
7374355408 Improved compartmentalization of filter tool's optimizations & add new optimization
https://codereview.appspot.com/7294049/



git-svn-id: http://skia.googlecode.com/svn/trunk@7601 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-02-05 20:51:49 +00:00
jvanverth@google.com
b75b0a0b84 Move vertex layout from GeometrySrcState to GrDrawState.
Also adds AutoStateRestore member to AutoGeometryPush to push DrawState as well
as GeometrySrcState. And removed vertex layout as an argument to a number of 
functions -- they will get vertex layout info from the current DrawState.

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


git-svn-id: http://skia.googlecode.com/svn/trunk@7600 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-02-05 20:33:30 +00:00
borenet@google.com
69b50e3584 Fix master IP in submit_try
Unreviewed.  Should have this reference:
http://skia.googlecode.com/svn/buildbot/site_config/global_variables.json
(SkipBuildbotRuns)
Review URL: https://codereview.appspot.com/7314045

git-svn-id: http://skia.googlecode.com/svn/trunk@7598 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-02-05 20:26:31 +00:00
bsalomon@google.com
5c265d6fd3 Revert r7595 due to housekeeper warning-as-error.
git-svn-id: http://skia.googlecode.com/svn/trunk@7596 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-02-05 20:09:41 +00:00
bsalomon@google.com
3e9b076d93 Re-enable static asserts with windows warning fix.
git-svn-id: http://skia.googlecode.com/svn/trunk@7595 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-02-05 20:04:38 +00:00
senorblanco@chromium.org
3cb406bb88 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
2013-02-05 19:50:46 +00:00
jvanverth@google.com
0ac6f168f1 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
2013-02-05 19:44:07 +00:00
scroggo@google.com
9349101b6c 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
2013-02-05 19:22:27 +00:00
scroggo@google.com
493c65f1aa 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
2013-02-05 18:49:00 +00:00
djsollen@google.com
19376b8047 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
2013-02-05 17:00:02 +00:00
reed@google.com
e7767cfca6 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
2013-02-05 16:42:28 +00:00
reed@google.com
3ac5eb571b fix (new annoying) warning (mac only I think)
git-svn-id: http://skia.googlecode.com/svn/trunk@7583 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-02-05 16:18:20 +00:00
bsalomon@google.com
bc2f0e857a 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
2013-02-05 16:14:15 +00:00
bsalomon@google.com
1d1d4248f6 Actually fix angle GLPrograms test.
git-svn-id: http://skia.googlecode.com/svn/trunk@7578 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-02-05 15:44:21 +00:00
jvanverth@google.com
d4ce480d2b Restore variable to release builds.
git-svn-id: http://skia.googlecode.com/svn/trunk@7572 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-02-05 14:15:31 +00:00
robertphillips@google.com
cf9faf6ce9 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
2013-02-05 14:05:06 +00:00
skia.committer@gmail.com
0c38ed3b1d Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@7567 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-02-05 07:02:01 +00:00
mike@reedtribe.org
1c295e422b 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
2013-02-05 02:58:00 +00:00
senorblanco@chromium.org
377c14a1e6 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
2013-02-04 22:57:21 +00:00
reed@google.com
3d5b998bd7 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
2013-02-04 22:40:28 +00:00
bsalomon@google.com
71cf3ae872 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
2013-02-04 22:17:13 +00:00
reed@google.com
ae97c065d3 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
2013-02-04 21:03:11 +00:00
reed@google.com
394c8854b3 add kMultiply_Mode to switch statement (fix warning)
git-svn-id: http://skia.googlecode.com/svn/trunk@7556 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-02-04 20:46:08 +00:00
reed@google.com
25cfa69342 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
2013-02-04 20:06:00 +00:00
bungeman@google.com
4e5a89570b 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
2013-02-04 19:54:15 +00:00
bsalomon@google.com
a45afcf14b Commit file missing from r7550
git-svn-id: http://skia.googlecode.com/svn/trunk@7551 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-02-04 18:46:49 +00:00
bsalomon@google.com
042a2861b2 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
2013-02-04 18:39:24 +00:00
reed@google.com
60040292be 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
2013-02-04 18:21:23 +00:00
reed@google.com
73349aa332 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
2013-02-04 18:09:58 +00:00
reed@google.com
58ba41034e cleanup: use DEF_BENCH macro
git-svn-id: http://skia.googlecode.com/svn/trunk@7547 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-02-04 18:00:54 +00:00
reed@google.com
7fbf5cfae8 fix unused variable warning
git-svn-id: http://skia.googlecode.com/svn/trunk@7546 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-02-04 17:59:02 +00:00
senorblanco@chromium.org
ed8659b51d 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
2013-02-04 17:29:51 +00:00
reed@google.com
83f7c65946 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
2013-02-04 16:56:15 +00:00
bungeman@google.com
5b7bac5ce1 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
2013-02-04 16:24:44 +00:00
rmistry@google.com
bf486f8153 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
2013-02-04 16:22:06 +00:00
bsalomon@google.com
67b915de99 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
2013-02-04 16:13:32 +00:00
bungeman@google.com
7de18e5c7b 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
2013-02-04 15:58:08 +00:00
reed@google.com
c1f9011ceb 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
2013-02-04 14:57:28 +00:00
caryclark@google.com
f9502d7dfa shape ops work in progress
git-svn-id: http://skia.googlecode.com/svn/trunk@7535 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-02-04 14:06:49 +00:00
skia.committer@gmail.com
9dde018753 Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@7533 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-02-04 12:57:42 +00:00
mike@reedtribe.org
aac2fb8019 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
2013-02-04 05:17:10 +00:00
mike@reedtribe.org
0cf7b824ca use DEF_BENCH macro
git-svn-id: http://skia.googlecode.com/svn/trunk@7531 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-02-04 05:05:36 +00:00
rmistry@google.com
b025c9c72a 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
2013-02-03 21:04:27 +00:00
junov@chromium.org
50a5cfb1a5 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
2013-02-01 20:39:48 +00:00