Flutter Engine
The Flutter Engine
ClearBuffersTask.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_task_ClearBuffersTask_DEFINED
9#define skgpu_graphite_task_ClearBuffersTask_DEFINED
10
14
15namespace skgpu::graphite {
16
17/**
18 * Task that clears a region of a list of buffers to 0.
19 */
20class ClearBuffersTask final : public Task {
21public:
23 ~ClearBuffersTask() override;
24
27 const RuntimeEffectDictionary*) override {
28 return Status::kSuccess;
29 }
30
31 Status addCommands(Context*, CommandBuffer*, ReplayTargetData) override;
32
33private:
35 : fClearList(std::move(clearList)) {}
36
38};
39
40} // namespace skgpu::graphite
41
42#endif // skgpu_graphite_task_ClearBuffersTask_DEFINED
Status addCommands(Context *, CommandBuffer *, ReplayTargetData) override
static sk_sp< ClearBuffersTask > Make(skia_private::TArray< ClearBufferInfo >)
Status prepareResources(ResourceProvider *, ScratchResourceManager *, const RuntimeEffectDictionary *) override
Definition: ref_ptr.h:256