DescriptionSimplify GrGLPathRendering interface
Simplify GrGLPathRendering interface by removing polymorphism and functions that
simply wrap GL functions unnecessarily.
Replace the polymorphism by if -condition.
Call the unconditional GL functions directly. GrGLPath, GrGLPathRange and
GrGLPathRendering are part of the same logical subsystem. This means that the
subsystem implementation details are taken into account within these
classes. Example: if support for using conics would be added, the feature flag
would go to GrGLPathRendering::Caps, the emulation would go to GrGLPath instead of
GrGLPathRendering::pathCommands. Wrapping glPathCommandsNV is not useful.
Try to expose the interface fully in same logical level; rename fragment input
function to reflect this.
Committed: https://skia.googlesource.com/skia/+/5b653577994fe298e08e5f7a5c1fa39fe53c9203
Patch Set 1 #
Total comments: 2
Patch Set 2 : address review comment #Patch Set 3 : rebase #
Messages
Total messages: 15 (0 generated)
|