diff options
author | Mathias Agopian <mathias@google.com> | 2012-01-06 15:54:37 -0800 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2012-01-11 22:03:41 -0800 |
commit | 55ef343331f5efbfe3e01bc9993d94faea236048 (patch) | |
tree | 55b97842be7f16d95c900294374a2a2a41f6bc27 /libs/ui/FramebufferNativeWindow.cpp | |
parent | a72d0db29213c407278a1d0257baa60db28c8471 (diff) | |
download | frameworks_native-55ef343331f5efbfe3e01bc9993d94faea236048.zip frameworks_native-55ef343331f5efbfe3e01bc9993d94faea236048.tar.gz frameworks_native-55ef343331f5efbfe3e01bc9993d94faea236048.tar.bz2 |
remove dead/usnused code
Change-Id: I6fa2bc6ee01790abd2c1533f043d61a5e5c8d26e
Diffstat (limited to 'libs/ui/FramebufferNativeWindow.cpp')
-rw-r--r-- | libs/ui/FramebufferNativeWindow.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/libs/ui/FramebufferNativeWindow.cpp b/libs/ui/FramebufferNativeWindow.cpp index f5ed981..d1dca0c 100644 --- a/libs/ui/FramebufferNativeWindow.cpp +++ b/libs/ui/FramebufferNativeWindow.cpp @@ -29,7 +29,6 @@ #include <ui/Rect.h> #include <ui/FramebufferNativeWindow.h> -#include <ui/GraphicLog.h> #include <EGL/egl.h> @@ -211,9 +210,6 @@ int FramebufferNativeWindow::dequeueBuffer(ANativeWindow* window, if (self->mBufferHead >= self->mNumBuffers) self->mBufferHead = 0; - GraphicLog& logger(GraphicLog::getInstance()); - logger.log(GraphicLog::SF_FB_DEQUEUE_BEFORE, index); - // wait for a free buffer while (!self->mNumFreeBuffers) { self->mCondition.wait(self->mutex); @@ -224,7 +220,6 @@ int FramebufferNativeWindow::dequeueBuffer(ANativeWindow* window, *buffer = self->buffers[index].get(); - logger.log(GraphicLog::SF_FB_DEQUEUE_AFTER, index); return 0; } @@ -235,16 +230,12 @@ int FramebufferNativeWindow::lockBuffer(ANativeWindow* window, Mutex::Autolock _l(self->mutex); const int index = self->mCurrentBufferIndex; - GraphicLog& logger(GraphicLog::getInstance()); - logger.log(GraphicLog::SF_FB_LOCK_BEFORE, index); // wait that the buffer we're locking is not front anymore while (self->front == buffer) { self->mCondition.wait(self->mutex); } - logger.log(GraphicLog::SF_FB_LOCK_AFTER, index); - return NO_ERROR; } @@ -257,13 +248,7 @@ int FramebufferNativeWindow::queueBuffer(ANativeWindow* window, buffer_handle_t handle = static_cast<NativeBuffer*>(buffer)->handle; const int index = self->mCurrentBufferIndex; - GraphicLog& logger(GraphicLog::getInstance()); - logger.log(GraphicLog::SF_FB_POST_BEFORE, index); - int res = fb->post(fb, handle); - - logger.log(GraphicLog::SF_FB_POST_AFTER, index); - self->front = static_cast<NativeBuffer*>(buffer); self->mNumFreeBuffers++; self->mCondition.broadcast(); |