Flutter Engine
The Flutter Engine
third_party
skia
src
gpu
ganesh
vk
GrVkImageLayout.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 GrVkImageLayout_DEFINED
9
#define GrVkImageLayout_DEFINED
10
11
#include "
include/core/SkRefCnt.h
"
12
#include "
include/gpu/vk/GrVkTypes.h
"
13
14
class
GrVkImageLayout
:
public
SkRefCnt
{
15
public
:
16
GrVkImageLayout
(
VkImageLayout
layout) : fLayout(layout) {}
17
18
void
setImageLayout
(
VkImageLayout
layout) {
19
// Defaulting to use std::memory_order_seq_cst
20
fLayout.store(layout);
21
}
22
23
VkImageLayout
getImageLayout
()
const
{
24
// Defaulting to use std::memory_order_seq_cst
25
return
fLayout.load();
26
}
27
28
private
:
29
std::atomic<VkImageLayout> fLayout;
30
};
31
32
#endif
GrVkTypes.h
SkRefCnt.h
GrVkImageLayout
Definition:
GrVkImageLayout.h:14
GrVkImageLayout::getImageLayout
VkImageLayout getImageLayout() const
Definition:
GrVkImageLayout.h:23
GrVkImageLayout::setImageLayout
void setImageLayout(VkImageLayout layout)
Definition:
GrVkImageLayout.h:18
GrVkImageLayout::GrVkImageLayout
GrVkImageLayout(VkImageLayout layout)
Definition:
GrVkImageLayout.h:16
SkRefCnt
Definition:
SkRefCnt.h:119
VkImageLayout
VkImageLayout
Definition:
vulkan_core.h:1330
Generated on Sun Jun 23 2024 21:56:25 for Flutter Engine by
1.9.4