Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
compute_pass.cc
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
9ComputePass::ComputePass(std::shared_ptr<const Context> context)
10 : context_(std::move(context)) {}
11
13
14void ComputePass::SetLabel(const std::string& label) {
15 if (label.empty()) {
16 return;
17 }
18 OnSetLabel(label);
19}
20
21} // namespace impeller
virtual void OnSetLabel(const std::string &label)=0
ComputePass(std::shared_ptr< const Context > context)
void SetLabel(const std::string &label)
Definition ref_ptr.h:256