diff options
author | Brian Salomon <bsalomon@google.com> | 2017-08-17 14:58:40 +0000 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-08-17 14:58:48 +0000 |
commit | 23f92277b916a4bdf11c320799ac9248af60a62e (patch) | |
tree | eb37926e9e0be489398a5bf9b239a4209a5a39da /src/sksl/ir/SkSLConstructor.h | |
parent | b0d88eda9096400600828e08755e66642b58ca0b (diff) |
Revert "fixed constant vector swizzling"
This reverts commit 8ac36a577f14158c820bbc673f477a7ce20702e5.
Reason for revert: Need to revert 88d99c63878c2d3d340120f0321676f72afcb4f0
Original change's description:
> fixed constant vector swizzling
>
> Bug: skia:
> Change-Id: I2d205bf7242d2223c4939c3e7897db9aba02c705
> Reviewed-on: https://skia-review.googlesource.com/35640
> Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
> Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
TBR=bsalomon@google.com,ethannicholas@google.com
Change-Id: I0b0ee62b9173beed9513947244e37d5a528f85a3
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: skia:
Reviewed-on: https://skia-review.googlesource.com/35704
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/sksl/ir/SkSLConstructor.h')
-rw-r--r-- | src/sksl/ir/SkSLConstructor.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/sksl/ir/SkSLConstructor.h b/src/sksl/ir/SkSLConstructor.h index 51af1c1132..8f963e68eb 100644 --- a/src/sksl/ir/SkSLConstructor.h +++ b/src/sksl/ir/SkSLConstructor.h @@ -50,17 +50,6 @@ struct Constructor : public Expression { &fType)); } } - if (fArguments.size() == 1 && fArguments[0]->fKind == Expression::kFloatLiteral_Kind) { - if (fType == *irGenerator.fContext.fFloat_Type || - fType == *irGenerator.fContext.fHalf_Type) { - // convert float(1.0) to 1.0 - double floatValue = ((FloatLiteral&) *fArguments[0]).fValue; - return std::unique_ptr<Expression>(new FloatLiteral(irGenerator.fContext, - fPosition, - floatValue, - &fType)); - } - } return nullptr; } |