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

Unified Diff: include/gpu/GrPathRendererChain.h

Issue 1407883004: Remove GrPipelineBuilder from getPathRenderer call (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Hide GrContext::drawingManager entry point Created 5 years, 2 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 | « include/gpu/GrContext.h ('k') | src/gpu/GrClipMaskManager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrPathRendererChain.h
diff --git a/include/gpu/GrPathRendererChain.h b/include/gpu/GrPathRendererChain.h
deleted file mode 100644
index 98441cec1590478cc217b9e15abddbbfa4facce6..0000000000000000000000000000000000000000
--- a/include/gpu/GrPathRendererChain.h
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
- * Copyright 2011 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef GrPathRendererChain_DEFINED
-#define GrPathRendererChain_DEFINED
-
-#include "SkRefCnt.h"
-#include "SkTArray.h"
-
-class GrContext;
-class GrPathRenderer;
-class GrPipelineBuilder;
-class GrShaderCaps;
-class GrStrokeInfo;
-class SkMatrix;
-class SkPath;
-
-/**
- * Keeps track of an ordered list of path renderers. When a path needs to be
- * drawn this list is scanned to find the most preferred renderer. To add your
- * path renderer to the list implement the GrPathRenderer::AddPathRenderers
- * function.
- */
-class GrPathRendererChain : public SkRefCnt {
-public:
- // See comments in GrPathRenderer.h
- enum StencilSupport {
- kNoSupport_StencilSupport,
- kStencilOnly_StencilSupport,
- kNoRestriction_StencilSupport,
- };
-
- GrPathRendererChain(GrContext* context);
-
- ~GrPathRendererChain();
-
- // takes a ref and unrefs in destructor
- GrPathRenderer* addPathRenderer(GrPathRenderer* pr);
-
- /** Documents how the caller plans to use a GrPathRenderer to draw a path. It affects the PR
- returned by getPathRenderer */
- enum DrawType {
- kColor_DrawType, // draw to the color buffer, no AA
- kColorAntiAlias_DrawType, // draw to color buffer, with partial coverage AA
- kStencilOnly_DrawType, // draw just to the stencil buffer
- kStencilAndColor_DrawType, // draw the stencil and color buffer, no AA
- kStencilAndColorAntiAlias_DrawType // draw the stencil and color buffer, with partial
- // coverage AA.
- };
- /** Returns a GrPathRenderer compatible with the request if one is available. If the caller
- is drawing the path to the stencil buffer then stencilSupport can be used to determine
- whether the path can be rendered with arbitrary stencil rules or not. See comments on
- StencilSupport in GrPathRenderer.h. */
- GrPathRenderer* getPathRenderer(const GrShaderCaps* shaderCaps,
- const GrPipelineBuilder&,
- const SkMatrix& viewMatrix,
- const SkPath& path,
- const GrStrokeInfo& stroke,
- DrawType drawType,
- StencilSupport* stencilSupport);
-
-private:
- GrPathRendererChain();
-
- void init();
-
- enum {
- kPreAllocCount = 8,
- };
- bool fInit;
- GrContext* fOwner;
- SkSTArray<kPreAllocCount, GrPathRenderer*, true> fChain;
-
- typedef SkRefCnt INHERITED;
-};
-
-#endif
« no previous file with comments | « include/gpu/GrContext.h ('k') | src/gpu/GrClipMaskManager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698