Commit Graph

2087 Commits

Author SHA1 Message Date
reed@google.com
9870e7ef94 rebaseline w/ faster gradients
git-svn-id: http://skia.googlecode.com/svn/trunk@2298 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-21 14:31:03 +00:00
bsalomon@google.com
858c494970 Rebase raster linux GM for faster radial-mirror and sweep
git-svn-id: http://skia.googlecode.com/svn/trunk@2297 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-21 14:23:32 +00:00
reed@google.com
fe62638357 use common code for treating thin lines as hairlines (much faster)
git-svn-id: http://skia.googlecode.com/svn/trunk@2296 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-21 13:50:35 +00:00
reed@google.com
0b17770304 update baselines with faster radial-mirror and sweep
git-svn-id: http://skia.googlecode.com/svn/trunk@2295 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-21 13:42:02 +00:00
reed@google.com
51baf5abe7 speed up radial-mirror 16x, sweep by ~2x
git-svn-id: http://skia.googlecode.com/svn/trunk@2294 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-21 13:38:36 +00:00
reed@google.com
b3b0a5b128 update fSegmentMask inside ::transform() (thank you validate!)
git-svn-id: http://skia.googlecode.com/svn/trunk@2293 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-21 12:58:51 +00:00
reed@google.com
10296ccb6a add segment types query to SkPath (i.e. does it have any quads)
git-svn-id: http://skia.googlecode.com/svn/trunk@2292 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-21 12:29:05 +00:00
bsalomon@google.com
4fa6694c58 Resubmit 2289 with fix for glsl version
git-svn-id: http://skia.googlecode.com/svn/trunk@2291 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-20 19:06:12 +00:00
bsalomon@google.com
1fac5ca505 Revert 2289. GLSL version detection not robust enough. May think we don't have GLSL 1.50 support based on OpenGL version. We have to look at the available extensions, not just GL version.
git-svn-id: http://skia.googlecode.com/svn/trunk@2290 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-20 17:57:44 +00:00
bsalomon@google.com
98874cdda0 [GPU] Use new Var type for inputs/outputs of FS and VS
Review URL: http://codereview.appspot.com/5056048/



git-svn-id: http://skia.googlecode.com/svn/trunk@2289 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-20 17:33:24 +00:00
reed@google.com
dd5bd670e6 add SK_RESTRICT in shadeSpan methods
git-svn-id: http://skia.googlecode.com/svn/trunk@2288 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-20 15:56:13 +00:00
reed@google.com
6a87fafc5c revert match for newAlpha to exactly match old math, so we don't drive
dumprendertree crazy



git-svn-id: http://skia.googlecode.com/svn/trunk@2287 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-19 21:21:45 +00:00
reed@google.com
5672838761 update baselines
git-svn-id: http://skia.googlecode.com/svn/trunk@2286 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-19 19:52:25 +00:00
bsalomon@google.com
21fa0676c5 Add missing header SkTArray.h to core.gyp
git-svn-id: http://skia.googlecode.com/svn/trunk@2285 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-19 19:43:36 +00:00
bungeman@google.com
64e011a59d Fix pdf suppression test for gm.
git-svn-id: http://skia.googlecode.com/svn/trunk@2284 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-19 19:31:04 +00:00
reed@google.com
ecadf99c84 use new SkDrawTreatAsHairline method to decide when to approximate a thin-line
with a hairline (and have its alpha modulated).

idea is to be able to share this new function with SkGpuDevice



git-svn-id: http://skia.googlecode.com/svn/trunk@2283 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-19 19:18:18 +00:00
reed@google.com
fbc2117288 add getFlags() to gm baseclass
skip PDF for hairmodes for now, since it crashes



git-svn-id: http://skia.googlecode.com/svn/trunk@2282 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-19 19:08:33 +00:00
reed@google.com
ab9739777c add gm test for drawing hairlines (and varying thin lines) in xfermodes
add --nopdf option to gm app



