Index: src/gpu/GrGpu.cpp |
diff --git a/src/gpu/GrGpu.cpp b/src/gpu/GrGpu.cpp |
index 5325aaeb3f5c8a87df4d69ad0be9e97ed00fadda..587867516fc6a4b8f35a504a726a94c77b9393c5 100644 |
--- a/src/gpu/GrGpu.cpp |
+++ b/src/gpu/GrGpu.cpp |
@@ -212,6 +212,20 @@ void GrGpu::clear(const SkIRect* rect, |
this->onClear(renderTarget, rect, color, canIgnoreRect); |
} |
+void GrGpu::clearStencilClip(const SkIRect& rect, |
+ bool insideClip, |
+ GrRenderTarget* renderTarget) { |
+ if (NULL == renderTarget) { |
+ renderTarget = this->getDrawState().getRenderTarget(); |
+ } |
+ if (NULL == renderTarget) { |
+ SkASSERT(0); |
+ return; |
+ } |
+ this->handleDirtyContext(); |
+ this->onClearStencilClip(renderTarget, rect, insideClip); |
+} |
+ |
bool GrGpu::readPixels(GrRenderTarget* target, |
int left, int top, int width, int height, |
GrPixelConfig config, void* buffer, |
@@ -302,7 +316,7 @@ bool GrGpu::setupClipAndFlushState(DrawType type, |
const GrDeviceCoordTexture* dstCopy, |
const SkRect* devBounds, |
GrDrawState::AutoRestoreEffects* are) { |
- ScissorState scissorState; |
+ GrClipMaskManager::ScissorState scissorState; |
GrDrawState::AutoRestoreStencil ars; |
if (!fClipMaskManager.setupClipping(this->getClip(), |
devBounds, |