Commit Graph

2855 Commits

Author SHA1 Message Date
junov@chromium.org
1f9767c03b Fixing backing store access in SkDeferredCanvas.
Chromium CL required for rolling skia DEPS past this change is posted here: https://chromiumcodereview.appspot.com/9341003/
 
BUG=http://code.google.com/p/skia/issues/detail?id=475
REVIEW=http://codereview.appspot.com/5626047/
TEST=DeferredCanvas unit test



git-svn-id: http://skia.googlecode.com/svn/trunk@3147 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-02-07 16:27:57 +00:00
bsalomon@google.com
4bcb0c6e03 Reland 3144 with assertion fix.
git-svn-id: http://skia.googlecode.com/svn/trunk@3146 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-02-07 16:06:47 +00:00
bsalomon@google.com
0439e56996 revert 3144
git-svn-id: http://skia.googlecode.com/svn/trunk@3145 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-02-07 15:57:36 +00:00
bsalomon@google.com
aa67735579 Allow chrome to limit the number of FBO status checks
Review URL: https://codereview.appspot.com/5635052

git-svn-id: http://skia.googlecode.com/svn/trunk@3144 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-02-07 15:44:39 +00:00
reed@google.com
0a9cc44a40 use macro SkFixedRoundToInt where necessary
http://codereview.appspot.com/5617047/



git-svn-id: http://skia.googlecode.com/svn/trunk@3142 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-02-06 19:05:51 +00:00
caryclark@google.com
c682590538 save work in progress
git-svn-id: http://skia.googlecode.com/svn/trunk@3141 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-02-03 22:07:47 +00:00
junov@chromium.org
2c23708e44 Removing some dead code in SkDeferredCanvas
REVIEW=http://codereview.appspot.com/5620062/



git-svn-id: http://skia.googlecode.com/svn/trunk@3140 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-02-03 18:32:38 +00:00
epoger@google.com
db12fee829 Improve default behavior of compare-baselines script.
Now it can typically be called without any command-line arguments.
Review URL: https://codereview.appspot.com/5615057

git-svn-id: http://skia.googlecode.com/svn/trunk@3139 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-02-03 14:32:34 +00:00
epoger@google.com
25d961cf98 Make skdiff always generate white diffs alongside actual pixel diffs
(and some associated improvement to the output)
Review URL: https://codereview.appspot.com/5616059

git-svn-id: http://skia.googlecode.com/svn/trunk@3138 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-02-02 20:50:36 +00:00
epoger@google.com
5468c9006e Disable optimization of certain bit-shift operations on Visual Studio 2010 only
to address http://code.google.com/p/skia/issues/detail?id=472
Review URL: https://codereview.appspot.com/5607058

git-svn-id: http://skia.googlecode.com/svn/trunk@3137 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-02-02 20:41:45 +00:00
reed@google.com
b02af6edf3 add baselines for macpro
git-svn-id: http://skia.googlecode.com/svn/trunk@3136 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-02-02 19:53:13 +00:00
reed@google.com
c98a0aadc4 rearrange functions to group clamp, repeat, mirror helpers together.
git-svn-id: http://skia.googlecode.com/svn/trunk@3135 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-02-02 19:33:08 +00:00
reed@google.com
177f65cb89 add baselines
git-svn-id: http://skia.googlecode.com/svn/trunk@3134 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-02-02 19:25:03 +00:00
reed@google.com
def88cc17d add baselines
git-svn-id: http://skia.googlecode.com/svn/trunk@3133 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-02-02 19:23:35 +00:00
reed@google.com
0f21efad5f rebaseline following rev. 3126 "dithering 32bit radial gradients"
git-svn-id: http://skia.googlecode.com/svn/trunk@3132 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-02-02 19:20:41 +00:00
bungeman@google.com
f8d1aee252 Open type table definitions.
http://codereview.appspot.com/5577064/



git-svn-id: http://skia.googlecode.com/svn/trunk@3131 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-02-02 19:15:21 +00:00
epoger@google.com
afd87fe108 Delete download-baselines-old script, we don't need it anymore.
Review URL: https://codereview.appspot.com/5615047

git-svn-id: http://skia.googlecode.com/svn/trunk@3130 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-02-02 18:39:40 +00:00
tomhudson@google.com
c3976ec476 Update new baselines for dithered radial gradients (r3126)
after visual review.



git-svn-id: http://skia.googlecode.com/svn/trunk@3129 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-02-02 17:38:01 +00:00
epoger@google.com
fc241ee752 Create compare-baselines tool to compare locally generated and checked-in GMs.
Review URL: https://codereview.appspot.com/5616056

