diff options
author | reed <reed@google.com> | 2014-06-17 09:04:45 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-06-17 09:04:45 -0700 |
commit | 859b92448b27bb16852474f9a612748b3fd816d5 (patch) | |
tree | cf47ba7db2ef3c78de4fcd28c2bf59447230ac17 /include/core/SkVertState.h | |
parent | c3b3266b7db2f1a41d41ecac010c766b7ad8eebc (diff) |
move some headers out of public
patch from issue 338263003
BUG=skia:
R=mtklein@google.com
Author: reed@google.com
Review URL: https://codereview.chromium.org/339183002
Diffstat (limited to 'include/core/SkVertState.h')
-rw-r--r-- | include/core/SkVertState.h | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/include/core/SkVertState.h b/include/core/SkVertState.h deleted file mode 100644 index ecf1773dc7..0000000000 --- a/include/core/SkVertState.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2014 Google Inc. - * - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -#ifndef SkVertState_DEFINED -#define SkVertState_DEFINED - -#include "SkCanvas.h" - -/** \struct VertState - This is a helper for drawVertices(). It is used to iterate over the triangles - that are to be rendered based on an SkCanvas::VertexMode and (optionally) an - index array. It does not copy the index array and the client must ensure it - remains valid for the lifetime of the VertState object. -*/ - -struct VertState { - int f0, f1, f2; - - /** - * Construct a VertState from a vertex count, index array, and index count. - * If the vertices are unindexed pass NULL for indices. - */ - VertState(int vCount, const uint16_t indices[], int indexCount) - : fIndices(indices) { - fCurrIndex = 0; - if (indices) { - fCount = indexCount; - } else { - fCount = vCount; - } - } - - typedef bool (*Proc)(VertState*); - - /** - * Choose an appropriate function to traverse the vertices. - * @param mode Specifies the SkCanvas::VertexMode. - */ - Proc chooseProc(SkCanvas::VertexMode mode); - -private: - int fCount; - int fCurrIndex; - const uint16_t* fIndices; - - static bool Triangles(VertState*); - static bool TrianglesX(VertState*); - static bool TriangleStrip(VertState*); - static bool TriangleStripX(VertState*); - static bool TriangleFan(VertState*); - static bool TriangleFanX(VertState*); -}; - -#endif |