Index: src/gpu/gl/GrGpuGL_program.cpp |
diff --git a/src/gpu/gl/GrGpuGL_program.cpp b/src/gpu/gl/GrGpuGL_program.cpp |
index ecfd81381e58fcf0e4efa25db583a380155f28eb..4a9bd02df1d2323d7819c56d36a007bf478392fd 100644 |
--- a/src/gpu/gl/GrGpuGL_program.cpp |
+++ b/src/gpu/gl/GrGpuGL_program.cpp |
@@ -203,7 +203,9 @@ GrGLProgram* GrGpuGL::ProgramCache::getProgram(const GrOptDrawState& optState, |
#define GL_CALL(X) GR_GL_CALL(this->glInterface(), X) |
-bool GrGpuGL::flushGraphicsState(DrawType type, const GrDeviceCoordTexture* dstCopy) { |
+bool GrGpuGL::flushGraphicsState(const DrawInfo& drawInfo, |
+ DrawType type, |
+ const GrDeviceCoordTexture* dstCopy) { |
SkAutoTUnref<GrOptDrawState> optState(GrOptDrawState::Create(this->getDrawState(), |
*this->caps(), |
type)); |
@@ -259,7 +261,7 @@ bool GrGpuGL::flushGraphicsState(DrawType type, const GrDeviceCoordTexture* dstC |
GrGLRenderTarget* glRT = static_cast<GrGLRenderTarget*>(optState->getRenderTarget()); |
this->flushStencil(optState->getStencil(), type); |
- this->flushScissor(glRT->getViewport(), glRT->origin()); |
+ this->flushScissor(drawInfo.getScissor(), glRT->getViewport(), glRT->origin()); |
this->flushAAState(*optState.get(), type); |
SkIRect* devRect = NULL; |