Address clang static analyzer issues

https://codereview.chromium.org/12940011/



git-svn-id: http://skia.googlecode.com/svn/trunk@8401 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
robertphillips@google.com 2013-03-26 19:40:46 +00:00
parent ad9327f036
commit 4f65a27500
2 changed files with 4 additions and 2 deletions

View File

@ -229,7 +229,8 @@ void GrTextureStripAtlas::initLRU() {
fRows[i].fPrev = NULL;
this->appendLRU(fRows + i);
}
GrAssert(NULL == fLRUFront->fPrev && NULL == fLRUBack->fNext);
GrAssert(NULL == fLRUFront || NULL == fLRUFront->fPrev);
GrAssert(NULL == fLRUBack || NULL == fLRUBack->fNext);
}
void GrTextureStripAtlas::appendLRU(AtlasRow* row) {

View File

@ -2236,7 +2236,8 @@ GrGLAttribArrayState* GrGpuGL::HWGeometryState::bindArrayAndBuffersToDraw(
const GrGLVertexBuffer* vbuffer,
const GrGLIndexBuffer* ibuffer) {
GrAssert(NULL != vbuffer);
GrGLAttribArrayState* attribState = &fDefaultVertexArrayAttribState;
GrGLAttribArrayState* attribState;
// We use a vertex array if we're on a core profile and the verts are in a VBO.
if (gpu->glCaps().isCoreProfile() && !vbuffer->isCPUBacked()) {
if (NULL == fVBOVertexArray || !fVBOVertexArray->isValid()) {