external/skia/gpu.git
2 years agoSet SDK for Mac build to 10.6, ignore gyp/build, fixup gpu files to compile against... master git-svn
bsalomon@google.com [Wed, 12 Oct 2011 18:12:11 +0000 (18:12 +0000)]
Set SDK for Mac build to 10.6, ignore gyp/build, fixup gpu files to compile against 10.5 if needed

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

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

2 years agoGpu blend optimizations, handle more xfer modes with fractional pixel coverage
bsalomon@google.com [Wed, 12 Oct 2011 14:54:26 +0000 (14:54 +0000)]
Gpu blend optimizations, handle more xfer modes with fractional pixel coverage

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

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

2 years agoFix per-vertex coverage on Macs with aligned attrib bug
bsalomon@google.com [Tue, 11 Oct 2011 20:15:26 +0000 (20:15 +0000)]
Fix per-vertex coverage on Macs with aligned attrib bug

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

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

2 years agoAdd semicolon back that was accidentally deleted in r2444
bsalomon@google.com [Mon, 10 Oct 2011 15:27:20 +0000 (15:27 +0000)]
Add semicolon back that was accidentally deleted in r2444

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

2 years agoMake a bunch of GrPrintfs be debug-only
bsalomon@google.com [Mon, 10 Oct 2011 15:17:58 +0000 (15:17 +0000)]
Make a bunch of GrPrintfs be debug-only

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

2 years agoWhen we're not using the NULL buffer data hint update with glBufferData rather than...
bsalomon@google.com [Mon, 10 Oct 2011 14:49:29 +0000 (14:49 +0000)]
When we're not using the NULL buffer data hint update with glBufferData rather than glBufferSubData.

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

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

2 years agoAdd per-vertex coverage field, use in AA rects when alpha tweak is not valid, add...
bsalomon@google.com [Mon, 10 Oct 2011 14:08:47 +0000 (14:08 +0000)]
Add per-vertex coverage field, use in AA rects when alpha tweak is not valid, add relevant sample/gm

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

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

2 years agoAdd newlines to debug error strings
bsalomon@google.com [Fri, 7 Oct 2011 19:55:03 +0000 (19:55 +0000)]
Add newlines to debug error strings

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

2 years agoDirectly assign glBindTexture in windows gl interface rather than wglGetProcAddress...
bsalomon@google.com [Fri, 7 Oct 2011 17:01:32 +0000 (17:01 +0000)]
Directly assign glBindTexture in windows gl interface rather than wglGetProcAddress since it is a GL 1.1 function and isn't exported as a ptr in the ATI driver.

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

2 years agoFixup rendering of empty paths (including inverted fills)
bsalomon@google.com [Wed, 5 Oct 2011 19:57:55 +0000 (19:57 +0000)]
Fixup rendering of empty paths (including inverted fills)
Add GM and Sample that draw empty paths with various styles and fills

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

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

2 years agofix calculation and assert for grmask -> bytes-per-pixel
reed@google.com [Tue, 4 Oct 2011 20:14:57 +0000 (20:14 +0000)]
fix calculation and assert for grmask -> bytes-per-pixel

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

2 years agoFix nits
bsalomon@google.com [Mon, 3 Oct 2011 13:17:22 +0000 (13:17 +0000)]
Fix nits

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

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

3 years agoFix some VS2010 warnings
bsalomon@google.com [Thu, 29 Sep 2011 18:08:18 +0000 (18:08 +0000)]
Fix some VS2010 warnings
Review URL: http://codereview.appspot.com/5155043

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

3 years agoFix GLPrograms unit test, only set fExperimentalGS if driver support is
bsalomon@google.com [Thu, 29 Sep 2011 15:05:48 +0000 (15:05 +0000)]
Fix GLPrograms unit test, only set fExperimentalGS if driver support is
available

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

3 years agoAdd license
bsalomon@google.com [Thu, 29 Sep 2011 14:58:28 +0000 (14:58 +0000)]
Add license

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

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

3 years agoAdd experimental geometry shader code to gpu backend
bsalomon@google.com [Thu, 29 Sep 2011 14:40:26 +0000 (14:40 +0000)]
Add experimental geometry shader code to gpu backend

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

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

3 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/gpu@2356 2bbb7eff-a529-9590-31e7-b0007b416f81

3 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/gpu@2355 2bbb7eff-a529-9590-31e7-b0007b416f81

3 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/gpu@2347 2bbb7eff-a529-9590-31e7-b0007b416f81

