skia2/include/gpu
senorblanco@chromium.org b7b7eb32f4 Fix accessBitmap() with deferred clear, GPU path.
When accessBitmap() is called on a GPU device which has deferred clear,
and no drawing has been done, force the clear before returning the
bitmap.

This is covered by the top right test case in the imagefilterscropexpand
GM, where an offset image filter is drawn but the resulting bitmap is
cropped out, resulting in no drawing to the offscreen. It should be
empty, but without this fix it results in garbage (previous scratch
texture contents).

BUG=skia:
R=bsalomon@google.com

Review URL: https://codereview.chromium.org/204903002

git-svn-id: http://skia.googlecode.com/svn/trunk@13860 2bbb7eff-a529-9590-31e7-b0007b416f81
2014-03-19 18:24:04 +00:00
..
gl Cleanup GrGLInterface after Chromium changes 2014-02-28 20:28:50 +00:00
GrBackendEffectFactory.h Split atomic and mutex implementations and make inlinable. 2013-12-18 15:27:39 +00:00
GrClipData.h Replace all instances of GrRect with SkRect. 2013-07-17 21:39:42 +00:00
GrColor.h Replace uses of GrAssert by SkASSERT. 2013-08-17 00:02:59 +00:00
GrConfig.h Allow specifying the max texture count on the bots 2013-10-30 17:04:16 +00:00
GrContext.h Add API for GrContext to recommend rendertarget sample count 2014-03-10 07:40:03 +00:00
GrContextFactory.h Turn NVPR on by default (but off in tools). 2014-01-24 20:49:44 +00:00
GrCoordTransform.h Allow gradient optimization with perspective 2013-10-04 01:20:09 +00:00
GrDrawEffect.h Make GPU coord transforms automatic 2013-10-02 13:04:56 +00:00
GrEffect.h Implement SkColorFilter as a GrGLEffect 2013-10-23 05:42:03 +00:00
GrEffectStage.h Replace uses of GR_DEBUGCODE by SkDEBUGCODE. 2013-09-06 23:13:05 +00:00
GrEffectUnitTest.h Specialize GrConvexPolyEffect for AA rects, use for AA clip rects. 2014-02-08 19:31:05 +00:00
GrFontScaler.h Remove GrRefCnt.h in favor of SkRefCnt.h 2013-09-09 13:38:37 +00:00
GrGlyph.h GrAtlas cleanup: Split out GrPlot and GrAtlas 2013-09-27 19:39:38 +00:00
GrKey.h Remove GrRefCnt.h in favor of SkRefCnt.h 2013-09-09 13:38:37 +00:00
GrPaint.h Implement SkColorFilter as a GrGLEffect 2013-10-23 05:42:03 +00:00
GrPathRendererChain.h Revert of r13384 (Stateful PathRenderer implementation) 2014-02-11 16:30:21 +00:00
GrPoint.h Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
GrRect.h Replace all instances of GrRect with SkRect. 2013-07-17 21:39:42 +00:00
GrRenderTarget.h Replace uses of GrAssert by SkASSERT. 2013-08-17 00:02:59 +00:00
GrResource.h Sanitizing source files in Housekeeper-Nightly 2013-10-30 07:01:56 +00:00
GrSurface.h Update all callsites to use info for pixelrefs 2013-12-13 19:45:58 +00:00
GrTBackendEffectFactory.h Analytic rrect clip for cicular corners, radius >= 0.5 2014-02-19 15:18:05 +00:00
GrTexture.h Make it explicit that some validate methods are debug only 2013-10-02 16:42:21 +00:00
GrTextureAccess.h Make GrBicubicEffect take tile modes rather than GrTextureParams. 2013-12-10 12:53:39 +00:00
GrTypes.h Sanitizing source files in Housekeeper-Nightly 2013-12-04 07:02:26 +00:00
GrTypesPriv.h Sanitizing source files in Housekeeper-Nightly 2014-03-06 03:02:32 +00:00
GrUserConfig.h Sanitizing source files in Housekeeper-Nightly 2013-10-31 07:01:53 +00:00
SkGpuDevice.h Fix accessBitmap() with deferred clear, GPU path. 2014-03-19 18:24:04 +00:00
SkGr.h Change device factories to take SkImageInfo instead of SkBitmap::Config 2014-02-16 00:59:25 +00:00
SkGrPixelRef.h Resolve a few memory leaks in tests. 2014-01-24 18:33:07 +00:00
SkGrTexturePixelRef.h Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00