aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrGpu.h
diff options
context:
space:
mode:
authorGravatar jvanverth <jvanverth@google.com>2015-07-13 07:19:57 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-07-13 07:19:57 -0700
commit672bb7fc6640e3fc68107354ed4ae45a2a1e2d29 (patch)
treebc9247fd24909a5dd3c38e2114ba1628126da130 /src/gpu/GrGpu.h
parentab9cb427f45cdd51a5f8f6df9c19e955e555fc13 (diff)
Remove GL-specific code from GMs and tests
TBR=bsalomon@google.com Review URL: https://codereview.chromium.org/1232173002
Diffstat (limited to 'src/gpu/GrGpu.h')
-rw-r--r--src/gpu/GrGpu.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h
index 8d449b7606..0ce6bea4e6 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: