bungeman@google.com
2ed67e83c8
Fix tests with incorrect swizzle.
...
http://codereview.appspot.com/4552046/
git-svn-id: http://skia.googlecode.com/svn/trunk@1367 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-18 18:54:23 +00:00
bungeman@google.com
d1a416a97c
glFinish to complete bench before stopping stopwatch.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1366 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-18 18:37:07 +00:00
vandebo@chromium.org
6cc26da383
[PDF] Fix PDF primitives test for fixed scalars.
...
110999 is out of range for SkFixed (+/- 32767)
BUG=269
Review URL: http://codereview.appspot.com/4530051
git-svn-id: http://skia.googlecode.com/svn/trunk@1365 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-18 17:08:05 +00:00
reed@google.com
6271117d82
support BW glyphs, instead of always forcing them to AA
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1364 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-18 15:08:10 +00:00
reed@google.com
b36334d46a
lockPixels before looking at them in Zoomer
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1363 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-18 15:07:20 +00:00
reed@google.com
79b3b7e916
checkpoint for 8->5 bit reduction
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1362 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-18 13:07:22 +00:00
reed@google.com
9e39bb3603
code style, inherit from SampleView
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1361 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-18 12:17:53 +00:00
reed@google.com
09e3baaaf5
add 'h' to tri-toggle font hinting
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1360 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-18 12:04:31 +00:00
reed@google.com
bde3c8ed97
improve gray approximation for LCD LERP
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1359 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-18 11:58:10 +00:00
reed@google.com
c518134fa2
add optional decolorization value for lcd text
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1358 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-17 20:52:46 +00:00
reed@google.com
1fbb30051a
add more keys
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1357 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-17 20:44:54 +00:00
bsalomon@google.com
26c2d0a69e
Use coverage stages for supersample AA resolve, edgeAA, and glyph masks. Expose a mask stage through GrPaint
...
Review URL: http://codereview.appspot.com/4548048/
git-svn-id: http://skia.googlecode.com/svn/trunk@1356 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-17 20:15:30 +00:00
senorblanco@chromium.org
db2566bf96
Set fEdgesUni to kUseUniform when we need to upload it. Fix for bug introduced
...
in r1339 where the tesselated path renderer would render nothing.
Review URL: http://codereview.appspot.com/4550050/
git-svn-id: http://skia.googlecode.com/svn/trunk@1355 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-17 19:11:04 +00:00
vandebo@chromium.org
ff3903202e
[PDF] Improve path effect and drawPath(prePathMatrix) support.
...
Add path effect handling for drawPoints (via drawPath).
Move path effect handling from drawRect to drawPath.
Add prePathMatrix support to drawPath.
BUG=crbug.com/82849
Review URL: http://codereview.appspot.com/4531047
git-svn-id: http://skia.googlecode.com/svn/trunk@1354 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-17 18:58:44 +00:00
senorblanco@chromium.org
5793a1ff40
Pass forceClose "true" to SkPath::Iter constructor in
...
GrPathUtils::worstCasePointCount(). worstCasePointCount() is sometimes
returning a lower value than the number of points subsequently generated by
the path renderers. This is because it constructs the SkPath::Iter with
forceClose set to "false", while the path renderers use one with forceClose
set to "true". They should both be the same, and since we're filling paths, I
think it should be set "true".
Review URL: http://codereview.appspot.com/4552047/
git-svn-id: http://skia.googlecode.com/svn/trunk@1353 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-17 18:29:26 +00:00
bsalomon@google.com
bb7f076c0c
Fix enums in code path that uses uncached GrRenderTargets behind SkGpuDevices
...
Review URL: http://codereview.appspot.com/4535081/
git-svn-id: http://skia.googlecode.com/svn/trunk@1352 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-17 18:02:35 +00:00
epoger@google.com
2047f00e46
get tests closer to passing for SKIA_SCALAR=fixed
...
http://codereview.appspot.com/4532064/
git-svn-id: http://skia.googlecode.com/svn/trunk@1351 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-17 17:36:59 +00:00
junov@google.com
d31cbc4650
Removing remnants of GrGLEffect.
...
Bug: http://code.google.com/p/skia/issues/detail?id=264
Code review: http://codereview.appspot.com/4517073/
git-svn-id: http://skia.googlecode.com/svn/trunk@1350 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-17 17:01:17 +00:00
junov@google.com
8af476a7dc
Fixed typo in skia.gyp
...
-This line, and those below, will be ignored--
M gyp/skia.gyp
git-svn-id: http://skia.googlecode.com/svn/trunk@1349 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-17 16:00:46 +00:00
reed@google.com
08270cbdc4
remove reference to fContext
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1348 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-17 15:54:05 +00:00
junov@google.com
869d6d9f4d
Adding a test to sampleapp for texture domain
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1347 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-17 15:47:10 +00:00
reed@google.com
6fb8f77abb
silence printf
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1346 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-17 15:47:04 +00:00
reed@google.com
66f22fd07a
fix uninitialized var
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1345 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-17 15:33:45 +00:00
reed@google.com
176753aa6d
add 'n' to tri-toggle bitmap-filter (LERP) on/off/neutral
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1344 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-17 15:32:04 +00:00
bungeman@google.com
16bab87a78
Add GL context creation for X so that gm can run GPU on Linux.
...
http://codereview.appspot.com/4548047/
git-svn-id: http://skia.googlecode.com/svn/trunk@1343 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-17 14:24:46 +00:00
reed@google.com
1dd17a133f
use hires metrics when rotated (or subpixel is requested)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1342 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-17 14:04:41 +00:00
mike@reedtribe.org
a9015f897c
add GPU config
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1341 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-17 02:25:05 +00:00
ctguil@chromium.org
f4c2622a1a
Use SkSetFourByteTag in SkFontHost_win.cpp.
...
Review URL: http://codereview.appspot.com/4535075
git-svn-id: http://skia.googlecode.com/svn/trunk@1340 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-16 22:00:05 +00:00
bsalomon@google.com
f2d91557b2
separate coverage stages from color stages.
...
Review URL: http://codereview.appspot.com/4538064/
git-svn-id: http://skia.googlecode.com/svn/trunk@1339 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-16 20:56:06 +00:00
reed@google.com
852fa0fafa
remove dead files
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1338 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-16 19:15:16 +00:00
junov@google.com
6acc9b3d2b
Fixed color bleeding issue when drawing a sub region of a bitmap with filtering enabled.
...
Problem was resolved by adding the notion of a custom texture domain in generated shaders, when necessary.
git-svn-id: http://skia.googlecode.com/svn/trunk@1337 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-16 18:32:07 +00:00
reed@google.com
4b4fb3a52c
fully expand the initialization for rect (android compiler didn't like {0})
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1336 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-16 18:24:19 +00:00
reed@google.com
07f3ee10d3
use SkPath for GrPath, removing GrPathIter entirely
...
http://codereview.appspot.com/4515071/
git-svn-id: http://skia.googlecode.com/svn/trunk@1335 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-16 17:21:57 +00:00
senorblanco@chromium.org
ff174b3947
Fix winding order check for negative scale in tesselated path rendering. The
...
isCCW() code in GrTesselatedPathRenderer was using untransformed vertices,
which fails for transforms with negative scale. Doing the check after
transformation fixes it. This was causing some missing geometry in the
PolyToPoly and Shapes tests in SampleApp.
Review URL: http://codereview.appspot.com/4545049/
git-svn-id: http://skia.googlecode.com/svn/trunk@1334 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-16 16:59:57 +00:00
reed@google.com
b54455e440
Change getConvexity() to now compute it if the value is set to kUnkown.
...
Change behavior for degenerate paths: now those return kConvex instead of kUnknown
git-svn-id: http://skia.googlecode.com/svn/trunk@1330 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-16 14:16:04 +00:00
bsalomon@google.com
27a4dc4c36
Upload matrix as gl float rather than gr scalar (fixes a build break when scalar==fixed)
...
Review URL: http://codereview.appspot.com/4516051/
git-svn-id: http://skia.googlecode.com/svn/trunk@1329 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-16 13:14:03 +00:00
Scroggo
d757df2b1b
Optimize colorfilter path when using a constant color.\nReviewed at http://codereview.appspot.com/4548041/
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1328 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-16 13:11:16 +00:00
reed@google.com
0b7b982607
clean up sign detection code in computeconvexity
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1327 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-16 12:29:27 +00:00
reed@google.com
85b6e399d5
detect more than one loop in computeconvexity
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1326 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-15 20:25:17 +00:00
reed@google.com
7c42481c9d
migrate more tests from GrPath.cpp
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1325 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-15 04:38:34 +00:00
reed@google.com
04863fa14a
add Convexity enum to SkPath
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1324 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-15 04:08:24 +00:00
epoger@google.com
a8fd79d407
make tests return nonzero if failing
...
http://codereview.appspot.com/4545042/
git-svn-id: http://skia.googlecode.com/svn/trunk@1323 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-13 19:26:48 +00:00
epoger@google.com
6e7a7b3b1d
Another tiny comment-only change to trigger buildbot
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1322 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-13 15:15:11 +00:00
epoger@google.com
4b8117db70
Tiny comment-only change to trigger buildbot
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1321 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-13 15:01:59 +00:00
vandebo@chromium.org
6112c215fb
[PDF] Add support for SrcIn, SrcOut, DstIn, DstOut xfermodes.
...
This change uses the soft mask (aka soft clip) functionality of PDF to implement the xfermodes. It has to put existing content (dst) into a form xobject as well as putting the new (src) content into a different form xobject. It then draws one of them with the other as the soft mask.
To accomplish this, we add a call to finishContentEntry after each call to setUpContentEntry - this is kind of a hack, but I don't see a better way to extract src.
Unfortunately, soft mask is specified in the Graphic State PDF object (and not in the form xobject), so when handling one of these modes, we add a one time GS object to set the soft mask and invoke a simple GS to reset the soft mask when done.
Review URL: http://codereview.appspot.com/4496041
git-svn-id: http://skia.googlecode.com/svn/trunk@1320 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-13 03:50:38 +00:00
vandebo@chromium.org
d604481f7a
[PDF] Fix windows SkFontHost::OpenStream for TTC fonts.
...
Review URL: http://codereview.appspot.com/4515074
git-svn-id: http://skia.googlecode.com/svn/trunk@1319 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-13 03:41:29 +00:00
reed@google.com
af8edcc477
update dox
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1318 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-12 22:31:01 +00:00
reed@google.com
a6ff4dc22d
add 'p' to toggle on/off testing the pipe
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1317 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-12 22:08:24 +00:00
bsalomon@google.com
12ad3aa49b
Disable blend for edge AA not general AA
...
Review URL: http://codereview.appspot.com/4526051/
git-svn-id: http://skia.googlecode.com/svn/trunk@1316 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-12 20:34:19 +00:00
Scroggo
5d7574099b
Style fix
...
git-svn-id: http://skia.googlecode.com/svn/trunk@1315 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-05-12 18:27:05 +00:00