| Index: src/gpu/gl/GrGLGpu.h
|
| diff --git a/src/gpu/gl/GrGLGpu.h b/src/gpu/gl/GrGLGpu.h
|
| index 6ec3881b893d3e47826aedbf0cc0d8b1a5007eb1..d802f08b75b236ce6a8820a82e50b7a565fbd97d 100644
|
| --- a/src/gpu/gl/GrGLGpu.h
|
| +++ b/src/gpu/gl/GrGLGpu.h
|
| @@ -131,6 +131,8 @@ public:
|
|
|
| void resetShaderCacheForTesting() const override;
|
|
|
| + void drawDebugWireRect(GrRenderTarget*, const SkIRect&, GrColor) override;
|
| +
|
| private:
|
| GrGLGpu(GrGLContext* ctx, GrContext* context);
|
|
|
| @@ -328,6 +330,8 @@ private:
|
| SkAutoTUnref<GrGLContext> fGLContext;
|
|
|
| void createCopyPrograms();
|
| + void createWireRectProgram();
|
| + void createUnitRectBuffer();
|
|
|
| // GL program-related state
|
| ProgramCache* fProgramCache;
|
| @@ -505,6 +509,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;
|
|
|