Flutter Engine
The Flutter Engine
GrBufferTransferRenderTask.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
13
15 size_t srcOffset,
17 size_t dstOffset,
18 size_t size) {
20 srcOffset,
21 std::move(dst),
22 dstOffset,
23 size));
24}
25
26GrBufferTransferRenderTask::GrBufferTransferRenderTask(sk_sp<GrGpuBuffer> src,
27 size_t srcOffset,
29 size_t dstOffset,
30 size_t size)
31 : fSrc(std::move(src))
32 , fDst(std::move(dst))
33 , fSrcOffset(srcOffset)
34 , fDstOffset(dstOffset)
35 , fSize(size) {
37}
38
40
41bool GrBufferTransferRenderTask::onExecute(GrOpFlushState* flushState) {
42 return flushState->gpu()->transferFromBufferToBuffer(fSrc,
43 fSrcOffset,
44 fDst,
45 fDstOffset,
46 fSize);
47}
SkRect fDst
Definition: LatticeOp.cpp:381
~GrBufferTransferRenderTask() override
static sk_sp< GrRenderTask > Make(sk_sp< GrGpuBuffer > src, size_t srcOffset, sk_sp< GrGpuBuffer > dst, size_t dstOffset, size_t size)
bool transferFromBufferToBuffer(sk_sp< GrGpuBuffer > src, size_t srcOffset, sk_sp< GrGpuBuffer > dst, size_t dstOffset, size_t size)
Definition: GrGpu.cpp:511
void setFlag(uint32_t flag)
Definition: GrRenderTask.h:200
@ kBlocksReordering_Flag
No task can be reordered with respect to this task.
Definition: GrRenderTask.h:194
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition: switches.h:259
dst
Definition: cp.py:12
Definition: ref_ptr.h:256