git-svn-id: http://skia.googlecode.com/svn/trunk@2281 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-19 19:01:38 +00:00
bsalomon@google.com
3ad3d44f15 Include GrGLInterface.h instead of forward declaring, since we have to get NULL defined anyway.
git-svn-id: http://skia.googlecode.com/svn/trunk@2280 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-16 21:34:29 +00:00
bsalomon@google.com
30ee1b5c23 Fix forward decl
git-svn-id: http://skia.googlecode.com/svn/trunk@2279 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-16 21:20:24 +00:00
bsalomon@google.com
15b11df63f Make GrGpuGL release its resources before GrGLInterface is released.
Forward declare GrGLInterface in GrGLDefaultInterface_none file

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


git-svn-id: http://skia.googlecode.com/svn/trunk@2278 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-16 21:18:29 +00:00
seanpaul@google.com
d4f299e496 Fix some mac compilation errors generated when building utils within
chrome.

BUG=364
TEST=Build skia on mac, ran bench. Ensured both behaved as expected.
Review URL: http://codereview.appspot.com/5032045

git-svn-id: http://skia.googlecode.com/svn/trunk@2277 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-16 20:46:40 +00:00
bsalomon@google.com
6fb736fc2e Simplify specification of default interface
Review URL: http://codereview.appspot.com/5036045/



git-svn-id: http://skia.googlecode.com/svn/trunk@2276 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-16 18:51:57 +00:00
seanpaul@google.com
8f78fec05c Change AdditionalOptions to a list from a string. This fixes compilation errors
when building bench within chrome.

BUG=363
TEST=Build bench through a chrome checkout on windows
Review URL: http://codereview.appspot.com/5045042

git-svn-id: http://skia.googlecode.com/svn/trunk@2275 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-16 15:47:33 +00:00
bungeman@google.com
2e2f3f58b5 Update SkCoInitialize to better match spec.
http://codereview.appspot.com/5036044/


git-svn-id: http://skia.googlecode.com/svn/trunk@2274 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-16 15:37:20 +00:00
bsalomon@google.com
e5a438b8d7 Add mac filltypepersp baselines.
git-svn-id: http://skia.googlecode.com/svn/trunk@2273 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-16 15:06:56 +00:00
bsalomon@google.com
6087975e5d Fix assertions in GrResourceCache::removeAll, don't reattached invalidated resources
Review URL: http://codereview.appspot.com/5000048/



git-svn-id: http://skia.googlecode.com/svn/trunk@2272 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-15 20:43:53 +00:00
bsalomon@google.com
661056739c Move edgeAA shader gen code to its own function
Review URL:  http://codereview.appspot.com/5015048/


git-svn-id: http://skia.googlecode.com/svn/trunk@2271 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-15 15:12:00 +00:00
seanpaul@google.com
1134f98165 Refactor the bench and common gyp/gypi files to allow for building bench within
a chromium checkout (using chromium build configuration).

BUG=362
TEST=Build bench from within the chromium and skia source tree, ensured it built
     and ran successfully.
Review URL: http://codereview.appspot.com/5023042

git-svn-id: http://skia.googlecode.com/svn/trunk@2270 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-15 14:24:33 +00:00
bsalomon@google.com
ba72f042f6 enable OES derivatives extension in shaders that use it
Review URL:  http://codereview.appspot.com/5023043/



git-svn-id: http://skia.googlecode.com/svn/trunk@2269 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-14 18:05:30 +00:00
reed@google.com
4bce115b31 make string's reference counting thread-safe
git-svn-id: http://skia.googlecode.com/svn/trunk@2268 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-14 16:13:58 +00:00
bsalomon@google.com
79afcaa25a Workaround crash in cmd buffer validation code when GL shaders/programs fail
Review URL: http://codereview.appspot.com/5012046/



git-svn-id: http://skia.googlecode.com/svn/trunk@2267 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-14 14:29:18 +00:00
bsalomon@google.com
5c6ae60a71 Fix compilation error related to using nonexistent sk_malloc instead of sk_malloc_throw. VC++ lazy template code compilation let this work on windows since the wrong function name was only in currently unused templated functions.
git-svn-id: http://skia.googlecode.com/svn/trunk@2266 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-14 14:01:31 +00:00
bsalomon@google.com
49313f6b43 GrTArray->SkTArray & docs
Review URL: http://codereview.appspot.com/5005045/



