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

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: feedback incorporated 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 1e7b5e5ad1a336390ece85e67278569942369b8f..5e51ddc9e8bf4d669d6b10d2eebc7740f25e1388 100644
--- a/src/gpu/GrOptDrawState.h
+++ b/src/gpu/GrOptDrawState.h
@@ -85,6 +85,9 @@ public:
return this->numFragmentStages() + (this->hasGeometryProcessor() ? 1 : 0) + 1;
}
+ // 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