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

Unified Diff: src/gpu/GrOptDrawState.h

Issue 746423007: Draft change to start pulling uniform color into GP (Closed) Base URL: https://skia.googlesource.com/skia.git@no_factories
Patch Set: 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 45501b49dd1c4fc4efe8ea9933d07875780cd3e4..778e03f58d11c1766f6e5a006cad3a77c28785ee 100644
--- a/src/gpu/GrOptDrawState.h
+++ b/src/gpu/GrOptDrawState.h
@@ -82,6 +82,9 @@ public:
return this->numFragmentStages() + (this->hasGeometryProcessor() ? 1 : 0);
}
+ // TODO hack
+ bool newStyle() const { return hasGeometryProcessor() && getGeometryProcessor()->fNewStyle; }
+
bool hasGeometryProcessor() const { return SkToBool(fGeometryProcessor.get()); }
const GrGeometryProcessor* getGeometryProcessor() const { return fGeometryProcessor.get(); }
const GrBatchTracker& getBatchTracker() const { return fBatchTracker; }

Powered by Google App Engine
This is Rietveld 408576698