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

Unified Diff: src/gpu/GrPath.h

Issue 23440049: Implement stroking a path with nv_path_rendering (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rebase Created 7 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 | « src/gpu/GrInOrderDrawBuffer.cpp ('k') | src/gpu/GrStencilAndCoverPathRenderer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrPath.h
diff --git a/src/gpu/GrPath.h b/src/gpu/GrPath.h
index c7e7f92064b430b973b951fb891d095925b01f7e..37dc9591a63deb5f2c809515ed9f49f99ac2c5b8 100644
--- a/src/gpu/GrPath.h
+++ b/src/gpu/GrPath.h
@@ -10,17 +10,24 @@
#include "GrResource.h"
#include "SkRect.h"
+#include "SkStrokeRec.h"
class GrPath : public GrResource {
public:
SK_DECLARE_INST_COUNT(GrPath);
- GrPath(GrGpu* gpu, bool isWrapped) : INHERITED(gpu, isWrapped) {}
+ GrPath(GrGpu* gpu, bool isWrapped, const SkStrokeRec& stroke)
+ : INHERITED(gpu, isWrapped),
+ fStroke(stroke) {
+ }
const SkRect& getBounds() const { return fBounds; }
+ const SkStrokeRec& getStroke() const { return fStroke; }
+
protected:
SkRect fBounds;
+ SkStrokeRec fStroke;
private:
typedef GrResource INHERITED;
« no previous file with comments | « src/gpu/GrInOrderDrawBuffer.cpp ('k') | src/gpu/GrStencilAndCoverPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698