#include "src/base/SkStringView.h"
#include "src/sksl/SkSLContext.h"
#include "src/sksl/SkSLModule.h"
#include "src/sksl/SkSLProgramSettings.h"
#include "src/sksl/analysis/SkSLProgramUsage.h"
#include "src/sksl/ir/SkSLProgram.h"
#include "src/sksl/ir/SkSLProgramElement.h"
#include "src/sksl/ir/SkSLVarDeclarations.h"
#include "src/sksl/ir/SkSLVariable.h"
#include "src/sksl/transform/SkSLTransform.h"
#include <algorithm>
#include <cstddef>
#include <memory>
#include <vector>
namespace SkSL {
static bool is_dead_variable(const ProgramElement& element,
ProgramUsage* usage,
bool onlyPrivateGlobals) { … }
bool Transform::EliminateDeadGlobalVariables(const Context& context,
Module& module,
ProgramUsage* usage,
bool onlyPrivateGlobals) { … }
bool Transform::EliminateDeadGlobalVariables(Program& program) { … }
}