diff options
author | 2016-12-21 09:20:25 -0500 | |
---|---|---|
committer | 2016-12-21 15:12:49 +0000 | |
commit | 92aee3d6857386f2b5b8e1148e680a7b58e9b1fc (patch) | |
tree | 8b54e16b9dbee4411c8e996504872672e1f61fa3 /include/gpu/GrXferProcessor.h | |
parent | bd81a327b5728b51cac8642128bd2f165d078ef7 (diff) |
This renames methods and classes that relate to static analysis of combinations of GrDrawOps and GrPipelines.
Change-Id: I737b901a19d3c67d2ff7f95802fb4df35656beb2
Reviewed-on: https://skia-review.googlesource.com/6199
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'include/gpu/GrXferProcessor.h')
-rw-r--r-- | include/gpu/GrXferProcessor.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/gpu/GrXferProcessor.h b/include/gpu/GrXferProcessor.h index 685c266cd9..9a920a2491 100644 --- a/include/gpu/GrXferProcessor.h +++ b/include/gpu/GrXferProcessor.h @@ -17,7 +17,7 @@ class GrShaderCaps; class GrGLSLXferProcessor; class GrProcOptInfo; -struct GrPipelineOptimizations; +struct GrPipelineAnalysis; /** * Barriers for blending. When a shader reads the dst directly, an Xfer barrier is sometimes @@ -139,7 +139,7 @@ public: * A caller who calls this function on a XP is required to honor the returned OptFlags * and color values for its draw. */ - OptFlags getOptimizations(const GrPipelineOptimizations& optimizations, + OptFlags getOptimizations(const GrPipelineAnalysis&, bool doesStencilWrite, GrColor* overrideColor, const GrCaps& caps) const; @@ -227,7 +227,7 @@ public: } return this->onIsEqual(that); } - + protected: GrXferProcessor(); GrXferProcessor(const DstTexture*, bool willReadDstColor, bool hasMixedSamples); @@ -235,7 +235,7 @@ protected: private: void notifyRefCntIsZero() const final {} - virtual OptFlags onGetOptimizations(const GrPipelineOptimizations& optimizations, + virtual OptFlags onGetOptimizations(const GrPipelineAnalysis&, bool doesStencilWrite, GrColor* overrideColor, const GrCaps& caps) const = 0; @@ -297,7 +297,7 @@ GR_MAKE_BITFIELD_OPS(GrXferProcessor::OptFlags); class GrXPFactory : public SkRefCnt { public: typedef GrXferProcessor::DstTexture DstTexture; - GrXferProcessor* createXferProcessor(const GrPipelineOptimizations& optimizations, + GrXferProcessor* createXferProcessor(const GrPipelineAnalysis&, bool hasMixedSamples, const DstTexture*, const GrCaps& caps) const; @@ -319,7 +319,7 @@ public: virtual void getInvariantBlendedColor(const GrProcOptInfo& colorPOI, InvariantBlendedColor*) const = 0; - bool willNeedDstTexture(const GrCaps& caps, const GrPipelineOptimizations& optimizations) const; + bool willNeedDstTexture(const GrCaps& caps, const GrPipelineAnalysis&) const; bool isEqual(const GrXPFactory& that) const { if (this->classID() != that.classID()) { @@ -347,18 +347,18 @@ protected: private: virtual GrXferProcessor* onCreateXferProcessor(const GrCaps& caps, - const GrPipelineOptimizations& optimizations, + const GrPipelineAnalysis&, bool hasMixedSamples, const DstTexture*) const = 0; virtual bool onIsEqual(const GrXPFactory&) const = 0; - bool willReadDstColor(const GrCaps&, const GrPipelineOptimizations&) const; + bool willReadDstColor(const GrCaps&, const GrPipelineAnalysis&) const; /** * Returns true if the XP generated by this factory will explicitly read dst in the fragment * shader. */ - virtual bool onWillReadDstColor(const GrCaps&, const GrPipelineOptimizations&) const = 0; + virtual bool onWillReadDstColor(const GrCaps&, const GrPipelineAnalysis&) const = 0; static uint32_t GenClassID() { // fCurrXPFactoryID has been initialized to kIllegalXPFactoryID. The |