diff options
author | 2011-03-28 20:47:09 +0000 | |
---|---|---|
committer | 2011-03-28 20:47:09 +0000 | |
commit | 9d18b7873ce9b44f130a41e0cbd0a3df76ab9adf (patch) | |
tree | 5f5f96e33ea96bdaf6c0dc4fbb32f78db26a4642 /gpu/src/GrGpu.cpp | |
parent | cae5fba82e687d674b076b10cdc8aba46e1ac3b3 (diff) |
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@1012 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gpu/src/GrGpu.cpp')
-rw-r--r-- | gpu/src/GrGpu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gpu/src/GrGpu.cpp b/gpu/src/GrGpu.cpp index 4b52fd879c..1db92522c6 100644 --- a/gpu/src/GrGpu.cpp +++ b/gpu/src/GrGpu.cpp @@ -610,7 +610,7 @@ void GrGpu::prepareVertexPool() { } void GrGpu::prepareIndexPool() { - if (NULL == fVertexPool) { + if (NULL == fIndexPool) { fIndexPool = new GrIndexBufferAllocPool(this, true, 0, 1); } else if (!fIndexPoolInUse) { // the client doesn't have valid data in the pool |