Permalink
Browse files

fix build

Change-Id: Id22c93397e759eb013162e9b6baa2db571c0e786
  • Loading branch information...
1 parent 8f92e1f commit 119e032ec7aae04dd7974599e7776d8ce6d60a9e @chirayudesai chirayudesai committed with Whitehawkx Aug 17, 2012
Showing with 3 additions and 2 deletions.
  1. +2 −0 libs/gui/BufferQueue.cpp
  2. +1 −1 libs/gui/IGraphicBufferAlloc.cpp
  3. +0 −1 libs/ui/GraphicBufferAllocator.cpp
@@ -236,12 +236,14 @@ status_t BufferQueue::setBufferCount(int bufferCount) {
return OK;
}
+#ifdef QCOM_HARDWARE
status_t BufferQueue::setBuffersSize(int size) {
ST_LOGV("setBuffersSize: size=%d", size);
Mutex::Autolock lock(mMutex);
mGraphicBufferAlloc->setGraphicBufferSize(size);
return NO_ERROR;
}
+#endif
int BufferQueue::query(int what, int* outValue)
{
@@ -75,8 +75,8 @@ class BpGraphicBufferAlloc : public BpInterface<IGraphicBufferAlloc>
data.writeInt32(size);
remote()->transact(SET_GRAPHIC_BUFFER_SIZE, data, &reply);
}
-};
#endif
+};
IMPLEMENT_META_INTERFACE(GraphicBufferAlloc, "android.ui.IGraphicBufferAlloc");
@@ -131,7 +131,6 @@ status_t GraphicBufferAllocator::alloc(uint32_t w, uint32_t h,
ALOGW_IF(err, "alloc(%u, %u, %d, %08x, %d ...) failed %d (%s)",
w, h, format, usage, bufferSize, err, strerror(-err));
#else
- }
ALOGW_IF(err, "alloc(%u, %u, %d, %08x, ...) failed %d (%s)",
w, h, format, usage, err, strerror(-err));
#endif

0 comments on commit 119e032

Please sign in to comment.