Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Unified Diff: src/gpu/GrGpu.h

Issue 1232173002: Remove GL-specific code from GMs and tests (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: More clean-up Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/gpu/GrGpu.h
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h
index 8d449b7606351511367888e77c99ad6d5565ebc1..1d3b7a947bd669dfeb49803c5fbf0d8b2ed85f9b 100644
--- a/src/gpu/GrGpu.h
+++ b/src/gpu/GrGpu.h
@@ -362,12 +362,15 @@ public:
void saveActiveTraceMarkers();
void restoreActiveTraceMarkers();
+ // creation and deletion of raw texture for testing
+ virtual GrBackendObject createBackendTexture(void* pixels, int w, int h,
robertphillips 2015/07/10 18:45:18 tab this over ?
jvanverth1 2015/07/10 19:59:44 Done.
+ 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.
- virtual const GrGLContext* glContextForTesting() const { return NULL; }
-
protected:
// Functions used to map clip-respecting stencil tests into normal
// stencil funcs supported by GPUs.

Powered by Google App Engine
This is Rietveld 408576698