Flutter Engine
The Flutter Engine
sampler_mtl.mm
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
6
7namespace impeller {
8
9SamplerMTL::SamplerMTL(SamplerDescriptor desc, id<MTLSamplerState> state)
10 : Sampler(std::move(desc)), state_(state) {
11 FML_DCHECK(state_);
12}
13
14SamplerMTL::~SamplerMTL() = default;
15
16id<MTLSamplerState> SamplerMTL::GetMTLSamplerState() const {
17 return state_;
18}
19
20} // namespace impeller
AtkStateType state
#define FML_DCHECK(condition)
Definition: logging.h:103
std::function< ProfileSample(void)> Sampler
Sampler is run during SamplingProfiler::SampleRepeatedly. Each platform should implement its version ...
Definition: ref_ptr.h:256