vandebo@chromium.org [Tue, 24 May 2011 17:19:38 +0000 (17:19 +0000)]
[PDF] Add helper class to manage ContentEntry set up and completion.
This stack object helper class calls finishContentEntry when it goes out of scope, maintains the current content entry, and manages the dst form xobject when it is needed. This can be made cleaner by moving the guts of SkPDFDevice into a core object, which can expose setUp/finishContentEntry as public, but that is left as a todo.
Review URL: http://codereview.appspot.com/
4515126
git-svn-id: http://skia.googlecode.com/svn/trunk@1409
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Tue, 24 May 2011 17:07:01 +0000 (17:07 +0000)]
Rebase GM tool for SKIA_SCALAR=fixed
http://codereview.appspot.com/
4559041
git-svn-id: http://skia.googlecode.com/svn/trunk@1408
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Tue, 24 May 2011 16:39:05 +0000 (16:39 +0000)]
[PDF] Add clip support and some optimizations for "complex" xfer modes.
For Clear, Src, Dst/Src-In/Out, we have to consider the current clip, and
potentially draw Dst, clipped to the inverse of the current clip before
doing the operation of interest.
For clear or src, if we haven't drawn anything, or the clip is empty, there's
nothing to be done.
For Src/Dst-In/Out, if either is empty, the result is empty.
Review URL: http://codereview.appspot.com/
4538082
git-svn-id: http://skia.googlecode.com/svn/trunk@1407
2bbb7eff-a529-9590-31e7-
b0007b416f81
junov@google.com [Tue, 24 May 2011 15:13:01 +0000 (15:13 +0000)]
Fixes performance for texture domain uniform upload
Code review: http://codereview.appspot.com/
4536073/
bug: http://code.google.com/p/skia/issues/detail?id=275
git-svn-id: http://skia.googlecode.com/svn/trunk@1406
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Tue, 24 May 2011 14:51:57 +0000 (14:51 +0000)]
Warn when an SkScalar is passed into SkIntToScalar() (converted twice)
http://codereview.appspot.com/
4548051/
git-svn-id: http://skia.googlecode.com/svn/trunk@1405
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 24 May 2011 13:50:21 +0000 (13:50 +0000)]
return the bytes read, not the total provided
git-svn-id: http://skia.googlecode.com/svn/trunk@1404
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 24 May 2011 12:14:28 +0000 (12:14 +0000)]
add copyright notices
git-svn-id: http://skia.googlecode.com/svn/trunk@1403
2bbb7eff-a529-9590-31e7-
b0007b416f81
thakis@chromium.org [Tue, 24 May 2011 05:42:55 +0000 (05:42 +0000)]
Fix a new clang warning:
third_party/skia/src/ports/SkFontHost_FreeType.cpp:957:7:error: switch case is
in protected scope
default:
^
third_party/skia/src/ports/SkFontHost_FreeType.cpp:918:17: note: jump bypasses
variable initialization
FT_BBox bbox;
^
third_party/skia/src/ports/SkFontHost_FreeType.cpp:946:7:error: switch case is
in protected scope
case FT_GLYPH_FORMAT_BITMAP:
^
third_party/skia/src/ports/SkFontHost_FreeType.cpp:918:17: note: jump bypasses
variable initialization
FT_BBox bbox;
^
2 errors generated.
This is arguably a false positive, but since |bbox| can only safely be used in
the first case branch, it's a good idea to scope it to there anyway. This is
the only instance this warning occurs in all of chrome.
Review URL: http://codereview.appspot.com/
4532081/
git-svn-id: http://skia.googlecode.com/svn/trunk@1402
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 23 May 2011 21:09:13 +0000 (21:09 +0000)]
call notify after we write the kDone verb
git-svn-id: http://skia.googlecode.com/svn/trunk@1401
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 23 May 2011 13:54:24 +0000 (13:54 +0000)]
add optoinal bytesRead argument (output) to playback()
git-svn-id: http://skia.googlecode.com/svn/trunk@1400
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 23 May 2011 12:44:44 +0000 (12:44 +0000)]
fix warnings
git-svn-id: http://skia.googlecode.com/svn/trunk@1399
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 23 May 2011 12:28:48 +0000 (12:28 +0000)]
pass correct size to read(buffer, ...) tests
git-svn-id: http://skia.googlecode.com/svn/trunk@1398
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 23 May 2011 12:21:05 +0000 (12:21 +0000)]
add cross-process option to gpipe
add unittests for reader32 and writer32
git-svn-id: http://skia.googlecode.com/svn/trunk@1397
2bbb7eff-a529-9590-31e7-
b0007b416f81
ctguil@chromium.org [Fri, 20 May 2011 22:16:08 +0000 (22:16 +0000)]
Expose SkComposeShader as SK_API.
This is used by the ChromeOS build of Chrome.
Review URL: http://codereview.appspot.com/
4548054
git-svn-id: http://skia.googlecode.com/svn/trunk@1396
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Fri, 20 May 2011 19:19:09 +0000 (19:19 +0000)]
Fix unnitialized memory in Sk2DPathEffect. The SkDescriptor checksum
calculation for Sk2DPathEffect currently evaluates all the bytes in the
embedded SkMatrix. This includes the type mask, which contains some
uninitialized padding. Changing it to use SkMatrix::flatten() and
SkMatrix::unflatten() (as SkGroupShape was doing) avoids the uninitialized
data errors.
Review URL: http://codereview.appspot.com/
4529074/
git-svn-id: http://skia.googlecode.com/svn/trunk@1395
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Fri, 20 May 2011 19:11:50 +0000 (19:11 +0000)]
Fixed point no longer crashes when GL enabled in gm tests.
http://codereview.appspot.com/
4532073/
git-svn-id: http://skia.googlecode.com/svn/trunk@1394
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Fri, 20 May 2011 19:06:10 +0000 (19:06 +0000)]
Clean up some valgrind errors in SkTransparentShader. Valgrind complains
about overlapping memcpy(). In fact, it seems that src and dest are the same,
so we should be able to skip the copy in this case.
Review URL: http://codereview.appspot.com/
4535085/
git-svn-id: http://skia.googlecode.com/svn/trunk@1393
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 20 May 2011 18:50:54 +0000 (18:50 +0000)]
Tag GrPrintf with GR_API so that it is exposed to users of a Skia DLL
Review URL: http://codereview.appspot.com/
4530059/
git-svn-id: http://skia.googlecode.com/svn/trunk@1392
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Fri, 20 May 2011 17:35:46 +0000 (17:35 +0000)]
tiny document-only change
git-svn-id: http://skia.googlecode.com/svn/trunk@1391
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 20 May 2011 14:13:56 +0000 (14:13 +0000)]
Add dual source blending support for proper blending with coverage.
Review URL: http://codereview.appspot.com/
4535088/
git-svn-id: http://skia.googlecode.com/svn/trunk@1390
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Fri, 20 May 2011 14:05:03 +0000 (14:05 +0000)]
Fix gm tests for fixed point.
git-svn-id: http://skia.googlecode.com/svn/trunk@1389
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Thu, 19 May 2011 21:29:25 +0000 (21:29 +0000)]
Fix clipping in StrokeRectGM test for fixed point.
git-svn-id: http://skia.googlecode.com/svn/trunk@1388
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 19 May 2011 21:22:39 +0000 (21:22 +0000)]
Remove createPlatformRenderTarget, undeprecate createRenderTargetFrom3DAPIState
Review URL: http://codereview.appspot.com/
4552053/
git-svn-id: http://skia.googlecode.com/svn/trunk@1387
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Thu, 19 May 2011 19:58:58 +0000 (19:58 +0000)]
The plain Makefile was using -Wall, but the gyp build wasn't. This CL turns on
-Wall -Wextra and -Wno-unused in common.gypi. This revealed a lot of warnings
(and some actual bugs), all of which I fixed here. This is pretty mindless
stuff for the most part (order of intialization, missing initializers, && within
||, etc), but will allow us to build cleanly with -Wall and -Wextra (and
-Werror, if we so choose).
I put defaults into switches that were missing cases. I could put in the actual
missing enums instead if that's desired. I could also assert on missing enums
instead of break, if that's desired. I wasn't sure how to test the stuff in
"animator", so that should be looked at a bit more closely.
Review URL: http://codereview.appspot.com/
4547055/
git-svn-id: http://skia.googlecode.com/svn/trunk@1386
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Thu, 19 May 2011 19:02:20 +0000 (19:02 +0000)]
Add build for unix to gyp.
git-svn-id: http://skia.googlecode.com/svn/trunk@1385
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Thu, 19 May 2011 18:33:33 +0000 (18:33 +0000)]
Plug a leak in SampleShaderTest.
Review URL: http://codereview.appspot.com/
4517086/
git-svn-id: http://skia.googlecode.com/svn/trunk@1384
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Thu, 19 May 2011 18:04:48 +0000 (18:04 +0000)]
Add unix and mesa GL files to gyp.
http://codereview.appspot.com/
4545055/
git-svn-id: http://skia.googlecode.com/svn/trunk@1383
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Thu, 19 May 2011 17:47:02 +0000 (17:47 +0000)]
Add Mesa as a GL backend.
http://codereview.appspot.com/
4545055/
git-svn-id: http://skia.googlecode.com/svn/trunk@1382
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Thu, 19 May 2011 17:36:21 +0000 (17:36 +0000)]
fix assertion failure in Skia_Linux_Fixed_Debug build
http://codereview.appspot.com/
4556043/
git-svn-id: http://skia.googlecode.com/svn/trunk@1381
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Thu, 19 May 2011 17:11:07 +0000 (17:11 +0000)]
Batch up draws into triangle fans as large as possible when drawing convex
edge AA polys, so we minimize state changes and GL calls. This requires
querying GL for the maximum number of fragment uniforms. It also makes the
shader generator produce custom shaders for the number of relevant edges.
This gives a ~5X speedup on the "Shapes" SampleApp.
Review URL: http://codereview.appspot.com/
4536070/
git-svn-id: http://skia.googlecode.com/svn/trunk@1380
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 19 May 2011 15:57:44 +0000 (15:57 +0000)]
Fix windows color order
Review URL: http://codereview.appspot.com/
4553048/
git-svn-id: http://skia.googlecode.com/svn/trunk@1379
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 19 May 2011 14:45:11 +0000 (14:45 +0000)]
Add snapshot of gyp-generated vs proj for any third party devs who were using the old project. README.TXT explains how to generate an up to date one.
git-svn-id: http://skia.googlecode.com/svn/trunk@1378
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 19 May 2011 14:39:57 +0000 (14:39 +0000)]
Fix windows build (missing SkFontHost.cpp)
git-svn-id: http://skia.googlecode.com/svn/trunk@1377
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 19 May 2011 14:24:59 +0000 (14:24 +0000)]
Remove old visual studio project
Review URL: http://codereview.appspot.com/
4524054/
git-svn-id: http://skia.googlecode.com/svn/trunk@1376
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Wed, 18 May 2011 23:06:29 +0000 (23:06 +0000)]
[PDF] Implement clear xfermode with a mask instead of pushing the clip down.
This approach is much less likely to use an SkRegion and ends up working better for Webkit.
Review URL: http://codereview.appspot.com/
4550057
git-svn-id: http://skia.googlecode.com/svn/trunk@1375
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Wed, 18 May 2011 22:10:09 +0000 (22:10 +0000)]
[PDF] Fix windows compile warning.
Review URL: http://codereview.appspot.com/
4545056
git-svn-id: http://skia.googlecode.com/svn/trunk@1374
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 18 May 2011 21:24:16 +0000 (21:24 +0000)]
move SHIFT default definitions from SkColorPriv.h to SkPostConfig.h, so that
clients don't accidentally see them defined on some platforms when they only
include SkTypes.h, and not others.
git-svn-id: http://skia.googlecode.com/svn/trunk@1373
2bbb7eff-a529-9590-31e7-
b0007b416f81
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