Flutter Engine
The Flutter Engine
third_party
skia
src
gpu
ganesh
d3d
GrD3DResourceState.h
Go to the documentation of this file.
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 GrD3DResourceState_DEFINED
9
#define GrD3DResourceState_DEFINED
10
11
#include "
include/core/SkRefCnt.h
"
12
#include "
include/gpu/d3d/GrD3DTypes.h
"
13
14
class
GrD3DResourceState
:
public
SkRefCnt
{
15
public
:
16
GrD3DResourceState
(D3D12_RESOURCE_STATES
state
) : fState(
state
) {}
17
18
void
setResourceState
(D3D12_RESOURCE_STATES
state
) {
19
// Defaulting to use std::memory_order_seq_cst
20
fState.store(
state
);
21
}
22
23
D3D12_RESOURCE_STATES
getResourceState
()
const
{
24
// Defaulting to use std::memory_order_seq_cst
25
return
fState.load();
26
}
27
28
private
:
29
std::atomic<D3D12_RESOURCE_STATES> fState;
30
};
31
32
#endif
GrD3DTypes.h
SkRefCnt.h
GrD3DResourceState
Definition:
GrD3DResourceState.h:14
GrD3DResourceState::setResourceState
void setResourceState(D3D12_RESOURCE_STATES state)
Definition:
GrD3DResourceState.h:18
GrD3DResourceState::GrD3DResourceState
GrD3DResourceState(D3D12_RESOURCE_STATES state)
Definition:
GrD3DResourceState.h:16
GrD3DResourceState::getResourceState
D3D12_RESOURCE_STATES getResourceState() const
Definition:
GrD3DResourceState.h:23
SkRefCnt
Definition:
SkRefCnt.h:119
state
AtkStateType state
Definition:
fl_accessible_node.cc:10
Generated on Sun Jun 23 2024 21:56:17 for Flutter Engine by
1.9.4