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

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

Issue 715903002: Push creation of default GP to the caller (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 1 month 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/GrContext.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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 enum GPType { 70 enum GPType {
71 kPosition_GPType = 0x0, // we ALWAYS have position 71 kPosition_GPType = 0x0, // we ALWAYS have position
72 kColor_GPType = 0x01, 72 kColor_GPType = 0x01,
73 kLocalCoord_GPType = 0x02, 73 kLocalCoord_GPType = 0x02,
74 kCoverage_GPType= 0x04, 74 kCoverage_GPType= 0x04,
75 kLastGPType = kCoverage_GPType 75 kLastGPType = kCoverage_GPType
76 }; 76 };
77 77
78 // YOU MUST UNREF 78 // YOU MUST UNREF
79 static const GrGeometryProcessor* CreateAndSetAttribs(GrDrawState*, uint32_t GPTypeFlags); 79 static void SetAttribs(GrDrawState*, uint32_t GPTypeFlags = 0);
bsalomon 2014/11/13 14:39:21 Can we have some more detailed comments here about
80 static const GrGeometryProcessor* Create(); 80 static const GrGeometryProcessor* CreateAndSetAttribs(GrDrawState*, uint32_t GPTypeFlags = 0);
81 static const GrGeometryProcessor* Create(bool hasAttributeCoverage);
81 }; 82 };
82 83
83 #endif 84 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrContext.cpp ('k') | src/gpu/GrDefaultGeoProcFactory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698