This CL implements a tesselated path renderer, using GLU's libtess. All of the
fill modes except hairline are supported. Note that the path renderer is not
enabled by default; to enable it, replace "GrCreatePathRenderer_none.cpp" with
"GrCreatePathRenderer_tesselated.cpp" in skia.gyp, and run gyp_skia, and build.
This change also contains a number of build fixes for Win32 (for building
SampleApp on VS2008) and Mac (for my ancient Mac Pro which supports
GL_EXT_framebuffer_object but not GL_ARB_framebuffer_object). Also,
priorityq-heap.c was removed from the SampleApp build, since it's #included by
priorityq.c (weird, I know).
NB: When this change is rolled into chrome, some modifications to chromium's
skia.gyp will be necessary.
Review URL: http://codereview.appspot.com/4289072/
git-svn-id: http://skia.googlecode.com/svn/trunk/gyp@1012 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/skia.gyp b/skia.gyp
index d4bb4d0..012c6a8 100644
--- a/skia.gyp
+++ b/skia.gyp
@@ -24,6 +24,7 @@
[ 'OS == "win"', {
'defines': [
'SK_BUILD_FOR_WIN32',
+ 'SK_IGNORE_STDINT_DOT_H',
],
},],
],
@@ -835,6 +836,9 @@
'include_dirs': [
'../gpu/include',
],
+ #'dependencies': [
+ # 'libtess',
+ #],
'sources': [
'../gpu/include/GrAllocator.h',
'../gpu/include/GrAllocPool.h',
@@ -873,6 +877,7 @@
'../gpu/include/GrPathIter.h',
'../gpu/include/GrPathRenderer.h',
'../gpu/include/GrPathSink.h',
+ '../gpu/include/GrPathUtils.h',
'../gpu/include/GrPlotMgr.h',
'../gpu/include/GrPoint.h',
'../gpu/include/GrRandom.h',
@@ -887,6 +892,7 @@
'../gpu/include/GrTArray.h',
'../gpu/include/GrTBSearch.h',
'../gpu/include/GrTDArray.h',
+ #'../gpu/include/GrTesselatedPathRenderer.h',
'../gpu/include/GrTextContext.h',
'../gpu/include/GrTextStrike.h',
'../gpu/include/GrTexture.h',
@@ -924,10 +930,12 @@
'../gpu/src/GrMemory.cpp',
'../gpu/src/GrPath.cpp',
'../gpu/src/GrPathRenderer.cpp',
+ '../gpu/src/GrPathUtils.cpp',
'../gpu/src/GrPrintf_printf.cpp',
'../gpu/src/GrRectanizer.cpp',
'../gpu/src/GrRedBlackTree.h',
'../gpu/src/GrStencil.cpp',
+ #'../gpu/src/GrTesselatedPathRenderer.cpp',
'../gpu/src/GrTextContext.cpp',
'../gpu/src/GrTextStrike.cpp',
'../gpu/src/GrTextStrike_impl.h',
@@ -1444,7 +1452,6 @@
'../third_party/glu/libtess/mesh.h',
'../third_party/glu/libtess/normal.c',
'../third_party/glu/libtess/normal.h',
- '../third_party/glu/libtess/priorityq-heap.c',
'../third_party/glu/libtess/priorityq-heap.h',
'../third_party/glu/libtess/priorityq-sort.h',
'../third_party/glu/libtess/priorityq.c',