본문 바로가기

Work

Android TextureView에 관한 Google commit logs

Might not contain all of them, though.

-----------------------------------------
New widget: TextureView Bug #4343984
TextureView can be used to render media content (video, OpenGL,
RenderScript) inside a View.

The key difference with SurfaceView is that TextureView does
not create a new Surface. This gives the ability to seamlessly
transform, animate, fade, etc. a TextureView, which was hard
if not impossible to do with a SurfaceView.
A TextureView also interacts perfectly with ScrollView,
ListView, etc. It allows application to embed media content
in a much more flexible way than before.

For instance, to render the camera preview at 50% opacity,
all you need to do is the following:

mTextureView.setAlpha(0.5f);
Camera c = Camera.open();
c.setPreviewTexture(mTextureView.getSurfaceTexture());
c.startPreview();

TextureView uses a SurfaceTexture to get the job done. More
APIs are required to make it easy to create OpenGL contexts
for a TextureView. It can currently be done with a bit of
JNI code.

Change-Id: Iaa7953097ab5beb8437bcbbfa03b2df5b7f80cd7

-----------------------------------------
Allows to render with an OpenGL context inside a TextureView.
Change-Id: I59453f7fc3997f0502a1c5d325d37fed376fabc7

-----------------------------------------
Add onSurfaceTextureDestroyed() callback.
This is needed for Renderscript and it also makes implementations
of TextureView cleaner. This change also hooks up the onSurfaceTextureSizeCHanged()
callback whenever the view size changes.

Change-Id: I2f972ee4504d800329defefacf32cf20547d31a3

-----------------------------------------
Add TextureView.getBitmap()
This API can be used to get a Bitmap copy of the content of a
TextureView.

Change-Id: I07522216c353720fba5cab333174f58f484eb911

-----------------------------------------
Add error checking to LayerRenderer::copyLayer
This method is invoked by TextureView.getBitmap() and failures must be
caught to avoid leaving the GL context in a potentially bad state.

Change-Id: I620de395ba1bc20154de58c81963223dc55cac78
-----------------------------------------
Collapse UI events in TextureView.
Change-Id: Ia6c0cef0f694edc4b685c1ade1a9ba509a51e541
-----------------------------------------

Add the ability to specify the opacity of a TextureView
TextureView assumes its content is opaque by default.

Change-Id: Iba873423566a5b67c388081838bd910dceba32ba
-----------------------------------------

Prevent possible NPE in TextureView
Change-Id: I539813d614c7eb1f68dad6b605cbad5b5144c5e9
-----------------------------------------

Properly tear down TextureView
Change-Id: Ic23cd9257889d0abe8cc3fc1d04a66d0505e383e
-----------------------------------------

Don't set texture parameters on every frame.
Change-Id: Iec368405ad6a4ccfd569a0b3b4d681871a770396
-----------------------------------------

Update GLTextureView sample to do something real.
Change-Id: I55a62434ae0b602522221689626f6b4155bd0d91
-----------------------------------------

Use NEAREST filtering for layers whenever possible.
Change-Id: Id5bee1bd4a322cf93e8000b08e18f1e1b058648e
-----------------------------------------

Use NEAREST filtering mode for TextureView.getBitmap().
Change-Id: I4649062bbdf18ebba7924bdf578f39ad8f6576ac
-----------------------------------------

Add lock/unlockCanvas to TextureView
With this change, TextureView has feature parity with SurfaceView.

Change-Id: I4ef2da33420fc9590f868636ae72a5a6de61965b
-----------------------------------------

Update TextureView.lockCanvas() test.
Change-Id: Ib0f613fcd6ba64a696936e4e2b386b96d76b828a
-----------------------------------------
Let HardwareRenderer support multiple threads.
This change will be useful to create multiples instances of
HardwareRenderer outside of ViewRootImpl. This will allow
the use of hardware accelerated canvas on TextureView or
for live wallpapers.

Change-Id: I877e43a31ba83d98a1a30556813c7e8a8a920eb5
-----------------------------------------

Add an API to set the transform on a TextureView's surface texture. Bug #5156689
Change-Id: I635a625885c9b832a60d44ece0de7613ceb84109
-----------------------------------------

Add OpenGL backend to ImageWallpaper Bug #5204874
Currently disabled.

Change-Id: I5e7b35dce2981b0691f107e39c6394b260466543
-----------------------------------------

Add a bit more doc to TextureView
Change-Id: Ib76c80d8f70ede1bb63db319bca1e93c489def4d
-----------------------------------------

TextureView works best when it draws stuff. Bug #5391188
Change-Id: I5e754881ccb08ff288ebd60de77282c9cbcf3f86
-----------------------------------------

Make sure we have the correct GL context when grabbing a bitmap Bug #5427391
Change-Id: I4687a6a3e8968fc3ca8ef171833b2bb7afc16f89
-----------------------------------------

'Work' 카테고리의 다른 글

FULL_SCREEN 화면에서 StatusBar 나타나는 현상  (0) 2012.04.03
FLAG_ACTIVITY_XXX  (0) 2012.04.03
SGP IT corps  (0) 2012.01.02
How about some Android graphics true facts?  (0) 2011.12.05
[Technic] Keyguard와 Lockscreen의 차이  (0) 2011.09.15