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

Unified Diff: src/gpu/GrOptDrawState.h

Issue 759713002: Make all blending up to GrOptDrawState be handled by the xp/xp factory. (Closed) Base URL: https://skia.googlesource.com/skia.git@xferFactorySolo
Patch Set: Clean up Created 6 years 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/GrOptDrawState.h
diff --git a/src/gpu/GrOptDrawState.h b/src/gpu/GrOptDrawState.h
index 25a3a49995525e36b138bf88e7be96e660ee1bc8..df511e1cf25d1b00e1a4c144c4fcf18fd230c307 100644
--- a/src/gpu/GrOptDrawState.h
+++ b/src/gpu/GrOptDrawState.h
@@ -193,22 +193,20 @@ private:
/**
* Alter the program desc and inputs (attribs and processors) based on the blend optimization.
*/
- void adjustProgramForBlendOpt(const GrDrawState& ds, GrDrawState::BlendOpt,
- int* firstColorStageIdx, int* firstCoverageStageIdx);
-
- /**
- * Loop over the effect stages to determine various info like what data they will read and what
- * shaders they require.
- */
- void getStageStats(const GrDrawState& ds, int firstColorStageIdx, int firstCoverageStageIdx,
- bool hasLocalCoords);
+ void adjustProgramFromBlendOpts(const GrDrawState& ds,
+ GrXferProcessor::BlendOptFlags,
+ const GrProcOptInfo& colorPOI,
+ const GrProcOptInfo& coveragePOI,
+ int* firstColorStageIdx,
+ int* firstCoverageStageIdx);
/**
* Calculates the primary and secondary output types of the shader. For certain output types
* the function may adjust the blend coefficients. After this function is called the src and dst
* blend coeffs will represent those used by backend API.
*/
- void setOutputStateInfo(const GrDrawState& ds, GrDrawState::BlendOpt, const GrDrawTargetCaps&);
+ void setOutputStateInfo(const GrDrawState& ds, GrXferProcessor::BlendOptFlags,
+ const GrDrawTargetCaps&);
enum Flags {
kDither_Flag = 0x1,

Powered by Google App Engine
This is Rietveld 408576698