aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/SkGpuDevice.h
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2017-10-23 16:05:23 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-10-23 20:25:59 +0000
commite252f08982b0c747cd4d34c00ce413ab1005e99a (patch)
tree1fde0a4ac30cf4dc1fc752ef39fc2a0b905be210 /src/gpu/SkGpuDevice.h
parent33397f279393a33eff8e32d47fc56be86b86c9bc (diff)
Add hint to SkSurface::MakeRenderTarget that we will use mips
Additionally this changed triggered a cascade of plumbing GrMipMapped down throughout Ganesh. Bug: skia: Change-Id: I4181f44d9046d66139bb491c7abf86703305aaeb Reviewed-on: https://skia-review.googlesource.com/63000 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/SkGpuDevice.h')
-rw-r--r--src/gpu/SkGpuDevice.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/gpu/SkGpuDevice.h b/src/gpu/SkGpuDevice.h
index 548819bf80..79e5991370 100644
--- a/src/gpu/SkGpuDevice.h
+++ b/src/gpu/SkGpuDevice.h
@@ -46,14 +46,15 @@ public:
/**
* New device that will create an offscreen renderTarget based on the ImageInfo and
- * sampleCount. The Budgeted param controls whether the device's backing store counts against
- * the resource cache budget. On failure, returns nullptr.
+ * sampleCount. The mipMapped flag tells the gpu to create the underlying render target with
+ * mips. The Budgeted param controls whether the device's backing store counts against the
+ * resource cache budget. On failure, returns nullptr.
* This entry point creates a kExact backing store. It is used when creating SkGpuDevices
* for SkSurfaces.
*/
static sk_sp<SkGpuDevice> Make(GrContext*, SkBudgeted, const SkImageInfo&,
- int sampleCount, GrSurfaceOrigin,
- const SkSurfaceProps*, InitContents);
+ int sampleCount, GrSurfaceOrigin, const SkSurfaceProps*,
+ GrMipMapped mipMapped, InitContents);
~SkGpuDevice() override {}
@@ -260,7 +261,8 @@ private:
const SkImageInfo&,
int sampleCount,
GrSurfaceOrigin,
- const SkSurfaceProps*);
+ const SkSurfaceProps*,
+ GrMipMapped);
friend class GrAtlasTextContext;
friend class SkSurface_Gpu; // for access to surfaceProps