git-svn-id: http://skia.googlecode.com/svn/trunk@2265 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-14 13:54:05 +00:00
bsalomon@google.com
da13aaec5b Remove unnecessary forward decl that was causing a warning.
git-svn-id: http://skia.googlecode.com/svn/trunk@2264 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-14 12:52:28 +00:00
bsalomon@google.com
cff323ecd8 Shutup strict aliasing warnings in SkTLazy
Review URL: http://codereview.appspot.com/5020042/



git-svn-id: http://skia.googlecode.com/svn/trunk@2263 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-14 12:44:13 +00:00
bsalomon@google.com
8966d0149b remove nonexistent files from gyps and make AdditionalOptions a list rather than str
ReviewURL: http://codereview.appspot.com/5022042/



git-svn-id: http://skia.googlecode.com/svn/trunk@2262 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-13 20:57:33 +00:00
bsalomon@google.com
a64fe87a9c add filltypepersp baselines for linux
git-svn-id: http://skia.googlecode.com/svn/trunk@2261 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-13 20:56:48 +00:00
bsalomon@google.com
a996fec404 Use push_back_n() in place of multiple push_back()s
Review URL: http://codereview.appspot.com/5018041/


git-svn-id: http://skia.googlecode.com/svn/trunk@2260 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-13 18:49:13 +00:00
junov@google.com
f3cf9429cc SampleApp: fixing bad ref counting on non dynamically allocated object
REVIEW=http://codereview.appspot.com/4969079/



git-svn-id: http://skia.googlecode.com/svn/trunk@2259 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-13 18:15:52 +00:00
reed@google.com
c27b74174e add override for max-text-size for lcd
git-svn-id: http://skia.googlecode.com/svn/trunk@2258 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-13 17:20:30 +00:00
bsalomon@google.com
cecd3ac9d0 Remove wrong file, add right file
git-svn-id: http://skia.googlecode.com/svn/trunk@2257 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-13 15:39:00 +00:00
bsalomon@google.com
8c2fe99ed2 Fix some issues in gpu device with perspective. Add a gm that would have caught them.
Review URL: http://codereview.appspot.com/4994048/



git-svn-id: http://skia.googlecode.com/svn/trunk@2256 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-13 15:27:18 +00:00
tomhudson@google.com
bcb671c82a Add SkCanvas::getClipDescription() and getClipDeviceBounds() so clients don't
need to explicitly get the exact clip & compute those values themselves. (We
may be able to provide description/bounds more cheaply than the exact clip.)



git-svn-id: http://skia.googlecode.com/svn/trunk@2255 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-13 15:07:58 +00:00
tomhudson@google.com
8a0b0291ae Revert r2250 - removal of setMatrixClip() - because Chrome makes heavy use
of those functions in a way we're not yet ready to clean up.



git-svn-id: http://skia.googlecode.com/svn/trunk@2254 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-13 14:41:06 +00:00
reed@google.com
f2068adc2c add SK_RESTRICT to mask procs
separate out opaque and non for lcd16 blits



git-svn-id: http://skia.googlecode.com/svn/trunk@2253 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-13 13:56:57 +00:00
reed@google.com
4f79b9be9e set max size for lcdtext
git-svn-id: http://skia.googlecode.com/svn/trunk@2252 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-13 13:23:26 +00:00
reed@google.com
4c888aae25 write 0 to our refcnt in the destructor, in the off-chance of it helping us
catch reuse-after-delete bugs (debug only)



git-svn-id: http://skia.googlecode.com/svn/trunk@2251 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-12 19:54:12 +00:00
tomhudson@google.com
66d57255ad Replaces SkDevice::setMatrixClip() with markMatrixDirty() and markClipDirty(),
which require no arguments and so may be called without requiring the matrix
and clip to be completely evaluated.

De-inlines virtual functions in SkDevice interface.



git-svn-id: http://skia.googlecode.com/svn/trunk@2250 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-12 19:52:44 +00:00
bsalomon@google.com
dbeeac3332 Add perspective support to the gpu aa hairline renderer.
Review URL: http://codereview.appspot.com/4969071/



git-svn-id: http://skia.googlecode.com/svn/trunk@2249 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-12 14:59:34 +00:00