| Index: src/gpu/instanced/GLInstancedRendering.h
|
| diff --git a/src/gpu/instanced/GLInstancedRendering.h b/src/gpu/instanced/GLInstancedRendering.h
|
| index 3b87b0485ac46d1ab99a3d2bdec7e9e8b06f6dc3..4e17cb4535c7c9b1a509b93582dc5670199730b0 100644
|
| --- a/src/gpu/instanced/GLInstancedRendering.h
|
| +++ b/src/gpu/instanced/GLInstancedRendering.h
|
| @@ -8,9 +8,11 @@
|
| #ifndef gr_instanced_GLInstancedRendering_DEFINED
|
| #define gr_instanced_GLInstancedRendering_DEFINED
|
|
|
| +#include "GrCaps.h"
|
| #include "gl/GrGLBuffer.h"
|
| #include "instanced/InstancedRendering.h"
|
|
|
| +class GrGLCaps;
|
| class GrGLGpu;
|
|
|
| #define GR_GL_LOG_INSTANCED_BATCHES 0
|
| @@ -19,11 +21,15 @@ namespace gr_instanced {
|
|
|
| class GLInstancedRendering final : public InstancedRendering {
|
| public:
|
| - static GLInstancedRendering* CreateIfSupported(GrGLGpu*);
|
| + GLInstancedRendering(GrGLGpu*);
|
| ~GLInstancedRendering() override;
|
|
|
| private:
|
| - GLInstancedRendering(GrGLGpu*, AntialiasMode lastSupportedAAMode);
|
| + /**
|
| + * Called by GrGLCaps to determine the level of support this class can offer for instanced
|
| + * rendering on the current platform.
|
| + */
|
| + static GrCaps::InstancedSupport CheckSupport(const GrGLCaps&);
|
|
|
| GrGLGpu* glGpu() const;
|
|
|
| @@ -52,6 +58,8 @@ private:
|
|
|
| class GLBatch;
|
|
|
| + friend class ::GrGLCaps; // For CheckSupport.
|
| +
|
| typedef InstancedRendering INHERITED;
|
| };
|
|
|
|
|