git-svn-id: http://skia.googlecode.com/svn/trunk@3128 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-02-02 16:49:49 +00:00
bsalomon@google.com
f3bf18b255 Don't change convexity status of a path after a moveTo
Review URL: http://codereview.appspot.com/5581048/


git-svn-id: http://skia.googlecode.com/svn/trunk@3127 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-02-02 15:00:19 +00:00
tomhudson@google.com
480e21f239 Add dithering to 32b radial gradients. Behind the same #ifdef as dithered
32b linear gradients so that we don't impact clients unexpectedly.
This commit *will* break GM.

http://codereview.appspot.com/5599050/



git-svn-id: http://skia.googlecode.com/svn/trunk@3126 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-02-02 14:11:18 +00:00
bsalomon@google.com
dc3c78076e [GPU]: Handle degenerate quads when computing UV matrix from control points
Review URL: http://codereview.appspot.com/5602045/



git-svn-id: http://skia.googlecode.com/svn/trunk@3125 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-01-31 20:46:32 +00:00
bsalomon@google.com
fb6f0f6f18 When adding a convex shape to a path, mark path as convex if path is initially degenerate.
Review URL: http://codereview.appspot.com/5504073/



git-svn-id: http://skia.googlecode.com/svn/trunk@3124 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-01-31 18:44:34 +00:00
twiz@google.com
e24a07980e Expose '--notexturecache' command line argument to gm.
Pass '--notexturecache' to gm to resize the Ganesh texture cache to 0.  This stresses Ganesh's behaviour after a cache purge operation.
Review URL: https://codereview.appspot.com/5569079

git-svn-id: http://skia.googlecode.com/svn/trunk@3123 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-01-31 18:35:30 +00:00
epoger@google.com
8722d7c3e0 Roll out r3117 to alleviate http://code.google.com/p/skia/issues/detail?id=471 ('filltypespersp gm test fails with KERN_PROTECTION_FAILURE on Lion')
git-svn-id: http://skia.googlecode.com/svn/trunk@3122 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-01-31 17:18:58 +00:00
reed@google.com
d414666d18 add additional tests for path direction with multiple pts on y-max
git-svn-id: http://skia.googlecode.com/svn/trunk@3121 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-01-31 15:42:29 +00:00
reed@google.com
3a314c3ca2 rebaseline after new convexpath code in gpu
git-svn-id: http://skia.googlecode.com/svn/trunk@3120 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-01-31 15:40:32 +00:00
reed@google.com
3e44e4d1be fall through to cross-product if the y-max-baseline returns a degenerate line
(i.e. maxIndex == minIndex)



git-svn-id: http://skia.googlecode.com/svn/trunk@3119 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-01-31 15:25:22 +00:00
bsalomon@google.com
9732f62eae Fix degenerate test in convex path renderer
Review URL: http://codereview.appspot.com/5581058/



git-svn-id: http://skia.googlecode.com/svn/trunk@3118 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-01-31 15:19:21 +00:00
digit@google.com
c943bd5984 Remove one static initializer in src/gpu/GrGpu.cpp
Review URL: https://codereview.appspot.com/5504073

git-svn-id: http://skia.googlecode.com/svn/trunk@3117 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-01-31 15:16:10 +00:00
reed@google.com
c1ea60a9ea handle multiple points all at the y-max when computing direction
git-svn-id: http://skia.googlecode.com/svn/trunk@3116 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-01-31 15:15:36 +00:00
epoger@google.com
0928c4acc9 Make SkImageEncoder_CG report more failures to its caller.
Review URL: https://codereview.appspot.com/5580052

git-svn-id: http://skia.googlecode.com/svn/trunk@3115 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-01-31 15:14:08 +00:00
reed@google.com
bb0948fce2 increase height to include entire circle for large radial
git-svn-id: http://skia.googlecode.com/svn/trunk@3114 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-01-31 14:44:13 +00:00
digit@google.com
037d011076 Fix Android build
Review URL: https://codereview.appspot.com/5492054

git-svn-id: http://skia.googlecode.com/svn/trunk@3113 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-01-31 14:43:55 +00:00
bsalomon@google.com
75f9f25d8b Add code path for Gr client to resolve an Gr-created MSAA render target.
Review URL: http://codereview.appspot.com/5580049/


