Index: src/gpu/GrGpu.h |
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h |
index 5b5be1b69b08763f302978f0c8df8de584a61da4..539a6a7a60daceb25102b7dd08d366bb66bf4e8e 100644 |
--- a/src/gpu/GrGpu.h |
+++ b/src/gpu/GrGpu.h |
@@ -14,6 +14,7 @@ |
#include "SkPath.h" |
class GrContext; |
+struct GrGLInterface; |
class GrNonInstancedVertices; |
class GrPath; |
class GrPathRange; |
@@ -386,6 +387,9 @@ public: |
// Given a rt, find or create a stencil buffer and attach it |
bool attachStencilAttachmentToRenderTarget(GrRenderTarget* target); |
+ // This is only to be used in tests. |
+ virtual const GrGLInterface* glInterfaceForTesting() const { return NULL; } |
+ |
protected: |
// Functions used to map clip-respecting stencil tests into normal |
// stencil funcs supported by GPUs. |