Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Unified Diff: include/gpu/GrDrawContext.h

Issue 1225923010: Refugee from Dead Machine 4: MDB Monster Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698