summaryrefslogtreecommitdiffstats
path: root/libs/surfaceflinger/Layer.cpp
Commit message (Collapse)AuthorAgeFilesLines
* fix a bug that could cause a window to be hidden in some cases.Mathias Agopian2009-08-131-1/+6
| | | | | | | this would happen is the window is made visible but the client didn't render yet into it. This happens often with SurfaceView. Instead of filling the window with solid black, SF would simply ignore it which could lead to more disturbing artifacts. in theory the window manager should not display a window before it has been drawn into, but it does happen occasionnaly.
* Surface::GPU and Surface::HARDWARE are now deprecated; they will be set ↵Mathias Agopian2009-08-131-3/+0
| | | | | | automatically if needed. this also ripples into the window manager API by making some constant there deprecated as well.
* second take, hopefully this time it doesn't break one of the builds: ↵Mathias Agopian2009-08-111-4/+4
| | | | "SurfaceFlinger will now allocate buffers based on the usage specified by the clients. This allows to allocate the right kind of buffer automatically, without having the user to specify anything."
* Revert "SurfaceFlinger will now allocate buffers based on the usage ↵Fred Quintana2009-08-111-4/+4
| | | | | | specified by the clients. This allows to allocate the right kind of buffer automatically, without having the user to specify anything." This reverts commit 8b76a0ac6fbf07254629ed1ea86af014d5abe050.
* SurfaceFlinger will now allocate buffers based on the usage specified by the ↵Mathias Agopian2009-08-111-4/+4
| | | | | | | clients. This allows to allocate the right kind of buffer automatically, without having the user to specify anything. This change makes SurfaceHolder.setType(GPU) obsolete (it's now ignored). Added an API to android_native_window_t to allow extending the functionality without ever breaking binary compatibility. This is used to implement the new set_usage() API. This API needs to be called by software renderers because the default is to use usage flags suitable for h/w.
* remove unused and confusing commentMathias Agopian2009-08-071-10/+0
|
* free gralloc buffers as soon as possible (when a surface is not visible any ↵Mathias Agopian2009-07-021-1/+2
| | | | longer), client who have the buffers still mapped won't crash, btu may see garbage data
* checkpoint. bring back video/cameraMathias Agopian2009-06-231-7/+5
|
* fix a memory corruption where a SF Client could be used after it's been ↵Mathias Agopian2009-06-191-7/+14
| | | | destroyed
* merge master to master_glMathias Agopian2009-05-221-1/+0
|\
* | update surfaceflinger, libui and libagl to the new gralloc apiMathias Agopian2009-05-041-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* | Merge commit 'goog/master' into merge_masterMathias Agopian2009-04-301-1/+2
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | Conflicts: libs/surfaceflinger/Layer.cpp libs/surfaceflinger/SurfaceFlinger.cpp opengl/libagl/egl.cpp opengl/libs/EGL/egl.cpp opengl/libs/GLES_CM/gl.cpp opengl/libs/GLES_CM/gl_api.in opengl/libs/gl_entries.in opengl/libs/tools/glapigen
| * fix 1803886 android15 Translucent GLSurfaceView demo does not display properlyMathias Agopian2009-04-271-1/+1
| |
* | get rid of an old hack to work around a bug around glDeleteTextures() in the ↵Mathias Agopian2009-04-241-1/+1
| | | | | | | | adreno drivers
* | Surfaces are now destroyed properly in SurfaceFlinger.Mathias Agopian2009-04-241-0/+10
| | | | | | | | | | | | | | | | | | | | 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).
* | more Surface lifetime managementMathias Agopian2009-04-241-3/+14
| | | | | | | | | | 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()
* | Integrate from //sandbox/mathias/donut/...@145728Mathias Agopian2009-04-101-127/+206
|/ | | | SurfaceFlinger rework for new EGL driver model support.
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+568
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-568/+0
|
* auto import from //branches/cupcake/...@131421The Android Open Source Project2009-02-131-1/+3
|
* auto import from //branches/cupcake/...@130745The Android Open Source Project2009-02-101-3/+1
|
* auto import from //branches/cupcake/...@125939The Android Open Source Project2009-01-091-2/+2
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-15/+18
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+565