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

Unified Diff: src/gpu/GrDrawState.h

Issue 15001035: Don't make dst copies when color stage requires dst but color writes are disabled. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: alignment Created 7 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 | « src/gpu/GrContext.cpp ('k') | src/gpu/GrDrawState.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrDrawState.h
diff --git a/src/gpu/GrDrawState.h b/src/gpu/GrDrawState.h
index 230b2faa47b5d27954e896854472bd6824696021..80ad28eac5d794edafa6915fb425a2ed5bee4ca4 100644
--- a/src/gpu/GrDrawState.h
+++ b/src/gpu/GrDrawState.h
@@ -451,14 +451,7 @@ public:
/**
* Checks whether any of the effects will read the dst pixel color.
*/
- bool willEffectReadDstColor() const {
- for (int s = 0; s < kNumStages; ++s) {
- if (this->isStageEnabled(s) && (*this->getStage(s).getEffect())->willReadDstColor()) {
- return true;
- }
- }
- return false;
- }
+ bool willEffectReadDstColor() const;
/// @}
« no previous file with comments | « src/gpu/GrContext.cpp ('k') | src/gpu/GrDrawState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698