aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2018-03-23 15:00:20 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-03-23 19:30:40 +0000
commit1e8501ebdabc8d48d6977c0f06049c889029e4ea (patch)
treee6e30edb5bb9b722215e33e053d72488e03c3a61 /src
parent8a8a8e9dd5c47f3fc930064bd030790f98af27af (diff)
Get @constructor feature of SKSL working
This is probably the only portion of https://skia-review.googlesource.com/c/skia/+/115900 that we want to keep TBR=ethannicholas@google.com Change-Id: Ife4d7bfbe454f705e93fb051b0bcf8e2b0a052b5 Reviewed-on: https://skia-review.googlesource.com/116192 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/sksl/SkSLHCodeGenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sksl/SkSLHCodeGenerator.cpp b/src/sksl/SkSLHCodeGenerator.cpp
index 9750aabb87..ad97722077 100644
--- a/src/sksl/SkSLHCodeGenerator.cpp
+++ b/src/sksl/SkSLHCodeGenerator.cpp
@@ -176,9 +176,9 @@ void HCodeGenerator::writeConstructor() {
const char* msg = "may not be present when constructor is overridden";
this->failOnSection(CONSTRUCTOR_CODE_SECTION, msg);
this->failOnSection(CONSTRUCTOR_PARAMS_SECTION, msg);
- this->failOnSection(COORD_TRANSFORM_SECTION, msg);
this->failOnSection(INITIALIZERS_SECTION, msg);
this->failOnSection(OPTIMIZATION_FLAGS_SECTION, msg);
+ return;
}
this->writef(" %s(", fFullName.c_str());
const char* separator = "";