git-svn-id: http://skia.googlecode.com/svn/trunk@3112 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-01-31 13:35:56 +00:00
bsalomon@google.com
75942098c5 Rebaseline GMs changed by convex path renderer.
git-svn-id: http://skia.googlecode.com/svn/trunk@3111 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-01-30 21:21:24 +00:00
reed@google.com
ac8543ff57 use contour with global ymax to determine direction
git-svn-id: http://skia.googlecode.com/svn/trunk@3110 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-01-30 20:51:25 +00:00
bsalomon@google.com
3e5afe7c57 Enable convex path renderer.
NOTE: THIS WILL CAUSE BOTS TO FAIL GM ON THE GPU.
These tests will be rebaslined.

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



git-svn-id: http://skia.googlecode.com/svn/trunk@3109 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-01-30 20:25:23 +00:00
tomhudson@google.com
39c2515816 Add missing SkFloatToScalar() calls to fix the build.
git-svn-id: http://skia.googlecode.com/svn/trunk@3108 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-01-30 20:12:10 +00:00
tomhudson@google.com
b18e58c065 New radial gradient GM to observe banding and dithering effects.
Gray transparent disk in the center, shading to black transparent at edges.



git-svn-id: http://skia.googlecode.com/svn/trunk@3107 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-01-30 20:00:13 +00:00
bsalomon@google.com
78d6cf9f43 Remove GrAALevel enum, use explicit sample count
Review URL: http://codereview.appspot.com/5600045/



git-svn-id: http://skia.googlecode.com/svn/trunk@3106 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-01-30 18:09:31 +00:00
reed@google.com
fa4d5bd09f add bandage to pin out-of-range values when converting our integral clip bounds to
a SkRect (when SkScalar==fixed). Eliminates a (valid) assert, but does not really
return the "correct" value (which can't be represented in SkRect).



git-svn-id: http://skia.googlecode.com/svn/trunk@3105 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-01-30 17:36:27 +00:00
reed@google.com
5546ef2dd9 inject a 32767 bounded cliprect before using SuperSampler blitter, to avoid
crash/assert when our run-array is larger than int16_t. Better fix may be to
"tile" the drawing, so we never see a clip that's too wide, and perhaps this
technique can help us avoid disabling AA for large parths (not sure tho).



git-svn-id: http://skia.googlecode.com/svn/trunk@3104 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-01-30 17:09:45 +00:00
reed@google.com
9efd9a048a extend fastbounds impls to include maskfilters and drawloopers. This allows
us to perform quick-rejects when drawing objects with shadows (esp. text).
WebKit draws shadows w/ a looper (fg and shadow) and a maskfilter on the
shadow layer.



git-svn-id: http://skia.googlecode.com/svn/trunk@3103 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-01-30 15:41:43 +00:00
junov@chromium.org
bf6c1e4aff Adding a flush method to SkCanvas
BUG=http://code.google.com/p/skia/issues/detail?id=467
REVIEW=http://codereview.appspot.com/5600044/
TEST=gm uses the new code path on all its test cases



git-svn-id: http://skia.googlecode.com/svn/trunk@3102 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-01-30 14:53:22 +00:00
bsalomon@google.com
9aed114505 Reland r3078 (original failures that led to revert were problems with the bot)
git-svn-id: http://skia.googlecode.com/svn/trunk@3101 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-01-30 14:28:39 +00:00
bsalomon@google.com
e5e3937a14 fix compilation errors when VISUALIZE_COMPLEX_CLIP is set (debug assist code path)
Review URL: http://codereview.appspot.com/5596043/



git-svn-id: http://skia.googlecode.com/svn/trunk@3100 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-01-30 14:07:26 +00:00
bsalomon@google.com
7d72c45a9e code cleanup for single_pass_path() and remove enum GrConvexHint
Review URL: code cleanup for single_pass_path() and remove enum GrConvexHint



git-svn-id: http://skia.googlecode.com/svn/trunk@3099 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-01-30 14:02:44 +00:00
vandebo@chromium.org
74b4619616 Formatting cleanup: remove extra whitespace
Change by arthurhsu@chromium.org, original CL: http://codereview.appspot.com/5587049/

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

git-svn-id: http://skia.googlecode.com/svn/trunk@3098 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-01-28 01:45:11 +00:00
twiz@google.com
05e70247c3 Expose functionality to purge the GPU texture cache while running SampleApp.
Press 'p' to purge the cache.  A summary of the number of bytes of video memory
released is output to the command prompt.
Review URL: https://codereview.appspot.com/5587045

git-svn-id: http://skia.googlecode.com/svn/trunk@3097 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-01-27 19:12:00 +00:00