| 1 |
/* |
| 2 |
* Copyright 2023 Google LLC |
| 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 GrVkBackendSurfacePriv_DEFINED |
| 9 |
#define GrVkBackendSurfacePriv_DEFINED |
| 10 |
|
| 11 |
#include "include/core/SkRefCnt.h" |
| 12 |
#include "include/gpu/ganesh/vk/GrVkTypes.h" |
| 13 |
#include "include/private/base/SkAPI.h" |
| 14 |
|
| 15 |
class GrBackendTexture; |
| 16 |
class GrBackendRenderTarget; |
| 17 |
|
| 18 |
namespace skgpu { |
| 19 |
class MutableTextureState; |
| 20 |
} |
| 21 |
|
| 22 |
namespace GrBackendTextures { |
| 23 |
|
| 24 |
SK_API GrBackendTexture MakeVk(int width, |
| 25 |
int height, |
| 26 |
const GrVkImageInfo&, |
| 27 |
sk_sp<skgpu::MutableTextureState>); |
| 28 |
|
| 29 |
} // namespace GrBackendTextures |
| 30 |
|
| 31 |
|
| 32 |
namespace GrBackendRenderTargets { |
| 33 |
|
| 34 |
SK_API GrBackendRenderTarget MakeVk(int width, |
| 35 |
int height, |
| 36 |
const GrVkImageInfo&, |
| 37 |
sk_sp<skgpu::MutableTextureState>); |
| 38 |
|
| 39 |
} // namespace GrBackendRenderTargets |
| 40 |
|
| 41 |
#endif |