From: bsalomon@google.com Date: Mon, 31 Mar 2014 18:03:06 +0000 (+0000) Subject: Revert "disable passing discards through GrIODB." X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~8466 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=efa85aaa2815e6b3291b1a3fd720e504beb616ea;p=platform%2Fupstream%2FlibSkiaSharp.git Revert "disable passing discards through GrIODB." This reverts commit 3cdd1460991b723521be8b7c26e808e640402b7e. The original CL was landed only to do an experimental DEPS roll to Chromium. BUG=skia: Review URL: https://codereview.chromium.org/219023008 git-svn-id: http://skia.googlecode.com/svn/trunk@13995 2bbb7eff-a529-9590-31e7-b0007b416f81 --- diff --git a/src/gpu/GrInOrderDrawBuffer.cpp b/src/gpu/GrInOrderDrawBuffer.cpp index 3e8dc18..5b3bc3a 100644 --- a/src/gpu/GrInOrderDrawBuffer.cpp +++ b/src/gpu/GrInOrderDrawBuffer.cpp @@ -645,7 +645,7 @@ void GrInOrderDrawBuffer::flush() { ++currClip; break; case kClear_Cmd: - if (false && GrColor_ILLEGAL == fClears[currClear].fColor) { + if (GrColor_ILLEGAL == fClears[currClear].fColor) { fDstGpu->discard(fClears[currClear].fRenderTarget); } else { fDstGpu->clear(&fClears[currClear].fRect,