3 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/gpu@2342 2bbb7eff-a529-9590-31e7-b0007b416f81

3 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/gpu@2328 2bbb7eff-a529-9590-31e7-b0007b416f81

3 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/gpu@2323 2bbb7eff-a529-9590-31e7-b0007b416f81

3 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/gpu@2319 2bbb7eff-a529-9590-31e7-b0007b416f81

3 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/gpu@2316 2bbb7eff-a529-9590-31e7-b0007b416f81

3 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/gpu@2314 2bbb7eff-a529-9590-31e7-b0007b416f81

3 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/gpu@2309 2bbb7eff-a529-9590-31e7-b0007b416f81

3 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/gpu@2308 2bbb7eff-a529-9590-31e7-b0007b416f81

3 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/gpu@2304 2bbb7eff-a529-9590-31e7-b0007b416f81

3 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/gpu@2299 2bbb7eff-a529-9590-31e7-b0007b416f81

3 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/gpu@2291 2bbb7eff-a529-9590-31e7-b0007b416f81

3 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/gpu@2290 2bbb7eff-a529-9590-31e7-b0007b416f81

3 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/gpu@2289 2bbb7eff-a529-9590-31e7-b0007b416f81

3 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/gpu@2280 2bbb7eff-a529-9590-31e7-b0007b416f81

3 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/gpu@2279 2bbb7eff-a529-9590-31e7-b0007b416f81

3 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/gpu@2278 2bbb7eff-a529-9590-31e7-b0007b416f81

3 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/gpu@2277 2bbb7eff-a529-9590-31e7-b0007b416f81

3 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/gpu@2276 2bbb7eff-a529-9590-31e7-b0007b416f81

3 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/gpu@2272 2bbb7eff-a529-9590-31e7-b0007b416f81

3 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/gpu@2271 2bbb7eff-a529-9590-31e7-b0007b416f81

3 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/gpu@2269 2bbb7eff-a529-9590-31e7-b0007b416f81

3 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/gpu@2267 2bbb7eff-a529-9590-31e7-b0007b416f81

3 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/gpu@2265 2bbb7eff-a529-9590-31e7-b0007b416f81

3 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/gpu@2264 2bbb7eff-a529-9590-31e7-b0007b416f81

3 years agoUse push_back_n() in place of multiple push_back()s
bsalomon@google.com [Tue, 13 Sep 2011 18:49:13 +0000 (18:49 +0000)]
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/gpu@2260 2bbb7eff-a529-9590-31e7-b0007b416f81

3 years agoFix some issues in gpu device with perspective. Add a gm that would have caught them.
bsalomon@google.com [Tue, 13 Sep 2011 15:27:18 +0000 (15:27 +0000)]
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/gpu@2256 2bbb7eff-a529-9590-31e7-b0007b416f81

3 years agoAdd perspective support to the gpu aa hairline renderer.
bsalomon@google.com [Mon, 12 Sep 2011 14:59:34 +0000 (14:59 +0000)]
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/gpu@2249 2bbb7eff-a529-9590-31e7-b0007b416f81

3 years agoAdd operator = to GrPaint
bsalomon@google.com [Mon, 12 Sep 2011 14:30:27 +0000 (14:30 +0000)]
Add operator = to GrPaint

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

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

3 years agoFix GrContext::drawPaint with perspective, also never apply AA
bsalomon@google.com [Mon, 12 Sep 2011 13:52:51 +0000 (13:52 +0000)]
Fix GrContext::drawPaint with perspective, also never apply AA

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

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

3 years ago[gpu] Remove getMaxStretch for perspective, use mapRadius for perspective path subdiv...
bsalomon@google.com [Fri, 9 Sep 2011 19:32:04 +0000 (19:32 +0000)]
[gpu] Remove getMaxStretch for perspective, use mapRadius for perspective path subdiv tol, add test

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

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

3 years agoImprove gpu path subdiv with perspective, remove tolerance scale, fix comment
bsalomon@google.com [Wed, 7 Sep 2011 18:42:30 +0000 (18:42 +0000)]
Improve gpu path subdiv with perspective, remove tolerance scale, fix comment

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

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

3 years agoMake gpu hairline check for degenerate quad more robust
bsalomon@google.com [Tue, 6 Sep 2011 22:10:52 +0000 (22:10 +0000)]
Make gpu hairline check for degenerate quad more robust

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

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

