summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/Layer.cpp
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2011-01-19 18:02:20 -0800
committerMathias Agopian <mathias@google.com>2011-01-20 12:10:11 -0800
commit1d4549ab0312319a79fb37068a3fc63bbb0a3adc (patch)
tree32a0c3dcb3fcae1354342ad938abb6a7d9c747e4 /services/surfaceflinger/Layer.cpp
parented58d8ed8a50cbd8c5e01c4e51bcbbe4341d1dfd (diff)
downloadframeworks_base-1d4549ab0312319a79fb37068a3fc63bbb0a3adc.zip
frameworks_base-1d4549ab0312319a79fb37068a3fc63bbb0a3adc.tar.gz
frameworks_base-1d4549ab0312319a79fb37068a3fc63bbb0a3adc.tar.bz2
clean-up unneeded code
now that we removed the notion of a "inUse" buffer in surfaceflinger a lot of code can be simplified / removed. noteworthy, the whole concept of "unlockClient" wrt. "compositionComplete" is also gone. Change-Id: I210413d4c8c0998dae05c8620ebfc895d3e6233d
Diffstat (limited to 'services/surfaceflinger/Layer.cpp')
-rw-r--r--services/surfaceflinger/Layer.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp
index fde68f6..3730739 100644
--- a/services/surfaceflinger/Layer.cpp
+++ b/services/surfaceflinger/Layer.cpp
@@ -691,22 +691,6 @@ void Layer::unlockPageFlip(
}
}
-void Layer::finishPageFlip()
-{
- ClientRef::Access sharedClient(mUserClientRef);
- SharedBufferServer* lcblk(sharedClient.get());
- if (lcblk) {
- int buf = mBufferManager.getActiveBufferIndex();
- if (buf >= 0) {
- status_t err = lcblk->unlock( buf );
- LOGE_IF(err!=NO_ERROR,
- "layer %p, buffer=%d wasn't locked!",
- this, buf);
- }
- }
-}
-
-
void Layer::dump(String8& result, char* buffer, size_t SIZE) const
{
LayerBaseClient::dump(result, buffer, SIZE);