reed@google.com [Wed, 18 May 2011 21:14:39 +0000 (21:14 +0000)]
setHinting modifies fFlags in places, so call it last (after initializing fFlags)
git-svn-id: http://skia.googlecode.com/svn/trunk@1372
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Wed, 18 May 2011 20:23:30 +0000 (20:23 +0000)]
fix PathTest for SKIA_SCALAR=fixed
http://codereview.appspot.com/4528083/
git-svn-id: http://skia.googlecode.com/svn/trunk@1371
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 18 May 2011 20:10:31 +0000 (20:10 +0000)]
show consistent timings between debug and release
git-svn-id: http://skia.googlecode.com/svn/trunk@1370
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 18 May 2011 19:02:42 +0000 (19:02 +0000)]
Fix uninit of mask var
git-svn-id: http://skia.googlecode.com/svn/trunk@1369
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 18 May 2011 19:00:53 +0000 (19:00 +0000)]
encode current LCD orientation and order into font-cache-key
git-svn-id: http://skia.googlecode.com/svn/trunk@1368
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Wed, 18 May 2011 18:54:23 +0000 (18:54 +0000)]
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
bungeman@google.com [Wed, 18 May 2011 18:37:07 +0000 (18:37 +0000)]
glFinish to complete bench before stopping stopwatch.
git-svn-id: http://skia.googlecode.com/svn/trunk@1366
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Wed, 18 May 2011 17:08:05 +0000 (17:08 +0000)]
[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
reed@google.com [Wed, 18 May 2011 15:08:10 +0000 (15:08 +0000)]
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
reed@google.com [Wed, 18 May 2011 15:07:20 +0000 (15:07 +0000)]
lockPixels before looking at them in Zoomer
git-svn-id: http://skia.googlecode.com/svn/trunk@1363
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 18 May 2011 13:07:22 +0000 (13:07 +0000)]
checkpoint for 8->5 bit reduction
git-svn-id: http://skia.googlecode.com/svn/trunk@1362
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 18 May 2011 12:17:53 +0000 (12:17 +0000)]
code style, inherit from SampleView
git-svn-id: http://skia.googlecode.com/svn/trunk@1361
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 18 May 2011 12:04:31 +0000 (12:04 +0000)]
add 'h' to tri-toggle font hinting
git-svn-id: http://skia.googlecode.com/svn/trunk@1360
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 18 May 2011 11:58:10 +0000 (11:58 +0000)]
improve gray approximation for LCD LERP
git-svn-id: http://skia.googlecode.com/svn/trunk@1359
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 17 May 2011 20:52:46 +0000 (20:52 +0000)]
add optional decolorization value for lcd text
git-svn-id: http://skia.googlecode.com/svn/trunk@1358
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 17 May 2011 20:44:54 +0000 (20:44 +0000)]
add more keys
git-svn-id: http://skia.googlecode.com/svn/trunk@1357
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 17 May 2011 20:15:30 +0000 (20:15 +0000)]
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
senorblanco@chromium.org [Tue, 17 May 2011 19:11:04 +0000 (19:11 +0000)]
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
vandebo@chromium.org [Tue, 17 May 2011 18:58:44 +0000 (18:58 +0000)]
[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
senorblanco@chromium.org [Tue, 17 May 2011 18:29:26 +0000 (18:29 +0000)]
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
bsalomon@google.com [Tue, 17 May 2011 18:02:35 +0000 (18:02 +0000)]
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
epoger@google.com [Tue, 17 May 2011 17:36:59 +0000 (17:36 +0000)]
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
junov@google.com [Tue, 17 May 2011 17:01:17 +0000 (17:01 +0000)]
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
junov@google.com [Tue, 17 May 2011 16:00:46 +0000 (16:00 +0000)]
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
reed@google.com [Tue, 17 May 2011 15:54:05 +0000 (15:54 +0000)]
remove reference to fContext
git-svn-id: http://skia.googlecode.com/svn/trunk@1348
2bbb7eff-a529-9590-31e7-
b0007b416f81
junov@google.com [Tue, 17 May 2011 15:47:10 +0000 (15:47 +0000)]
Adding a test to sampleapp for texture domain
git-svn-id: http://skia.googlecode.com/svn/trunk@1347
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 17 May 2011 15:47:04 +0000 (15:47 +0000)]
silence printf
git-svn-id: http://skia.googlecode.com/svn/trunk@1346
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 17 May 2011 15:33:45 +0000 (15:33 +0000)]
fix uninitialized var
git-svn-id: http://skia.googlecode.com/svn/trunk@1345
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 17 May 2011 15:32:04 +0000 (15:32 +0000)]
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
bungeman@google.com [Tue, 17 May 2011 14:24:46 +0000 (14:24 +0000)]
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
reed@google.com [Tue, 17 May 2011 14:04:41 +0000 (14:04 +0000)]
use hires metrics when rotated (or subpixel is requested)
git-svn-id: http://skia.googlecode.com/svn/trunk@1342
2bbb7eff-a529-9590-31e7-
b0007b416f81
mike@reedtribe.org [Tue, 17 May 2011 02:25:05 +0000 (02:25 +0000)]
add GPU config
git-svn-id: http://skia.googlecode.com/svn/trunk@1341
2bbb7eff-a529-9590-31e7-
b0007b416f81
ctguil@chromium.org [Mon, 16 May 2011 22:00:05 +0000 (22:00 +0000)]
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
bsalomon@google.com [Mon, 16 May 2011 20:56:06 +0000 (20:56 +0000)]
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
reed@google.com [Mon, 16 May 2011 19:15:16 +0000 (19:15 +0000)]
remove dead files
git-svn-id: http://skia.googlecode.com/svn/trunk@1338
2bbb7eff-a529-9590-31e7-
b0007b416f81
junov@google.com [Mon, 16 May 2011 18:32:07 +0000 (18:32 +0000)]
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
reed@google.com [Mon, 16 May 2011 18:24:19 +0000 (18:24 +0000)]
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
reed@google.com [Mon, 16 May 2011 17:21:57 +0000 (17:21 +0000)]
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
senorblanco@chromium.org [Mon, 16 May 2011 16:59:57 +0000 (16:59 +0000)]
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
reed@google.com [Mon, 16 May 2011 14:16:04 +0000 (14:16 +0000)]
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
bsalomon@google.com [Mon, 16 May 2011 13:14:03 +0000 (13:14 +0000)]
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
Scroggo [Mon, 16 May 2011 13:11:16 +0000 (13:11 +0000)]
Optimize colorfilter path when using a constant color.\nReviewed at codereview.appspot.com/4548041/
git-svn-id: http://skia.googlecode.com/svn/trunk@1328
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 16 May 2011 12:29:27 +0000 (12:29 +0000)]
clean up sign detection code in computeconvexity
git-svn-id: http://skia.googlecode.com/svn/trunk@1327
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Sun, 15 May 2011 20:25:17 +0000 (20:25 +0000)]
detect more than one loop in computeconvexity
git-svn-id: http://skia.googlecode.com/svn/trunk@1326
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Sun, 15 May 2011 04:38:34 +0000 (04:38 +0000)]
migrate more tests from GrPath.cpp
git-svn-id: http://skia.googlecode.com/svn/trunk@1325
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Sun, 15 May 2011 04:08:24 +0000 (04:08 +0000)]
add Convexity enum to SkPath
git-svn-id: http://skia.googlecode.com/svn/trunk@1324
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Fri, 13 May 2011 19:26:48 +0000 (19:26 +0000)]
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
epoger@google.com [Fri, 13 May 2011 15:15:11 +0000 (15:15 +0000)]
Another tiny comment-only change to trigger buildbot
git-svn-id: http://skia.googlecode.com/svn/trunk@1322
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Fri, 13 May 2011 15:01:59 +0000 (15:01 +0000)]
Tiny comment-only change to trigger buildbot
git-svn-id: http://skia.googlecode.com/svn/trunk@1321
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Fri, 13 May 2011 03:50:38 +0000 (03:50 +0000)]
[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
vandebo@chromium.org [Fri, 13 May 2011 03:41:29 +0000 (03:41 +0000)]
[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
reed@google.com [Thu, 12 May 2011 22:31:01 +0000 (22:31 +0000)]
update dox
git-svn-id: http://skia.googlecode.com/svn/trunk@1318
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 12 May 2011 22:08:24 +0000 (22:08 +0000)]
add 'p' to toggle on/off testing the pipe
git-svn-id: http://skia.googlecode.com/svn/trunk@1317
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 12 May 2011 20:34:19 +0000 (20:34 +0000)]
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
Scroggo [Thu, 12 May 2011 18:27:05 +0000 (18:27 +0000)]
Style fix
git-svn-id: http://skia.googlecode.com/svn/trunk@1315
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Thu, 12 May 2011 15:49:15 +0000 (15:49 +0000)]
Edge antialiasing for convex shapes in Ganesh
This patch implements edge antialiasing for convex shapes, using the fragment
shader to compare against the edge equations for each triangle. Currently, it
only works for flat shaded primitives (i.e., it was not integrated into the
"active stages" path). The skia.gyp changes cause this code to be compiled into
SampleApp, but do not enable the tesselated path by default.
Notes: the SkOSWindow_Unix.cpp change is to silence a valgrind warning about
memcpy() with overlapping regions. The GrBinHashKey change is to avoid running
a two-pass hash (GrProgramDesc is now 52 bytes or so, exceeding the 32 byte
default size).
Review URL: http://codereview.appspot.com/4519054/
git-svn-id: http://skia.googlecode.com/svn/trunk@1314
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Thu, 12 May 2011 13:50:57 +0000 (13:50 +0000)]
Fix intentional breakage in previous commit
git-svn-id: http://skia.googlecode.com/svn/trunk@1313
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Thu, 12 May 2011 13:48:24 +0000 (13:48 +0000)]
Intentional breakage to test notifications, will fix quickly
git-svn-id: http://skia.googlecode.com/svn/trunk@1312
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Thu, 12 May 2011 13:39:43 +0000 (13:39 +0000)]
Tiny comment-only change to trigger update
git-svn-id: http://skia.googlecode.com/svn/trunk@1311
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 12 May 2011 03:03:56 +0000 (03:03 +0000)]
cleanup previous array of paints
git-svn-id: http://skia.googlecode.com/svn/trunk@1310
2bbb7eff-a529-9590-31e7-
b0007b416f81
Scroggo [Wed, 11 May 2011 20:25:01 +0000 (20:25 +0000)]
Allow blending if there is a color filter.
git-svn-id: http://skia.googlecode.com/svn/trunk@1309
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 11 May 2011 19:00:54 +0000 (19:00 +0000)]
Add space between mediump and float in 2pt radial vertex uniform decl
Review URL http://codereview.appspot.com/4544041/
git-svn-id: http://skia.googlecode.com/svn/trunk@1308
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Wed, 11 May 2011 18:51:01 +0000 (18:51 +0000)]
Fix my intentional break.
git-svn-id: http://skia.googlecode.com/svn/trunk@1307
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Wed, 11 May 2011 18:46:03 +0000 (18:46 +0000)]
[PDF] Fix Chrome crash - don't assume that SkDraw.fClipStack != NULL.
Chrome bug is crbug.com/82198.
Review URL: http://codereview.appspot.com/4515061
git-svn-id: http://skia.googlecode.com/svn/trunk@1306
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Wed, 11 May 2011 18:45:12 +0000 (18:45 +0000)]
Intentionally break tests, will fix quickly.
git-svn-id: http://skia.googlecode.com/svn/trunk@1305
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Wed, 11 May 2011 18:32:30 +0000 (18:32 +0000)]
Another comment-only change to test notifications
git-svn-id: http://skia.googlecode.com/svn/trunk@1304
2bbb7eff-a529-9590-31e7-
b0007b416f81
Scroggo [Wed, 11 May 2011 18:16:56 +0000 (18:16 +0000)]
Remove a warning.
git-svn-id: http://skia.googlecode.com/svn/trunk@1303
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Wed, 11 May 2011 18:10:18 +0000 (18:10 +0000)]
Tiny comment-only change to test notifications
git-svn-id: http://skia.googlecode.com/svn/trunk@1302
2bbb7eff-a529-9590-31e7-
b0007b416f81
Scroggo [Wed, 11 May 2011 18:05:38 +0000 (18:05 +0000)]
Store 1/255 as a constant to reduce number of divides.
git-svn-id: http://skia.googlecode.com/svn/trunk@1301
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 11 May 2011 17:29:58 +0000 (17:29 +0000)]
Remove dead debug code.
Review URL: http://codereview.appspot.com/4521056/
git-svn-id: http://skia.googlecode.com/svn/trunk@1300
2bbb7eff-a529-9590-31e7-
b0007b416f81
Scroggo [Wed, 11 May 2011 17:04:25 +0000 (17:04 +0000)]
Remove unused variable.
git-svn-id: http://skia.googlecode.com/svn/trunk@1299
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 11 May 2011 16:52:59 +0000 (16:52 +0000)]
Keep program cache consistent when program creation fails.
Review URL: http://codereview.appspot.com/4523056/
git-svn-id: http://skia.googlecode.com/svn/trunk@1298
2bbb7eff-a529-9590-31e7-
b0007b416f81
Scroggo [Wed, 11 May 2011 14:05:25 +0000 (14:05 +0000)]
Add color filters to gpu path.
git-svn-id: http://skia.googlecode.com/svn/trunk@1297
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 11 May 2011 05:58:58 +0000 (05:58 +0000)]
remove some dead code in pipes
inherit from SampleView for more samples
add L key to toggle using SkGPipe
git-svn-id: http://skia.googlecode.com/svn/trunk@1296
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 11 May 2011 05:10:16 +0000 (05:10 +0000)]
add include/core to header path for release build
git-svn-id: http://skia.googlecode.com/svn/trunk@1295
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 11 May 2011 00:42:04 +0000 (00:42 +0000)]
check-point for pipe: flatten/unflatten objects for single paint
still need replacement policy
git-svn-id: http://skia.googlecode.com/svn/trunk@1294
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Tue, 10 May 2011 23:25:03 +0000 (23:25 +0000)]
[PDF] Fix ending condition for font advance construction.
The old code always ended (the last sequence of glyphs) on a range, even if there was a very long run at the end. This fixes that.
Review URL: http://codereview.appspot.com/4539045
git-svn-id: http://skia.googlecode.com/svn/trunk@1293
2bbb7eff-a529-9590-31e7-
b0007b416f81
twiz@google.com [Tue, 10 May 2011 23:10:26 +0000 (23:10 +0000)]
git-svn-id: skia.googlecode.com/svn/trunk@1292
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 10 May 2011 22:59:06 +0000 (22:59 +0000)]
add master images for macbook (which differ in the gpu variant from gm/base)
git-svn-id: http://skia.googlecode.com/svn/trunk@1291
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 10 May 2011 22:56:42 +0000 (22:56 +0000)]
fix bug where we wrote uninitialized data to the flatten stream for shaders.
Both shader and gradient_shader write matrices to the flatten stream. However, they were
just calling write(&matrix, sizeof(SkMatrix)) and the matrix can contain lazily-computed
function ptrs as part of its internal cache. Thus two matrices that are logically the
same may write different bytes.
This is a problem because picture relies on flattening objects and then using the
flatten stream as a key into its cache. This matrix-write bug effectively kills the
effectiveness of the cache for shaders.
The fix is to write proper read/write functions for matrix (and region btw). These
call through to the existing low-level flatten routines (which just write into a
memory ptr).
git-svn-id: http://skia.googlecode.com/svn/trunk@1290
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 10 May 2011 13:52:42 +0000 (13:52 +0000)]
Make GrMatrix an alias of SkMatrix. Add new methods to SkMatrix.
Review URL: http://codereview.appspot.com/4538043/
Checked in on behalf of reed@ with some additional work (remove the do-nother sk->gr matrix converter).
git-svn-id: http://skia.googlecode.com/svn/trunk@1289
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 9 May 2011 22:32:52 +0000 (22:32 +0000)]
Fixes from Sk/Gr rect unification.
git-svn-id: http://skia.googlecode.com/svn/trunk@1288
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 9 May 2011 21:59:56 +0000 (21:59 +0000)]
check for missing filename (needs to be specified when tool is launched)
git-svn-id: http://skia.googlecode.com/svn/trunk@1287
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 9 May 2011 21:59:30 +0000 (21:59 +0000)]
remove unneeded asserts (which may fail from imprecise blits into the bitmap, but
do not affect the blits at head)
git-svn-id: http://skia.googlecode.com/svn/trunk@1286
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 9 May 2011 20:47:34 +0000 (20:47 +0000)]
Fix unused var warning
git-svn-id: http://skia.googlecode.com/svn/trunk@1285
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 9 May 2011 18:53:14 +0000 (18:53 +0000)]
Fixup old VS2010 project in case anyone is using it
git-svn-id: http://skia.googlecode.com/svn/trunk@1284
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 9 May 2011 18:50:47 +0000 (18:50 +0000)]
remove deleted include file (oops)
git-svn-id: http://skia.googlecode.com/svn/trunk@1283
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 9 May 2011 18:44:52 +0000 (18:44 +0000)]
Remove previous shader generator class. No longer compiles due to elimination of separate GrStringBuilder class in favor or SkString.
git-svn-id: http://skia.googlecode.com/svn/trunk@1282
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 9 May 2011 18:39:58 +0000 (18:39 +0000)]
Make shader generator more legible. Get rid of some magic values.
Review URL: http://codereview.appspot.com/4531043/
git-svn-id: http://skia.googlecode.com/svn/trunk@1281
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Mon, 9 May 2011 18:13:47 +0000 (18:13 +0000)]
[PDF] Add a ToUnicode mapping for fonts.
This makes text in PDFs searchable and copy&paste-able.
Code from arthurhsu@chromium.org. Original review: http://codereview.appspot.com/4428082/
Review URL: http://codereview.appspot.com/4525042
git-svn-id: http://skia.googlecode.com/svn/trunk@1280
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Mon, 9 May 2011 17:36:36 +0000 (17:36 +0000)]
[PDF] (regression) Update font if size changes.
Review URL: http://codereview.appspot.com/4532044
git-svn-id: http://skia.googlecode.com/svn/trunk@1279
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Mon, 9 May 2011 17:34:19 +0000 (17:34 +0000)]
[PDF] Fix bug in graphic state comparison.
SkPDFGraphicState::GSCanonicalEntry::operator== was out of sync with SkPDFGraphicState::populateDict leading to graphic state objects with the same value.
Review URL: http://codereview.appspot.com/4516043
git-svn-id: http://skia.googlecode.com/svn/trunk@1278
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 9 May 2011 17:00:02 +0000 (17:00 +0000)]
Share code with SkRect
http://codereview.appspot.com/4523046/
git-svn-id: http://skia.googlecode.com/svn/trunk@1277
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 9 May 2011 13:37:36 +0000 (13:37 +0000)]
remove #if 0 code
git-svn-id: http://skia.googlecode.com/svn/trunk@1276
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 9 May 2011 13:28:55 +0000 (13:28 +0000)]
Suppress int/NULL comparison warning
git-svn-id: http://skia.googlecode.com/svn/trunk@1275
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Mon, 9 May 2011 08:05:01 +0000 (08:05 +0000)]
[PDF] Add support for Clear, Src, Dst, DstOver xfermodes.
This uses the refactoring in http://codereview.appspot.com/4459041/ to add support for additional xfer modes. Calling setupContentEntry may affect previous content entries (removing, reordering, or modifying their clip) and indicates to the caller if it should draw the new item or not.
Review URL: http://codereview.appspot.com/4464043
git-svn-id: http://skia.googlecode.com/svn/trunk@1271
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Mon, 9 May 2011 07:58:08 +0000 (07:58 +0000)]
[PDF] Fix setting of existing clip for layers.
The current approach of setting the existing clip just before drawing a layer into a device doesn't work. SkDevice::clear() uses existing clip before that and if we need to put the content in a transparency group (i.e. for SrcIn xfermode), we need a valid existing clip. Instead, change the factory to use a special constructor when creating a layer device.
Review URL: http://codereview.appspot.com/4495041
git-svn-id: http://skia.googlecode.com/svn/trunk@1270
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Mon, 9 May 2011 07:55:58 +0000 (07:55 +0000)]
[PDF] Refactor content stream creation in SkPDFDevice to support more xfermodes.
Instead of writing all drawing and state updates into the final content stream immediately, this change creates a new ContentEntry each time the transform, clip, or paint changes. Drawing is done into a stream in the ContentEntry. When the consumer asks for the content, we combine all the ContentEntries with appropriate updates to the state (clip, transform, paint) in between. This allows us to modify the clip even after a drawing has completed. It also lets us remove ContentEntries with no drawing. Further optimization can be done to better use the stack features of PDF, for now we follow the previous model of having a single clip followed by a single transform on the graphic state stack.
Push rectangle logic into SkPDFUtil::AppendRectangle.
Change private functions to adhere to coding standards.
Review URL: http://codereview.appspot.com/4459041
git-svn-id: http://skia.googlecode.com/svn/trunk@1269
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 6 May 2011 19:26:26 +0000 (19:26 +0000)]
use SkPoint, creating an alias for GrPoint
http://codereview.appspot.com/4498041/
git-svn-id: http://skia.googlecode.com/svn/trunk@1268
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 6 May 2011 17:30:45 +0000 (17:30 +0000)]
share macros and types with SkScalar, but keep aliases for now, to avoid editing
call sites.
git-svn-id: http://skia.googlecode.com/svn/trunk@1267
2bbb7eff-a529-9590-31e7-
b0007b416f81