Index: src/gpu/GrTexture.cpp |
diff --git a/src/gpu/GrTexture.cpp b/src/gpu/GrTexture.cpp |
index 4b43fc8513765923b0cb9b302649c6b03c8b8e76..dfa5626d1bc5809c95a2fe32481186e79e1540b0 100644 |
--- a/src/gpu/GrTexture.cpp |
+++ b/src/gpu/GrTexture.cpp |
@@ -10,6 +10,8 @@ |
#include "GrDrawTargetCaps.h" |
#include "GrGpu.h" |
#include "GrResourceKey.h" |
+#include "GrRenderTarget.h" |
+#include "GrRenderTargetPriv.h" |
#include "GrTexture.h" |
#include "GrTexturePriv.h" |
@@ -49,17 +51,9 @@ void GrTexture::validateDesc() const { |
if (this->asRenderTarget()) { |
// This texture has a render target |
SkASSERT(0 != (fDesc.fFlags & kRenderTarget_GrSurfaceFlag)); |
- |
- if (this->asRenderTarget()->getStencilBuffer()) { |
- SkASSERT(0 != (fDesc.fFlags & kNoStencil_GrSurfaceFlag)); |
- } else { |
- SkASSERT(0 == (fDesc.fFlags & kNoStencil_GrSurfaceFlag)); |
- } |
- |
SkASSERT(fDesc.fSampleCnt == this->asRenderTarget()->numSamples()); |
} else { |
SkASSERT(0 == (fDesc.fFlags & kRenderTarget_GrSurfaceFlag)); |
- SkASSERT(0 == (fDesc.fFlags & kNoStencil_GrSurfaceFlag)); |
SkASSERT(0 == fDesc.fSampleCnt); |
} |
} |