Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: src/gpu/GrDefaultGeoProcFactory.h

Issue 1213013003: Revert of Rework GrPipelineInfo (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/GrAtlasTextContext.cpp ('k') | src/gpu/GrDefaultGeoProcFactory.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2014 Google Inc. 2 * Copyright 2014 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrDefaultGeoProcFactory_DEFINED 8 #ifndef GrDefaultGeoProcFactory_DEFINED
9 #define GrDefaultGeoProcFactory_DEFINED 9 #define GrDefaultGeoProcFactory_DEFINED
10 10
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 enum GPType { 68 enum GPType {
69 kPosition_GPType = 0x0, // we ALWAYS have position 69 kPosition_GPType = 0x0, // we ALWAYS have position
70 kColor_GPType = 0x01, 70 kColor_GPType = 0x01,
71 kLocalCoord_GPType = 0x02, 71 kLocalCoord_GPType = 0x02,
72 kCoverage_GPType= 0x04, 72 kCoverage_GPType= 0x04,
73 kLastGPType = kCoverage_GPType 73 kLastGPType = kCoverage_GPType
74 }; 74 };
75 75
76 /* 76 /*
77 * The following functions are used to create default GPs. If you just need to create 77 * The following functions are used to create default GPs. If you just need to create
78 * attributes separately from creating the default GP, use the SetAttribs fu nction followed 78 * attributes seperately from creating the default GP, use the SetAttribs fu nction followed
79 * by the Create function. Otherwise use CreateAndSetAttribs to do both at o nce. 79 * by the Create function. Otherwise use CreateAndSetAttribs to do both at once.
80 * 80 *
81 * You must unref the return from Create. 81 * You must unref the return from Create.
82 */ 82 */
83 // TODO clean this up 83 // TODO clean this up
84 static const GrGeometryProcessor* Create(uint32_t gpTypeFlags, 84 static const GrGeometryProcessor* Create(uint32_t gpTypeFlags,
85 GrColor, 85 GrColor,
86 bool localCoordsWillBeRead, 86 bool usesLocalCoords,
87 bool coverageWillBeIgnored, 87 bool coverageIgnored,
88 const SkMatrix& viewMatrix = SkMatr ix::I(), 88 const SkMatrix& viewMatrix = SkMatr ix::I(),
89 const SkMatrix& localMatrix = SkMat rix::I(), 89 const SkMatrix& localMatrix = SkMat rix::I(),
90 uint8_t coverage = 0xff); 90 uint8_t coverage = 0xff);
91 91
92 static size_t DefaultVertexStride() { return sizeof(PositionAttr); } 92 static size_t DefaultVertexStride() { return sizeof(PositionAttr); }
93 }; 93 };
94 94
95 #endif 95 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrAtlasTextContext.cpp ('k') | src/gpu/GrDefaultGeoProcFactory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698