Avoid creating GrGLPath to the resource cache when creating GrGLPathRanges
authorkkinnunen <kkinnunen@nvidia.com>
Mon, 25 May 2015 05:12:21 +0000 (22:12 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 25 May 2015 05:12:22 +0000 (22:12 -0700)
commit61e91966aaa2b42ade8a74229abd9a3304ce2003
treeada14c15679d92c87367f41e9e28f969c10c65d4
parent43c5bababcc16ab0140e117db7817f7bda859aad
Avoid creating GrGLPath to the resource cache when creating GrGLPathRanges

Do not create a GrGLPath when loading glyphs with the driver and creating
GrGLPathRange based on those. The path would be inserted to the GPU
resource cache and then immediately be released.

Instead, just init the first path object of the path range as the
template.

Review URL: https://codereview.chromium.org/1146983004
src/gpu/gl/GrGLPathRendering.cpp