diff options
author | Ethan Nicholas <ethannicholas@google.com> | 2017-08-16 16:41:30 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-08-16 23:05:15 +0000 |
commit | 88d99c63878c2d3d340120f0321676f72afcb4f0 (patch) | |
tree | 5b957dbf2f78ef7a15aa3810f8922c915508683f /src/sksl/ast | |
parent | a26d219a929f4e70f8597dfd57a53348c4bba905 (diff) |
Switched highp float to highfloat and mediump float to half.
The ultimate goal is to end up with "float" and "half", but this
intermediate step uses "highfloat" so that it is clear if I missed a
"float" somewhere. Once this lands, a subsequent CL will switch all
"highfloats" back to "floats".
Bug: skia:
Change-Id: Ia13225c7a0a0a2901e07665891c473d2500ddcca
Reviewed-on: https://skia-review.googlesource.com/31000
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/sksl/ast')
-rw-r--r-- | src/sksl/ast/SkSLASTPrecision.h | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/src/sksl/ast/SkSLASTPrecision.h b/src/sksl/ast/SkSLASTPrecision.h deleted file mode 100644 index 4b50ed3979..0000000000 --- a/src/sksl/ast/SkSLASTPrecision.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2016 Google Inc. - * - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -#ifndef SKSL_ASTPRECISION -#define SKSL_ASTPRECISION - -#include "SkSLASTDeclaration.h" -#include "../ir/SkSLModifiers.h" - -namespace SkSL { - -/** - * Represents a precision declaration (e.g. 'precision mediump float;'). - */ -struct ASTPrecision : public ASTDeclaration { - // FIXME handle the type - ASTPrecision(Position position, Modifiers::Flag precision) - : INHERITED(position, kPrecision_Kind) - , fPrecision(precision) {} - - String description() const { - switch (fPrecision) { - case Modifiers::kLowp_Flag: return String("precision lowp float;"); - case Modifiers::kMediump_Flag: return String("precision mediump float;"); - case Modifiers::kHighp_Flag: return String("precision highp float;"); - default: - ASSERT(false); - return String("<error>"); - } - ASSERT(false); - return String("<error>"); - } - - const Modifiers::Flag fPrecision; - - typedef ASTDeclaration INHERITED; -}; - -} // namespace - -#endif |