Add support for clipstack to Gr. GrClip is now a list of rects and paths with set...
authorbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 3 Mar 2011 13:54:13 +0000 (13:54 +0000)
committerbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 3 Mar 2011 13:54:13 +0000 (13:54 +0000)
commitd302f1401b3c9aea094804bad4e76de98782cfe8
treeb46ec6c4de175842aef051d7b812785dacbd1d73
parent1d12b1fd66e5be27fb4769ee09ce4fcd6bcc5979
Add support for clipstack to Gr. GrClip is now a list of rects and paths with set operations to combine them. The stencil buffer is used to perform the set operations to put the clip into the stencil buffer. Building Gr's clip from Skia's clipStack is currently disabled due to the fact that Skia's clipStack is relative to the root layer not the current layer. This will be fixed in a subsequent CL.

git-svn-id: http://skia.googlecode.com/svn/trunk@878 2bbb7eff-a529-9590-31e7-b0007b416f81
45 files changed:
gpu/include/GrClip.h
gpu/include/GrClipIterator.h
gpu/include/GrContext.h
gpu/include/GrDrawTarget.h
gpu/include/GrGLTexture.h
gpu/include/GrGpu.h
gpu/include/GrPath.h
gpu/include/GrPathIter.h
gpu/include/GrRect.h
gpu/include/GrStencil.h [new file with mode: 0644]
gpu/include/GrTArray.h
gpu/include/GrTexture.h
gpu/include/GrTypes.h
gpu/src/GrClip.cpp
gpu/src/GrContext.cpp
gpu/src/GrDrawTarget.cpp
gpu/src/GrGLTexture.cpp
gpu/src/GrGpu.cpp
gpu/src/GrGpuGL.cpp
gpu/src/GrGpuGL.h
gpu/src/GrInOrderDrawBuffer.cpp
gpu/src/GrPath.cpp
gpu/src/GrPathRenderer.cpp
gpu/src/GrPathRenderer.h
gpu/src/GrStencil.cpp [new file with mode: 0644]
gpu/src/GrTextContext.cpp
gpu/src/gr_files.mk
gpu/src/gr_unittests.cpp
include/core/SkCanvas.h
include/core/SkClipStack.h
include/core/SkDeque.h
include/core/SkDevice.h
include/core/SkRegion.h
include/gpu/SkGpuDevice.h
include/gpu/SkGr.h
src/core/SkCanvas.cpp
src/core/SkClipStack.cpp
src/core/SkDeque.cpp
src/gpu/SkGpuDevice.cpp
src/gpu/SkGr.cpp
src/utils/mac/SkOSWindow_Mac.cpp
src/utils/win/SkOSWindow_Win.cpp
vs/SampleApp/SampleApp.vcxproj
xcode/gpu/gpu.xcodeproj/project.pbxproj
xcode/sampleapp/SampleApp.xcodeproj/project.pbxproj