diff options
author | Mathias Agopian <mathias@google.com> | 2009-11-05 23:08:00 -0800 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2009-11-11 16:44:43 -0800 |
commit | bbc21b01cf43f9b4815fcd8f7c1bbae06a1dd1a7 (patch) | |
tree | 76a4fd8e699994050a36aa17709d14a812018ad1 /libs/surfaceflinger/LayerBuffer.h | |
parent | 295fb83735cf70ef157d9280e53651821df067f3 (diff) | |
download | frameworks_native-bbc21b01cf43f9b4815fcd8f7c1bbae06a1dd1a7.zip frameworks_native-bbc21b01cf43f9b4815fcd8f7c1bbae06a1dd1a7.tar.gz frameworks_native-bbc21b01cf43f9b4815fcd8f7c1bbae06a1dd1a7.tar.bz2 |
fix [2143798] Need to figure out how to do video on Passion w/ GPU
This builds on the EGLImage solution. We simply use copybit to convert from the
YUV frame into an EGLImage created for that purpose and proceed with the
regular EGLImage code.
We need to do this because "regular" GL doesn't support YUV textures.
We could improve upon this by detecting exacly what the GL supports and bypass
this extra step if not required, but we'll do this later if needed.
Diffstat (limited to 'libs/surfaceflinger/LayerBuffer.h')
-rw-r--r-- | libs/surfaceflinger/LayerBuffer.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/surfaceflinger/LayerBuffer.h b/libs/surfaceflinger/LayerBuffer.h index 47482f4..1abb103 100644 --- a/libs/surfaceflinger/LayerBuffer.h +++ b/libs/surfaceflinger/LayerBuffer.h @@ -135,8 +135,9 @@ private: status_t mStatus; ISurface::BufferHeap mBufferHeap; size_t mBufferSize; - mutable sp<GraphicBuffer> mTempBitmap; mutable LayerBase::Texture mTexture; + NativeBuffer mTempBuffer; + mutable sp<GraphicBuffer> mTempGraphicBuffer; }; class OverlaySource : public Source { @@ -205,6 +206,7 @@ private: sp<Surface> mSurface; bool mInvalidate; bool mNeedsBlending; + copybit_device_t* mBlitEngine; }; // --------------------------------------------------------------------------- |