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
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
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
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
bsalomon@google.com
27c9b6d276
Add operator = to GrPaint
...
Review URL: http://codereview.appspot.com/4997045/
git-svn-id: http://skia.googlecode.com/svn/trunk@2248 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-12 14:30:27 +00:00
bsalomon@google.com
4f83be8f86
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@2247 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-12 13:52:51 +00:00
bsalomon@google.com
383963280d
[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@2246 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-09 19:32:04 +00:00
bsalomon@google.com
181e9bd948
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@2239 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-07 18:42:30 +00:00
bsalomon@google.com
46a2a1ee46
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@2232 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-06 22:10:52 +00:00
bsalomon@google.com
6defc04c30
Fix bitrot in GrGLDefaultInterface_android.cpp
...
Review URL: http://codereview.appspot.com/4960056/
git-svn-id: http://skia.googlecode.com/svn/trunk@2231 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-06 21:04:36 +00:00
bsalomon@google.com
dca4aabd89
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@2223 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-06 19:05:24 +00:00
bsalomon@google.com
7d4679a2e1
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@2215 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-02 22:06:24 +00:00
bsalomon@google.com
973b879dfd
Remove unneeded #define
...
Review URL: http://codereview.appspot.com/4973053/
git-svn-id: http://skia.googlecode.com/svn/trunk@2213 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-02 17:28:06 +00:00
bsalomon@google.com
e174ea4bb1
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@2209 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-01 15:34:14 +00:00
bsalomon@google.com
56bfc5acc2
Add optional per-gl-func client callback.
...
Review URL: http://codereview.appspot.com/4964055/
git-svn-id: http://skia.googlecode.com/svn/trunk@2207 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-09-01 13:28:16 +00:00
bsalomon@google.com
87fcfe0654
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@2205 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-31 13:41:51 +00:00
bsalomon@google.com
9b09c9e91c
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@2204 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-31 13:33:40 +00:00
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