aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrCaps.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gpu/GrCaps.h')
-rw-r--r--include/gpu/GrCaps.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/gpu/GrCaps.h b/include/gpu/GrCaps.h
index 02a51a092d..b88146f374 100644
--- a/include/gpu/GrCaps.h
+++ b/include/gpu/GrCaps.h
@@ -21,6 +21,7 @@ class GrBackendTexture;
struct GrContextOptions;
class GrRenderTargetProxy;
class GrSurface;
+class GrSurfaceProxy;
class SkJSONWriter;
/**
@@ -233,6 +234,14 @@ public:
bool crossContextTextureSupport() const { return fCrossContextTextureSupport; }
/**
+ * Returns whether or not we will be able to do a copy given the passed in params
+ */
+ virtual bool canCopySurface(const GrSurfaceProxy* /*dst*/, const GrSurfaceProxy* /*src*/,
+ const SkIRect& /*srcRect*/, const SkIPoint& /*dstPoint*/) const {
+ return true;
+ }
+
+ /**
* This is can be called before allocating a texture to be a dst for copySurface. This is only
* used for doing dst copies needed in blends, thus the src is always a GrRenderTargetProxy. It
* will populate config and flags fields of the desc such that copySurface can efficiently