diff options
author | 2013-01-31 20:15:36 +0000 | |
---|---|---|
committer | 2013-01-31 20:15:36 +0000 | |
commit | 84cd77c4eb3145335a76966e582d0d9c71ecc264 (patch) | |
tree | a57452fbd13692ac252581c707ee008703a87c97 /src/gpu/GrTextContext.cpp | |
parent | cfcb1bef94a8cfb565d9450b38f57d4f5c83790a (diff) |
Change vertex buffer allocator functions to take size rather than layout.
https://codereview.appspot.com/7228078
git-svn-id: http://skia.googlecode.com/svn/trunk@7498 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrTextContext.cpp')
-rw-r--r-- | src/gpu/GrTextContext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/GrTextContext.cpp b/src/gpu/GrTextContext.cpp index 206f4ca3fb..97e92fa1ef 100644 --- a/src/gpu/GrTextContext.cpp +++ b/src/gpu/GrTextContext.cpp @@ -204,7 +204,7 @@ HAS_ATLAS: // a number of verts to reserve and whether to perform a flush. fMaxVertices = kMinRequestedVerts; bool flush = (NULL != fDrawTarget) && - fDrawTarget->geometryHints(fVertexLayout, + fDrawTarget->geometryHints(GrDrawState::VertexSize(fVertexLayout), &fMaxVertices, NULL); if (flush) { @@ -214,7 +214,7 @@ HAS_ATLAS: fDrawTarget = fContext->getTextTarget(fPaint); fMaxVertices = kDefaultRequestedVerts; // ignore return, no point in flushing again. - fDrawTarget->geometryHints(fVertexLayout, + fDrawTarget->geometryHints(GrDrawState::VertexSize(fVertexLayout), &fMaxVertices, NULL); |