Flutter Engine
The Flutter Engine
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:
35 void onAbandon() override {
38 }
39
40 void onRelease() override {
43 }
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:85
GrMipmapStatus
Definition: GrTypesPriv.h:523
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
static sk_sp< GrMtlTextureRenderTarget > MakeWrappedTextureRenderTarget(GrMtlGpu *, SkISize, int sampleCnt, id< MTLTexture >, GrWrapCacheable)
void onRelease() override
Definition: GrMtlTexture.h:60
GrBackendFormat backendFormat() const override
void onAbandon() override
Definition: GrMtlTexture.h:56
FlTexture * texture
Budgeted
Definition: GpuTypes.h:35
Definition: SkSize.h:16