aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrDrawState.h
diff options
context:
space:
mode:
authorGravatar jvanverth@google.com <jvanverth@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-01 20:30:01 +0000
committerGravatar jvanverth@google.com <jvanverth@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-01 20:30:01 +0000
commit3b0d631cdfe2dcf59e7b7ea60d92566eade7bfc0 (patch)
tree8c416b03a5c1c1776c2cbbf0b5fed1be76022e94 /src/gpu/GrDrawState.h
parentcef21e415b4b1fd7ed25a447a05d82a1b756c703 (diff)
Remove constructors from GrVertexAttrib.
It fits our style better to use initializer lists, so the constructors have been removed and replaced with said lists. Review URL: https://codereview.chromium.org/12379052 git-svn-id: http://skia.googlecode.com/svn/trunk@7936 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrDrawState.h')
-rw-r--r--src/gpu/GrDrawState.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpu/GrDrawState.h b/src/gpu/GrDrawState.h
index b4d130648b..fd11d2164e 100644
--- a/src/gpu/GrDrawState.h
+++ b/src/gpu/GrDrawState.h
@@ -38,9 +38,9 @@ enum GrVertexAttribType {
static const int kGrVertexAttribTypeCount = kLast_GrVertexAttribType + 1;
struct GrVertexAttrib {
- inline GrVertexAttrib() {}
- inline GrVertexAttrib(GrVertexAttribType type, size_t offset) :
- fType(type), fOffset(offset) {}
+ 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;
};