platform/upstream/libSkiaSharp.git
13 years agoadd optoinal bytesRead argument (output) to playback()
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

13 years agofix warnings
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

13 years agopass correct size to read(buffer, ...) tests
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

13 years agoadd cross-process option to gpipe
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

13 years agoExpose SkComposeShader as SK_API.
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

13 years agoFix unnitialized memory in Sk2DPathEffect. The SkDescriptor checksum
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

13 years agoFixed point no longer crashes when GL enabled in gm tests.
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

13 years agoClean up some valgrind errors in SkTransparentShader. Valgrind complains
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

13 years agoTag GrPrintf with GR_API so that it is exposed to users of a Skia DLL
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

13 years agotiny document-only change
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

13 years agoAdd dual source blending support for proper blending with coverage.
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

13 years agoFix gm tests for fixed point.
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

13 years agoFix clipping in StrokeRectGM test for fixed point.
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

13 years agoRemove createPlatformRenderTarget, undeprecate createRenderTargetFrom3DAPIState
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

13 years agoThe plain Makefile was using -Wall, but the gyp build wasn't. This CL turns on
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

13 years agoAdd build for unix to gyp.
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

13 years agoPlug a leak in SampleShaderTest.
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

13 years agoAdd unix and mesa GL files to gyp.
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

13 years agoAdd Mesa as a GL backend.
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

13 years agofix assertion failure in Skia_Linux_Fixed_Debug build
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

13 years agoBatch up draws into triangle fans as large as possible when drawing convex
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

13 years agoFix windows color order
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

13 years agoAdd snapshot of gyp-generated vs proj for any third party devs who were using the...
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

13 years agoFix windows build (missing SkFontHost.cpp)
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

13 years agoRemove old visual studio project
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

13 years ago[PDF] Implement clear xfermode with a mask instead of pushing the clip down.
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

13 years ago[PDF] Fix windows compile warning.
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

13 years agomove SHIFT default definitions from SkColorPriv.h to SkPostConfig.h, so that
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

13 years agosetHinting modifies fFlags in places, so call it last (after initializing fFlags)
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

13 years agofix PathTest for SKIA_SCALAR=fixed
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

13 years agoshow consistent timings between debug and release
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

13 years agoFix uninit of mask var
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

13 years agoencode current LCD orientation and order into font-cache-key
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

13 years agoFix tests with incorrect swizzle.
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

13 years agoglFinish to complete bench before stopping stopwatch.
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

13 years ago[PDF] Fix PDF primitives test for fixed scalars.
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

13 years agosupport BW glyphs, instead of always forcing them to AA
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

13 years agolockPixels before looking at them in Zoomer
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

13 years agocheckpoint for 8->5 bit reduction
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

13 years agocode style, inherit from SampleView
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

13 years agoadd 'h' to tri-toggle font hinting
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

13 years agoimprove gray approximation for LCD LERP
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

13 years agoadd optional decolorization value for lcd text
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

13 years agoadd more keys
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

13 years agoUse coverage stages for supersample AA resolve, edgeAA, and glyph masks. Expose a...
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

13 years agoSet fEdgesUni to kUseUniform when we need to upload it. Fix for bug introduced
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

13 years ago[PDF] Improve path effect and drawPath(prePathMatrix) support.
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

13 years agoPass forceClose "true" to SkPath::Iter constructor in
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

13 years agoFix enums in code path that uses uncached GrRenderTargets behind SkGpuDevices
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

13 years agoget tests closer to passing for SKIA_SCALAR=fixed
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

13 years agoRemoving remnants of GrGLEffect.
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

13 years agoFixed typo in skia.gyp
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

13 years agoremove reference to fContext
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

13 years agoAdding a test to sampleapp for texture domain
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

13 years agosilence printf
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

13 years agofix uninitialized var
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

13 years agoadd 'n' to tri-toggle bitmap-filter (LERP) on/off/neutral
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

13 years agoAdd GL context creation for X so that gm can run GPU on Linux.
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

13 years agouse hires metrics when rotated (or subpixel is requested)
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

13 years agoadd GPU config
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

13 years agoUse SkSetFourByteTag in SkFontHost_win.cpp.
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

13 years agoseparate coverage stages from color stages.
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

13 years agoremove dead files
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

13 years agoFixed color bleeding issue when drawing a sub region of a bitmap with filtering enabled.
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

13 years agofully expand the initialization for rect (android compiler didn't like {0})
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

13 years agouse SkPath for GrPath, removing GrPathIter entirely
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

13 years agoFix winding order check for negative scale in tesselated path rendering. The
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

13 years agoChange getConvexity() to now compute it if the value is set to kUnkown.
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

13 years agoUpload matrix as gl float rather than gr scalar (fixes a build break when scalar...
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

13 years agoOptimize colorfilter path when using a constant color.\nReviewed at http://codereview...
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

13 years agoclean up sign detection code in computeconvexity
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

13 years agodetect more than one loop in computeconvexity
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

13 years agomigrate more tests from GrPath.cpp
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

13 years agoadd Convexity enum to SkPath
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

13 years agomake tests return nonzero if failing
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

13 years agoAnother tiny comment-only change to trigger buildbot
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

13 years agoTiny comment-only change to trigger buildbot
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

13 years ago[PDF] Add support for SrcIn, SrcOut, DstIn, DstOut xfermodes.
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

13 years ago[PDF] Fix windows SkFontHost::OpenStream for TTC fonts.
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

13 years agoupdate dox
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

13 years agoadd 'p' to toggle on/off testing the pipe
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

13 years agoDisable blend for edge AA not general AA
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

13 years agoStyle fix
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

13 years agoEdge antialiasing for convex shapes in Ganesh
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

13 years agoFix intentional breakage in previous commit
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

13 years agoIntentional breakage to test notifications, will fix quickly
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

13 years agoTiny comment-only change to trigger update
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

13 years agocleanup previous array of paints
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

13 years agoAllow blending if there is a color filter.
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

13 years agoAdd space between mediump and float in 2pt radial vertex uniform decl
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

13 years agoFix my intentional break.
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

13 years ago[PDF] Fix Chrome crash - don't assume that SkDraw.fClipStack != NULL.
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

13 years agoIntentionally break tests, will fix quickly.
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

13 years agoAnother comment-only change to test notifications
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

13 years agoRemove a warning.
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

13 years agoTiny comment-only change to test notifications
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

13 years agoStore 1/255 as a constant to reduce number of divides.
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

13 years agoRemove dead debug code.
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

13 years agoRemove unused variable.
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

13 years agoKeep program cache consistent when program creation fails.
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