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

Unified Diff: src/sksl/ir/SkSLModifiers.h

Issue 2187433003: added support for push_constant layout (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: minor cleanups, added some matrix tests Created 4 years, 1 month 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/sksl/ir/SkSLModifiers.h
diff --git a/src/sksl/ir/SkSLModifiers.h b/src/sksl/ir/SkSLModifiers.h
index f39e92959f997c2d39051e4f7c31b65b872a6f59..5e3c0fd29f860b066f0ff03c0e4f019b74f2b523 100644
--- a/src/sksl/ir/SkSLModifiers.h
+++ b/src/sksl/ir/SkSLModifiers.h
@@ -38,6 +38,10 @@ struct Modifiers {
: fLayout(layout)
, fFlags(flags) {}
+ Modifiers()
+ : fLayout(Layout())
+ , fFlags(0) {}
+
std::string description() const {
std::string result = fLayout.description();
if (fFlags & kUniform_Flag) {

Powered by Google App Engine
This is Rietveld 408576698