Index: src/gpu/SkGpuDevice.cpp |
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp |
index 337f400056f87c9d48d7d536c6ae3d30568a4c55..de550b05c73dd1bbbe8c38876de96e946c039ad6 100644 |
--- a/src/gpu/SkGpuDevice.cpp |
+++ b/src/gpu/SkGpuDevice.cpp |
@@ -62,6 +62,7 @@ enum { kDefaultImageFilterCacheSize = 32 * 1024 * 1024 }; |
// a sub region of a larger source image. |
#define COLOR_BLEED_TOLERANCE 0.001f |
+// Do deferred clear just before any draw call |
#define DO_DEFERRED_CLEAR() \ |
do { \ |
if (fNeedClear) { \ |
@@ -301,7 +302,6 @@ void SkGpuDevice::prepareDraw(const SkDraw& draw) { |
} |
GrRenderTarget* SkGpuDevice::accessRenderTarget() { |
- DO_DEFERRED_CLEAR(); |
return fRenderTarget; |
} |