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

Unified Diff: src/gpu/SkGpuDevice.cpp

Issue 1113003005: Defer glClear to just before draw call (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Re-Added DO_DEFFERED_CLEAR in two places Created 5 years, 7 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698