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

Unified Diff: src/gpu/GrPathProcessor.h

Issue 1467553002: New API for computing optimization invariants. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 1 month 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/GrOvalRenderer.cpp ('k') | src/gpu/GrPathProcessor.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrPathProcessor.h
diff --git a/src/gpu/GrPathProcessor.h b/src/gpu/GrPathProcessor.h
index 3dce45022d63b2f9e32c7800622c3439de4b510b..831770cc9bd9abb2bf7d1c143e63ee8da757e0d6 100644
--- a/src/gpu/GrPathProcessor.h
+++ b/src/gpu/GrPathProcessor.h
@@ -17,10 +17,10 @@
class GrPathProcessor : public GrPrimitiveProcessor {
public:
static GrPathProcessor* Create(GrColor color,
- const GrPipelineOptimizations& opts,
+ const GrXPOverridesForBatch& overrides,
const SkMatrix& viewMatrix = SkMatrix::I(),
const SkMatrix& localMatrix = SkMatrix::I()) {
- return new GrPathProcessor(color, opts, viewMatrix, localMatrix);
+ return new GrPathProcessor(color, overrides, viewMatrix, localMatrix);
}
const char* name() const override { return "PathProcessor"; }
@@ -38,10 +38,10 @@ public:
bool hasTransformedLocalCoords() const override { return false; }
- const GrPipelineOptimizations& opts() const { return fOpts; }
+ const GrXPOverridesForBatch& overrides() const { return fOverrides; }
private:
- GrPathProcessor(GrColor color, const GrPipelineOptimizations& opts,
+ GrPathProcessor(GrColor color, const GrXPOverridesForBatch& overrides,
const SkMatrix& viewMatrix, const SkMatrix& localMatrix);
bool hasExplicitLocalCoords() const override { return false; }
@@ -49,7 +49,7 @@ private:
GrColor fColor;
const SkMatrix fViewMatrix;
const SkMatrix fLocalMatrix;
- GrPipelineOptimizations fOpts;
+ GrXPOverridesForBatch fOverrides;
typedef GrPrimitiveProcessor INHERITED;
};
« no previous file with comments | « src/gpu/GrOvalRenderer.cpp ('k') | src/gpu/GrPathProcessor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698