Index: src/gpu/GrGpu.h |
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h |
index 8d449b7606351511367888e77c99ad6d5565ebc1..5c9e90ba27f84869b5018ba517f7c0c192221cbc 100644 |
--- a/src/gpu/GrGpu.h |
+++ b/src/gpu/GrGpu.h |
@@ -362,10 +362,16 @@ public: |
void saveActiveTraceMarkers(); |
void restoreActiveTraceMarkers(); |
+ // creation and deletion of raw texture for testing |
+ virtual GrBackendObject createBackendTexture(void* pixels, int w, int h, |
+ GrPixelConfig config) const = 0; |
+ virtual bool isBackendTexture(GrBackendObject id) const = 0; |
+ virtual void deleteBackendTexture(GrBackendObject id) const = 0; |
+ |
// Given a rt, find or create a stencil buffer and attach it |
bool attachStencilAttachmentToRenderTarget(GrRenderTarget* target); |
- // This is only to be used in tests. |
+ // This is only to be used in GL-specific tests. |
virtual const GrGLContext* glContextForTesting() const { return NULL; } |
protected: |