3 years agoFix bitrot in GrGLDefaultInterface_android.cpp
bsalomon@google.com [Tue, 6 Sep 2011 21:04:36 +0000 (21:04 +0000)]
Fix bitrot in GrGLDefaultInterface_android.cpp

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

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

3 years agoMake GL calls go through macro (and therefore trigger callback function if present)
bsalomon@google.com [Tue, 6 Sep 2011 19:05:24 +0000 (19:05 +0000)]
Make GL calls go through macro (and therefore trigger callback function if present)

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

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

3 years agoRename existing nonpreserving reallocs to reset, add reset to SkAutoMalloc, use reset...
bsalomon@google.com [Fri, 2 Sep 2011 22:06:24 +0000 (22:06 +0000)]
Rename existing nonpreserving reallocs to reset, add reset to SkAutoMalloc, use reset in GrBufferAllocPool

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

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

3 years agoRemove unneeded #define
bsalomon@google.com [Fri, 2 Sep 2011 17:28:06 +0000 (17:28 +0000)]
Remove unneeded #define

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

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

3 years agoFix some warnings when including some Skia headers in Chromium code under VS2008.
bsalomon@google.com [Thu, 1 Sep 2011 15:34:14 +0000 (15:34 +0000)]
Fix some warnings when including some Skia headers in Chromium code under VS2008.

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

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

3 years agoAdd optional per-gl-func client callback.
bsalomon@google.com [Thu, 1 Sep 2011 13:28:16 +0000 (13:28 +0000)]
Add optional per-gl-func client callback.
Review URL: http://codereview.appspot.com/4964055/

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

3 years agoCompile option to perform GL logging by default debug.
bsalomon@google.com [Wed, 31 Aug 2011 13:41:51 +0000 (13:41 +0000)]
Compile option to perform GL logging by default debug.

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

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

3 years agoAbort AA rect path when index buffer allocation fails
bsalomon@google.com [Wed, 31 Aug 2011 13:33:40 +0000 (13:33 +0000)]
Abort AA rect path when index buffer allocation fails

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

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

3 years agoFix GrAAHairLinePathRenderer fixed pt build
bsalomon@google.com [Tue, 30 Aug 2011 18:35:18 +0000 (18:35 +0000)]
Fix GrAAHairLinePathRenderer fixed pt build

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

3 years agoAdd GrAAHairLinePathRenderer
bsalomon@google.com [Tue, 30 Aug 2011 18:13:44 +0000 (18:13 +0000)]
Add GrAAHairLinePathRenderer

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

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

3 years agoFix multi-line macro by adding line continuation.
bsalomon@google.com [Tue, 30 Aug 2011 18:05:17 +0000 (18:05 +0000)]
Fix multi-line macro by adding line continuation.

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

3 years agoUpdated iOS SampleApp and the simple hello world Skia Cocoa App under experimental
yangsu@google.com [Tue, 30 Aug 2011 17:08:08 +0000 (17:08 +0000)]
Updated iOS SampleApp and the simple hello world Skia Cocoa App under experimental

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

3 years agoAdd SkMatrix::getPerspectiveTypeMaskOnly() and SkMatrix::isTriviallyIdentity().
tomhudson@google.com [Tue, 30 Aug 2011 15:13:55 +0000 (15:13 +0000)]
Add SkMatrix::getPerspectiveTypeMaskOnly() and SkMatrix::isTriviallyIdentity().
Reduces profile time in setConcat() and computeTypeMask() for demos that
do a lot of matrix concatenation.

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

3 years ago[committed on behalf of dmaclach@chromium.org.]
senorblanco@chromium.org [Mon, 29 Aug 2011 21:45:23 +0000 (21:45 +0000)]
[committed on behalf of dmaclach@chromium.org.]

Add newline at end of file to get rid of warnings compiling Chromium on
the Mac.  Chromium build wants newline at end of files.

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

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

3 years agoFix GPU assumption that clipstack begins with intersect or replace.
bsalomon@google.com [Mon, 29 Aug 2011 15:18:41 +0000 (15:18 +0000)]
Fix GPU assumption that clipstack begins with intersect or replace.

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

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

3 years agorolling back the experimental rollbacks in r2178-2179
epoger@google.com [Fri, 26 Aug 2011 14:40:38 +0000 (14:40 +0000)]
rolling back the experimental rollbacks in r2178-2179

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

