Separate GL path rendering state from GrGpuGL to GrGLPathRendering
authorkkinnunen <kkinnunen@nvidia.com>
Wed, 20 Aug 2014 08:36:23 +0000 (01:36 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 20 Aug 2014 08:36:24 +0000 (01:36 -0700)
commitccdaa0422501e5cbcba53d6bd19f2736f1beaef3
tree906738bcb15b393917e80d64a30cd23d7343e29c
parentcecc91c4446c9c2f9b95736e206bfd1d507a75a9
Separate GL path rendering state from GrGpuGL to GrGLPathRendering

Separate GL path rendering state from GrGpuGL to GrGLPathRendering. This
makes GrGpuGL code simpler.

The intention is that while GrGpuGL represents the global environment for GL,
the GrGLPathRendering represents the global environment for path rendering
extension.

Add GrPathRendering, a base class for path rendering, and inherit
GrGLPathRendering from that. Move the path rendering virtual functions from
GrGpu to GrPathRendering.

R=bsalomon@google.com, cdalton@nvidia.com

Author: kkinnunen@nvidia.com

Review URL: https://codereview.chromium.org/452823002
18 files changed:
gyp/gpu.gypi
src/gpu/GrDrawTarget.h
src/gpu/GrGpu.cpp
src/gpu/GrGpu.h
src/gpu/GrInOrderDrawBuffer.cpp
src/gpu/GrPathRendering.h [new file with mode: 0644]
src/gpu/GrStencilAndCoverTextContext.cpp
src/gpu/gl/GrGLPath.cpp
src/gpu/gl/GrGLPathRange.cpp
src/gpu/gl/GrGLPathRendering.cpp
src/gpu/gl/GrGLPathRendering.h
src/gpu/gl/GrGLProgram.cpp
src/gpu/gl/GrGLProgramEffects.cpp
src/gpu/gl/GrGLUtil.cpp
src/gpu/gl/GrGLUtil.h
src/gpu/gl/GrGpuGL.cpp
src/gpu/gl/GrGpuGL.h
src/gpu/gl/GrGpuGL_program.cpp