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

Unified Diff: src/gpu/GrDrawState.h

Issue 630063002: Make createOptDrawState return NULL if we would end up not drawing (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase and Nits Created 6 years, 2 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 | « no previous file | src/gpu/GrDrawState.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrDrawState.h
diff --git a/src/gpu/GrDrawState.h b/src/gpu/GrDrawState.h
index b855c8725bf1381d953b6db693082d2049ed4215..9d653e6f5c94a62e1fc7ee366026da0c646295e5 100644
--- a/src/gpu/GrDrawState.h
+++ b/src/gpu/GrDrawState.h
@@ -715,14 +715,6 @@ public:
GrDrawState& operator= (const GrDrawState& that);
- /**
- * Returns a snapshot of the current optimized state. If the current drawState has a valid
- * cached optimiezed state it will simply return a pointer to it otherwise it will create a new
- * GrOptDrawState. In all cases the GrOptDrawState is reffed and ownership is given to the
- * caller.
- */
- GrOptDrawState* createOptState(const GrDrawTargetCaps&) const;
-
private:
/**
* Converts refs on GrGpuResources owned directly or indirectly by this GrDrawState into
@@ -829,9 +821,11 @@ private:
mutable GrOptDrawState* fCachedOptState;
mutable uint32_t fCachedCapsID;
+ friend class GrOptDrawState;
+
typedef SkRefCnt INHERITED;
};
-//GR_MAKE_BITFIELD_OPS(GrDrawState::BlendOptFlags);
+GR_MAKE_BITFIELD_OPS(GrDrawState::BlendOptFlags);
#endif
« no previous file with comments | « no previous file | src/gpu/GrDrawState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698