• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 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 GrBackendSurfaceMutableState_DEFINED
9 #define GrBackendSurfaceMutableState_DEFINED
10 
11 #include "include/gpu/MutableTextureState.h"
12 
13 class GrBackendSurfaceMutableState : public skgpu::MutableTextureState {
14 public:
15     GrBackendSurfaceMutableState() = default;
16 
17 #ifdef SK_VULKAN
GrBackendSurfaceMutableState(VkImageLayout layout,uint32_t queueFamilyIndex)18     GrBackendSurfaceMutableState(VkImageLayout layout, uint32_t queueFamilyIndex)
19             : skgpu::MutableTextureState(layout, queueFamilyIndex) {}
20 #endif
21 
GrBackendSurfaceMutableState(const GrBackendSurfaceMutableState & that)22     GrBackendSurfaceMutableState(const GrBackendSurfaceMutableState& that)
23             : skgpu::MutableTextureState(that) {}
24 };
25 
26 #endif
27