aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrPathRendering.h
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-06-13 12:44:56 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-06-13 17:21:41 +0000
commit646e4293f06d9de6d44dbfa3c32cdc15a6f5906e (patch)
tree282acbcd4dc4204d06ed7d61e1d9884dbd6dd3f1 /src/gpu/GrPathRendering.h
parent1791a064f1c1256cf29c69a5eef88de66ee6e794 (diff)
Retract GrTexture*.h & GrRenderTarget*.h from other headers
This does push some additional work (& includes) into the .cpp files. Change-Id: I27c847e371802270d13594dcc22aae44039990bb Reviewed-on: https://skia-review.googlesource.com/19660 Commit-Queue: Robert Phillips <robertphillips@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrPathRendering.h')
-rw-r--r--src/gpu/GrPathRendering.h32
1 files changed, 6 insertions, 26 deletions
diff --git a/src/gpu/GrPathRendering.h b/src/gpu/GrPathRendering.h
index 23c731f951..bcd2cfa89e 100644
--- a/src/gpu/GrPathRendering.h
+++ b/src/gpu/GrPathRendering.h
@@ -9,12 +9,12 @@
#define GrPathRendering_DEFINED
#include "SkPath.h"
-#include "GrGpu.h"
#include "GrPathRange.h"
#include "GrPipeline.h"
class SkDescriptor;
class SkTypeface;
+class GrGpu;
class GrPath;
class GrStencilSettings;
class GrStyle;
@@ -149,21 +149,12 @@ public:
const GrStencilSettings* fStencil;
};
- void stencilPath(const StencilPathArgs& args, const GrPath* path) {
- fGpu->handleDirtyContext();
- this->onStencilPath(args, path);
- }
+ void stencilPath(const StencilPathArgs& args, const GrPath* path);
void drawPath(const GrPipeline& pipeline,
const GrPrimitiveProcessor& primProc,
const GrStencilSettings& stencilPassSettings, // Cover pass settings in pipeline.
- const GrPath* path) {
- fGpu->handleDirtyContext();
- if (GrXferBarrierType barrierType = pipeline.xferBarrierType(*fGpu->caps())) {
- fGpu->xferBarrier(pipeline.getRenderTarget(), barrierType);
- }
- this->onDrawPath(pipeline, primProc, stencilPassSettings, path);
- }
+ const GrPath* path);
void drawPaths(const GrPipeline& pipeline,
const GrPrimitiveProcessor& primProc,
@@ -173,22 +164,11 @@ public:
PathIndexType indexType,
const float transformValues[],
PathTransformType transformType,
- int count) {
- fGpu->handleDirtyContext();
- if (GrXferBarrierType barrierType = pipeline.xferBarrierType(*fGpu->caps())) {
- fGpu->xferBarrier(pipeline.getRenderTarget(), barrierType);
- }
-#ifdef SK_DEBUG
- pathRange->assertPathsLoaded(indices, indexType, count);
-#endif
- this->onDrawPaths(pipeline, primProc, stencilPassSettings, pathRange, indices, indexType,
- transformValues, transformType, count);
- }
+ int count);
protected:
- GrPathRendering(GrGpu* gpu)
- : fGpu(gpu) {
- }
+ GrPathRendering(GrGpu* gpu) : fGpu(gpu) { }
+
virtual void onStencilPath(const StencilPathArgs&, const GrPath*) = 0;
virtual void onDrawPath(const GrPipeline&,
const GrPrimitiveProcessor&,