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

Unified Diff: src/sksl/SkSLGLSLCodeGenerator.cpp

Issue 2300023002: minor SkSL changes to avoid compiler errors in Chromium (Closed)
Patch Set: Created 4 years, 3 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/sksl/SkSLIRGenerator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/sksl/SkSLGLSLCodeGenerator.cpp
diff --git a/src/sksl/SkSLGLSLCodeGenerator.cpp b/src/sksl/SkSLGLSLCodeGenerator.cpp
index 8e69a2f0527c4174472a72233ff26403c2b0f9ab..20a39cf729e2b3700be036191a5bfa6501e8ec17 100644
--- a/src/sksl/SkSLGLSLCodeGenerator.cpp
+++ b/src/sksl/SkSLGLSLCodeGenerator.cpp
@@ -68,7 +68,7 @@ void GLSLCodeGenerator::writeType(const Type& type) {
for (const auto& f : type.fields()) {
this->writeModifiers(f.fModifiers);
// sizes (which must be static in structs) are part of the type name here
- this->writeType(f.fType);
+ this->writeType(*f.fType);
this->writeLine(" " + f.fName + ";");
}
fIndentation--;
@@ -306,7 +306,7 @@ void GLSLCodeGenerator::writeInterfaceBlock(const InterfaceBlock& intf) {
fIndentation++;
for (const auto& f : intf.fVariable.fType.fields()) {
this->writeModifiers(f.fModifiers);
- this->writeType(f.fType);
+ this->writeType(*f.fType);
this->writeLine(" " + f.fName + ";");
}
fIndentation--;
« no previous file with comments | « no previous file | src/sksl/SkSLIRGenerator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698