Loading cmds/surfacereplayer/replayer/Android.mk +1 −0 Original line number Diff line number Diff line Loading @@ -61,6 +61,7 @@ LOCAL_SHARED_LIBRARIES := \ libprotobuf-cpp-lite \ libsurfacereplayer \ libutils \ libgui \ LOCAL_STATIC_LIBRARIES := \ libtrace_proto \ Loading include/gui/BufferItemConsumer.h +2 −7 Original line number Diff line number Diff line Loading @@ -18,18 +18,13 @@ #define ANDROID_GUI_BUFFERITEMCONSUMER_H #include <gui/ConsumerBase.h> #include <ui/GraphicBuffer.h> #include <utils/String8.h> #include <utils/Vector.h> #include <utils/threads.h> #include <gui/BufferQueue.h> #define ANDROID_GRAPHICS_BUFFERITEMCONSUMER_JNI_ID "mBufferItemConsumer" namespace android { class BufferQueue; class String8; /** * BufferItemConsumer is a BufferQueue consumer endpoint that allows clients Loading include/gui/ConsumerBase.h +8 −4 Original line number Diff line number Diff line Loading @@ -17,19 +17,23 @@ #ifndef ANDROID_GUI_CONSUMERBASE_H #define ANDROID_GUI_CONSUMERBASE_H #include <gui/BufferQueue.h> #include <gui/BufferQueueDefs.h> #include <gui/IConsumerListener.h> #include <gui/IGraphicBufferConsumer.h> #include <gui/OccupancyTracker.h> #include <ui/GraphicBuffer.h> #include <ui/PixelFormat.h> #include <utils/String8.h> #include <utils/Vector.h> #include <utils/threads.h> #include <gui/IConsumerListener.h> namespace android { // ---------------------------------------------------------------------------- class String8; class GraphicBuffer; // ConsumerBase is a base class for BufferQueue consumer end-points. It // handles common tasks like management of the connection to the BufferQueue Loading Loading @@ -222,7 +226,7 @@ protected: // slot that has not yet been used. The buffer allocated to a slot will also // be replaced if the requested buffer usage or geometry differs from that // of the buffer allocated to a slot. Slot mSlots[BufferQueue::NUM_BUFFER_SLOTS]; Slot mSlots[BufferQueueDefs::NUM_BUFFER_SLOTS]; // mAbandoned indicates that the BufferQueue will no longer be used to // consume images buffers pushed to it using the IGraphicBufferProducer Loading include/gui/CpuConsumer.h +5 −4 Original line number Diff line number Diff line Loading @@ -17,18 +17,19 @@ #ifndef ANDROID_GUI_CPUCONSUMER_H #define ANDROID_GUI_CPUCONSUMER_H #include <gui/ConsumerBase.h> #include <system/window.h> #include <ui/GraphicBuffer.h> #include <gui/ConsumerBase.h> #include <gui/BufferQueue.h> #include <utils/String8.h> #include <utils/Vector.h> #include <utils/threads.h> namespace android { class BufferQueue; class GraphicBuffer; class String8; /** * CpuConsumer is a BufferQueue consumer endpoint that allows direct CPU Loading include/gui/GLConsumer.h +2 −3 Original line number Diff line number Diff line Loading @@ -20,8 +20,7 @@ #include <EGL/egl.h> #include <EGL/eglext.h> #include <gui/IGraphicBufferProducer.h> #include <gui/BufferQueue.h> #include <gui/BufferQueueDefs.h> #include <gui/ConsumerBase.h> #include <ui/GraphicBuffer.h> Loading Loading @@ -489,7 +488,7 @@ private: // slot that has not yet been used. The buffer allocated to a slot will also // be replaced if the requested buffer usage or geometry differs from that // of the buffer allocated to a slot. EglSlot mEglSlots[BufferQueue::NUM_BUFFER_SLOTS]; EglSlot mEglSlots[BufferQueueDefs::NUM_BUFFER_SLOTS]; // mCurrentTexture is the buffer slot index of the buffer that is currently // bound to the OpenGL texture. It is initialized to INVALID_BUFFER_SLOT, Loading Loading
cmds/surfacereplayer/replayer/Android.mk +1 −0 Original line number Diff line number Diff line Loading @@ -61,6 +61,7 @@ LOCAL_SHARED_LIBRARIES := \ libprotobuf-cpp-lite \ libsurfacereplayer \ libutils \ libgui \ LOCAL_STATIC_LIBRARIES := \ libtrace_proto \ Loading
include/gui/BufferItemConsumer.h +2 −7 Original line number Diff line number Diff line Loading @@ -18,18 +18,13 @@ #define ANDROID_GUI_BUFFERITEMCONSUMER_H #include <gui/ConsumerBase.h> #include <ui/GraphicBuffer.h> #include <utils/String8.h> #include <utils/Vector.h> #include <utils/threads.h> #include <gui/BufferQueue.h> #define ANDROID_GRAPHICS_BUFFERITEMCONSUMER_JNI_ID "mBufferItemConsumer" namespace android { class BufferQueue; class String8; /** * BufferItemConsumer is a BufferQueue consumer endpoint that allows clients Loading
include/gui/ConsumerBase.h +8 −4 Original line number Diff line number Diff line Loading @@ -17,19 +17,23 @@ #ifndef ANDROID_GUI_CONSUMERBASE_H #define ANDROID_GUI_CONSUMERBASE_H #include <gui/BufferQueue.h> #include <gui/BufferQueueDefs.h> #include <gui/IConsumerListener.h> #include <gui/IGraphicBufferConsumer.h> #include <gui/OccupancyTracker.h> #include <ui/GraphicBuffer.h> #include <ui/PixelFormat.h> #include <utils/String8.h> #include <utils/Vector.h> #include <utils/threads.h> #include <gui/IConsumerListener.h> namespace android { // ---------------------------------------------------------------------------- class String8; class GraphicBuffer; // ConsumerBase is a base class for BufferQueue consumer end-points. It // handles common tasks like management of the connection to the BufferQueue Loading Loading @@ -222,7 +226,7 @@ protected: // slot that has not yet been used. The buffer allocated to a slot will also // be replaced if the requested buffer usage or geometry differs from that // of the buffer allocated to a slot. Slot mSlots[BufferQueue::NUM_BUFFER_SLOTS]; Slot mSlots[BufferQueueDefs::NUM_BUFFER_SLOTS]; // mAbandoned indicates that the BufferQueue will no longer be used to // consume images buffers pushed to it using the IGraphicBufferProducer Loading
include/gui/CpuConsumer.h +5 −4 Original line number Diff line number Diff line Loading @@ -17,18 +17,19 @@ #ifndef ANDROID_GUI_CPUCONSUMER_H #define ANDROID_GUI_CPUCONSUMER_H #include <gui/ConsumerBase.h> #include <system/window.h> #include <ui/GraphicBuffer.h> #include <gui/ConsumerBase.h> #include <gui/BufferQueue.h> #include <utils/String8.h> #include <utils/Vector.h> #include <utils/threads.h> namespace android { class BufferQueue; class GraphicBuffer; class String8; /** * CpuConsumer is a BufferQueue consumer endpoint that allows direct CPU Loading
include/gui/GLConsumer.h +2 −3 Original line number Diff line number Diff line Loading @@ -20,8 +20,7 @@ #include <EGL/egl.h> #include <EGL/eglext.h> #include <gui/IGraphicBufferProducer.h> #include <gui/BufferQueue.h> #include <gui/BufferQueueDefs.h> #include <gui/ConsumerBase.h> #include <ui/GraphicBuffer.h> Loading Loading @@ -489,7 +488,7 @@ private: // slot that has not yet been used. The buffer allocated to a slot will also // be replaced if the requested buffer usage or geometry differs from that // of the buffer allocated to a slot. EglSlot mEglSlots[BufferQueue::NUM_BUFFER_SLOTS]; EglSlot mEglSlots[BufferQueueDefs::NUM_BUFFER_SLOTS]; // mCurrentTexture is the buffer slot index of the buffer that is currently // bound to the OpenGL texture. It is initialized to INVALID_BUFFER_SLOT, Loading