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

Unified Diff: tools/gpu/gl/debug/GrFrameBufferObj.cpp

Issue 2085553004: Don't track FB depth attachment in debug GL context (Closed) Base URL: https://skia.googlesource.com/skia.git@fix_testing
Patch Set: Created 4 years, 6 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 | « tools/gpu/gl/debug/GrFrameBufferObj.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « tools/gpu/gl/debug/GrFrameBufferObj.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698