Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
GrWritePixelsRenderTask.h
Go to the documentation of this file.
1/*
2 * Copyright 2021 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 GrWritePixelsTask_DEFINED
9#define GrWritePixelsTask_DEFINED
10
12
13class GrWritePixelsTask final : public GrRenderTask {
14public:
17 SkIRect,
18 GrColorType srcColorType,
19 GrColorType dstColorType,
20 const GrMipLevel[],
21 int levelCount);
22
23private:
26 SkIRect,
27 GrColorType srcColorType,
28 GrColorType dstColorType,
29 const GrMipLevel[],
30 int levelCount);
31
32 bool onIsUsed(GrSurfaceProxy* proxy) const override { return false; }
33 void gatherProxyIntervals(GrResourceAllocator*) const override;
34 ExpectedOutcome onMakeClosed(GrRecordingContext*, SkIRect* targetUpdateBounds) override;
35 bool onExecute(GrOpFlushState*) override;
36
37#if defined(GR_TEST_UTILS)
38 const char* name() const final { return "WritePixels"; }
39#endif
40#ifdef SK_DEBUG
41 void visitProxies_debugOnly(const GrVisitProxyFunc&) const override {}
42#endif
43
45 SkIRect fRect;
46 GrColorType fSrcColorType;
47 GrColorType fDstColorType;
48};
49
50#endif
51
std::function< void(GrSurfaceProxy *, skgpu::Mipmapped)> GrVisitProxyFunc
GrColorType
void gatherProxyIntervals(GrResourceAllocator *) const override
static sk_sp< GrRenderTask > Make(GrDrawingManager *, sk_sp< GrSurfaceProxy >, SkIRect, GrColorType srcColorType, GrColorType dstColorType, const GrMipLevel[], int levelCount)
bool onExecute(GrOpFlushState *) override
ExpectedOutcome onMakeClosed(GrRecordingContext *, SkIRect *targetUpdateBounds) override
bool onIsUsed(GrSurfaceProxy *proxy) const override
const char * name
Definition fuchsia.cc:50