remove static from template functions
http://codereview.appspot.com/4437055/ git-svn-id: http://skia.googlecode.com/svn/trunk@1151 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
1217afe9a7
commit
34cec2416c
@ -22,7 +22,7 @@
|
|||||||
// recursive helper for creating mask with all the tex coord bits set for
|
// recursive helper for creating mask with all the tex coord bits set for
|
||||||
// one stage
|
// one stage
|
||||||
template <int N>
|
template <int N>
|
||||||
static int stage_mask_recur(int stage) {
|
int stage_mask_recur(int stage) {
|
||||||
return GrDrawTarget::StageTexCoordVertexLayoutBit(stage, N) |
|
return GrDrawTarget::StageTexCoordVertexLayoutBit(stage, N) |
|
||||||
stage_mask_recur<N+1>(stage);
|
stage_mask_recur<N+1>(stage);
|
||||||
}
|
}
|
||||||
@ -43,7 +43,7 @@ static int stage_mask(int stage) {
|
|||||||
// recursive helper for creating mask of with all bits set relevant to one
|
// recursive helper for creating mask of with all bits set relevant to one
|
||||||
// texture coordinate index
|
// texture coordinate index
|
||||||
template <int N>
|
template <int N>
|
||||||
static int tex_coord_mask_recur(int texCoordIdx) {
|
int tex_coord_mask_recur(int texCoordIdx) {
|
||||||
return GrDrawTarget::StageTexCoordVertexLayoutBit(N, texCoordIdx) |
|
return GrDrawTarget::StageTexCoordVertexLayoutBit(N, texCoordIdx) |
|
||||||
tex_coord_mask_recur<N+1>(texCoordIdx);
|
tex_coord_mask_recur<N+1>(texCoordIdx);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user