2 * Copyright 2016 Google Inc.
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
14 #include "SkSLModifiers.h"
15 #include "SkSLProgramElement.h"
16 #include "SkSLSymbolTable.h"
21 * Represents a fully-digested program, ready for code generation.
30 Modifiers::Flag defaultPrecision,
31 std::vector<std::unique_ptr<ProgramElement>> elements,
32 std::shared_ptr<SymbolTable> symbols)
34 , fDefaultPrecision(defaultPrecision)
35 , fElements(std::move(elements))
36 , fSymbols(symbols) {}
39 // FIXME handle different types; currently it assumes this is for floats
40 Modifiers::Flag fDefaultPrecision;
41 std::vector<std::unique_ptr<ProgramElement>> fElements;
42 std::shared_ptr<SymbolTable> fSymbols;