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

Unified Diff: src/sksl/ir/SkSLFieldAccess.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/SkSLField.h ('k') | src/sksl/ir/SkSLFloatLiteral.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/sksl/ir/SkSLFieldAccess.h
diff --git a/src/sksl/ir/SkSLFieldAccess.h b/src/sksl/ir/SkSLFieldAccess.h
index 053498e154c85f1ea15f267a2dcc2eea0d5d76f7..f09c3a344709e3a4f2ceb922c2c531055c8e0d93 100644
--- a/src/sksl/ir/SkSLFieldAccess.h
+++ b/src/sksl/ir/SkSLFieldAccess.h
@@ -18,12 +18,12 @@ namespace SkSL {
*/
struct FieldAccess : public Expression {
FieldAccess(std::unique_ptr<Expression> base, int fieldIndex)
- : INHERITED(base->fPosition, kFieldAccess_Kind, base->fType->fields()[fieldIndex].fType)
+ : INHERITED(base->fPosition, kFieldAccess_Kind, base->fType.fields()[fieldIndex].fType)
, fBase(std::move(base))
, fFieldIndex(fieldIndex) {}
virtual std::string description() const override {
- return fBase->description() + "." + fBase->fType->fields()[fFieldIndex].fName;
+ return fBase->description() + "." + fBase->fType.fields()[fFieldIndex].fName;
}
const std::unique_ptr<Expression> fBase;
« no previous file with comments | « src/sksl/ir/SkSLField.h ('k') | src/sksl/ir/SkSLFloatLiteral.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698