be3c3e4ecad501eecfe1f7a424a792f0f7f3f307 |
|
16-Oct-2012 |
Romain Guy <romainguy@google.com> |
Update comments to reflect what the code actually does Change-Id: I2613aa32c29eddc52a00090656c1bd11f9f5732b
/frameworks/native/opengl/libs/EGL/eglApi.cpp
|
1cffc80f978c55f09203d9d9a905775b951ba59a |
|
16-Oct-2012 |
Romain Guy <romainguy@google.com> |
Add new debug option to force 4x MSAA in OpenGL ES 2.0 apps Change-Id: I53ac91a9ce07b5dd5f2ee0e3cc5b65b6402f9229
/frameworks/native/opengl/libs/EGL/eglApi.cpp
|
500407a2c07ced40c36e7356574a47bcec9c2fd9 |
|
25-Sep-2012 |
Mathias Agopian <mathias@google.com> |
log an error when eglCreateContext() fails in an inconsistant way this will help debugging bug: 7216919 Change-Id: I54ac65f20c5ed55cc93a5cbc5350fadfb0fcb804
/frameworks/native/opengl/libs/EGL/eglApi.cpp
|
010dd4fb892aecf71e4631c22148fe57ef5b3958 |
|
10-Sep-2012 |
Jamie Gennis <jgennis@google.com> |
EGL: Add the EGL_ANDROID_wait_sync extension Change-Id: Ie9a78e07fcaf27c5c13797141ad3c692217607fb
/frameworks/native/opengl/libs/EGL/eglApi.cpp
|
331841b96b92646c93c87627c03f77b892f711cd |
|
06-Sep-2012 |
Jamie Gennis <jgennis@google.com> |
EGL: add the native_fence_sync extension This change adds support for the EGL_ANDROID_native_fence_sync extension to the Android EGL layer. It also fixes a couple minor issues with the extension spec. Change-Id: Ic8829d21f37b701f33aa9c72c3d25e88e03fa3cd
/frameworks/native/opengl/libs/EGL/eglApi.cpp
|
258385978c517a47626161b1e644c48bcee28de1 |
|
06-Apr-2012 |
Jesse Hall <jessehall@google.com> |
Hibernate the EGL implementation when idle If the EGL implementation supports the EGL_IMG_hibernate_process extension, use it to hibernate (and hopefully release memory or other resources) when the process isn't actively using EGL or OpenGL ES. The idleness heuristic used in this change is: (a) Wake up when entering any EGL API call, and remain awake for the duration of the call. (b) Do not hibernate when any window surface exists; this means the application is very likely in the foreground. (c) Do not hibernate while any context is made current to a thread. The app may be using a client API without the EGL layer knowing, so it is not safe to hibernate. (d) Only check these conditions and attempt to hibernate after a window surface is destroyed or a thread's context is detached. By not attempting to hibernate at the end of every EGL call, we avoid some transient wakeups/hibernate cycles when the app is mostly idle, or is starting to become active but hasn't created its window surface yet. On a Galaxy Nexus, hibernating frees 1567 VM pages from the process. Both hibernating and waking can take anywhere from 30ms to over 100ms -- measurements have been very inconsistent. Change-Id: Ib555f5d9d069aefccca06e8173a89625b5f32d7e
/frameworks/native/opengl/libs/EGL/eglApi.cpp
|
b29e5e8c2682ae145e8c56d9afb061f8da7f854c |
|
05-Apr-2012 |
Jesse Hall <jessehall@google.com> |
Increment/decrement a counter around EGL calls This is in preparation for a change that will hibernate the underlying EGL when idle. Instead of a bare egl_display_t*, get_display() now returns a egl_display_ptr, which acts like a smart pointer. The "wakecount" counter managed by the smart pointer isn't used for anything in this change. It will be used to make sure we don't hibernate when any thread is in an EGL call, without having to hold a mutex for the duration of the call. Change-Id: Iee52f3549a51162efc3800e1195d3f76bba2f2ce
/frameworks/native/opengl/libs/EGL/eglApi.cpp
|
28ef8d7911dbfd1bf8256fb43acba894d87fc07a |
|
06-Apr-2012 |
Jamie Gennis <jgennis@google.com> |
EGL: add GPU frame completion tracing This change adds a debug option to EGL to use an EGLSyncKHR each frame to determine when the GPU finishes rendering the frame. Change-Id: I09ce071db904b44f07ca814c586c291c8b59385a
/frameworks/native/opengl/libs/EGL/eglApi.cpp
|
7db993a98b9239bd4e384cc4aa128262fe3cf52c |
|
25-Mar-2012 |
Mathias Agopian <mathias@google.com> |
debug.egl.finish can be used to force a glFinish() when eglSwapBuffers() is called this debug property is evaludated at eglInitialize() time. Change-Id: Ie439e4aac87f7fdc6ab2add86183d6d042f3ee8b
/frameworks/native/opengl/libs/EGL/eglApi.cpp
|
1c8e95cf86f2182986385bc1ee85f13f425f3a3a |
|
24-Feb-2012 |
Jamie Gennis <jgennis@google.com> |
Add tracing to various graphics components. This change adds ATRACE call tracing to BufferQueue, SurfaceTextureClient, SurfaceTexture, SurfaceFlinger, Layer, and EGL. Change-Id: I9d75ed26f5a3f0d1af635da38289520134cfbbb7
/frameworks/native/opengl/libs/EGL/eglApi.cpp
|
7c0441ac271f4e00a2d63eb3048c037ebffa90b9 |
|
15-Feb-2012 |
Mathias Agopian <mathias@google.com> |
Don't wrap EGLImageKHR and EGLSyncKHR anymore this simplify our EGL wrapper implementation a lot. This wrapping is no longer needed now that we can only support a single underlaying EGL implementation. Change-Id: I8213df7ac69daac447f1fe6e37044b78aac4e9a9
/frameworks/native/opengl/libs/EGL/eglApi.cpp
|
7773c435bc5da8217433e1b242d3a6712a17b5f7 |
|
14-Feb-2012 |
Mathias Agopian <mathias@google.com> |
EGLConfig is now not remaped to an internal EGLConfig this is possible now that we support only a single EGL implementation. this allows a large code simplification. Change-Id: I7a6b9db4c5d60f4407c6061e7a68729af63d5242
/frameworks/native/opengl/libs/EGL/eglApi.cpp
|
ada798b7ca7cabc255aa159964b64975e7fdb2df |
|
14-Feb-2012 |
Mathias Agopian <mathias@google.com> |
remove multiplexing of multiple EGL implementation from now on, the system can only have one EGL implementation. this means the software and h/w renderer cannot be used at the same time on a device. Of course, the h/w renderer is always prefered; in its absence we default to the software renderer. Change-Id: Ib579f58055dd0ce4c4a99144131efa11c16ca3d3
/frameworks/native/opengl/libs/EGL/eglApi.cpp
|
fb87e54a9af8bc5063ca4deebe81d90126992480 |
|
31-Jan-2012 |
Mathias Agopian <mathias@google.com> |
fix a race condition in eglMakeCurrent() it would happen when a context was made non-current, in this case we would call the implementation's eglMakeCurrent() which would succeed, if we're rescheduled at that point, another eglMakeCurrent() could make that context current to another thread, however, when we came back to the original call we would overwrite egl_context_t internal state. this is fixed by moving the critical section under egl_display_t's lock. Change-Id: I743c85696e13263d3a9570824940263df0caacdc
/frameworks/native/opengl/libs/EGL/eglApi.cpp
|
48d438d05f14c2f4bd83ae89f520368cd49122df |
|
29-Jan-2012 |
Mathias Agopian <mathias@google.com> |
add support for GL_EXT_debug_marker This extension is always added to the GL_EXTENSIONS extension string for the current GL context, regardless of if it's supported by the h/w driver. The extension itself will be handled by GLES_trace (eventually), when GLES_trace is not enabled, it'll result to a no-op. If the h/w implementation has this extension, we'll call that version instead of our dummy version. Change-Id: Ie5dd3387c4d45cd5ed5f03b73bda6045620a96bc
/frameworks/native/opengl/libs/EGL/eglApi.cpp
|
e8696a40e09b24b634214684d18526187b316a2f |
|
16-Jan-2012 |
Jamie Gennis <jgennis@google.com> |
hack up frame latency measurement Change-Id: I6d9a466a23285304f0e229a5649815636ab5d6af
/frameworks/native/opengl/libs/EGL/eglApi.cpp
|
e6f43ddce78d6846af12550ff9193c5c6fe5844b |
|
06-Jan-2012 |
Steve Block <steveblock@google.com> |
Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE See https://android-git.corp.google.com/g/#/c/157220 Bug: 5449033 Change-Id: Ic9c19d30693bd56755f55906127cd6bd7126096c
/frameworks/native/opengl/libs/EGL/eglApi.cpp
|
93a826f78f6313db791e6fc880439189897651b3 |
|
14-Dec-2011 |
Siva Velusamy <vsiva@google.com> |
gltrace: transport buffering and context management This patch adds two improvements: 1. Protobuf messages are buffered and sent in chunks. 2. Multiple EGL contexts are handled properly: Corresponding to each EGLContext, a GLTraceContext with a unique ID is created. On eglMakeCurrent, the appropriate GLTraceContext is set and is used while tracing subsequent GL Calls in that thread. Change-Id: I34076376d3e5af205c87c7396ea47659844abd6e
/frameworks/native/opengl/libs/EGL/eglApi.cpp
|
73d2b3c7e5537a6645f20f022b2e60cb9f342cbe |
|
03-Dec-2011 |
Siva Velusamy <vsiva@google.com> |
Merge "glestrace: Framework for GLES tracing library"
|
0469dd6d55fa331bfd7de9431da98b6340d82271 |
|
01-Dec-2011 |
Siva Velusamy <vsiva@google.com> |
glestrace: Framework for GLES tracing library This patch provides a framework for tracing GLES 1.0 and 2.0 functions. It is missing a lot of features, but here are the things it accomplishes: - Stop building the glesv2dbg library, and build the glestrace library instead. - Replace the hooks for glesv2dbg with the ones for glestrace. - Add the basics for the trace library. Currently, this traces all GL functions, but not all required data is sent for all the functions. As a result, it will not be possible to reconstruct the entire GL state on the host side. The files gltrace.pb.* and gltrace_api.* are both generated using the tools/genapi.py script. Change-Id: Id60a468f7278657f008bc6ea1df01f9bdfecfdd3
/frameworks/native/opengl/libs/EGL/eglApi.cpp
|
bc2d79ed7ada6243f3690f94ab512c0ddcdbed12 |
|
30-Nov-2011 |
Mathias Agopian <mathias@google.com> |
add a way to access the version string of the h/w implementation of EGL we use a hidden egl extension. the version string is printed in SF's dumpsys log. Change-Id: I123eb4bde6de462bb2404c67b74d6d6219a48d6a
/frameworks/native/opengl/libs/EGL/eglApi.cpp
|
59769469e4b9b2d8b12c020eb44b030b3927a50b |
|
20-Nov-2011 |
Jamie Gennis <jgennis@google.com> |
EGL: default to swap interval 1 This change explicitly sets swap interval 1 on the window when an EGLSurface is created to render to it. Change-Id: I91eb29dbee3ae4a55076b921f084d503fbe94e03
/frameworks/native/opengl/libs/EGL/eglApi.cpp
|
4b9511c16195a646242eff833b0af212933b6eca |
|
14-Nov-2011 |
Mathias Agopian <mathias@google.com> |
rework a bit how we manage EGL extensions - don't advertise extensions that are not supported by any implementation - remove EGL_ANDROID_swap_rectangle which is not implemented by anybody and confuses people - add some comments about mandatory extensions Bug: 5428001 Change-Id: Id8dc48116ac1d1eb79ec9ef55d03e29d4257c1f3
/frameworks/native/opengl/libs/EGL/eglApi.cpp
|
f0480de37492597a5c5cf1e6f8346f1467e3a552 |
|
14-Nov-2011 |
Mathias Agopian <mathias@google.com> |
fix crash when validating an invalid EGL objects the code that validated EGL objects dereferenced the object to access its EGLDisplay -- needed for validation (!). This was wrong for two reasons, first we dereferenced the object before validating it (potentially leading to a crash), secondly we didn't validate that the object existed in the right EGLDisplay. We now use the EGLDisplay passed by the user API. Change-Id: I66f9e851d4f8507892a6b1fee3065f124c4e7138
/frameworks/native/opengl/libs/EGL/eglApi.cpp
|
c42fcf05ce253d5342993b28c412be16e61efffb |
|
10-Nov-2011 |
Jamie Gennis <jgennis@google.com> |
EGL: add the ANDROID suffix to the blob cache ext This change adds the ANDROID suffix to the all the types and functions defined by the EGL_ANDROID_blob_cache extension. Change-Id: I087875b96d9a7053efb9c8d5614f9f765eed799d
/frameworks/native/opengl/libs/EGL/eglApi.cpp
|
aca51c06f38155f1435fbc6944d7fc0a9bf1e4e9 |
|
04-Nov-2011 |
Jamie Gennis <jgennis@google.com> |
EGL: Add stubs for EGL_ANDROID_blob_cache This change adds a stub cache implementation that gets passed to the underlying EGL implementation at initialization time. Change-Id: I14437c5b6f91b7a34a19bb02ad802e6e54f88d2a
/frameworks/native/opengl/libs/EGL/eglApi.cpp
|
0e8bbee5775d81c7bbc479b995496cac9238559f |
|
06-Oct-2011 |
Mathias Agopian <mathias@google.com> |
don't log EGL errors due to unimplemented proprietary extensions Change-Id: Icfc33d4f55d1e7fb49390ce0921ba37a438c9fc2
/frameworks/native/opengl/libs/EGL/eglApi.cpp
|
1c3d72a2291827fb15e2ef311a571c860e0dba41 |
|
26-Aug-2011 |
Jonas Yang <joyang@nvidia.com> |
Add (support for) EGL_NV_system_time extension. Change-Id: I62bf0fcb5ccdc77c042b425a42054fb3122575b6 Signed-off-by: Mathias Agopian <mathias@google.com>
/frameworks/native/opengl/libs/EGL/eglApi.cpp
|
5fecea776a5f093c21ac1a0ad3552b847d4be23e |
|
26-Aug-2011 |
Mathias Agopian <mathias@google.com> |
fix logging of eglMakeCurrent() errors Change-Id: Ie22cabff822a8fb3186f082491234b9503b431c3
/frameworks/native/opengl/libs/EGL/eglApi.cpp
|
9f24fd020e387d57cb05d58f26985baa44571b85 |
|
24-Aug-2011 |
Jamie Gennis <jgennis@google.com> |
EGL: move disconnect to surface dtor This change moves the call to native_window_api_disconnect from eglDestroySurface to the egl_surface_t destructor. The egl_surface_t can outlive the external EGLSurface if eglDestroySurface is called while the surface is made current on a thread. Change-Id: I0df6117a5633c2a19935fe356579abdd76fc471f
/frameworks/native/opengl/libs/EGL/eglApi.cpp
|
81a63350527cafce6929309533c58586878f10b5 |
|
30-Jul-2011 |
Mathias Agopian <mathias@google.com> |
connect/disconnect is now called from our EGL wrapper the original connect/disconnect hooks are deprecated and replace by api_connect/api_disconnect. the original hooks are no no-ops. api_connect/api_disconnect is now only called from the android framework. Bug: 5057915 Change-Id: I8ca64cd1acd6cabf915bf54689ec2e5f6dfa495a
/frameworks/native/opengl/libs/EGL/eglApi.cpp
|
bee205fd58a27c10a0895de5339e76025d429d2b |
|
01-Jul-2011 |
Jamie Gennis <jgennis@google.com> |
EGL: fix the ANativeWindow size/fmt override This change fixes how the Android EGL layer overrides the size and format of an ANativeWindow in eglCreateWindowSurface. The new behavior is to leave the size untouched when overriding the format. The previous behavior was to reset the ANativeWindow to use the default size set by the ANativeWindow implementation. It also adds two new 'perform' methods to the ANativeWindow interface: set_buffers_dimensions and set_buffers_format, and redefines the behavior of set_buffers_geometry to be the combination of these two new methods. Additionally, this change adds an error check for the return value of the new native_window_set_buffers_format call, which required adding a (stub) handler for to FramebufferNativeWindow. Change-Id: I805c7ccd8d4730dfb132d10d8bc3fb058a0b9df1
/frameworks/native/opengl/libs/EGL/eglApi.cpp
|
5b287a6ea8dfac7ab3e03ae1e98f9e2214cbae09 |
|
17-May-2011 |
Mathias Agopian <mathias@google.com> |
eglTerminate() now actually frees up all active egl objects as specified by the EGL specification, terminated objects's handles become invalid, the objects themselves are destroyed when they're not current to some thread. Change-Id: Id3a4a5736a5bbc3926a9ae8385d43772edb88eeb
/frameworks/native/opengl/libs/EGL/eglApi.cpp
|
518ec112f468eb67bf681b3eec896d7bfb4ff98d |
|
14-May-2011 |
Mathias Agopian <mathias@google.com> |
refactor EGL source code no changes is functionality. split various objects into their own files. make egl_display objec's lock internal.
/frameworks/native/opengl/libs/EGL/eglApi.cpp
|