Searched refs:GraphicBuffer (Results 1 - 25 of 59) sorted by relevance

123

/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DGraphicBufferAlloc.cpp20 #include <ui/GraphicBuffer.h>
34 sp<GraphicBuffer> GraphicBufferAlloc::createGraphicBuffer(uint32_t w, uint32_t h,
36 sp<GraphicBuffer> graphicBuffer(new GraphicBuffer(w, h, format, usage));
41 GraphicBuffer::dumpAllocationsToSystemLog();
H A DGraphicBufferAlloc.h30 class GraphicBuffer;
36 virtual sp<GraphicBuffer> createGraphicBuffer(uint32_t w, uint32_t h,
H A DFramebufferSurface.h62 status_t nextBuffer(sp<GraphicBuffer>& outBuffer, sp<Fence>& outFence);
74 sp<GraphicBuffer> mCurrentBuffer;
H A DFramebufferSurface.cpp33 #include <ui/GraphicBuffer.h>
71 status_t FramebufferSurface::nextBuffer(sp<GraphicBuffer>& outBuffer, sp<Fence>& outFence) {
111 sp<GraphicBuffer> buf;
H A DHWComposer.h46 class GraphicBuffer;
126 int fbPost(int32_t id, const sp<Fence>& acquireFence, const sp<GraphicBuffer>& buf);
151 virtual void setBuffer(const sp<GraphicBuffer>& buffer) = 0;
284 const sp<Fence>& acquireFence, const sp<GraphicBuffer>& buf);
/frameworks/native/libs/ui/
H A DGraphicBuffer.cpp17 #define LOG_TAG "GraphicBuffer"
26 #include <ui/GraphicBuffer.h>
37 GraphicBuffer::GraphicBuffer() function in class:android::GraphicBuffer
49 GraphicBuffer::GraphicBuffer(uint32_t w, uint32_t h, function in class:android::GraphicBuffer
63 GraphicBuffer::GraphicBuffer(uint32_t w, uint32_t h, function in class:android::GraphicBuffer
78 GraphicBuffer::GraphicBuffer(ANativeWindowBuffe function in class:android::GraphicBuffer
[all...]
/frameworks/native/include/ui/
H A DGraphicBuffer.h36 // GraphicBuffer
39 class GraphicBuffer class in namespace:android
42 GraphicBuffer,
43 LightRefBase<GraphicBuffer> >, public Flattenable
70 GraphicBuffer();
73 GraphicBuffer(uint32_t w, uint32_t h, PixelFormat format, uint32_t usage);
76 GraphicBuffer(uint32_t w, uint32_t h, PixelFormat format, uint32_t usage,
80 GraphicBuffer(ANativeWindowBuffer* buffer, bool keepOwnership);
107 virtual ~GraphicBuffer();
128 friend class LightRefBase<GraphicBuffer>;
[all...]
/frameworks/native/libs/gui/
H A DIGraphicBufferAlloc.cpp25 #include <ui/GraphicBuffer.h>
45 virtual sp<GraphicBuffer> createGraphicBuffer(uint32_t w, uint32_t h,
54 sp<GraphicBuffer> graphicBuffer;
57 graphicBuffer = new GraphicBuffer();
78 * GraphicBuffer until it is destroyed (that is, until
82 sp<GraphicBuffer> buffer;
84 BufferReference(const sp<GraphicBuffer>& buffer) : buffer(buffer) { }
96 sp<GraphicBuffer> result =
102 // buffer stays alive until the GraphicBuffer object on
/frameworks/av/include/media/stagefright/
H A DMediaBuffer.h29 class GraphicBuffer;
53 MediaBuffer(const sp<GraphicBuffer>& graphicBuffer);
72 sp<GraphicBuffer> graphicBuffer() const;
105 sp<GraphicBuffer> mGraphicBuffer;
H A DSurfaceMediaSource.h33 class GraphicBuffer;
150 sp<GraphicBuffer> mBufferSlot[BufferQueue::NUM_BUFFER_SLOTS];
173 Vector<sp<GraphicBuffer> > mCurrentBuffers;
/frameworks/native/include/gui/
H A DIGraphicBufferAlloc.h30 class GraphicBuffer;
37 /* Create a new GraphicBuffer for the client to use.
39 virtual sp<GraphicBuffer> createGraphicBuffer(uint32_t w, uint32_t h,
H A DSurfaceTexture.h29 #include <ui/GraphicBuffer.h>
141 sp<GraphicBuffer> getCurrentBuffer() const;
243 virtual bool reject(const sp<GraphicBuffer>& buf,
251 // createImage creates a new EGLImage from a GraphicBuffer.
253 const sp<GraphicBuffer>& graphicBuffer);
256 // initialized this will release the reference to the GraphicBuffer in that
263 // current texture. It uses mCurrentTransform and the current GraphicBuffer
285 static const uint32_t DEFAULT_USAGE_FLAGS = GraphicBuffer::USAGE_HW_TEXTURE;
290 sp<GraphicBuffer> mCurrentTextureBuf;
H A DBufferItemConsumer.h22 #include <ui/GraphicBuffer.h>
H A DCpuConsumer.h22 #include <ui/GraphicBuffer.h>
H A DConsumerBase.h22 #include <ui/GraphicBuffer.h>
102 // initialized this will release the reference to the GraphicBuffer in that
170 sp<GraphicBuffer> mGraphicBuffer;
H A DSurfaceTextureClient.h131 sp<GraphicBuffer> buffer;
213 sp<GraphicBuffer> mLockedBuffer;
214 sp<GraphicBuffer> mPostedBuffer;
H A DBufferQueue.h27 #include <ui/GraphicBuffer.h>
114 virtual status_t requestBuffer(int slot, sp<GraphicBuffer>* buf);
187 sp<GraphicBuffer> mGraphicBuffer;
286 // freeBufferLocked frees the resources (both GraphicBuffer and EGLImage)
290 // freeAllBuffersLocked frees the resources (both GraphicBuffer and
294 // freeAllBuffersExceptHeadLocked frees the resources (both GraphicBuffer
352 sp<GraphicBuffer> mGraphicBuffer;
445 // and server without sending a GraphicBuffer over binder. The entire array
481 // allocate new GraphicBuffer objects.
/frameworks/native/opengl/tests/gralloc/
H A Dgralloc.cpp25 #include <ui/GraphicBuffer.h>
49 sp<GraphicBuffer> buffer = new GraphicBuffer(128, 256, HAL_PIXEL_FORMAT_RGBA_8888,
/frameworks/native/opengl/tests/hwc/
H A DhwcTestLib.h31 #include <ui/GraphicBuffer.h>
125 void hwcTestSetPixel(android::GraphicBuffer *gBuf, unsigned char *buf,
127 void hwcTestFillColor(android::GraphicBuffer *gBuf, ColorFract color,
129 void hwcTestFillColorHBlend(android::GraphicBuffer *gBuf,
H A DhwcColorEquiv.cpp89 #include <ui/GraphicBuffer.h>
125 static const int texUsage = GraphicBuffer::USAGE_HW_TEXTURE |
126 GraphicBuffer::USAGE_SW_WRITE_RARELY;
313 sp<GraphicBuffer> refFrame;
314 refFrame = new GraphicBuffer(refWidth, refHeight,
327 sp<GraphicBuffer> equivFrame;
328 equivFrame = new GraphicBuffer(equivWidth, equivHeight,
H A DhwcStress.cpp105 #include <ui/GraphicBuffer.h>
193 static const int texUsage = GraphicBuffer::USAGE_HW_TEXTURE |
194 GraphicBuffer::USAGE_SW_WRITE_RARELY;
199 static vector <vector <sp<GraphicBuffer> > > frames;
420 vector <vector <sp<GraphicBuffer> > > selectedFrames;
430 sp<GraphicBuffer> gBuf = selectedFrames[n1][idx];
501 sp<GraphicBuffer> gBuf = selectedFrames[n1][idx];
596 frames[row][col] = new GraphicBuffer(w, h, format, texUsage);
598 testPrintE("GraphicBuffer initCheck failed, rv: %i", rv);
/frameworks/av/media/libstagefright/
H A DMediaBuffer.cpp29 #include <ui/GraphicBuffer.h>
60 MediaBuffer::MediaBuffer(const sp<GraphicBuffer>& graphicBuffer)
146 sp<GraphicBuffer> MediaBuffer::graphicBuffer() const {
/frameworks/native/services/surfaceflinger/
H A DLayer.h27 #include <ui/GraphicBuffer.h>
91 inline const sp<GraphicBuffer>& getActiveBuffer() const { return mActiveBuffer; }
122 sp<GraphicBuffer> mActiveBuffer;
H A DLayerDim.cpp27 #include <ui/GraphicBuffer.h>
/frameworks/native/libs/gui/tests/
H A DBufferQueue_test.cpp25 #include <ui/GraphicBuffer.h>
72 sp<GraphicBuffer> buf;

Completed in 794 milliseconds

123