reed@google.com
30db599c1d
add new test for complex clips
...
temp disable picture testing until I fix the bug w/ expanding clips
git-svn-id: http://skia.googlecode.com/svn/trunk@2184 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-29 17:41:02 +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
5b86a379e9
whitespace change to trigger buildbots
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2182 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-29 13:55:11 +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
epoger@google.com
93a791d5de
whitespace change to trigger buildbots
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2177 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-25 22:50:55 +00:00
epoger@google.com
fa3ab3bd9d
whitespace change to trigger buildbots
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2176 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-25 21:52:10 +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
epoger@google.com
fafe599284
whitespace change to trigger buildbots
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2174 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-25 20:18:33 +00:00
tomhudson@google.com
3f088e3651
Move multiple calls to random() out of parameter lists so that the
...
evaluation order is consistent across compilers.
git-svn-id: http://skia.googlecode.com/svn/trunk@2173 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-25 19:56:04 +00:00
twiz@google.com
8185f33b38
Export SkPDFDevice::setDrawingArea as SK_API.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2172 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-25 19:27:20 +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
reed@google.com
2e68478d86
move SkComputeAxisAlignmentForHText(const SkMatrix& matrix) out of inline,
...
since that isn't really necessary, and it is generating a warning/error for
some builds ('defined but not used')
git-svn-id: http://skia.googlecode.com/svn/trunk@2169 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-24 15:38:46 +00:00
reed@google.com
b6ddf7a082
add more samples
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2168 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-24 13:14:47 +00:00
bsalomon@google.com
9dfb7577c4
Skip test GLPrograms test when GL or Gr context can't be created.
...
TBR: http://codereview.appspot.com/4946041/
git-svn-id: http://skia.googlecode.com/svn/trunk@2167 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-24 03:29:11 +00:00
reed@google.com
fcac6725e0
rebaseline now that subpixel position is respected
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2166 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-23 21:34:51 +00:00
reed@google.com
cb6ccdde51
respect subpixel positioning
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2165 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-23 21:30:47 +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
bungeman@google.com
9a87cee904
Clean up PDF code for text decoration change.
...
http://codereview.appspot.com/4939044/
git-svn-id: http://skia.googlecode.com/svn/trunk@2163 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-23 17:02:18 +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
reed@google.com
00245c94cd
test subpixeltext
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2161 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-23 15:30:44 +00:00
bsalomon@google.com
647a804c3d
Core skia changes to prepare for Gr AA Hairline renderer
...
Review URL: http://codereview.appspot.com/4940045/
git-svn-id: http://skia.googlecode.com/svn/trunk@2160 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-23 14:39:01 +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
bungeman@google.com
52c748b169
Gpu can draw underlined text.
...
http://codereview.appspot.com/4919047/
git-svn-id: http://skia.googlecode.com/svn/trunk@2154 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-22 21:30:43 +00:00
reed@google.com
cf598b176d
refactor utility code to create a mask (any format) from the path, for those
...
cases when we need to do that instead of the scalercontext subclass (e.g.
stroking, patheffects, etc.)
This also now keeps the LCD formats, rather than forcing those down to grayscale.
This also respects subpixel position when it requests the path from the subclass.
Note it is still up to the subclass to notice that, and potentially adjust their
hinting to respect subpixelness (e.g. hinting in Y but not X for horizontal text)
git-svn-id: http://skia.googlecode.com/svn/trunk@2153 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-22 21:13:23 +00:00
reed@google.com
ddc75dc216
Allow the y-baseline to float except when text is horizontal, as we were already
...
doing for the gpu case. Note: drawPosText was already behaving this way, this
change just brings drawText into line with drawPosText.
git-svn-id: http://skia.googlecode.com/svn/trunk@2152 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-22 20:09:13 +00:00
epoger@google.com
6b66c398f9
Fix gm/bitmapscroll.cpp to actually draw in both Debug and Release modes.
...
Review URL: http://codereview.appspot.com/4922047
git-svn-id: http://skia.googlecode.com/svn/trunk@2151 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-22 18:14:07 +00:00
epoger@google.com
2a151fe02b
Remove bitmapscroll baseline images--they were drawn incorrectly.
...
Review URL: http://codereview.appspot.com/4924044
git-svn-id: http://skia.googlecode.com/svn/trunk@2150 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-22 18:03:14 +00:00
bsalomon@google.com
d361e7eaa6
silence end of file LF warning on chrome's mac builds
...
Review URL: http://codereview.appspot.com/4921042/
git-svn-id: http://skia.googlecode.com/svn/trunk@2149 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-22 17:32:24 +00:00
reed@google.com
ffd999fd91
add initial versions
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2148 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-22 17:30:46 +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
ctguil@chromium.org
769fa6a013
No effect cleanup in pdf code.
...
Review URL: http://codereview.appspot.com/4927042
git-svn-id: http://skia.googlecode.com/svn/trunk@2146 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-20 00:36:18 +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
098660020c
Use gcc intrinsic functions for atomic incr and decr
...
Review URL: http://codereview.appspot.com/4894055/
git-svn-id: http://skia.googlecode.com/svn/trunk@2138 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-18 20:31:35 +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
vandebo@chromium.org
37ad8fb72f
[PDF] Subset font advance data (W array).
...
Patch by arthurhsu@chromium.org . Original CL:
http://codereview.appspot.com/4830068
http://codereview.appspot.com/4905051/
Review URL: http://codereview.appspot.com/4911042
git-svn-id: http://skia.googlecode.com/svn/trunk@2134 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-18 02:38:50 +00:00
epoger@google.com
37c472007e
whitespace change to trigger buildbots
...
git-svn-id: http://skia.googlecode.com/svn/trunk@2133 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-17 17:51:03 +00:00
bungeman@google.com
e25c68402b
Canvas to handle null layer device.
...
http://codereview.appspot.com/4907045/
See also http://code.google.com/p/chromium/issues/detail?id=93000 .
git-svn-id: http://skia.googlecode.com/svn/trunk@2130 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-17 14:53:54 +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
7b13aca86f
Revert "Improve generation of glyph advance array." This reverts commit r2126
...
gm segfaults in font id retrieval.
TBR=arthurhsu@chromium.org
Review URL: http://codereview.appspot.com/4901049
git-svn-id: http://skia.googlecode.com/svn/trunk@2128 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-16 23:30:48 +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
vandebo@chromium.org
e7f3300f42
Improve generation of glyph advance array.
...
Review URL: http://codereview.appspot.com/4830068
git-svn-id: http://skia.googlecode.com/svn/trunk@2126 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-08-16 22:45:43 +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