Flutter Engine
The Flutter Engine
third_party
skia
src
gpu
graphite
dawn
DawnSampler.h
Go to the documentation of this file.
1
/*
2
* Copyright 2022 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 skgpu_graphite_DawnSampler_DEFINED
9
#define skgpu_graphite_DawnSampler_DEFINED
10
11
#include "
src/gpu/graphite/Sampler.h
"
12
13
#include "
include/core/SkTileMode.h
"
14
#include "webgpu/webgpu_cpp.h"
// NO_G3_REWRITE
15
16
struct
SkSamplingOptions
;
17
18
namespace
skgpu::graphite
{
19
20
class
DawnSharedContext;
21
22
class
DawnSampler
:
public
Sampler
{
23
public
:
24
static
sk_sp<DawnSampler>
Make
(
const
DawnSharedContext
*,
25
const
SkSamplingOptions
& samplingOptions,
26
SkTileMode
xTileMode,
27
SkTileMode
yTileMode);
28
~DawnSampler
()
override
{}
29
30
const
wgpu::Sampler
&
dawnSampler
()
const
{
return
fSampler; }
31
32
private
:
33
DawnSampler
(
const
DawnSharedContext
*
sharedContext
,
34
wgpu::Sampler
sampler);
35
36
void
freeGpuData()
override
;
37
38
wgpu::Sampler
fSampler;
39
};
40
41
}
// namepsace skgpu::graphite
42
43
#endif
// skgpu_graphite_DawnSampler_DEFINED
Sampler.h
SkTileMode.h
SkTileMode
SkTileMode
Definition:
SkTileMode.h:13
sk_sp
Definition:
SkRefCnt.h:220
skgpu::graphite::DawnSampler
Definition:
DawnSampler.h:22
skgpu::graphite::DawnSampler::dawnSampler
const wgpu::Sampler & dawnSampler() const
Definition:
DawnSampler.h:30
skgpu::graphite::DawnSampler::Make
static sk_sp< DawnSampler > Make(const DawnSharedContext *, const SkSamplingOptions &samplingOptions, SkTileMode xTileMode, SkTileMode yTileMode)
Definition:
DawnSampler.cpp:64
skgpu::graphite::DawnSampler::~DawnSampler
~DawnSampler() override
Definition:
DawnSampler.h:28
skgpu::graphite::DawnSharedContext
Definition:
DawnSharedContext.h:22
skgpu::graphite::Resource::sharedContext
const SharedContext * sharedContext() const
Definition:
Resource.h:189
skgpu::graphite::Sampler
Definition:
Sampler.h:15
flutter::Sampler
std::function< ProfileSample(void)> Sampler
Sampler is run during SamplingProfiler::SampleRepeatedly. Each platform should implement its version ...
Definition:
sampling_profiler.h:73
skgpu::graphite
Definition:
BoundsManagerBench.cpp:27
SkSamplingOptions
Definition:
SkSamplingOptions.h:58
Generated on Sun Jun 23 2024 21:56:26 for Flutter Engine by
1.9.4