aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sksl/ir/SkSLBlock.h
diff options
context:
space:
mode:
authorGravatar msarett <msarett@google.com>2016-07-13 13:18:40 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-13 13:18:40 -0700
commite92badc3ffce83668f76fcfa33a49784346cab1e (patch)
tree5c05deb93ca06313ad1916ecaa5f1fe1ebd0ca59 /src/sksl/ir/SkSLBlock.h
parent16ef465ea92291b860ee5ea8f3d51d5d3f4f1059 (diff)
Revert of SkSL performance improvements (patchset #6 id:140001 of https://codereview.chromium.org/2131223002/ )
Reason for revert: Valgrind bot failures https://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind/builds/1224/steps/test_skia%20on%20Ubuntu/logs/stdio Original issue's description: > SkSL performance improvements (plus a couple of minor warning fixes) > GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2131223002 > > Committed: https://skia.googlesource.com/skia/+/9fd67a1f53809f5eff1210dd107241b450c48acc TBR=benjaminwagner@google.com,egdaniel@google.com,ethannicholas@google.com # Not skipping CQ checks because original CL landed more than 1 days ago. Review-Url: https://codereview.chromium.org/2143323003
Diffstat (limited to 'src/sksl/ir/SkSLBlock.h')
-rw-r--r--src/sksl/ir/SkSLBlock.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/sksl/ir/SkSLBlock.h b/src/sksl/ir/SkSLBlock.h
index a53d13d169..56ed77a0ba 100644
--- a/src/sksl/ir/SkSLBlock.h
+++ b/src/sksl/ir/SkSLBlock.h
@@ -9,7 +9,6 @@
#define SKSL_BLOCK
#include "SkSLStatement.h"
-#include "SkSLSymbolTable.h"
namespace SkSL {
@@ -17,11 +16,9 @@ namespace SkSL {
* A block of multiple statements functioning as a single statement.
*/
struct Block : public Statement {
- Block(Position position, std::vector<std::unique_ptr<Statement>> statements,
- const std::shared_ptr<SymbolTable> symbols)
+ Block(Position position, std::vector<std::unique_ptr<Statement>> statements)
: INHERITED(position, kBlock_Kind)
- , fStatements(std::move(statements))
- , fSymbols(std::move(symbols)) {}
+ , fStatements(std::move(statements)) {}
std::string description() const override {
std::string result = "{";
@@ -34,7 +31,6 @@ struct Block : public Statement {
}
const std::vector<std::unique_ptr<Statement>> fStatements;
- const std::shared_ptr<SymbolTable> fSymbols;
typedef Statement INHERITED;
};