Index: src/gpu/gl/GrGLGpu.h |
diff --git a/src/gpu/gl/GrGLGpu.h b/src/gpu/gl/GrGLGpu.h |
index 9cce41c76da178efcbc836f8a0c23cc41914c9e1..844a79cc5e62d6fa8bc2f3e061ad3128881ddabc 100644 |
--- a/src/gpu/gl/GrGLGpu.h |
+++ b/src/gpu/gl/GrGLGpu.h |
@@ -54,7 +54,7 @@ public: |
return static_cast<GrGLPathRendering*>(pathRendering()); |
} |
- void discard(GrRenderTarget*) override; |
+ void discard(GrRenderTarget*); |
// Used by GrGLProgram to configure OpenGL state. |
void bindTexture(int unitIdx, const GrTextureParams& params, bool allowSRGBInputs, |
@@ -95,13 +95,31 @@ public: |
// Called by GrGLBuffer after its buffer object has been destroyed. |
void notifyBufferReleased(const GrGLBuffer*); |
+ // The GrGLGpuCommandBuffer does not buffer up draws before submitting them to the gpu. |
+ // Thus this is the implementation of the draw call for the corresponding passthrough function |
+ // on GrGLGpuCommandBuffer. |
+ void draw(const GrPipeline&, |
+ const GrPrimitiveProcessor&, |
+ const GrMesh*, |
+ int meshCount); |
+ |
+ // The GrGLGpuCommandBuffer does not buffer up draws before submitting them to the gpu. |
+ // Thus this is the implementation of the clear call for the corresponding passthrough function |
+ // on GrGLGpuCommandBuffer. |
+ void clear(const SkIRect& rect, GrColor color, GrRenderTarget* renderTarget); |
+ |
+ // The GrGLGpuCommandBuffer does not buffer up draws before submitting them to the gpu. |
+ // Thus this is the implementation of the clearStencil call for the corresponding passthrough |
+ // function on GrGLGpuCommandBuffer. |
+ void clearStencilClip(const SkIRect& rect, bool insideClip, GrRenderTarget* renderTarget); |
+ |
const GrGLContext* glContextForTesting() const override { |
return &this->glContext(); |
} |
void clearStencil(GrRenderTarget*) override; |
- GrGpuCommandBuffer* createCommandBuffer(const GrRenderTarget& target, |
+ GrGpuCommandBuffer* createCommandBuffer(GrRenderTarget* target, |
GrGpuCommandBuffer::LoadAndStoreOp colorOp, |
GrColor colorClear, |
GrGpuCommandBuffer::LoadAndStoreOp stencilOp, |
@@ -159,10 +177,6 @@ private: |
bool renderTarget, GrGLTexture::TexParams* initialTexParams, |
const SkTArray<GrMipLevel>& texels); |
- void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override; |
- |
- void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideClip) override; |
- |
bool onMakeCopyForTextureParams(GrTexture*, const GrTextureParams&, |
GrTextureProducer::CopyParams*) const override; |
@@ -199,11 +213,6 @@ private: |
void onResolveRenderTarget(GrRenderTarget* target) override; |
- void onDraw(const GrPipeline&, |
- const GrPrimitiveProcessor&, |
- const GrMesh*, |
- int meshCount) override; |
- |
bool onCopySurface(GrSurface* dst, |
GrSurface* src, |
const SkIRect& srcRect, |