Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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
13
14class GrVkImageLayout : public SkRefCnt {
15public:
16 GrVkImageLayout(VkImageLayout layout) : fLayout(layout) {}
17
19 // Defaulting to use std::memory_order_seq_cst
20 fLayout.store(layout);
21 }
22
24 // Defaulting to use std::memory_order_seq_cst
25 return fLayout.load();
26 }
27
28private:
29 std::atomic<VkImageLayout> fLayout;
30};
31
32#endif
VkImageLayout getImageLayout() const
void setImageLayout(VkImageLayout layout)
GrVkImageLayout(VkImageLayout layout)
VkImageLayout