diff options
author | Andreas Huber <andih@google.com> | 2009-11-03 10:26:34 -0800 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2009-11-03 10:28:48 -0800 |
commit | d2906ad8350017e6a58564a3c827ef0286d75894 (patch) | |
tree | 97184291acfb27d10d987594fcf8a0ee1bff58b6 /media | |
parent | 65e4f6188bfc8ec3c9d1c8476953cd1beb7922bc (diff) | |
download | frameworks_base-d2906ad8350017e6a58564a3c827ef0286d75894.zip frameworks_base-d2906ad8350017e6a58564a3c827ef0286d75894.tar.gz frameworks_base-d2906ad8350017e6a58564a3c827ef0286d75894.tar.bz2 |
Fix video flickering by propagating the NO_CACHING flag from the master to MemoryHeapPMem.
Diffstat (limited to 'media')
-rw-r--r-- | media/libstagefright/omx/QComHardwareRenderer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/media/libstagefright/omx/QComHardwareRenderer.cpp b/media/libstagefright/omx/QComHardwareRenderer.cpp index 7dc368f..c65d1f3 100644 --- a/media/libstagefright/omx/QComHardwareRenderer.cpp +++ b/media/libstagefright/omx/QComHardwareRenderer.cpp @@ -126,7 +126,8 @@ void QComHardwareRenderer::publishBuffers(uint32_t pmem_fd) { master->setDevice("/dev/pmem"); - mMemoryHeap = new MemoryHeapPmem(master, 0); + uint32_t heap_flags = master->getFlags() & MemoryHeapBase::NO_CACHING; + mMemoryHeap = new MemoryHeapPmem(master, heap_flags); mMemoryHeap->slap(); ISurface::BufferHeap bufferHeap( |