diff options
author | 2014-11-05 07:05:34 -0800 | |
---|---|---|
committer | 2014-11-05 07:05:34 -0800 | |
commit | 63b21962867af0f98e12a3ccbe5eef76b7ecc3aa (patch) | |
tree | de7d7e1dc8306de3ceee04f1235ac853b7b22623 /src/gpu/GrDrawTarget.h | |
parent | 0737922ca249dde6187920f491fe2cf3a710cb68 (diff) |
Workaround for PowerVR clear issue.
BUG=skia:
Review URL: https://codereview.chromium.org/701573002
Diffstat (limited to 'src/gpu/GrDrawTarget.h')
-rw-r--r-- | src/gpu/GrDrawTarget.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h index b1f758a731..47b439e114 100644 --- a/src/gpu/GrDrawTarget.h +++ b/src/gpu/GrDrawTarget.h @@ -395,8 +395,8 @@ public: * rect is NULL, otherwise just the rect. If canIgnoreRect is set then the entire render target * can be optionally cleared. */ - virtual void clear(const SkIRect* rect, GrColor color, bool canIgnoreRect, - GrRenderTarget* renderTarget) = 0; + void clear(const SkIRect* rect, GrColor color, bool canIgnoreRect, + GrRenderTarget* renderTarget); /** * Discards the contents render target. @@ -855,6 +855,10 @@ private: const float transforms[], PathTransformType, GrPathRendering::FillType, const GrDeviceCoordTexture*) = 0; + virtual void onClear(const SkIRect* rect, GrColor color, bool canIgnoreRect, + GrRenderTarget* renderTarget) = 0; + + virtual void didAddGpuTraceMarker() = 0; virtual void didRemoveGpuTraceMarker() = 0; |