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

Unified Diff: src/gpu/GrDrawTargetCaps.h

Issue 1019303005: Remove unused HWAA flag and uniqueID field from GrDrawTargetCaps. (Closed) Base URL: https://chromium.googlesource.com/skia@contextHacking
Patch Set: Created 5 years, 9 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/GrDrawTarget.cpp ('k') | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrDrawTargetCaps.h
diff --git a/src/gpu/GrDrawTargetCaps.h b/src/gpu/GrDrawTargetCaps.h
index 9a08eff9df11b4efb67900d54d9d1680691bbced..08f4f4338218540427e43e4636826775ff7a62ca 100644
--- a/src/gpu/GrDrawTargetCaps.h
+++ b/src/gpu/GrDrawTargetCaps.h
@@ -56,10 +56,10 @@ public:
};
- GrDrawTargetCaps() : fUniqueID(CreateUniqueID()) {
+ GrDrawTargetCaps() {
this->reset();
}
- GrDrawTargetCaps(const GrDrawTargetCaps& other) : INHERITED(), fUniqueID(CreateUniqueID()) {
+ GrDrawTargetCaps(const GrDrawTargetCaps& other) : INHERITED() {
*this = other;
}
GrDrawTargetCaps& operator= (const GrDrawTargetCaps&);
@@ -73,7 +73,6 @@ public:
bool mipMapSupport() const { return fMipMapSupport; }
bool twoSidedStencilSupport() const { return fTwoSidedStencilSupport; }
bool stencilWrapOpsSupport() const { return fStencilWrapOpsSupport; }
- bool hwAALineSupport() const { return fHWAALineSupport; }
bool shaderDerivativeSupport() const { return fShaderDerivativeSupport; }
bool geometryShaderSupport() const { return fGeometryShaderSupport; }
bool dualSourceBlendingSupport() const { return fDualSourceBlendingSupport; }
@@ -143,19 +142,11 @@ public:
*/
bool floatPrecisionVaries() const { return fShaderPrecisionVaries; }
- /**
- * Gets an id that is unique for this GrDrawTargetCaps object. It is static in that it does
- * not change when the content of the GrDrawTargetCaps object changes. This will never return
- * 0.
- */
- uint32_t getUniqueID() const { return fUniqueID; }
-
protected:
bool fNPOTTextureTileSupport : 1;
bool fMipMapSupport : 1;
bool fTwoSidedStencilSupport : 1;
bool fStencilWrapOpsSupport : 1;
- bool fHWAALineSupport : 1;
bool fShaderDerivativeSupport : 1;
bool fGeometryShaderSupport : 1;
bool fDualSourceBlendingSupport : 1;
@@ -183,10 +174,6 @@ protected:
PrecisionInfo fFloatPrecisions[kGrShaderTypeCount][kGrSLPrecisionCount];
private:
- static uint32_t CreateUniqueID();
-
- const uint32_t fUniqueID;
-
typedef SkRefCnt INHERITED;
};
« no previous file with comments | « src/gpu/GrDrawTarget.cpp ('k') | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698