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

Unified Diff: src/gpu/GrContext.cpp

Issue 700483003: Revert changes to GrContext::resolveRenderTarget (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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
« 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/GrContext.cpp
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index 8c5abe78357eebb08731b3c887d603f4b56ca9ff..9d684aa1357a8ce86e227e8cee9262d69e8df321 100755
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -1537,12 +1537,7 @@ bool GrContext::readRenderTargetPixels(GrRenderTarget* target,
void GrContext::resolveRenderTarget(GrRenderTarget* target) {
SkASSERT(target);
ASSERT_OWNED_RESOURCE(target);
- if (!target->needsResolve()) {
- return;
- }
- if (target->surfacePriv().hasPendingIO()) {
- this->flush();
- }
+ this->flush();
if (fGpu) {
fGpu->resolveRenderTarget(target);
}
« 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