8#ifndef GrMockGpu_DEFINED
9#define GrMockGpu_DEFINED
48class RefCntedCallback;
64 [[nodiscard]] std::unique_ptr<GrSemaphore>
makeSemaphore(
bool isOwned)
override {
91 int renderTargetSampleCnt,
95 uint32_t levelClearMask,
96 std::string_view label)
override;
104 size_t dataSize)
override;
130 size_t rowBytes)
override {
140 bool prepForTexSampling)
override {
148 size_t size)
override {
158 size_t rowBytes)
override {
177 bool onRegenerateMipMapLevels(
GrTexture*)
override {
return true; }
184 finishedProc(finishedContext);
198 bool onSubmitToGpu(
GrSyncCpu)
override {
return true; }
201 SkISize dimensions,
int numStencilSamples)
override;
221 std::string_view label)
override;
225 std::array<float, 4>
color)
override {
245#if defined(GR_TEST_UTILS)
257 static int NextInternalTextureID();
258 static int NextExternalTextureID();
259 static int NextInternalRenderTargetID();
260 static int NextExternalRenderTargetID();
264 using INHERITED =
GrGpu;
void * GrGpuFinishedContext
void(* GrGpuFinishedProc)(GrGpuFinishedContext finishedContext)
GrGpu(GrDirectContext *direct)
sk_sp< GrThreadSafePipelineBuilder > refPipelineBuilder() override
std::unique_ptr< GrSemaphore > prepareTextureForCrossContextUsage(GrTexture *) override
static std::unique_ptr< GrGpu > Make(const GrMockOptions *, const GrContextOptions &, GrDirectContext *)
void submit(GrOpsRenderPass *renderPass) override
std::unique_ptr< GrSemaphore > wrapBackendSemaphore(const GrBackendSemaphore &, GrSemaphoreWrapType, GrWrapOwnership) override
void checkFinishProcs() override
GrThreadSafePipelineBuilder * pipelineBuilder() override
void insertSemaphore(GrSemaphore *semaphore) override
void finishOutstandingGpuWork() override
std::unique_ptr< GrSemaphore > makeSemaphore(bool isOwned) override
void waitSemaphore(GrSemaphore *semaphore) override
uint32_t uint32_t * format
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
std::shared_ptr< const fml::Mapping > data