Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Unified Diff: src/gpu/GrClipMaskManager.h

Issue 23926019: Stateful PathRenderer implementation (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: add assert & patch for missing AutoPathClear Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrAAHairLinePathRenderer.cpp ('k') | src/gpu/GrClipMaskManager.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrClipMaskManager.h
===================================================================
--- src/gpu/GrClipMaskManager.h (revision 13379)
+++ src/gpu/GrClipMaskManager.h (working copy)
@@ -11,6 +11,7 @@
#include "GrClipMaskCache.h"
#include "GrContext.h"
#include "GrDrawState.h"
+#include "GrPathRenderer.h"
#include "GrReducedClip.h"
#include "GrStencil.h"
#include "GrTexture.h"
@@ -130,15 +131,18 @@
bool useSWOnlyPath(const GrReducedClip::ElementList& elements);
+ // Draws a filled clip path into the target alpha mask
+ bool drawFilledPath(GrTexture* target, GrPathRenderer* pathRenderer, bool isAA);
+
// Draws a clip element into the target alpha mask. The caller should have already setup the
- // desired blend operation. Optionally if the caller already selected a path renderer it can
- // be passed. Otherwise the function will select one if the element is a path.
- bool drawElement(GrTexture* target, const SkClipStack::Element*, GrPathRenderer* = NULL);
+ // desired blend operation.
+ bool drawElement(GrTexture* target, const SkClipStack::Element* element);
// Determines whether it is possible to draw the element to both the stencil buffer and the
// alpha mask simultaneously. If so and the element is a path a compatible path renderer is
// also returned.
- bool canStencilAndDrawElement(GrTexture* target, const SkClipStack::Element*, GrPathRenderer**);
+ bool canStencilAndDrawElement(GrTexture* target, const SkClipStack::Element*,
+ GrPathRenderer::AutoClearPath* pr);
void mergeMask(GrTexture* dstMask,
GrTexture* srcMask,
« no previous file with comments | « src/gpu/GrAAHairLinePathRenderer.cpp ('k') | src/gpu/GrClipMaskManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698