diff options
Diffstat (limited to 'gfx/skia/skia/include/gpu/GrBackendSurfaceMutableState.h')
-rw-r--r-- | gfx/skia/skia/include/gpu/GrBackendSurfaceMutableState.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gfx/skia/skia/include/gpu/GrBackendSurfaceMutableState.h b/gfx/skia/skia/include/gpu/GrBackendSurfaceMutableState.h new file mode 100644 index 0000000000..cbf27bf7e5 --- /dev/null +++ b/gfx/skia/skia/include/gpu/GrBackendSurfaceMutableState.h @@ -0,0 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#ifndef GrBackendSurfaceMutableState_DEFINED +#define GrBackendSurfaceMutableState_DEFINED + +#include "include/gpu/MutableTextureState.h" + +class GrBackendSurfaceMutableState : public skgpu::MutableTextureState { +public: + GrBackendSurfaceMutableState() = default; + +#ifdef SK_VULKAN + GrBackendSurfaceMutableState(VkImageLayout layout, uint32_t queueFamilyIndex) + : skgpu::MutableTextureState(layout, queueFamilyIndex) {} +#endif + + GrBackendSurfaceMutableState(const GrBackendSurfaceMutableState& that) + : skgpu::MutableTextureState(that) {} +}; + +#endif |