platform/upstream/libSkiaSharp.git
12 years agoRebase gm win float
bsalomon@google.com [Wed, 28 Sep 2011 21:42:10 +0000 (21:42 +0000)]
Rebase gm win float

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

12 years agorebaseline (with Brian's cleartype settings)
reed@google.com [Wed, 28 Sep 2011 21:38:00 +0000 (21:38 +0000)]
rebaseline (with Brian's cleartype settings)

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

12 years agoadd baselines
reed@google.com [Wed, 28 Sep 2011 21:24:30 +0000 (21:24 +0000)]
add baselines

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

12 years agorebaseline with gamma correct text
reed@google.com [Wed, 28 Sep 2011 20:43:04 +0000 (20:43 +0000)]
rebaseline with gamma correct text

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

12 years agoremove clearing gamma for BW, since caller does that now
reed@google.com [Wed, 28 Sep 2011 20:37:56 +0000 (20:37 +0000)]
remove clearing gamma for BW, since caller does that now

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

12 years agoadd gamma-correct text
reed@google.com [Wed, 28 Sep 2011 20:33:24 +0000 (20:33 +0000)]
add gamma-correct text

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

12 years agorebaseline with new gamma-corrected text
reed@google.com [Wed, 28 Sep 2011 20:29:33 +0000 (20:29 +0000)]
rebaseline with new gamma-corrected text

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

12 years agoFix gl error debug print.
bsalomon@google.com [Wed, 28 Sep 2011 17:58:13 +0000 (17:58 +0000)]
Fix gl error debug print.

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

12 years agoAdd GrSTAllocator subclass, hide cons in GrTAllocator that takes ptr
bsalomon@google.com [Wed, 28 Sep 2011 17:52:15 +0000 (17:52 +0000)]
Add GrSTAllocator subclass, hide cons in GrTAllocator that takes ptr

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

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

12 years agorebaseline
reed@google.com [Wed, 28 Sep 2011 17:50:17 +0000 (17:50 +0000)]
rebaseline

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

12 years agoupdate baseline
reed@google.com [Wed, 28 Sep 2011 17:42:03 +0000 (17:42 +0000)]
update baseline

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

12 years agorebaseline
reed@google.com [Wed, 28 Sep 2011 17:38:18 +0000 (17:38 +0000)]
rebaseline

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

12 years agomove specialization of 16 -vs- 32 lcd format to the fonthost
reed@google.com [Wed, 28 Sep 2011 17:26:42 +0000 (17:26 +0000)]
move specialization of 16 -vs- 32 lcd format to the fonthost

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

12 years agosupport gamma correction for lcd text
reed@google.com [Wed, 28 Sep 2011 17:10:57 +0000 (17:10 +0000)]
support gamma correction for lcd text

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

12 years agokill gamma flags if we're drawing BW
reed@google.com [Wed, 28 Sep 2011 15:32:20 +0000 (15:32 +0000)]
kill gamma flags if we're drawing BW

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

12 years agosplitscreen for black and white versions
reed@google.com [Wed, 28 Sep 2011 15:24:00 +0000 (15:24 +0000)]
splitscreen for black and white versions

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

12 years agoTurn off AA when coverage can't be handled correctly.
bsalomon@google.com [Wed, 28 Sep 2011 15:05:33 +0000 (15:05 +0000)]
Turn off AA when coverage can't be handled correctly.

This may make some gms go red if bots don't have dual source blend. Will rebase if so.

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

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

12 years agoSet window build flags (warn level 4, release optimization options, pdbs in release...
bsalomon@google.com [Wed, 28 Sep 2011 14:32:01 +0000 (14:32 +0000)]
Set window build flags (warn level 4, release optimization options, pdbs in release builds)

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

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

12 years agoroll in fixes from android when we have to compress sections of "stretchy"
reed@google.com [Wed, 28 Sep 2011 12:33:41 +0000 (12:33 +0000)]
roll in fixes from android when we have to compress sections of "stretchy"

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

12 years agoAdd debug trap to track down crash.
vandebo@chromium.org [Tue, 27 Sep 2011 19:49:57 +0000 (19:49 +0000)]
Add debug trap to track down crash.

Original CL by arthurhsu: http://codereview.appspot.com/5144046/

BUG=CR 94421

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

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

12 years agoadd initial baselines
reed@google.com [Tue, 27 Sep 2011 19:18:16 +0000 (19:18 +0000)]
add initial baselines

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

12 years agoAdd SkSTArray, hide stack storage cons in SkTArray, unify SkTArray init logic
bsalomon@google.com [Tue, 27 Sep 2011 19:10:05 +0000 (19:10 +0000)]
Add SkSTArray, hide stack storage cons in SkTArray, unify SkTArray init logic

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

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

12 years agoReplace SkMath.h includes as required for fixed point.
tomhudson@google.com [Tue, 27 Sep 2011 18:03:23 +0000 (18:03 +0000)]
Replace SkMath.h includes as required for fixed point.

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

12 years agoMake SkMath.h less visible in public header files.
tomhudson@google.com [Tue, 27 Sep 2011 17:38:17 +0000 (17:38 +0000)]
Make SkMath.h less visible in public header files.

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

12 years agowhitespace commit to trigger buildbots
epoger@google.com [Tue, 27 Sep 2011 15:57:14 +0000 (15:57 +0000)]
whitespace commit to trigger buildbots

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

12 years agofix bw bits when width >= 16
reed@google.com [Tue, 27 Sep 2011 14:07:21 +0000 (14:07 +0000)]
fix bw bits when width >= 16

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

12 years agoinitial baselines
reed@google.com [Tue, 27 Sep 2011 13:22:12 +0000 (13:22 +0000)]
initial baselines

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

12 years agoadd initial baselines
reed@google.com [Tue, 27 Sep 2011 12:57:29 +0000 (12:57 +0000)]
add initial baselines

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

12 years agodoh -- fix conversion to BW from color/gray
reed@google.com [Tue, 27 Sep 2011 12:54:24 +0000 (12:54 +0000)]
doh -- fix conversion to BW from color/gray

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

12 years agoFix 2333. Be sure fImage is assigned before giving to SkAutoMaskImage.
bungeman@google.com [Mon, 26 Sep 2011 19:51:33 +0000 (19:51 +0000)]
Fix 2333. Be sure fImage is assigned before giving to SkAutoMaskImage.

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

12 years agoFix leak of mask in draw.
bungeman@google.com [Mon, 26 Sep 2011 19:09:08 +0000 (19:09 +0000)]
Fix leak of mask in draw.
http://codereview.appspot.com/5132046/

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

12 years agowhitespace commit to trigger buildbots
epoger@google.com [Mon, 26 Sep 2011 17:57:07 +0000 (17:57 +0000)]
whitespace commit to trigger buildbots

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

12 years agowhitespace commit to trigger buildbots
epoger@google.com [Mon, 26 Sep 2011 17:34:12 +0000 (17:34 +0000)]
whitespace commit to trigger buildbots

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

12 years agoRebase complexclip_gpu, add hairmodes_gpu on mac
bsalomon@google.com [Mon, 26 Sep 2011 15:59:51 +0000 (15:59 +0000)]
Rebase complexclip_gpu, add hairmodes_gpu on mac

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

12 years agoRebase complexclip_gpu, hairmodes_gpu on linux
bsalomon@google.com [Mon, 26 Sep 2011 15:59:33 +0000 (15:59 +0000)]
Rebase complexclip_gpu, hairmodes_gpu on linux

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

12 years agoFix override issue, rebase win hairmodes_gpu, complexclip_gpu
bsalomon@google.com [Mon, 26 Sep 2011 15:59:20 +0000 (15:59 +0000)]
Fix override issue, rebase win hairmodes_gpu, complexclip_gpu
Mac gm bot will go red until I can remote in to mac mini and fix the baseline

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

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

12 years agoOptimize software radial gradients (remove branches from the inner loop where
tomhudson@google.com [Mon, 26 Sep 2011 15:03:55 +0000 (15:03 +0000)]
Optimize software radial gradients (remove branches from the inner loop where
we can, because an entire row is conservatively either outside or inside the
gradient.) Change the gradient benchmark to capture both cases, and add new
gm to detect errors in these optimized paths.

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

12 years agoadd baselines
reed@google.com [Mon, 26 Sep 2011 14:45:18 +0000 (14:45 +0000)]
add baselines

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

12 years agoset gamma flag for white, since GDI gives us different (better) values
reed@google.com [Mon, 26 Sep 2011 13:21:39 +0000 (13:21 +0000)]
set gamma flag for white, since GDI gives us different (better) values
for white-on-black text.

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

12 years agorebase win hairmodes_gpu
bsalomon@google.com [Fri, 23 Sep 2011 18:23:18 +0000 (18:23 +0000)]
rebase win hairmodes_gpu

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

12 years agoAdd detection of when partial pixel coverage (for aa or otherwise) will cause incorre...
bsalomon@google.com [Fri, 23 Sep 2011 17:40:07 +0000 (17:40 +0000)]
Add detection of when partial pixel coverage (for aa or otherwise) will cause incorrect blend

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

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

12 years agoRebase mac bot's complexclip_gpu
bsalomon@google.com [Fri, 23 Sep 2011 15:16:08 +0000 (15:16 +0000)]
Rebase mac bot's complexclip_gpu

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

12 years agoMake skdiff paths work on windows
bsalomon@google.com [Fri, 23 Sep 2011 14:56:37 +0000 (14:56 +0000)]
Make skdiff paths work on windows

http://codereview.appspot.com/5111041/

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

12 years agoexperimental
reed@google.com [Fri, 23 Sep 2011 14:49:49 +0000 (14:49 +0000)]
experimental

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

12 years agoFix signed/unsigned warning in GLCaps::print
bsalomon@google.com [Fri, 23 Sep 2011 14:27:29 +0000 (14:27 +0000)]
Fix signed/unsigned warning in GLCaps::print

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

12 years agoRebase complexclip_gpu on mac
bsalomon@google.com [Fri, 23 Sep 2011 14:26:03 +0000 (14:26 +0000)]
Rebase complexclip_gpu on mac

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

12 years agoRebase complexclip_gpu on linux
bsalomon@google.com [Fri, 23 Sep 2011 14:22:47 +0000 (14:22 +0000)]
Rebase complexclip_gpu on linux

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

12 years agoUse GrAAHairlineRenderer for line segments only if FS derivs not avail
bsalomon@google.com [Fri, 23 Sep 2011 14:19:58 +0000 (14:19 +0000)]
Use GrAAHairlineRenderer for line segments only if FS derivs not avail
Rebaseline complexclip_gpu for windows
Note: complexclip_gpu gm will go red on mac and linux until I update them

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

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

12 years agoAdd asserts to track down Chrome crash (bug 94421).
vandebo@chromium.org [Thu, 22 Sep 2011 21:17:00 +0000 (21:17 +0000)]
Add asserts to track down Chrome crash (bug 94421).

Original Cl from arthurhsu@chromium.org
http://codereview.appspot.com/5101041/

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

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

12 years agoPut caps in a struct, move up to GrDrawTarget
bsalomon@google.com [Thu, 22 Sep 2011 21:01:31 +0000 (21:01 +0000)]
Put caps in a struct, move up to GrDrawTarget

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

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

12 years agoremove this until brian can review the results
reed@google.com [Thu, 22 Sep 2011 14:47:29 +0000 (14:47 +0000)]
remove this until brian can review the results

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

12 years agoadd baselines
reed@google.com [Thu, 22 Sep 2011 14:44:46 +0000 (14:44 +0000)]
add baselines

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

12 years agoadd baselines
reed@google.com [Thu, 22 Sep 2011 14:38:59 +0000 (14:38 +0000)]
add baselines

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

12 years agotweak check for BW to avoid cmp
reed@google.com [Thu, 22 Sep 2011 14:33:40 +0000 (14:33 +0000)]
tweak check for BW to avoid cmp

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

12 years agoChange GrGLVersion from typedef GrFixed to uint32_t
bsalomon@google.com [Thu, 22 Sep 2011 14:31:24 +0000 (14:31 +0000)]
Change GrGLVersion from typedef GrFixed to uint32_t
Review URL: http://codereview.appspot.com/5097044

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

12 years agoCleanup handling of GL versions, fix function names
bsalomon@google.com [Thu, 22 Sep 2011 14:10:33 +0000 (14:10 +0000)]
Cleanup handling of GL versions, fix function names
Review URL: http://codereview.appspot.com/5097044/

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

12 years agoFix some warnings
bsalomon@google.com [Wed, 21 Sep 2011 21:46:03 +0000 (21:46 +0000)]
Fix some warnings

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

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

12 years agoadd tests for flatten, unflatten and transform
reed@google.com [Wed, 21 Sep 2011 19:05:12 +0000 (19:05 +0000)]
add tests for flatten, unflatten and transform

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

12 years agorebaseline with faster gradients
reed@google.com [Wed, 21 Sep 2011 18:43:19 +0000 (18:43 +0000)]
rebaseline with faster gradients

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

12 years agodetect when LCD is really just BW, and remark the glyph as that.
reed@google.com [Wed, 21 Sep 2011 18:42:09 +0000 (18:42 +0000)]
detect when LCD is really just BW, and remark the glyph as that.
allows us to take a much faster blitter.
TODO: inform SkGlyphCache of this, so it can shrink its allocation
for the image buffer (since BW takes up 1/16 as much ram)
TODO(2): allow for A8->BW conversion my having scalercontext set a flag
if it really-wants A8 (i.e. we have a maskfilter)

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

12 years agoflatten/unflatten fSegmentMask
reed@google.com [Wed, 21 Sep 2011 18:40:27 +0000 (18:40 +0000)]
flatten/unflatten fSegmentMask

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

12 years agoUse BindFragDataLocation (rather than indexed variant) for FS color output.
bsalomon@google.com [Wed, 21 Sep 2011 16:21:07 +0000 (16:21 +0000)]
Use BindFragDataLocation (rather than indexed variant) for FS color output.

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

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

12 years agorebaseline w/ faster gradients
reed@google.com [Wed, 21 Sep 2011 14:31:03 +0000 (14:31 +0000)]
rebaseline w/ faster gradients

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

12 years agoRebase raster linux GM for faster radial-mirror and sweep
bsalomon@google.com [Wed, 21 Sep 2011 14:23:32 +0000 (14:23 +0000)]
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

12 years agouse common code for treating thin lines as hairlines (much faster)
reed@google.com [Wed, 21 Sep 2011 13:50:35 +0000 (13:50 +0000)]
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

12 years agoupdate baselines with faster radial-mirror and sweep
reed@google.com [Wed, 21 Sep 2011 13:42:02 +0000 (13:42 +0000)]
update baselines with faster radial-mirror and sweep

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

12 years agospeed up radial-mirror 16x, sweep by ~2x
reed@google.com [Wed, 21 Sep 2011 13:38:36 +0000 (13:38 +0000)]
speed up radial-mirror 16x, sweep by ~2x

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

12 years agoupdate fSegmentMask inside ::transform() (thank you validate!)
reed@google.com [Wed, 21 Sep 2011 12:58:51 +0000 (12:58 +0000)]
update fSegmentMask inside ::transform() (thank you validate!)

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

12 years agoadd segment types query to SkPath (i.e. does it have any quads)
reed@google.com [Wed, 21 Sep 2011 12:29:05 +0000 (12:29 +0000)]
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

12 years agoResubmit 2289 with fix for glsl version
bsalomon@google.com [Tue, 20 Sep 2011 19:06:12 +0000 (19:06 +0000)]
Resubmit 2289 with fix for glsl version

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

12 years agoRevert 2289. GLSL version detection not robust enough. May think we don't have GLSL...
bsalomon@google.com [Tue, 20 Sep 2011 17:57:44 +0000 (17:57 +0000)]
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

12 years ago[GPU] Use new Var type for inputs/outputs of FS and VS
bsalomon@google.com [Tue, 20 Sep 2011 17:33:24 +0000 (17:33 +0000)]
[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

12 years agoadd SK_RESTRICT in shadeSpan methods
reed@google.com [Tue, 20 Sep 2011 15:56:13 +0000 (15:56 +0000)]
add SK_RESTRICT in shadeSpan methods

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

12 years agorevert match for newAlpha to exactly match old math, so we don't drive
reed@google.com [Mon, 19 Sep 2011 21:21:45 +0000 (21:21 +0000)]
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

12 years agoupdate baselines
reed@google.com [Mon, 19 Sep 2011 19:52:25 +0000 (19:52 +0000)]
update baselines

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

12 years agoAdd missing header SkTArray.h to core.gyp
bsalomon@google.com [Mon, 19 Sep 2011 19:43:36 +0000 (19:43 +0000)]
Add missing header SkTArray.h to core.gyp

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

12 years agoFix pdf suppression test for gm.
bungeman@google.com [Mon, 19 Sep 2011 19:31:04 +0000 (19:31 +0000)]
Fix pdf suppression test for gm.

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

12 years agouse new SkDrawTreatAsHairline method to decide when to approximate a thin-line
reed@google.com [Mon, 19 Sep 2011 19:18:18 +0000 (19:18 +0000)]
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

12 years agoadd getFlags() to gm baseclass
reed@google.com [Mon, 19 Sep 2011 19:08:33 +0000 (19:08 +0000)]
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

12 years agoadd gm test for drawing hairlines (and varying thin lines) in xfermodes
reed@google.com [Mon, 19 Sep 2011 19:01:38 +0000 (19:01 +0000)]
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

12 years agoInclude GrGLInterface.h instead of forward declaring, since we have to get NULL defin...
bsalomon@google.com [Fri, 16 Sep 2011 21:34:29 +0000 (21:34 +0000)]
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

12 years agoFix forward decl
bsalomon@google.com [Fri, 16 Sep 2011 21:20:24 +0000 (21:20 +0000)]
Fix forward decl

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

12 years agoMake GrGpuGL release its resources before GrGLInterface is released.
bsalomon@google.com [Fri, 16 Sep 2011 21:18:29 +0000 (21:18 +0000)]
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

12 years agoFix some mac compilation errors generated when building utils within
seanpaul@google.com [Fri, 16 Sep 2011 20:46:40 +0000 (20:46 +0000)]
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

12 years agoSimplify specification of default interface
bsalomon@google.com [Fri, 16 Sep 2011 18:51:57 +0000 (18:51 +0000)]
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

12 years agoChange AdditionalOptions to a list from a string. This fixes compilation errors
seanpaul@google.com [Fri, 16 Sep 2011 15:47:33 +0000 (15:47 +0000)]
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

12 years agoUpdate SkCoInitialize to better match spec.
bungeman@google.com [Fri, 16 Sep 2011 15:37:20 +0000 (15:37 +0000)]
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

12 years agoAdd mac filltypepersp baselines.
bsalomon@google.com [Fri, 16 Sep 2011 15:06:56 +0000 (15:06 +0000)]
Add mac filltypepersp baselines.

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

12 years agoFix assertions in GrResourceCache::removeAll, don't reattached invalidated resources
bsalomon@google.com [Thu, 15 Sep 2011 20:43:53 +0000 (20:43 +0000)]
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

12 years agoMove edgeAA shader gen code to its own function
bsalomon@google.com [Thu, 15 Sep 2011 15:12:00 +0000 (15:12 +0000)]
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

12 years agoRefactor the bench and common gyp/gypi files to allow for building bench within
seanpaul@google.com [Thu, 15 Sep 2011 14:24:33 +0000 (14:24 +0000)]
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

12 years agoenable OES derivatives extension in shaders that use it
bsalomon@google.com [Wed, 14 Sep 2011 18:05:30 +0000 (18:05 +0000)]
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

12 years agomake string's reference counting thread-safe
reed@google.com [Wed, 14 Sep 2011 16:13:58 +0000 (16:13 +0000)]
make string's reference counting thread-safe

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

12 years agoWorkaround crash in cmd buffer validation code when GL shaders/programs fail
bsalomon@google.com [Wed, 14 Sep 2011 14:29:18 +0000 (14:29 +0000)]
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

12 years agoFix compilation error related to using nonexistent sk_malloc instead of sk_malloc_thr...
bsalomon@google.com [Wed, 14 Sep 2011 14:01:31 +0000 (14:01 +0000)]
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

12 years agoGrTArray->SkTArray & docs
bsalomon@google.com [Wed, 14 Sep 2011 13:54:05 +0000 (13:54 +0000)]
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

12 years agoRemove unnecessary forward decl that was causing a warning.
bsalomon@google.com [Wed, 14 Sep 2011 12:52:28 +0000 (12:52 +0000)]
Remove unnecessary forward decl that was causing a warning.

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

12 years agoShutup strict aliasing warnings in SkTLazy
bsalomon@google.com [Wed, 14 Sep 2011 12:44:13 +0000 (12:44 +0000)]
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

12 years agoremove nonexistent files from gyps and make AdditionalOptions a list rather than str
bsalomon@google.com [Tue, 13 Sep 2011 20:57:33 +0000 (20:57 +0000)]
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

12 years agoadd filltypepersp baselines for linux
bsalomon@google.com [Tue, 13 Sep 2011 20:56:48 +0000 (20:56 +0000)]
add filltypepersp baselines for linux

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