Index: src/gpu/GrGpu.h |
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h |
index d8e5681de150eca89714c9d9a8a831772f1b5b35..4714d36913fa3da4a435ea6e040fbabaf512f544 100644 |
--- a/src/gpu/GrGpu.h |
+++ b/src/gpu/GrGpu.h |
@@ -11,6 +11,7 @@ |
#include "GrPipelineBuilder.h" |
#include "GrProgramDesc.h" |
#include "GrStencil.h" |
+#include "GrTextureParamsAdjuster.h" |
#include "GrXferProcessor.h" |
#include "SkPath.h" |
@@ -378,6 +379,13 @@ public: |
// clears target's entire stencil buffer to 0 |
virtual void clearStencil(GrRenderTarget* target) = 0; |
+ |
+ // Determines whether a copy of a texture must be made in order to be compatible with |
+ // a given GrTextureParams. If so, the width, height and filter used for the copy are |
+ // output via the CopyParams. |
+ bool makeCopyForTextureParams(int width, int height, const GrTextureParams&, |
+ GrTextureParamsAdjuster::CopyParams*) const; |
+ |
// This is only to be used in GL-specific tests. |
virtual const GrGLContext* glContextForTesting() const { return nullptr; } |