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

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

Issue 2131223002: SkSL performance improvements (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 4 years, 5 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 | « src/sksl/ir/SkSLFieldAccess.h ('k') | src/sksl/ir/SkSLForStatement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/sksl/ir/SkSLFloatLiteral.h
diff --git a/src/sksl/ir/SkSLFloatLiteral.h b/src/sksl/ir/SkSLFloatLiteral.h
index deb5b2714418ff343bebff362b095d5747665afa..d9c8b6538a4d2d57d5d3fcaa025ef34c02d55fad 100644
--- a/src/sksl/ir/SkSLFloatLiteral.h
+++ b/src/sksl/ir/SkSLFloatLiteral.h
@@ -8,6 +8,7 @@
#ifndef SKSL_FLOATLITERAL
#define SKSL_FLOATLITERAL
+#include "SkSLContext.h"
#include "SkSLExpression.h"
namespace SkSL {
@@ -16,8 +17,8 @@ namespace SkSL {
* A literal floating point number.
*/
struct FloatLiteral : public Expression {
- FloatLiteral(Position position, double value)
- : INHERITED(position, kFloatLiteral_Kind, kFloat_Type)
+ FloatLiteral(const Context& context, Position position, double value)
+ : INHERITED(position, kFloatLiteral_Kind, *context.fFloat_Type)
, fValue(value) {}
virtual std::string description() const override {
« no previous file with comments | « src/sksl/ir/SkSLFieldAccess.h ('k') | src/sksl/ir/SkSLForStatement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698