diff options
author | skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-02-06 07:01:54 +0000 |
---|---|---|
committer | skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-02-06 07:01:54 +0000 |
commit | ae683921ffda9108147a29da7319c7eee4dc9245 (patch) | |
tree | 3cbbd9d92e5061a4f5d9d76ec5d2f9ccb6450733 /src/gpu | |
parent | 53f3f31e17ab814b233080d6a76af6e9ce20abbd (diff) |
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@7608 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/GrDrawTarget.h | 6 | ||||
-rw-r--r-- | src/gpu/GrInOrderDrawBuffer.cpp | 4 | ||||
-rw-r--r-- | src/gpu/GrTextContext.cpp | 2 | ||||
-rw-r--r-- | src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h index 2a3681f553..5a558ed6db 100644 --- a/src/gpu/GrDrawTarget.h +++ b/src/gpu/GrDrawTarget.h @@ -277,7 +277,7 @@ public: * the vertex data when this is called. * * @param vertexArray cpu array containing vertex data. - * @param vertexCount the number of vertices in the array. Vertex size is + * @param vertexCount the number of vertices in the array. Vertex size is * queried from the current GrDrawState. */ void setVertexSourceToArray(const void* vertexArray, int vertexCount); @@ -296,7 +296,7 @@ public: * in the buffer until drawIndexed, drawNonIndexed, or drawIndexedInstances. * * @param buffer vertex buffer containing vertex data. Must be - * unlocked before draw call. Vertex size is queried + * unlocked before draw call. Vertex size is queried * from current GrDrawState. */ void setVertexSourceToBuffer(const GrVertexBuffer* buffer); @@ -600,7 +600,7 @@ public: class AutoGeometryAndStatePush : ::GrNoncopyable { public: - AutoGeometryAndStatePush(GrDrawTarget* target, ASRInit init) + AutoGeometryAndStatePush(GrDrawTarget* target, ASRInit init) : fState(target, init) { GrAssert(NULL != target); fTarget = target; diff --git a/src/gpu/GrInOrderDrawBuffer.cpp b/src/gpu/GrInOrderDrawBuffer.cpp index ce41ae1d92..991d858174 100644 --- a/src/gpu/GrInOrderDrawBuffer.cpp +++ b/src/gpu/GrInOrderDrawBuffer.cpp @@ -257,7 +257,7 @@ int GrInOrderDrawBuffer::concatInstancedDraw(const DrawInfo& info) { instancesToConcat = GrMin(instancesToConcat, info.instanceCount()); // update the amount of reserved vertex data actually referenced in draws - size_t vertexBytes = instancesToConcat * info.verticesPerInstance() * + size_t vertexBytes = instancesToConcat * info.verticesPerInstance() * drawState.getVertexSize(); poolState.fUsedPoolVertexBytes = GrMax(poolState.fUsedPoolVertexBytes, vertexBytes); @@ -321,7 +321,7 @@ void GrInOrderDrawBuffer::onDraw(const DrawInfo& info) { break; case kReserved_GeometrySrcType: // fallthrough case kArray_GeometrySrcType: { - size_t vertexBytes = (info.vertexCount() + info.startVertex()) * + size_t vertexBytes = (info.vertexCount() + info.startVertex()) * drawState.getVertexSize(); poolState.fUsedPoolVertexBytes = GrMax(poolState.fUsedPoolVertexBytes, vertexBytes); draw->fVertexBuffer = poolState.fPoolVertexBuffer; diff --git a/src/gpu/GrTextContext.cpp b/src/gpu/GrTextContext.cpp index 684b7f749f..b1973a6e89 100644 --- a/src/gpu/GrTextContext.cpp +++ b/src/gpu/GrTextContext.cpp @@ -208,7 +208,7 @@ HAS_ATLAS: if (NULL != fDrawTarget) { fDrawTarget->drawState()->setVertexLayout(fVertexLayout); flush = fDrawTarget->geometryHints(&fMaxVertices, NULL); - } + } if (flush) { this->flushGlyphs(); fContext->flush(); diff --git a/src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp b/src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp index 3a7bdd5c8f..64f073a75f 100644 --- a/src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp +++ b/src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp @@ -50,7 +50,7 @@ const GrGLInterface* GrGLCreateNativeInterface() { } GrGLGetStringProc glGetString = (GrGLGetStringProc) GetProcAddress(alu.get(), "glGetString"); - + if (NULL != wglGetCurrentContext()) { const char* versionString = (const char*) glGetString(GR_GL_VERSION); const char* extString = (const char*) glGetString(GR_GL_EXTENSIONS); |