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

1234

/frameworks/base/core/java/android/view/
H A DGraphicBuffer.aidl19 parcelable GraphicBuffer;
H A DIAssetAtlas.aidl19 import android.view.GraphicBuffer;
41 GraphicBuffer getBuffer();
H A DGraphicBuffer.java26 * Simple wrapper for the native GraphicBuffer class.
31 public class GraphicBuffer implements Parcelable { class in inherits:Parcelable
32 // Note: keep usage flags in sync with GraphicBuffer.h and gralloc.h
65 // If set to true, this GraphicBuffer instance cannot be used anymore
69 * Creates new <code>GraphicBuffer</code> instance. This method will return null
77 * @return A <code>GraphicBuffer</code> instance or null
79 public static GraphicBuffer create(int width, int height, int format, int usage) {
82 return new GraphicBuffer(width, height, format, usage, nativeObject);
90 private GraphicBuffer(int width, int height, int format, int usage, int nativeObject) { method in class:GraphicBuffer
220 * @return True if this <code>GraphicBuffer</cod
[all...]
/frameworks/base/core/jni/
H A Dandroid_view_GraphicBuffer.h17 #include <ui/GraphicBuffer.h>
24 // object must be an instance of android.view.GraphicBuffer
25 extern sp<GraphicBuffer> graphicBufferForJavaObject(JNIEnv* env, jobject obj);
H A Dandroid_view_GraphicBuffer.cpp17 #define LOG_TAG "GraphicBuffer"
29 #include <ui/GraphicBuffer.h>
58 #define LOCK_CANVAS_USAGE GraphicBuffer::USAGE_SW_READ_OFTEN | GraphicBuffer::USAGE_SW_WRITE_OFTEN
101 GraphicBufferWrapper(const sp<GraphicBuffer>& buffer): buffer(buffer) {
104 sp<GraphicBuffer> buffer;
108 // GraphicBuffer lifecycle
117 GB_LOGW("createGraphicBufferAlloc() failed in GraphicBuffer.create()");
122 sp<GraphicBuffer> buffer(alloc->createGraphicBuffer(width, height, format, usage, &error));
124 GB_LOGW("createGraphicBuffer() failed in GraphicBuffer
[all...]
/frameworks/native/libs/gui/
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 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/native/include/ui/
H A DGraphicBuffer.h37 // GraphicBuffer
40 class GraphicBuffer class in namespace:android
41 : public ANativeObjectBase< ANativeWindowBuffer, GraphicBuffer, RefBase >,
42 public Flattenable<GraphicBuffer>
44 friend class Flattenable<GraphicBuffer>;
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);
113 ~GraphicBuffer();
[all...]
/frameworks/base/libs/hwui/
H A DImage.h26 #include <ui/GraphicBuffer.h>
32 * A simple wrapper that creates an EGLImage and a texture for a GraphicBuffer.
41 Image(sp<GraphicBuffer> buffer);
H A DImage.cpp27 Image::Image(sp<GraphicBuffer> buffer) {
28 // Create the EGLImage object that maps the GraphicBuffer
/frameworks/webview/chromium/plat_support/
H A Dgraphic_buffer_impl.cpp17 // Provides the implementation of the GraphicBuffer interface in
27 : mBuffer(new android::GraphicBuffer(w, h, PIXEL_FORMAT_RGBA_8888,
28 android::GraphicBuffer::USAGE_HW_TEXTURE |
29 android::GraphicBuffer::USAGE_SW_READ_OFTEN |
30 android::GraphicBuffer::USAGE_SW_WRITE_OFTEN)) {
81 usage = android::GraphicBuffer::USAGE_SW_READ_OFTEN;
84 usage = android::GraphicBuffer::USAGE_SW_WRITE_OFTEN;
87 usage = android::GraphicBuffer::USAGE_SW_READ_OFTEN |
88 android::GraphicBuffer::USAGE_SW_WRITE_OFTEN;
H A Dgraphic_buffer_impl.h17 // Provides the implementation of the GraphicBuffer interface in
23 #include <ui/GraphicBuffer.h>
48 sp<android::GraphicBuffer> mBuffer;
/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
48 GraphicBuffer::GraphicBuffer(uint32_t w, uint32_t h, function in class:android::GraphicBuffer
62 GraphicBuffer::GraphicBuffer(uint32_t w, uint32_t h, function in class:android::GraphicBuffer
77 GraphicBuffer::GraphicBuffer(ANativeWindowBuffe function in class:android::GraphicBuffer
[all...]
/frameworks/native/include/gui/
H A DConsumerBase.h22 #include <ui/GraphicBuffer.h>
111 // initialized this will release the reference to the GraphicBuffer in that
164 const sp<GraphicBuffer> graphicBuffer,
168 bool stillTracking(int slot, const sp<GraphicBuffer> graphicBuffer);
176 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence);
178 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence);
185 sp<GraphicBuffer> mGraphicBuffer;
H A DGraphicBufferAlloc.h30 class GraphicBuffer;
36 virtual sp<GraphicBuffer> createGraphicBuffer(uint32_t w, uint32_t h,
H A DGLConsumer.h27 #include <ui/GraphicBuffer.h>
166 sp<GraphicBuffer> getCurrentBuffer() const;
245 const sp<GraphicBuffer> graphicBuffer,
249 const sp<GraphicBuffer> graphicBuffer, EGLSyncKHR eglFence) {
274 // createImage creates a new EGLImage from a GraphicBuffer.
276 const sp<GraphicBuffer>& graphicBuffer, const Rect& crop);
279 // initialized this will release the reference to the GraphicBuffer in that
286 // current texture. It uses mCurrentTransform and the current GraphicBuffer
310 static sp<GraphicBuffer> getDebugTexImageBuffer();
316 static const uint32_t DEFAULT_USAGE_FLAGS = GraphicBuffer
[all...]
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 DCpuConsumer.h22 #include <ui/GraphicBuffer.h>
121 sp<GraphicBuffer> mGraphicBuffer;
H A DBufferItemConsumer.h22 #include <ui/GraphicBuffer.h>
/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> mGraphicBuffer;
177 Vector<sp<GraphicBuffer> > mCurrentBuffers;
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DFramebufferSurface.h63 status_t nextBuffer(sp<GraphicBuffer>& outBuffer, sp<Fence>& outFence);
75 sp<GraphicBuffer> mCurrentBuffer;
/frameworks/rs/
H A DrsGrallocConsumer.h22 #include <ui/GraphicBuffer.h>
63 sp<GraphicBuffer> mGraphicBuffer;
/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/av/include/media/
H A DIHDCP.h20 #include <ui/GraphicBuffer.h>
84 const sp<GraphicBuffer> &graphicBuffer,

Completed in 429 milliseconds

1234