Commit Graph

2308 Commits

Author SHA1 Message Date
bsalomon@google.com
74913722bf Add NULL GL context implementation. Use in bench (-nullgl) and SampleApp (backspace key)
Review URL: http://codereview.appspot.com/5303080/


git-svn-id: http://skia.googlecode.com/svn/trunk@2545 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-27 20:44:19 +00:00
tomhudson@google.com
9381363050 Extract GrDrawTarget::DrState into independent GrDrawState struct.
This is intended to be a first step towards making the stack of states
maintained by GrDrawTarget cheaper to maintain.



git-svn-id: http://skia.googlecode.com/svn/trunk@2544 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-27 20:21:16 +00:00
bsalomon@google.com
13788bfbed Fix leak, reset not called in ~GrTAllocator
Review URL: http://codereview.appspot.com/5328047/


git-svn-id: http://skia.googlecode.com/svn/trunk@2543 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-27 17:17:44 +00:00
reed@google.com
c904191995 now we trim the aaclip after building it, to ensure that it has tight bounds
around its (rle compressed) image.



git-svn-id: http://skia.googlecode.com/svn/trunk@2542 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-27 16:58:46 +00:00
tomhudson@google.com
83a444602e Remove warnings (trailing \, signed vs unsigned, parenthesization).
Convert some tabs into spaces.



git-svn-id: http://skia.googlecode.com/svn/trunk@2541 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-27 15:27:51 +00:00
tomhudson@google.com
71dd3e0359 New benchmark for blitRect based on call frequency observed while scrolling
Gmail inside Chrome. Is a bit slow...



git-svn-id: http://skia.googlecode.com/svn/trunk@2540 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-27 13:27:20 +00:00
bsalomon@google.com
289533ada6 Don't use GrDrawTarget's AA state bit to convey whether to do custom-aa
Review URL: http://codereview.appspot.com/5314061/



git-svn-id: http://skia.googlecode.com/svn/trunk@2539 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-27 12:34:25 +00:00
senorblanco@chromium.org
1e7281675d Fix cmdline argument passing in SampleApp/Mac.
When SampleApp was ported to Cocoa, it lost the ability to pass a test
name on the command line.  Fix it.

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



git-svn-id: http://skia.googlecode.com/svn/trunk@2538 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-26 21:00:37 +00:00
reed@google.com
d8676d2fd2 add test for rgn-ops. some disable for now as they don't work (yet)
git-svn-id: http://skia.googlecode.com/svn/trunk@2537 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-26 18:01:25 +00:00
reed@google.com
91d449ebf8 add header to document debug-vs-release, fixed-vs-float
git-svn-id: http://skia.googlecode.com/svn/trunk@2536 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-26 15:25:18 +00:00
reed@google.com
12e1525306 fix new test to work in fixed-point
git-svn-id: http://skia.googlecode.com/svn/trunk@2535 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-26 15:19:36 +00:00
reed@google.com
209c41511e add initial unittests for aaclip. Fix case where BuilderBlitter skipped the top
few scanlines (of its bounds) and therefore didn't know to trim its bounds back
down. This can happen when the path's bounds are larger than the curve's bounds
(i.e. the control points are outside of the tight-bounds of the shape.)



git-svn-id: http://skia.googlecode.com/svn/trunk@2534 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-26 15:03:48 +00:00
reed@google.com
67cdbf5c63 remove unhelpful pixel cache in blitV
git-svn-id: http://skia.googlecode.com/svn/trunk@2533 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-25 20:47:10 +00:00
tomhudson@google.com
2a2e3ef5b8 Move helper functions out of header file, write new genProgram helpers.
Review: codereview.appspot.com/5304045/



git-svn-id: http://skia.googlecode.com/svn/trunk@2532 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-25 19:51:09 +00:00
reed@google.com
c32c999455 rebaseline after Color32 fix
git-svn-id: http://skia.googlecode.com/svn/trunk@2531 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-25 19:44:21 +00:00
reed@google.com
f2f2b1b37f rebaselines for Color32 earlier fix
git-svn-id: http://skia.googlecode.com/svn/trunk@2530 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-25 19:31:22 +00:00
reed@google.com
e3a83ec4e5 check-point for convex scan-converter (disabled for now)
git-svn-id: http://skia.googlecode.com/svn/trunk@2529 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-25 19:27:43 +00:00
caryclark@google.com
0dbb31168d Don't use LCD on grayscale devices.
http://codereview.appspot.com/5281041

