Index: tools/gpu/gl/debug/GrFrameBufferObj.cpp |
diff --git a/tools/gpu/gl/debug/GrFrameBufferObj.cpp b/tools/gpu/gl/debug/GrFrameBufferObj.cpp |
index 7dc12acafbc08674a7eb62b90573da42532c56d5..e5c24f9ea9ce30c4a3cb968783f96a703bac73c2 100644 |
--- a/tools/gpu/gl/debug/GrFrameBufferObj.cpp |
+++ b/tools/gpu/gl/debug/GrFrameBufferObj.cpp |
@@ -28,25 +28,6 @@ void GrFrameBufferObj::setColor(GrFBBindableObj *buffer) { |
} |
} |
-void GrFrameBufferObj::setDepth(GrFBBindableObj *buffer) { |
- if (fDepthBuffer) { |
- // automatically break the binding of the old buffer |
- GrAlwaysAssert(fDepthBuffer->getDepthBound(this)); |
- fDepthBuffer->resetDepthBound(this); |
- |
- GrAlwaysAssert(!fDepthBuffer->getDeleted()); |
- fDepthBuffer->unref(); |
- } |
- fDepthBuffer = buffer; |
- if (fDepthBuffer) { |
- GrAlwaysAssert(!fDepthBuffer->getDeleted()); |
- fDepthBuffer->ref(); |
- |
- GrAlwaysAssert(!fDepthBuffer->getDepthBound(this)); |
- fDepthBuffer->setDepthBound(this); |
- } |
-} |
- |
void GrFrameBufferObj::setStencil(GrFBBindableObj *buffer) { |
if (fStencilBuffer) { |
// automatically break the binding of the old buffer |