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

Unified Diff: src/gpu/GrPipeline.h

Issue 1275603002: Expose coord transforms from GrPipeline (Closed) Base URL: https://skia.googlesource.com/skia.git@lccleanup4
Patch Set: Created 5 years, 4 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
Index: src/gpu/GrPipeline.h
diff --git a/src/gpu/GrPipeline.h b/src/gpu/GrPipeline.h
index 3b5181831a0c294320dd97d5716ae3da9d370817..b22bba735161ea48b0b171f59220e135e880a59c 100644
--- a/src/gpu/GrPipeline.h
+++ b/src/gpu/GrPipeline.h
@@ -39,7 +39,7 @@ public:
/*
* Returns true if these pipelines are equivalent.
*/
- bool isEqual(const GrPipeline& that) const;
+ bool isEqual(const GrPipeline& that, bool ignoreCoordTransforms = false) const;
/// @}
@@ -100,6 +100,10 @@ public:
return fInfoForPrimitiveProcessor;
}
+ const SkTArray<const GrCoordTransform*, true>& coordTransforms() const {
+ return fCoordTransforms;
+ }
+
private:
/**
* Alter the program desc and inputs (attribs and processors) based on the blend optimization.
@@ -141,7 +145,9 @@ private:
// This function is equivalent to the offset into fFragmentStages where coverage stages begin.
int fNumColorStages;
- GrProgramDesc fDesc;
+ SkSTArray<8, const GrCoordTransform*, true> fCoordTransforms;
+ int fNumCoordTransforms;
+ GrProgramDesc fDesc;
typedef SkRefCnt INHERITED;
};

Powered by Google App Engine
This is Rietveld 408576698