Index: src/gpu/gl/GrGLGpu.h |
diff --git a/src/gpu/gl/GrGLGpu.h b/src/gpu/gl/GrGLGpu.h |
index 637a1cf16157af0a0b95f7802f181e6525b179fc..3c6e9edecab0780adc3789eae6dcc1e276e0c590 100644 |
--- a/src/gpu/gl/GrGLGpu.h |
+++ b/src/gpu/gl/GrGLGpu.h |
@@ -128,6 +128,8 @@ public: |
bool isTestingOnlyBackendTexture(GrBackendObject) const override; |
void deleteTestingOnlyBackendTexture(GrBackendObject, bool abandonTexture) const override; |
+ void drawDebugWireRect(GrRenderTarget*, const SkIRect&, GrColor) override; |
+ |
private: |
GrGLGpu(GrGLContext* ctx, GrContext* context); |
@@ -323,6 +325,8 @@ private: |
SkAutoTUnref<GrGLContext> fGLContext; |
void createCopyPrograms(); |
+ void createWireRectProgram(); |
+ void createUnitRectBuffer(); |
// GL program-related state |
ProgramCache* fProgramCache; |
@@ -500,6 +504,13 @@ private: |
} fCopyPrograms[2]; |
GrGLuint fCopyProgramArrayBuffer; |
+ struct { |
+ GrGLuint fProgram; |
+ GrGLint fColorUniform; |
+ GrGLint fRectUniform; |
+ } fWireRectProgram; |
+ GrGLuint fWireRectArrayBuffer; |
+ |
static int TextureTargetToCopyProgramIdx(GrGLenum target) { |
if (target == GR_GL_TEXTURE_2D) { |
return 0; |