Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
ClearBuffersTask.cpp
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
9
11
12namespace skgpu::graphite {
13
17
19
21 CommandBuffer* commandBuffer,
23 bool result = true;
24 for (const auto& c : fClearList) {
25 result &= commandBuffer->clearBuffer(c.fBuffer, c.fOffset, c.fSize);
26 }
27 return result ? Status::kSuccess : Status::kFail;
28}
29
30} // namespace skgpu::graphite
Status addCommands(Context *, CommandBuffer *, ReplayTargetData) override
static sk_sp< ClearBuffersTask > Make(skia_private::TArray< ClearBufferInfo >)
bool clearBuffer(const Buffer *buffer, size_t offset, size_t size)
GAsyncResult * result