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

Unified Diff: src/gpu/gl/GrGLPathRendering.h

Issue 1157683006: Refactor GrGpu path rendering functions to GrPathRendering (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase, remove include ordering Created 5 years, 7 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/gl/GrGLGpu.cpp ('k') | src/gpu/gl/GrGLPathRendering.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/GrGLPathRendering.h
diff --git a/src/gpu/gl/GrGLPathRendering.h b/src/gpu/gl/GrGLPathRendering.h
index 84bac6c11759b6594a16dfbab8086c43c8a38c19..aa6747098bb25e401c6aa8958a831cffb39e87c7 100644
--- a/src/gpu/gl/GrGLPathRendering.h
+++ b/src/gpu/gl/GrGLPathRendering.h
@@ -39,11 +39,6 @@ public:
virtual GrPathRange* createGlyphs(const SkTypeface*,
const SkDescriptor*,
const GrStrokeInfo&) override;
- void stencilPath(const GrPath*, const GrStencilSettings&) override;
- void drawPath(const GrPath*, const GrStencilSettings&) override;
- virtual void drawPaths(const GrPathRange*, const void* indices, PathIndexType,
- const float transformValues[], PathTransformType, int count,
- const GrStencilSettings&) override;
/* Called when the 3D context state is unknown. */
void resetContext();
@@ -67,6 +62,11 @@ public:
GrGLuint genPaths(GrGLsizei range);
GrGLvoid deletePaths(GrGLuint path, GrGLsizei range);
+protected:
+ void onStencilPath(const StencilPathArgs&, const GrPath*) override;
+ void onDrawPath(const DrawPathArgs&, const GrPath*) override;
+ void onDrawPaths(const DrawPathArgs&, const GrPathRange*, const void* indices, PathIndexType,
+ const float transformValues[], PathTransformType, int count) override;
private:
/**
* Mark certain functionality as not supported if the driver version is too
@@ -129,8 +129,8 @@ private:
GrGLGetMatrix<Size>(destMatrix, combined);
}
};
+ GrGLGpu* gpu();
- GrGLGpu* fGpu;
SkAutoTDelete<GrGLNameAllocator> fPathNameAllocator;
Caps fCaps;
MatrixState fHWProjectionMatrixState;
« no previous file with comments | « src/gpu/gl/GrGLGpu.cpp ('k') | src/gpu/gl/GrGLPathRendering.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698