3 years agorolling tree back to its state as of r2169 to see if that fixes Windows buildbots
epoger@google.com [Fri, 26 Aug 2011 14:27:59 +0000 (14:27 +0000)]
rolling tree back to its state as of r2169 to see if that fixes Windows buildbots

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

3 years agoExperimental revert of 2170 to see if the buildbot issues are somehow related.
tomhudson@google.com [Fri, 26 Aug 2011 13:19:39 +0000 (13:19 +0000)]
Experimental revert of 2170 to see if the buildbot issues are somehow related.

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

3 years agoDon't intersect clipstack with root device bounds
bsalomon@google.com [Thu, 25 Aug 2011 21:12:57 +0000 (21:12 +0000)]
Don't intersect clipstack with root device bounds

Review URL: Don't intersect clipstack with root device bounds

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

3 years agoRemove compiler warnings (Linux clang, mostly).
tomhudson@google.com [Thu, 25 Aug 2011 15:50:54 +0000 (15:50 +0000)]
Remove compiler warnings (Linux clang, mostly).
Fix indentation.
Remove unnecessary virtual destructor.
codereview.appspot.com/4965043/

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

3 years agoRemove compiler warnings (gcc on Linux).
tomhudson@google.com [Thu, 25 Aug 2011 15:37:03 +0000 (15:37 +0000)]
Remove compiler warnings (gcc on Linux).
codereview.appspot.com/4922052/

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

3 years agoMore prep work in Gr for landing AA hairline renderer.
bsalomon@google.com [Tue, 23 Aug 2011 20:54:07 +0000 (20:54 +0000)]
More prep work in Gr for landing AA hairline renderer.

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

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

3 years agoCorrectly determine whether HW AA lines can be used
bsalomon@google.com [Tue, 23 Aug 2011 15:45:25 +0000 (15:45 +0000)]
Correctly determine whether HW AA lines can be used
Review URL: http://codereview.appspot.com/4937049/

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

3 years agoExit early from 0 prim draws in GrDrawTarget
bsalomon@google.com [Tue, 23 Aug 2011 14:32:40 +0000 (14:32 +0000)]
Exit early from 0 prim draws in GrDrawTarget

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

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

3 years agoFix GrResourceCache::removeAll when one resource holds a lock on another
bsalomon@google.com [Mon, 22 Aug 2011 17:06:16 +0000 (17:06 +0000)]
Fix GrResourceCache::removeAll when one resource holds a lock on another

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

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

3 years agoGet rid of createRenderTargetFrom3DAPIState and associated glGets necessary to suppor...
bsalomon@google.com [Fri, 19 Aug 2011 17:22:05 +0000 (17:22 +0000)]
Get rid of createRenderTargetFrom3DAPIState and associated glGets necessary to support it.

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

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

3 years agoUse a prioritized list of path renderers in Gr.
bsalomon@google.com [Fri, 19 Aug 2011 15:42:31 +0000 (15:42 +0000)]
Use a prioritized list of path renderers in Gr.

http://codereview.appspot.com/4867058

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

3 years agoChange GrSafeUnref / GrSafeRef from static inlines to #defines. Chrome buid is chokin...
bsalomon@google.com [Fri, 19 Aug 2011 15:37:34 +0000 (15:37 +0000)]
Change GrSafeUnref / GrSafeRef from static inlines to #defines. Chrome buid is choking on defined but not use warnings.

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

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

3 years agoInclude GrRenderTarget.h in GrContext.h to unblock skia roll due to WK dependency...
bsalomon@google.com [Fri, 19 Aug 2011 14:49:36 +0000 (14:49 +0000)]
Include GrRenderTarget.h in GrContext.h to unblock skia roll due to WK dependency on this include

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

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

3 years agoMake GrGLInterface a per-GrContext refcounted object rather than a global
bsalomon@google.com [Fri, 19 Aug 2011 13:28:54 +0000 (13:28 +0000)]
Make GrGLInterface a per-GrContext refcounted object rather than a global

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

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

3 years agoFix build break in r2136
bsalomon@google.com [Thu, 18 Aug 2011 20:23:09 +0000 (20:23 +0000)]
Fix build break in r2136

TBR=junov@chromium.org

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

3 years agoClening up GrBinHashKey. Removing unnecessary streaming capability
junov@google.com [Thu, 18 Aug 2011 18:15:16 +0000 (18:15 +0000)]
Clening up GrBinHashKey. Removing unnecessary streaming capability

BUG=http://code.google.com/p/skia/issues/detail?id=278
REVIEW=http://codereview.appspot.com/4910045/

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

