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

Unified Diff: src/gpu/GrOvalRenderer.h

Issue 664193002: Oval and stroke AA rect now batch (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more gms added to ignore Created 6 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/GrGpu.cpp ('k') | src/gpu/GrOvalRenderer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrOvalRenderer.h
diff --git a/src/gpu/GrOvalRenderer.h b/src/gpu/GrOvalRenderer.h
index 92f6ff0cdf209a8d72ec9cf7f9b443afe7ce4120..96f9b3afb9faf62e47e084476aeb5d6c514cffa5 100644
--- a/src/gpu/GrOvalRenderer.h
+++ b/src/gpu/GrOvalRenderer.h
@@ -24,7 +24,7 @@ class GrOvalRenderer : public SkRefCnt {
public:
SK_DECLARE_INST_COUNT(GrOvalRenderer)
- GrOvalRenderer() : fRRectIndexBuffer(NULL) {}
+ GrOvalRenderer() : fRRectIndexBuffer(NULL), fStrokeRRectIndexBuffer(NULL) {}
~GrOvalRenderer() {
this->reset();
}
@@ -39,19 +39,20 @@ public:
const SkRRect& outer, const SkRRect& inner);
private:
- bool drawEllipse(GrDrawTarget* target, bool useCoverageAA,
+ bool drawEllipse(GrDrawTarget* target, const GrContext* context, bool useCoverageAA,
const SkRect& ellipse,
const SkStrokeRec& stroke);
- bool drawDIEllipse(GrDrawTarget* target, bool useCoverageAA,
+ bool drawDIEllipse(GrDrawTarget* target, const GrContext* context, bool useCoverageAA,
const SkRect& ellipse,
const SkStrokeRec& stroke);
- void drawCircle(GrDrawTarget* target, bool useCoverageAA,
+ void drawCircle(GrDrawTarget* target, const GrContext* context, bool useCoverageAA,
const SkRect& circle,
const SkStrokeRec& stroke);
- GrIndexBuffer* rRectIndexBuffer(GrGpu* gpu);
+ GrIndexBuffer* rRectIndexBuffer(bool isStrokeOnly, GrGpu* gpu);
GrIndexBuffer* fRRectIndexBuffer;
+ GrIndexBuffer* fStrokeRRectIndexBuffer;
typedef SkRefCnt INHERITED;
};
« no previous file with comments | « src/gpu/GrGpu.cpp ('k') | src/gpu/GrOvalRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698