this->onClear(rect, color, canIgnoreRect);
}
-void GrGpu::forceRenderTargetFlush() {
- this->handleDirtyContext();
- this->onForceRenderTargetFlush();
-}
-
bool GrGpu::readPixels(GrRenderTarget* target,
int left, int top, int width, int height,
GrPixelConfig config, void* buffer,
void resolveRenderTarget(GrRenderTarget* target);
/**
- * Ensures that the current render target is actually set in the
- * underlying 3D API. Used when client wants to use 3D API to directly
- * render to the RT.
- */
- void forceRenderTargetFlush();
-
- /**
* Gets a preferred 8888 config to use for writing/reading pixel data to/from a surface with
* config surfaceConfig. The returned config must have at least as many bits per channel as the
* readConfig or writeConfig param.
virtual void onGpuDrawPaths(size_t, const GrPath**, const SkMatrix*,
SkPath::FillType, SkStrokeRec::Style) = 0;
- // overridden by backend-specific derived class to perform flush
- virtual void onForceRenderTargetFlush() = 0;
-
// overridden by backend-specific derived class to perform the read pixels.
virtual bool onReadPixels(GrRenderTarget* target,
int left, int top, int width, int height,
fHWStencilSettings.invalidate();
}
-void GrGpuGL::onForceRenderTargetFlush() {
- this->flushRenderTarget(&SkIRect::EmptyIRect());
-}
-
bool GrGpuGL::readPixelsWillPayForYFlip(GrRenderTarget* renderTarget,
int left, int top,
int width, int height,
virtual void onClear(const SkIRect* rect, GrColor color, bool canIgnoreRect) SK_OVERRIDE;
- virtual void onForceRenderTargetFlush() SK_OVERRIDE;
-
virtual bool onReadPixels(GrRenderTarget* target,
int left, int top,
int width, int height,