Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
GrMtlTextureRenderTarget.h
Go to the documentation of this file.
1/*
2 * Copyright 2018 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef GrMtlTextureRenderTarget_DEFINED
9#define GrMtlTextureRenderTarget_DEFINED
10
13
15public:
18 SkISize,
19 int sampleCnt,
20 MTLPixelFormat,
21 uint32_t mipLevels,
23 std::string_view label);
24
26 SkISize,
27 int sampleCnt,
28 id<MTLTexture>,
30 GrBackendFormat backendFormat() const override {
32 }
33
34protected:
39
44
45private:
47 skgpu::Budgeted budgeted,
48 SkISize,
53 std::string_view label);
54
56 SkISize,
61 GrWrapCacheable cacheable,
62 std::string_view label);
63
64 size_t onGpuMemorySize() const override;
65
66 void onSetLabel() override;
67};
68
69#endif
GrWrapCacheable
Definition GrTypesPriv.h:84
GrMipmapStatus
GrMtlAttachment * colorAttachment() const
void onAbandon() override
GrMtlAttachment * resolveAttachment() const
void onRelease() override
static sk_sp< GrMtlTextureRenderTarget > MakeNewTextureRenderTarget(GrMtlGpu *, skgpu::Budgeted, SkISize, int sampleCnt, MTLPixelFormat, uint32_t mipLevels, GrMipmapStatus, std::string_view label)
GrBackendFormat backendFormat() const override
size_t onGpuMemorySize() const override
static sk_sp< GrMtlTextureRenderTarget > MakeWrappedTextureRenderTarget(GrMtlGpu *, SkISize, int sampleCnt, id< MTLTexture >, GrWrapCacheable)
void onRelease() override
GrBackendFormat backendFormat() const override
void onAbandon() override
FlTexture * texture
Budgeted
Definition GpuTypes.h:35