aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrGpu.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-10-19 08:24:08 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-10-19 08:24:09 -0700
commit1a197ea31e0aac7ea312e9a6c0d9f5df626b0350 (patch)
tree0ca9a78db8e6e71b37fd9f25194fef1fb9e5ed94 /src/gpu/GrGpu.h
parentcdf79dbf2f18aca733a1d33f8c5f32a8e85c142c (diff)
Rewrite GrTextureMaker to disentangle bitmap case from base class and give GPU object a say in what copying needs to be done.
Diffstat (limited to 'src/gpu/GrGpu.h')
-rw-r--r--src/gpu/GrGpu.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h
index d8e5681de1..4714d36913 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; }