| Index: src/gpu/instanced/InstanceProcessor.h
|
| diff --git a/src/gpu/instanced/InstanceProcessor.h b/src/gpu/instanced/InstanceProcessor.h
|
| index b0edde95b8262137f4d6cc1f653f0f7d7bc2240c..0b3a16d5a4b3fc1b769982592cb7f3f5e0b685a7 100644
|
| --- a/src/gpu/instanced/InstanceProcessor.h
|
| +++ b/src/gpu/instanced/InstanceProcessor.h
|
| @@ -8,6 +8,7 @@
|
| #ifndef gr_instanced_InstanceProcessor_DEFINED
|
| #define gr_instanced_InstanceProcessor_DEFINED
|
|
|
| +#include "GrCaps.h"
|
| #include "GrBufferAccess.h"
|
| #include "GrGeometryProcessor.h"
|
| #include "instanced/InstancedRenderingTypes.h"
|
| @@ -22,8 +23,6 @@ namespace gr_instanced {
|
| */
|
| class InstanceProcessor : public GrGeometryProcessor {
|
| public:
|
| - static bool IsSupported(const GrGLSLCaps&, const GrCaps&, AntialiasMode* lastSupportedAAMode);
|
| -
|
| InstanceProcessor(BatchInfo, GrBuffer* paramsBuffer);
|
|
|
| const char* name() const override { return "Instance Processor"; }
|
| @@ -52,9 +51,17 @@ public:
|
| static const char* GetNameOfIndexRange(IndexRange);
|
|
|
| private:
|
| + /**
|
| + * Called by the platform-specific instanced rendering implementation to determine the level of
|
| + * support this class can offer on the given GLSL platform.
|
| + */
|
| + static GrCaps::InstancedSupport CheckSupport(const GrGLSLCaps&, const GrCaps&);
|
| +
|
| const BatchInfo fBatchInfo;
|
| GrBufferAccess fParamsAccess;
|
|
|
| + friend class GLInstancedRendering; // For CheckSupport.
|
| +
|
| typedef GrGeometryProcessor INHERITED;
|
| };
|
|
|
|
|