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

Unified Diff: src/gpu/GrRODrawState.cpp

Issue 545273002: Small fix for RODrawState (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 3 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/GrRODrawState.cpp
diff --git a/src/gpu/GrRODrawState.cpp b/src/gpu/GrRODrawState.cpp
index f6a235517a1f79e26024d92f0f7f1c2cc1778132..2f02482258f841b52f1d0fa6a8b945ff95495ada 100644
--- a/src/gpu/GrRODrawState.cpp
+++ b/src/gpu/GrRODrawState.cpp
@@ -40,14 +40,14 @@ bool GrRODrawState::isEqual(const GrRODrawState& that) const {
bool explicitLocalCoords = this->hasLocalCoordAttribute();
if (this->hasGeometryProcessor()) {
if (!that.hasGeometryProcessor()) {
- return kIncompatible_CombinedState;
+ return false;
} else if (!GrEffectStage::AreCompatible(*this->getGeometryProcessor(),
*that.getGeometryProcessor(),
explicitLocalCoords)) {
- return kIncompatible_CombinedState;
+ return false;
}
} else if (that.hasGeometryProcessor()) {
- return kIncompatible_CombinedState;
+ return false;
}
for (int i = 0; i < this->numColorStages(); i++) {
« 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