Mathias Agopian
33863dd9e1
resolved conflicts for merge of ac38dfc5 to master
2009-07-28 14:20:21 -07:00
Mathias Agopian
12cedff50c
fix [2017532] Partial Update leaves residual image.
2009-07-28 10:57:27 -07:00
Mathias Agopian
07e456d871
am 4d2dbebf: fix for [1885684] E/SurfaceFlinger( 60): not enough memory for layer bitmap size=4294938624
...
Merge commit '4d2dbebf3d08209f751585d8cc367369e2f6e32f'
* commit '4d2dbebf3d08209f751585d8cc367369e2f6e32f':
fix for [1885684] E/SurfaceFlinger( 60): not enough memory for layer bitmap size=4294938624
2009-07-09 20:05:11 -07:00
Mathias Agopian
4d2dbebf3d
fix for [1885684] E/SurfaceFlinger( 60): not enough memory for layer bitmap size=4294938624
2009-07-09 18:16:43 -07:00
Mathias Agopian
d763b5d919
get rid of references to MemoryDealer in SurfaceFlinger
2009-07-02 18:50:51 -07:00
Mathias Agopian
359140c171
free gralloc buffers as soon as possible (when a surface is not visible any longer), client who have the buffers still mapped won't crash, btu may see garbage data
2009-07-02 18:45:29 -07:00
Mathias Agopian
ecfa7ccd4f
fix a bug that caused artifacts when SWAP_RECTANGLE was enabled
2009-06-29 18:49:56 -07:00
Mathias Agopian
0aed7e97a3
fix [1947273] the DimLayer causes the whole screen to update during transactions
2009-06-29 14:44:11 -07:00
Mathias Agopian
2f157b1919
fix [1947273] the DimLayer causes the whole screen to update during transactions
2009-06-28 02:54:16 -07:00
Mathias Agopian
8c9687ae29
fix an update bug with SHOW_UPDATE debug feature. Fix a problem with the debug binder codes too
2009-06-26 19:06:36 -07:00
Mathias Agopian
6edf5af578
fix a memory corruption where a SF Client could be used after it's been destroyed
2009-06-19 17:00:27 -07:00
Mathias Agopian
c8fb5b1979
release the last reference to surfaces explicitely instead of letting it go implicitely when the message is destroyed
2009-06-19 16:24:02 -07:00
Mathias Agopian
151e859e0f
new Permission class used to improve permission checks speed (by caching results)
2009-06-15 21:56:51 -07:00
Mathias Agopian
2d5ee25556
fix a bunch of problems with destroying surfaces.
...
now, all destruction path, go through the purgatory which is emptied when ~ISurface is called, but we also make sure to remove the surface from the current list from there (in case a client forgot to request the destruction explicitely).
2009-06-04 18:46:21 -07:00
Mathias Agopian
947f4f4d38
merge master to master_gl
2009-05-22 02:16:08 -07:00
Android (Google) Code Review
e755d64977
am 69a6c3eb: Merge change 2292 into donut
...
Merge commit '69a6c3ebd46a8de0e896747757f364322c12608d'
* commit '69a6c3ebd46a8de0e896747757f364322c12608d':
split boot animation out of SurfaceFlinger
2009-05-21 19:36:53 -07:00
Mathias Agopian
627e7b50be
split boot animation out of SurfaceFlinger
...
Conflicts:
data/etc/platform.xml
2009-05-21 19:21:59 -07:00
Mathias Agopian
0795272aa2
move libbinder's header files under includes/binder
2009-05-20 12:55:03 -07:00
Mathias Agopian
6158b1bf03
Region now has its own implementation instead of relying on SkRegion, which allows us to break libui's dependency on libcorecg.
2009-05-17 23:34:16 -07:00
Mathias Agopian
2e20bffbab
created an new EGL extension called ANDROID_swap_rectangle
...
ANDROID_swap_rectangle allows to specify the rectangle affected by eglSwapBuffers(), anything outside of this rectangle is unchanged. in particular EGL_BUFFER_DESTROYED only applies to that rectangle. This extension as well as EGL_BUFFER_PRESERVED allow major optimizations on surfaceflinger, which can redraw only the dirty area during compositing.
However, ANDROID_swap_rectangle allows further optimizations in EGL by reducing the amount of copy-back needed. ANDROID_swap_rectangle is particularily important for software implementations.
2009-05-07 15:07:33 -07:00
Mathias Agopian
dff8e58d47
update surfaceflinger, libui and libagl to the new gralloc api
...
- Currently the lock/unlock path is naive and is done for each drawing operation (glDrawElements and glDrawArrays). this should be improved eventually.
- factor all the lock/unlock code in SurfaceBuffer.
- fixed "showupdate" so it works even when we don't have preserving eglSwapBuffers().
- improved the situation with the dirty-region and fixed a problem that caused GL apps to not update.
- make use of LightRefBase() where needed, instead of duplicating its implementation
- add LightRefBase::getStrongCount()
- renamed EGLNativeWindowSurface.cpp to FramebufferNativeWindow.cpp
- disabled copybits test, since it clashes with the new gralloc api
- Camera/Video will be fixed later when we rework the overlay apis
2009-05-04 14:17:04 -07:00
Android (Google) Code Review
a73b41ae60
am 0124a15: Merge change 626 into donut
...
Merge commit '0124a150157d69a9f0ea109be2390afb5399b8a7'
* commit '0124a150157d69a9f0ea109be2390afb5399b8a7':
fix 1803886 android15 Translucent GLSurfaceView demo does not display properly
2009-04-29 13:35:37 -07:00
Mathias Agopian
bdbe6024a5
make use of the perfectly fine List.h instead of our own reimplementation of a linked list.
2009-04-28 03:17:50 -07:00
Mathias Agopian
0c6b5f6ec3
fix 1803886 android15 Translucent GLSurfaceView demo does not display properly
2009-04-27 18:50:06 -07:00
Mathias Agopian
81b0aa696a
get rid of an old hack to work around a bug around glDeleteTextures() in the adreno drivers
2009-04-24 16:31:11 -07:00
Mathias Agopian
ef07dda442
get rid of the "show fps" debug option
2009-04-24 16:31:11 -07:00
Mathias Agopian
a3aa6c9aa9
Surfaces are now destroyed properly in SurfaceFlinger.
...
First, the window manager tells us when a surface is no longer needed. At this point, several things happen:
- the surface is removed from the active/visible list
- it is added to a purgatory list, where it waits for all clients to release their reference
- it destroys all data/state that can be spared
Later, when all clients are done, the remains of the Surface are disposed off: it is removed from the purgatory and destroyed.
In particular its gralloc buffers are destroyed at that point (when we're sure nobody is using them anymore).
2009-04-24 16:30:38 -07:00
Mathias Agopian
6ead5d9f14
a brand new MessageQueue for SurfaceFlinger.
2009-04-24 16:22:36 -07:00
Mathias Agopian
6cf0db228c
more Surface lifetime management
...
Surfaces are now destroyed once all references from the clients are gone, but they go through a partial destruction as soon as the window manager requests it.
This last part is still buggy. see comments in SurfaceFlinger::destroySurface()
2009-04-24 15:00:41 -07:00
Mathias Agopian
17f638b39f
more splitting of Surface/SurfaceControl. Surface.java is now implemented in terms of Surface and SurfaceControl.
...
The WindowManager side of Surface.java holds a SurfaceControl, while the client-side holds a Surface. When the client is in the system process, Surface.java holds both (which is a problem we'll try to fix later).
2009-04-16 20:04:08 -07:00
Mathias Agopian
ed81f2216a
fix a few typos in comments. this is really intended as a git pull/push test.
2009-04-16 12:29:34 -07:00
Mathias Agopian
0179ff6594
Merge commit 'goog/master' into master_gl
...
Conflicts:
libs/utils/Parcel.cpp
2009-04-10 14:36:33 -07:00
Mathias Agopian
1473f46cbc
Integrate from //sandbox/mathias/donut/...@145728
...
SurfaceFlinger rework for new EGL driver model support.
2009-04-10 14:24:30 -07:00
Mathias Agopian
eb0c86e18b
AI 143320: am: CL 143171 am: CL 142873 fix [1732012] Only show screen rotation animation when triggered by sensor
...
Original author: mathias
Merged from: //branches/cupcake/...
Original author: android-build
Merged from: //branches/donutburger/...
Automated import of CL 143320
2009-03-27 18:11:38 -07:00
Mathias Agopian
3552f53c83
AI 143309: am: CL 143160 am: CL 142856 new-new-new-new rotation animation. it may still change one more time.
...
Original author: mathias
Merged from: //branches/cupcake/...
Original author: android-build
Merged from: //branches/donutburger/...
Automated import of CL 143309
2009-03-27 17:58:20 -07:00
Mathias Agopian
66b8ec99c5
AI 143171: am: CL 142873 fix [1732012] Only show screen rotation animation when triggered by sensor
...
Original author: mathias
Merged from: //branches/cupcake/...
Automated import of CL 143171
2009-03-27 16:10:37 -07:00
The Android Open Source Project
e1861133d5
Merge commit 'korg/cupcake'
...
Conflicts:
core/java/android/webkit/WebView.java
core/java/android/widget/TwoLineListItem.java
preloaded-classes
2009-03-27 15:38:40 -07:00
Mathias Agopian
89a187299e
AI 143160: am: CL 142856 new-new-new-new rotation animation. it may still change one more time.
...
Original author: mathias
Merged from: //branches/cupcake/...
Automated import of CL 143160
2009-03-27 15:36:09 -07:00
Mathias Agopian
c75c4364ea
Automated import from //branches/cupcake/...@142873,142873
2009-03-25 23:18:56 -07:00
Mathias Agopian
d2f34e5fd6
Automated import from //branches/cupcake/...@142856,142856
2009-03-25 21:42:35 -07:00
Mathias Agopian
afbf448b7d
Automated import from //branches/master/...@142447,142447
2009-03-24 22:50:50 -07:00
Mathias Agopian
2764f30a74
Automated import from //branches/donutburger/...@142446,142446
2009-03-24 22:43:22 -07:00
Mathias Agopian
013456784a
Automated import from //branches/master/...@141504,141504
2009-03-24 20:25:55 -07:00
Mathias Agopian
4cf7abeed2
Automated import from //branches/donutburger/...@141502,141502
2009-03-24 20:25:29 -07:00
Mathias Agopian
e94fa1ba1d
Automated import from //branches/cupcake/...@142445,142445
2009-03-24 19:43:24 -07:00
The Android Open Source Project
c2ad241504
auto import from //branches/cupcake_rel/...@141571
2009-03-19 23:08:54 -07:00
Jean-Baptiste Queru
2a73de7b21
Merge commit 'remotes/korg/cupcake' into merge
...
Conflicts:
core/java/android/view/animation/TranslateAnimation.java
core/jni/Android.mk
core/res/res/values-en-rGB/strings.xml
libs/audioflinger/AudioFlinger.cpp
libs/surfaceflinger/LayerScreenshot.cpp
packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java
2009-03-18 11:33:14 -07:00
The Android Open Source Project
c39a6e0c51
auto import from //branches/cupcake/...@137873
2009-03-11 12:11:56 -07:00
The Android Open Source Project
9066cfe988
auto import from //depot/cupcake/@135843
2009-03-03 19:31:44 -08:00
The Android Open Source Project
d83a98f4ce
auto import from //depot/cupcake/@135843
2009-03-03 18:28:45 -08:00