Index: include/gpu/GrDrawContext.h |
diff --git a/include/gpu/GrDrawContext.h b/include/gpu/GrDrawContext.h |
index 2a1d016541a11e83814fc19818752a86779f732d..81380f47b207db04a8f514643cc14c53397ef9bb 100644 |
--- a/include/gpu/GrDrawContext.h |
+++ b/include/gpu/GrDrawContext.h |
@@ -24,6 +24,7 @@ class GrRenderTarget; |
class GrStrokeInfo; |
class GrSurface; |
class GrTextContext; |
+class GrTexture; |
class SkDrawFilter; |
struct SkIPoint; |
struct SkIRect; |
@@ -42,6 +43,14 @@ class SK_API GrDrawContext : public SkRefCnt { |
public: |
~GrDrawContext() override; |
+ // This closes off other's draw commands since at this point in its |
bsalomon
2015/07/08 19:06:36
It looks like the user of a GrDrawContext is respo
|
+ // execution its result is needed by the current draw context. |
+ void uses(GrDrawContext* other) {} |
+ |
+ // TODO: ideally we would know if this guy resulted from some draws |
+ void uses(GrTexture* tex) {} |
+ //void done() {} |
+ |
void copySurface(GrRenderTarget* dst, GrSurface* src, |
const SkIRect& srcRect, const SkIPoint& dstPoint); |