aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrDrawState.h
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-27 18:14:57 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-27 18:14:57 +0000
commit31ec7985f2b52a0cab4aa714a613b918cf663c08 (patch)
treead59af0996923cf29291351a003767204d70c653 /src/gpu/GrDrawState.h
parent04b959abfc971804bb5b1ee177eb7c24c716ec13 (diff)
Move GrGLProgram::Desc out of GrGLProgram.
Review URL: https://codereview.chromium.org/12942014 git-svn-id: http://skia.googlecode.com/svn/trunk@8411 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrDrawState.h')
-rw-r--r--src/gpu/GrDrawState.h31
1 files changed, 1 insertions, 30 deletions
diff --git a/src/gpu/GrDrawState.h b/src/gpu/GrDrawState.h
index fed89dbefc..8b7a36e466 100644
--- a/src/gpu/GrDrawState.h
+++ b/src/gpu/GrDrawState.h
@@ -16,6 +16,7 @@
#include "GrStencil.h"
#include "GrTemplates.h"
#include "GrTexture.h"
+#include "GrTypesPriv.h"
#include "effects/GrSimpleTextureEffect.h"
#include "SkMatrix.h"
@@ -24,36 +25,6 @@
class GrPaint;
/**
- * Types used to describe format of vertices in arrays
- */
-enum GrVertexAttribType {
- kFloat_GrVertexAttribType = 0,
- kVec2f_GrVertexAttribType,
- kVec3f_GrVertexAttribType,
- kVec4f_GrVertexAttribType,
- kVec4ub_GrVertexAttribType, // vector of 4 unsigned bytes, e.g. colors
-
- kLast_GrVertexAttribType = kVec4ub_GrVertexAttribType
-};
-static const int kGrVertexAttribTypeCount = kLast_GrVertexAttribType + 1;
-
-struct GrVertexAttrib {
- inline void set(GrVertexAttribType type, size_t offset) {
- fType = type; fOffset = offset;
- }
- bool operator==(const GrVertexAttrib& other) const {
- return fType == other.fType && fOffset == other.fOffset;
- };
- bool operator!=(const GrVertexAttrib& other) const { return !(*this == other); }
-
- GrVertexAttribType fType;
- size_t fOffset;
-};
-
-template <int N>
-class GrVertexAttribArray : public SkSTArray<N, GrVertexAttrib, true> {};
-
-/**
* Type used to describe how attributes bind to program usage
*/
typedef int GrAttribBindings;