blob: 0467e8f81e5f33164e5c63bccb87f8b81dd8fe0e [file] [log] [blame]
/*
* 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"
#ifdef SK_VULKAN
#include "include/private/gpu/vk/SkiaVulkan.h"
#include <cstdint>
#endif
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