Commit Graph

334 Commits

Author SHA1 Message Date
bsalomon@google.com
fcb0dbc0ab Fix GrAAHairLinePathRenderer fixed pt build
git-svn-id: http://skia.googlecode.com/svn/trunk@2199 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-30 18:35:18 +00:00
bsalomon@google.com
aeb2160b1d Add GrAAHairLinePathRenderer
Review URL: http://codereview.appspot.com/4926045



git-svn-id: http://skia.googlecode.com/svn/trunk@2196 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-30 18:13:44 +00:00
bsalomon@google.com
dec9f2d351 Fix multi-line macro by adding line continuation.
git-svn-id: http://skia.googlecode.com/svn/trunk@2195 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-30 18:05:17 +00:00
yangsu@google.com
69f2e05b58 Updated iOS SampleApp and the simple hello world Skia Cocoa App under experimental
git-svn-id: http://skia.googlecode.com/svn/trunk@2194 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-30 17:08:08 +00:00
tomhudson@google.com
dd5f7442f6 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@2191 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-30 15:13:55 +00:00
senorblanco@chromium.org
7ccf460bb5 [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@2188 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-29 21:45:23 +00:00
bsalomon@google.com
ab3dee5c8a 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@2183 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-29 15:18:41 +00:00
epoger@google.com
17b7894609 rolling back the experimental rollbacks in r2178-2179
git-svn-id: http://skia.googlecode.com/svn/trunk@2180 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-26 14:40:38 +00:00
epoger@google.com
5f226572b3 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@2179 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-26 14:27:59 +00:00
tomhudson@google.com
fa510413c1 Experimental revert of 2170 to see if the buildbot issues are somehow related.
git-svn-id: http://skia.googlecode.com/svn/trunk@2178 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-26 13:19:39 +00:00
bsalomon@google.com
3a9eaeccb0 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@2175 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-25 21:12:57 +00:00
tomhudson@google.com
513909f9a2 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@2171 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-25 15:50:54 +00:00
tomhudson@google.com
32992605aa Remove compiler warnings (gcc on Linux).
codereview.appspot.com/4922052/



git-svn-id: http://skia.googlecode.com/svn/trunk@2170 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-25 15:37:03 +00:00
bsalomon@google.com
1f221a7021 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@2164 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-23 20:54:07 +00:00
bsalomon@google.com
471d471dcd 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@2162 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-23 15:45:25 +00:00
bsalomon@google.com
8214587a79 Exit early from 0 prim draws in GrDrawTarget
Review URL: http://codereview.appspot.com/4929045/



git-svn-id: http://skia.googlecode.com/svn/trunk@2159 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-23 14:32:40 +00:00
bsalomon@google.com
e9a98942b4 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@2147 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-22 17:06:16 +00:00
bsalomon@google.com
971d0c8049 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@2144 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-19 17:22:05 +00:00
bsalomon@google.com
3008519e9f Use a prioritized list of path renderers in Gr.
http://codereview.appspot.com/4867058



git-svn-id: http://skia.googlecode.com/svn/trunk@2143 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-19 15:42:31 +00:00
bsalomon@google.com
b095140596 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@2142 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-19 15:37:34 +00:00
bsalomon@google.com
c287a89fdd 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@2141 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-19 14:49:36 +00:00
bsalomon@google.com
0b77d6892b 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@2140 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-19 13:28:54 +00:00
bsalomon@google.com
0a17bec93c Fix build break in r2136
TBR=junov@chromium.org



git-svn-id: http://skia.googlecode.com/svn/trunk@2137 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-18 20:23:09 +00:00
junov@google.com
f7c00f6be1 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@2136 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-18 18:15:16 +00:00
bsalomon@google.com
583a1e3850 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@2129 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-17 13:42:46 +00:00
vandebo@chromium.org
b4f4c02eff 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@2127 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-16 23:20:31 +00:00
bsalomon@google.com
8b4a64d318 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@2125 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-16 20:38:11 +00:00
bsalomon@google.com
498776ad9f Remove GrContext::drawCustomVertices
Review URL: http://codereview.appspot.com/4910042/



git-svn-id: http://skia.googlecode.com/svn/trunk@2124 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-16 19:20:44 +00:00
bsalomon@google.com
a8e686eb6c 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@2121 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-16 15:45:58 +00:00
bsalomon@google.com
4d3aaafd90 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@2119 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-16 15:09:46 +00:00
bsalomon@google.com
eefe6f1eef 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@2084 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-09 17:57:12 +00:00
bsalomon@google.com
8ccadddfa7 Increase default cache size
Review URL: http://codereview.appspot.com/4810087/


git-svn-id: http://skia.googlecode.com/svn/trunk@2083 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-09 16:49:03 +00:00
bsalomon@google.com
a44f7003e5 Fix some ref leaks
Review URL: http://codereview.appspot.com/4837068/



git-svn-id: http://skia.googlecode.com/svn/trunk@2082 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-09 15:30:41 +00:00
bsalomon@google.com
d4777d9294 Remove unnecessary header include.
git-svn-id: http://skia.googlecode.com/svn/trunk@2080 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-09 14:15:20 +00:00
bsalomon@google.com
f6ff4951f7 Fix sb/rt size computation
Review URL: http://codereview.appspot.com/4809087/



git-svn-id: http://skia.googlecode.com/svn/trunk@2079 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-09 13:32:14 +00:00
bsalomon@google.com
ab15d618ae fix bug in r2077
git-svn-id: http://skia.googlecode.com/svn/trunk@2078 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-09 12:57:56 +00:00
bsalomon@google.com
9c6e3af89f Suppress uninit warning.
git-svn-id: http://skia.googlecode.com/svn/trunk@2077 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-09 12:55:53 +00:00
bsalomon@google.com
558a75bcb3 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@2061 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-08 17:01:14 +00:00
bsalomon@google.com
0168afc719 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@2057 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-08 13:21:05 +00:00
bsalomon@google.com
6513cd06ae 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@2053 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-05 20:12:30 +00:00
bsalomon@google.com
82866fd5a7 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@2052 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-05 16:27:32 +00:00
bsalomon@google.com
edc177df61 Fixes for iOS / Ganesh (consistent fs/vs uni precision decl and don't use stencil-only fbo for clear)
Review URL: http://codereview.appspot.com/4850043/


git-svn-id: http://skia.googlecode.com/svn/trunk@2050 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-05 15:46:40 +00:00
bsalomon@google.com
c7e6d08fd2 Fix dumb copy/paste error
git-svn-id: http://skia.googlecode.com/svn/trunk@2049 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-05 15:38:49 +00:00
bsalomon@google.com
a5a1da81d0 Handle recursive call into GrResourceCache::purgeAsNeeded
Review URL: http://codereview.appspot.com/4850042/



git-svn-id: http://skia.googlecode.com/svn/trunk@2046 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-05 14:02:41 +00:00
bsalomon@google.com
81c3f8de1c Add GrStencilBuffer as a separate resource type from render target
This is a resubmission of the changes in r2026 with fixes for FBO completeness issues.

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


git-svn-id: http://skia.googlecode.com/svn/trunk@2035 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-03 15:18:33 +00:00
bsalomon@google.com
c49d66b04e Add glReadBuffer to GrGLInterface.
Review URL: http://codereview.appspot.com/4841048/





git-svn-id: http://skia.googlecode.com/svn/trunk@2034 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-03 14:22:30 +00:00
bsalomon@google.com
d32c5f564e Add glDrawBuffer(s) to GrGLInterface
Review URL: http://codereview.appspot.com/4841046/



git-svn-id: http://skia.googlecode.com/svn/trunk@2032 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-02 19:29:03 +00:00
bsalomon@google.com
4737082f79 Correct check against GR_USE_PLATFORM_CREATE_SAMPLE_COUNT
Review URL: http://codereview.appspot.com/4830053/


git-svn-id: http://skia.googlecode.com/svn/trunk@2028 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-02 15:29:38 +00:00
bsalomon@google.com
4043ae2061 Revert r2026 due to bot failures
git-svn-id: http://skia.googlecode.com/svn/trunk@2027 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-02 14:19:11 +00:00
bsalomon@google.com
a16d6506bd Create a separate GrStencilBuffer class apart from GrRenderTarget.
Review URL: http://codereview.appspot.com/4837046/



git-svn-id: http://skia.googlecode.com/svn/trunk@2026 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-02 14:07:52 +00:00