aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrRenderTargetContext.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gpu/GrRenderTargetContext.h')
-rw-r--r--include/gpu/GrRenderTargetContext.h27
1 files changed, 7 insertions, 20 deletions
diff --git a/include/gpu/GrRenderTargetContext.h b/include/gpu/GrRenderTargetContext.h
index 6ed321c0f7..20ca59f45a 100644
--- a/include/gpu/GrRenderTargetContext.h
+++ b/include/gpu/GrRenderTargetContext.h
@@ -11,25 +11,19 @@
#include "GrColor.h"
#include "GrContext.h"
#include "GrPaint.h"
-#include "GrRenderTarget.h"
+#include "GrSurfaceContext.h"
#include "SkRefCnt.h"
-#include "SkRegion.h"
#include "SkSurfaceProps.h"
#include "../private/GrInstancedPipelineInfo.h"
#include "../private/GrRenderTargetProxy.h"
-#include "../private/GrSingleOwner.h"
-class GrAuditTrail;
class GrClip;
class GrDrawBatch;
-class GrRenderTargetContextPriv;
-class GrDrawPathBatchBase;
class GrDrawingManager;
class GrFixedClip;
-class GrPaint;
-class GrPathProcessor;
class GrPipelineBuilder;
class GrRenderTarget;
+class GrRenderTargetContextPriv;
class GrRenderTargetOpList;
class GrStyle;
class GrSurface;
@@ -44,18 +38,19 @@ class SkPaint;
class SkPath;
struct SkPoint;
struct SkRect;
+class SkRegion;
class SkRRect;
struct SkRSXform;
class SkTextBlob;
-/*
- * A helper object to orchestrate draws
+/**
+ * A helper object to orchestrate commands (draws, etc...) for GrSurfaces that are GrRenderTargets.
*/
-class SK_API GrRenderTargetContext : public SkRefCnt {
+class SK_API GrRenderTargetContext : public GrSurfaceContext {
public:
~GrRenderTargetContext() override;
- bool copySurface(GrSurface* src, const SkIRect& srcRect, const SkIPoint& dstPoint);
+ bool copySurface(GrSurface* src, const SkIRect& srcRect, const SkIPoint& dstPoint) override;
// TODO: it is odd that we need both the SkPaint in the following 3 methods.
// We should extract the text parameters from SkPaint and pass them separately
@@ -385,8 +380,6 @@ public:
GrRenderTargetContextPriv priv();
const GrRenderTargetContextPriv priv() const;
- GrAuditTrail* auditTrail() { return fAuditTrail; }
-
bool isWrapped_ForTesting() const;
protected:
@@ -396,7 +389,6 @@ protected:
GrDrawingManager* drawingManager() { return fDrawingManager; }
- SkDEBUGCODE(GrSingleOwner* singleOwner() { return fSingleOwner; })
SkDEBUGCODE(void validate() const;)
private:
@@ -462,16 +454,11 @@ private:
// In MDB-mode the GrOpList can be closed by some other renderTargetContext that has picked
// it up. For this reason, the GrOpList should only ever be accessed via 'getOpList'.
GrRenderTargetOpList* fOpList;
- GrContext* fContext;
GrInstancedPipelineInfo fInstancedPipelineInfo;
sk_sp<SkColorSpace> fColorSpace;
sk_sp<GrColorSpaceXform> fColorXformFromSRGB;
SkSurfaceProps fSurfaceProps;
- GrAuditTrail* fAuditTrail;
-
- // In debug builds we guard against improper thread handling
- SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;)
};
#endif