diff options
author | 2016-03-17 10:22:12 -0700 | |
---|---|---|
committer | 2016-03-17 10:22:12 -0700 | |
commit | c85ce7ce805135d34b11067c502a5f88506cce44 (patch) | |
tree | c029acc2594d6f846a7f6f490e988aa61235eb26 | |
parent | 13bf3396be9f9eef523c5b4be9127b05be626de0 (diff) |
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
-rw-r--r-- | src/gpu/gl/GrGLPath.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gpu/gl/GrGLPath.cpp b/src/gpu/gl/GrGLPath.cpp index 6eab7d098d..c15a1a2d62 100644 --- a/src/gpu/gl/GrGLPath.cpp +++ b/src/gpu/gl/GrGLPath.cpp @@ -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; } |