M    src/ports/SkFontHost_mac_coretext.cpp



git-svn-id: http://skia.googlecode.com/svn/trunk@2528 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-25 19:10:45 +00:00
reed@google.com
c909a1ecad don't blend with zero in colorproc (forgot to return after memcpy check).
git-svn-id: http://skia.googlecode.com/svn/trunk@2527 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-25 19:07:23 +00:00
reed@google.com
2a6f8abf35 remember our convexity when we're transformed (when not perspective)
git-svn-id: http://skia.googlecode.com/svn/trunk@2526 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-25 18:41:23 +00:00
caryclark@google.com
d23ae9d924 fix Leopard glyph bounds
M    src/ports/SkFontHost_mac_coretext.cpp



git-svn-id: http://skia.googlecode.com/svn/trunk@2525 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-25 16:18:44 +00:00
bsalomon@google.com
beccb1eb84 get proc addresses of gl funcs not declared in gl SDK headers on mac
Review URL: http://codereview.appspot.com/5297057/



git-svn-id: http://skia.googlecode.com/svn/trunk@2524 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-25 15:00:44 +00:00
caryclark@google.com
dce0d1146b add support for local fonts
http://codereview.appspot.com/5295052/

M    src/ports/SkFontHost_mac_coretext.cpp



git-svn-id: http://skia.googlecode.com/svn/trunk@2523 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-25 13:43:54 +00:00
bungeman@google.com
90d812b77a Remove duplicate GetFontStyle from SkFontHost_win.
http://codereview.appspot.com/5306058/


git-svn-id: http://skia.googlecode.com/svn/trunk@2522 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-24 21:25:01 +00:00
bsalomon@google.com
57f5d9854b Recommit r2510 now that mac build bot issue has been fixed.
git-svn-id: http://skia.googlecode.com/svn/trunk@2521 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-24 21:17:53 +00:00
bsalomon@google.com
820e80ad63 Fix some warnings on VS2010
Review URL: http://codereview.appspot.com/5312051/



git-svn-id: http://skia.googlecode.com/svn/trunk@2520 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-24 21:09:40 +00:00
epoger@google.com
45dd1fa3cf Whitespace change to trigger buildbot and make sure the mac buildbot still
succeeds, even though the Mac build slave is now connected to a fake
"VGA dongle" rather than an actual monitor.

git-svn-id: http://skia.googlecode.com/svn/trunk@2519 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-24 19:21:05 +00:00
epoger@google.com
d9acea2589 Update gm baselines to work when the bot is plugged into the big screen
(as opposed to headless, as it has been running for a while)

I forced LCD font smoothing on for the machine by running this command:
defaults -currentHost write -globalDomain AppleFontSmoothing -int 2

git-svn-id: http://skia.googlecode.com/svn/trunk@2518 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-24 18:27:56 +00:00
epoger@google.com
c0da07c85b Whitespace change to trigger buildbot
git-svn-id: http://skia.googlecode.com/svn/trunk@2517 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-24 14:26:17 +00:00
reed@google.com
67ba5fa328 fix scalar=fixed by implementing SkRegion form of AntiFillRect
git-svn-id: http://skia.googlecode.com/svn/trunk@2516 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-24 12:56:20 +00:00
reed@google.com
045e62d715 enable soft clipping (yikes)
git-svn-id: http://skia.googlecode.com/svn/trunk@2515 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-24 12:19:46 +00:00
reed@google.com
5a0920c22c don't mention the neon functions if no neon is available
git-svn-id: http://skia.googlecode.com/svn/trunk@2514 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-21 14:05:33 +00:00
reed@google.com
f0f617a502 add SkRect::intersect(a, b), matching what was already available in SkIRect
git-svn-id: http://skia.googlecode.com/svn/trunk@2513 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-21 14:05:06 +00:00
bungeman@google.com
cb6c2f4667 Just use ExtTextOutW for glyphs.
http://codereview.appspot.com/5308047/


