diff options
Diffstat (limited to 'src/gpu/GrPipeline.h')
-rw-r--r-- | src/gpu/GrPipeline.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gpu/GrPipeline.h b/src/gpu/GrPipeline.h index 7fa42d0b8a..e0c85d3f4d 100644 --- a/src/gpu/GrPipeline.h +++ b/src/gpu/GrPipeline.h @@ -14,6 +14,7 @@ #include "GrPendingProgramElement.h" #include "GrProcessorSet.h" #include "GrProgramDesc.h" +#include "GrRect.h" #include "GrScissorState.h" #include "GrUserStencilSettings.h" #include "GrWindowRectsState.h" @@ -123,10 +124,7 @@ public: return false; } if (a.xferBarrierType(caps)) { - return aBounds.fRight <= bBounds.fLeft || - aBounds.fBottom <= bBounds.fTop || - bBounds.fRight <= aBounds.fLeft || - bBounds.fBottom <= aBounds.fTop; + return !GrRectsTouchOrOverlap(aBounds, bBounds); } return true; } |