Use sktarray.begin() instead of &sktarray[0].

Evaluating &sktarray[0] when sktarray.count() == 0 asserts.
This was causing ASAN failures.

TBR=bsalomon
NOTREECHECKS=true
NOTRY=true

Review URL: https://codereview.chromium.org/1812963002
This commit is contained in:
bungeman 2016-03-17 10:22:12 -07:00 committed by Commit bot
parent 13bf3396be
commit c85ce7ce80

View File

@ -184,8 +184,9 @@ inline bool init_path_object_for_general_path(GrGLGpu* gpu, GrGLuint pathID,
SkASSERT(verbCnt == pathCommands.count());
SkASSERT(numCoords == pathCoords.count());
GR_GL_CALL(gpu->glInterface(), PathCommands(pathID, pathCommands.count(), &pathCommands[0],
pathCoords.count(), GR_GL_FLOAT, &pathCoords[0]));
GR_GL_CALL(gpu->glInterface(),
PathCommands(pathID, pathCommands.count(), pathCommands.begin(),
pathCoords.count(), GR_GL_FLOAT, pathCoords.begin()));
return true;
}