Index: src/gpu/GrInOrderDrawBuffer.h |
diff --git a/src/gpu/GrInOrderDrawBuffer.h b/src/gpu/GrInOrderDrawBuffer.h |
index 72d0f9656ef449c50eab7848f342e579efc774b8..0e0c57db3f93a31024558b5a2bd467592f3fcc87 100644 |
--- a/src/gpu/GrInOrderDrawBuffer.h |
+++ b/src/gpu/GrInOrderDrawBuffer.h |
@@ -72,7 +72,9 @@ public: |
virtual void clear(const SkIRect* rect, |
GrColor color, |
bool canIgnoreRect, |
- GrRenderTarget* renderTarget = NULL) SK_OVERRIDE; |
+ GrRenderTarget* renderTarget) SK_OVERRIDE; |
+ |
+ virtual void discard(GrRenderTarget*) SK_OVERRIDE; |
virtual void initCopySurfaceDstDesc(const GrSurface* src, GrTextureDesc* desc) SK_OVERRIDE; |
@@ -125,6 +127,7 @@ private: |
GrDeviceCoordTexture fDstCopy; |
}; |
+ // This is also used to record a discard by setting the color to GrColor_ILLEGAL |
struct Clear : public ::SkNoncopyable { |
Clear() : fRenderTarget(NULL) {} |
~Clear() { SkSafeUnref(fRenderTarget); } |