3 years agoFixed r2125. Identical change but also moves GrTesselatedPathRenderer.h to src dir.
bsalomon@google.com [Wed, 17 Aug 2011 13:42:46 +0000 (13:42 +0000)]
Fixed r2125. Identical change but also moves GrTesselatedPathRenderer.h to src dir.

Verbal SGTM from Tom who reviewed the original version at: http://codereview.appspot.com/4894050/

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

3 years agoRevert "Make GrDrawTarget.h and GrPathRenderer.h be private headers"
vandebo@chromium.org [Tue, 16 Aug 2011 23:20:31 +0000 (23:20 +0000)]
Revert "Make GrDrawTarget.h and GrPathRenderer.h be private headers"

This reverts commit r2125

Looks like GrPathRenderer.h is used from gpu/include/GrTesselatedPathRenderer.h

There also seems to be a dependency tracking problem, because r2125 didn't go red, but the next revision did.

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

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

3 years agoMake GrDrawTarget.h and GrPathRenderer.h be private headers
bsalomon@google.com [Tue, 16 Aug 2011 20:38:11 +0000 (20:38 +0000)]
Make GrDrawTarget.h and GrPathRenderer.h be private headers

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

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

3 years agoRemove GrContext::drawCustomVertices
bsalomon@google.com [Tue, 16 Aug 2011 19:20:44 +0000 (19:20 +0000)]
Remove GrContext::drawCustomVertices

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

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

3 years agoMake program unit test run clean and add it to tests program
bsalomon@google.com [Tue, 16 Aug 2011 15:45:58 +0000 (15:45 +0000)]
Make program unit test run clean and add it to tests program

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

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

3 years agoMove some gpu headers out of the public include dir
bsalomon@google.com [Tue, 16 Aug 2011 15:09:46 +0000 (15:09 +0000)]
Move some gpu headers out of the public include dir
Review URL: http://codereview.appspot.com/4902045/

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

3 years agoFix crash in GrStencilBuffer when it tries to unlock itself but has lost its GrGpu...
bsalomon@google.com [Tue, 9 Aug 2011 17:57:12 +0000 (17:57 +0000)]
Fix crash in GrStencilBuffer when it tries to unlock itself but has lost its GrGpu ptr.

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

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

3 years agoIncrease default cache size
bsalomon@google.com [Tue, 9 Aug 2011 16:49:03 +0000 (16:49 +0000)]
Increase default cache size
Review URL: http://codereview.appspot.com/4810087/

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

3 years agoFix some ref leaks
bsalomon@google.com [Tue, 9 Aug 2011 15:30:41 +0000 (15:30 +0000)]
Fix some ref leaks

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

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

3 years agoRemove unnecessary header include.
bsalomon@google.com [Tue, 9 Aug 2011 14:15:20 +0000 (14:15 +0000)]
Remove unnecessary header include.

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

3 years agoFix sb/rt size computation
bsalomon@google.com [Tue, 9 Aug 2011 13:32:14 +0000 (13:32 +0000)]
Fix sb/rt size computation

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

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

3 years agofix bug in r2077
bsalomon@google.com [Tue, 9 Aug 2011 12:57:56 +0000 (12:57 +0000)]
fix bug in r2077

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

3 years agoSuppress uninit warning.
bsalomon@google.com [Tue, 9 Aug 2011 12:55:53 +0000 (12:55 +0000)]
Suppress uninit warning.

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

3 years agoUse a single stencil buffer for a given width,height,samplecount
bsalomon@google.com [Mon, 8 Aug 2011 17:01:14 +0000 (17:01 +0000)]
Use a single stencil buffer for a given width,height,samplecount

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

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

3 years agoMake RT & TEX base classes aware of NPOT/min-RT bloated size
bsalomon@google.com [Mon, 8 Aug 2011 13:21:05 +0000 (13:21 +0000)]
Make RT & TEX base classes aware of NPOT/min-RT bloated size

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

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

3 years agoFail draws when can't get geom into vb/ib.
bsalomon@google.com [Fri, 5 Aug 2011 20:12:30 +0000 (20:12 +0000)]
Fail draws when can't get geom into vb/ib.

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

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

3 years agoFail path rendering gracefully when vb/ib space alloc fails
bsalomon@google.com [Fri, 5 Aug 2011 16:27:32 +0000 (16:27 +0000)]
Fail path rendering gracefully when vb/ib space alloc fails

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

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