git-svn-id: http://skia.googlecode.com/svn/trunk@2512 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-20 22:23:38 +00:00
bsalomon@google.com
d92780b558 Temporary revert of r2510. The test that it introduced fails on the Mac build bots. I suspect there is something wrong with the Mac bot machine's GL that is preventing context creation from succeeding. The OpenGL Driver monitor on the machine only shows a software rasterizer. aglChoosePixelFormat seems to fail regardless of input. It may just need a reboot. I'll investigate it more on Monday.
git-svn-id: http://skia.googlecode.com/svn/trunk@2511 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-20 21:54:46 +00:00
bsalomon@google.com
d47fafe057 Add test that validates GrGLInterfaces
Review URL: http://codereview.appspot.com/5304048/



git-svn-id: http://skia.googlecode.com/svn/trunk@2510 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-20 21:09:45 +00:00
bsalomon@google.com
ffa11bbbed Move a bunch of headers from include/gpu to src/gpu. Delete some unused files.
Review URL: http://codereview.appspot.com/5304047/



git-svn-id: http://skia.googlecode.com/svn/trunk@2506 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-20 13:43:13 +00:00
bsalomon@google.com
e173992c23 Fix macro call for getting fn ptr to EXT version of glGetQueryObjectui64v on windows.
git-svn-id: http://skia.googlecode.com/svn/trunk@2505 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-20 13:26:21 +00:00
reed@google.com
d40da64fcd add typefacecache to be purged in SkGraphics::Term()
git-svn-id: http://skia.googlecode.com/svn/trunk@2504 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-20 13:18:37 +00:00
bungeman@google.com
c961442926 Fix wall clock in bench system timer on Windows.
git-svn-id: http://skia.googlecode.com/svn/trunk@2503 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-19 22:10:21 +00:00
bsalomon@google.com
f97c194df7 GrGLInterface fixes wrt r2499
git-svn-id: http://skia.googlecode.com/svn/trunk@2502 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-19 21:35:26 +00:00
bsalomon@google.com
ba3664285b Pass NULL to BenchTimer cons when gl context creation failed.
git-svn-id: http://skia.googlecode.com/svn/trunk@2501 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-19 21:02:27 +00:00
bsalomon@google.com
788e247484 Fix benchmain to build w/ scalar=fixed
git-svn-id: http://skia.googlecode.com/svn/trunk@2500 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-19 20:56:30 +00:00
bsalomon@google.com
373a6635b7 Virtualize SkGLContext with subclasses SkNativeGLContext and SkMesaGLContext, allow both in gm
Review URL: http://codereview.appspot.com/5307045/



git-svn-id: http://skia.googlecode.com/svn/trunk@2499 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-19 20:43:20 +00:00
tomhudson@google.com
5960d00495 Extract six functions from GrGLProgram::genStageCode() to shorten it by
~170 LOC.



git-svn-id: http://skia.googlecode.com/svn/trunk@2498 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-19 20:21:48 +00:00
reed@google.com
de916c8ac8 add SK_API to our malloc functions
git-svn-id: http://skia.googlecode.com/svn/trunk@2497 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-19 19:50:48 +00:00
bsalomon@google.com
b5b5eaff47 Ensure all vertex attributes (except zero that we always use) are disabled after a resetContext.
Review URL: http://codereview.appspot.com/5309043/


git-svn-id: http://skia.googlecode.com/svn/trunk@2494 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-19 13:25:46 +00:00
reed@google.com
7a17e3a34f oops, init fSize to 0 before calling resize
git-svn-id: http://skia.googlecode.com/svn/trunk@2493 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-18 18:58:06 +00:00
reed@google.com
1c401d8f42 add OnShrink options to SkAutoMalloc
git-svn-id: http://skia.googlecode.com/svn/trunk@2492 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-18 18:52:03 +00:00
reed@google.com
3ab4195445 remove unused optional param to SkAutoMalloc
git-svn-id: http://skia.googlecode.com/svn/trunk@2491 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-10-18 18:32:46 +00:00