8#ifndef GrMockOpsRenderPass_DEFINED
9#define GrMockOpsRenderPass_DEFINED
41 , fColorLoadOp(colorInfo.fLoadOp) {
50 void onBegin()
override {
52 this->markRenderTargetDirty();
56 void onSetScissorRect(
const SkIRect&)
override {}
64 void onDraw(
int,
int)
override { this->noopDraw(); }
65 void onDrawIndexed(
int,
int, uint16_t, uint16_t,
int)
override { this->noopDraw(); }
66 void onDrawInstanced(
int,
int,
int,
int)
override { this->noopDraw(); }
67 void onDrawIndexedInstanced(
int,
int,
int,
int,
int)
override { this->noopDraw(); }
68 void onDrawIndirect(
const GrBuffer*,
size_t,
int)
override { this->noopDraw(); }
69 void onDrawIndexedIndirect(
const GrBuffer*,
size_t,
int)
override { this->noopDraw(); }
70 void onClear(
const GrScissorState& scissor, std::array<float, 4>)
override {
71 this->markRenderTargetDirty();
73 void onClearStencilClip(
const GrScissorState& scissor,
bool insideStencilMask)
override {}
75 this->markRenderTargetDirty();
78 void markRenderTargetDirty() {
80 tex->markMipmapsDirty();
std::function< void(GrDeferredTextureUploadWritePixelsFn &)> GrDeferredTextureUploadFn
GrMockOpsRenderPass(GrMockGpu *gpu, GrRenderTarget *rt, GrSurfaceOrigin origin, LoadAndStoreInfo colorInfo)
void inlineUpload(GrOpFlushState *, GrDeferredTextureUploadFn &) override
GrRenderTarget * fRenderTarget
virtual GrTexture * asTexture()