| Flutter Impeller |

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
5 #include "impeller/renderer/compute_pass.h"
6
7 namespace impeller {
8
9 ComputePass::ComputePass(std::shared_ptr<const Context> context)
10 : context_(std::move(context)) {}
11
12 ComputePass::~ComputePass() = default;
13
14 void ComputePass::SetLabel(const std::string& label) {
15 if (label.empty()) {
16 return;
17 }
18 OnSetLabel(label);
19 }
20
21 } // namespace impeller
impeller::ComputePass::ComputePass
ComputePass(std::shared_ptr< const Context > context)
Definition: compute_pass.cc:9
impeller::ComputePass::OnSetLabel
virtual void OnSetLabel(const std::string &label)=0
impeller::ComputePass::SetLabel
void SetLabel(const std::string &label)
Definition: compute_pass.cc:14
std
Definition: comparable.h:95
impeller::ComputePass::~ComputePass
virtual ~ComputePass()
compute_pass.h
impeller
Definition: allocation.cc:12