Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(325)

Unified Diff: src/gpu/gl/GrGpuGL_program.cpp

Issue 685883003: Clip in grdrawtarget (Closed) Base URL: https://skia.googlesource.com/skia.git@drawtarget_on_clip_manager
Patch Set: dm cleaned up Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/gpu/gl/GrGpuGL_program.cpp
diff --git a/src/gpu/gl/GrGpuGL_program.cpp b/src/gpu/gl/GrGpuGL_program.cpp
index 330f348d86551f6ff20fa5cfbafc86f5b625bb79..fd6124fa78261de3556bbfbca0b3435ab843b15b 100644
--- a/src/gpu/gl/GrGpuGL_program.cpp
+++ b/src/gpu/gl/GrGpuGL_program.cpp
@@ -257,15 +257,9 @@ bool GrGpuGL::flushGraphicsState(DrawType type,
this->flushScissor(scissorState, glRT->getViewport(), glRT->origin());
this->flushAAState(*optState.get(), type);
- SkIRect* devRect = NULL;
- SkIRect devClipBounds;
- if (optState->isClipState()) {
- this->getClip()->getConservativeBounds(optState->getRenderTarget(), &devClipBounds);
- devRect = &devClipBounds;
- }
// This must come after textures are flushed because a texture may need
// to be msaa-resolved (which will modify bound FBO state).
- this->flushRenderTarget(glRT, devRect);
+ this->flushRenderTarget(glRT, NULL);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698