Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
SynchronizeToCpuTask.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
12
13namespace skgpu::graphite {
14
18
20
22 CommandBuffer* commandBuffer,
24 return commandBuffer->synchronizeBufferToCpu(std::move(fBuffer)) ? Status::kSuccess
25 : Status::kFail;
26}
27
28} // namespace skgpu::graphite
bool synchronizeBufferToCpu(sk_sp< Buffer >)
static sk_sp< SynchronizeToCpuTask > Make(sk_sp< Buffer >)
Status addCommands(Context *, CommandBuffer *, ReplayTargetData) override
static const uint8_t buffer[]