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

Unified Diff: src/gpu/gl/builders/GrGLFragmentShaderBuilder.h

Issue 1321253003: emitChild() takes an outputColor instead of generating one (Closed) Base URL: https://skia.googlesource.com/skia@cs3_composeshader2
Patch Set: Created 5 years, 4 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
Index: src/gpu/gl/builders/GrGLFragmentShaderBuilder.h
diff --git a/src/gpu/gl/builders/GrGLFragmentShaderBuilder.h b/src/gpu/gl/builders/GrGLFragmentShaderBuilder.h
index 912de0a6452b970c7cba7c936448eb49af00158a..4f17b68ae6f99359dc4e3d8260282fbb8b5fac5a 100644
--- a/src/gpu/gl/builders/GrGLFragmentShaderBuilder.h
+++ b/src/gpu/gl/builders/GrGLFragmentShaderBuilder.h
@@ -57,26 +57,8 @@ public:
void onBeforeChildProcEmitCode();
void onAfterChildProcEmitCode();
- int getChildNumberThisLevel() const {
- if (fSubstageIndices.count() > 1) {
- // second-to-last value in the fSubstageIndices stack is the index of the child proc
- // at that level which is currently emitting code.
- return fSubstageIndices[fSubstageIndices.count() - 2];
- }
- return -1;
- }
-
const SkString& getMangleString() const { return fMangleString; }
- SkString getMangleStringThisLevel() const {
- SkString ret;
- int childNumber = this->getChildNumberThisLevel();
- if (childNumber >= 0) {
- ret.printf("_c%d", childNumber);
- }
- return ret;
- }
-
private:
/*
* State that tracks which child proc in the proc tree is currently emitting code. This is

Powered by Google App Engine
This is Rietveld 408576698