• Home
  • History
  • Annotate
  • only in /frameworks/native/opengl/
History log of /frameworks/native/opengl/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
478f7db6e7cea7f225506c57db92701ce774b02a 11-Jun-2016 Craig Donner <cdonner@google.com> Fix assignment of 565 format when creating native client buffers.

Change-Id: Ia379f469a6e18e1f31748dc97aa596d03e507f84
Fixes: 29279664
ibs/EGL/eglApi.cpp
b40504ac541dbc0718884319a7269d7791ac5c35 04-Jun-2016 Craig Donner <cdonner@google.com> Allow setting alpha to 0 when creating native client buffers.

Note that RGBA sizes are checked later in the function anyway, so there was no
reason to disallow 0, but it did preclude setting alpha to 0 for 565 buffers.

Fixes: 29126799

Change-Id: Iba11649976221ab385227fc022ae74b14c342203
ibs/EGL/eglApi.cpp
3aa75f95f23df87cf74ddefe0d3f90b1484ff95e 20-May-2016 Jesse Hall <jessehall@google.com> Ensure memory ordering around libagl and EGL refcount operations

The android_atomic_inc/android_atomic_dec functions don't impose
sufficient memory ordering. Using them for object refcounting could
allow an object to be destroyed prior to writes by a different thread
being visible.

Bug: 28820690
Change-Id: Ie018091035174255a22ebc52852528cdaec2d648
ibagl/BufferObjectManager.h
ibagl/egl.cpp
ibs/EGL/egl_object.h
c3685dfb03b8fbcde865ff6c485b77d7481acca1 17-May-2016 Mike Stroyan <stroyan@google.com> Preserve parameters to getProcAddress functions

The contents of register r0 parameter were overwritten after commit
4690754. That used an "r" register to hold larger offsets, but doing
that overwrote r0 before it was passed on to the next call.
Applying the offset as two parts allows the total largest offset of
3588+1020 to be reached without using a register to hold that value.
Use an "addne" instruction to add the _api offset of up to 1020 within
the extensions array.
Use a "ldrne" offset to add the offset to the start of the extensions
array.

Bug: 26541117
Change-Id: Ie19e4aa584c9fa6fdec4de18e858777ac59d8dbd
ibs/EGL/getProcAddress.cpp
ae8cf0bb295d3f74e103dee9136a49f38447e9b8 02-May-2016 Pablo Ceballos <pceballos@google.com> EGL: Disconnect native window in eglDestroySurface

Bug 27455025

Change-Id: I7549a3acb724e749925a8249feb180088aec7f3c
ibs/EGL/egl_object.cpp
ibs/EGL/egl_object.h
aec8697fcaa8bb30e335f7850cffdd0364c35532 29-Apr-2016 Craig Donner <cdonner@google.com> Support EGL_EXT_protected_content in GLConsumer.

When the consumer creates an EGLImage, it must now pass
EGL_PROTECTED_CONTENT_EXT to eglCreateImageKHR for protected buffers to be
mapped onto the GPU. This allows us to no longer need QCOM specific flags in
a few places (already removed).

Bug: 27536318
Change-Id: I1c49886d2dcbdceaf5fa9a33288753115651b4f2
ibs/EGL/eglApi.cpp
5882a267d0bee5e9505fe4e714f50378f5ef70d0 26-Apr-2016 Pablo Ceballos <pceballos@google.com> Merge "Revert "EGL: Ensure surfaces are disconnected when destroyed"" into nyc-dev
1a5c4deed3e33efd7f286a570cf88fbd2d861010 25-Apr-2016 Pablo Ceballos <pceballos@google.com> Revert "EGL: Ensure surfaces are disconnected when destroyed"

This reverts commit 541de498ec7356c5e4af92500cf2fb8fc707fd50.

Bug 28295465

Change-Id: If81ed4a5a73a9612579b58291c37c7830ea1f7db
ibs/EGL/eglApi.cpp
ibs/EGL/egl_display.cpp
ibs/EGL/egl_display.h
ibs/EGL/egl_object.cpp
ibs/EGL/egl_object.h
7804aa25c1288002269d4bd29f535cad8b55f365 19-Apr-2016 Kalle Raita <kraita@google.com> Look EGL extension matches beyond partial match

Bug: 28198559
Change-Id: I8d483d04e855b62432e1da786629890d09ae9d00
ibs/EGL/egl_display.cpp
3d158998fb2fb911f01dd478311435762bc0c3c5 15-Apr-2016 Craig Donner <cdonner@google.com> Merge "Adds spec for EGL_ANDROID_create_native_client_buffer." into nyc-dev
f37864bc99576b851015f115613cc851a866dbf2 15-Apr-2016 Mika Isojärvi <misojarvi@google.com> White list EGL_EXT_yuv_surface extension

Bug: 28210992
Change-Id: If81a503de4cdfeba5a01d4d80d669714a2dfdb6b
ibs/EGL/eglApi.cpp
fcd6a9c30058078d4bef7ff08f81ff2b955a9a2f 15-Apr-2016 Craig Donner <cdonner@google.com> Adds spec for EGL_ANDROID_create_native_client_buffer.

Change-Id: I7dacf234a3b5f5f9c50a0b4c0f5b82618f6bd09d
Fixes: 28210230
pecs/EGL_ANDROID_create_native_client_buffer.txt
202e6e932cfd9bd97053681da438146d151286cc 14-Apr-2016 Pablo Ceballos <pceballos@google.com> Merge "egl: add EGL_KHR_mutable_render_buffer" into nyc-dev
8506bafe56de56cbfe5880c08ea45109c88ffe71 13-Apr-2016 Craig Donner <cdonner@google.com> Merge "Minor changes and cleanup to support EXT_protected_content." into nyc-dev
ceb9ee78bdc7b3a074d01380ce11432f88732094 13-Apr-2016 Pablo Ceballos <pceballos@google.com> egl: add EGL_KHR_mutable_render_buffer

- Allow drivers to support it and applications to query for it.
- Add it to the platform header.

Bug 27129258

Change-Id: I7ce762f03889027d67803ba2da85a43584f3cf79
nclude/EGL/eglext.h
ibs/EGL/eglApi.cpp
8cfae6dc5c7467642a307eb7e12e510210ef154c 13-Apr-2016 Craig Donner <cdonner@google.com> Minor changes and cleanup to support EXT_protected_content.

Bug: 22775237
Change-Id: I809b62597ca439e5183c32711866efa71e06467e
nclude/EGL/eglext.h
ibs/EGL/eglApi.cpp
541de498ec7356c5e4af92500cf2fb8fc707fd50 10-Apr-2016 Pablo Ceballos <pceballos@google.com> EGL: Ensure surfaces are disconnected when destroyed

When eglDestroySurface is called, remove all references to the surface
in all contexts. This ensures that the surface is disconnected
immediately.

Bug 27455025

Change-Id: I0edaf039d320dc40122657db32abdc418665841a
ibs/EGL/eglApi.cpp
ibs/EGL/egl_display.cpp
ibs/EGL/egl_display.h
ibs/EGL/egl_object.cpp
ibs/EGL/egl_object.h
5b89ed60835bb369ec8d233c3c707f6147027994 24-Mar-2016 Pablo Ceballos <pceballos@google.com> Manually fix GLES headers

Apply the Khronos proposed fix to the GLES headers

Bug 26832318

Change-Id: I3f476d4b8dc4e1819afb9e791da178417e5cb427
nclude/GLES2/gl2.h
nclude/GLES3/gl3.h
nclude/GLES3/gl31.h
nclude/GLES3/gl32.h
nclude/KHR/khrplatform.h
f051ade9f0d880115b25cecf353a8c33812e4492 16-Mar-2016 Pablo Ceballos <pceballos@google.com> Fix eglSurfaceAttrib return value

Bug 24940410

Change-Id: Ibd6be5861fe48c5d2230d48a7b65ae0b21a01b9b
ibs/EGL/eglApi.cpp
83b1e685d252e589fa4a2e7e54c1f416aca63043 13-Mar-2016 Brian Carlstrom <bdc@google.com> frameworks/native: Make Thread::run threadName argument required

Bug: 27557176
Change-Id: I009046d04cc127ee280c7b2038c04fab540fc5e6
ibs/EGL/egl_cache.cpp
9c3e10b4bf83985f138821c5af7c804635242f29 07-Mar-2016 Pablo Ceballos <pceballos@google.com> Merge "egl: Add EGL extension for front buffer auto-refresh mode" into nyc-dev
eec5db2bedbceae5d94083c5487446995a4f3468 29-Jan-2016 Pablo Ceballos <pceballos@google.com> Implement the stub for glCreateShaderProgramv

Bug 26851015

Change-Id: Ide7c46e0b5525d082dc591e92b4a8d8b21665708
ools/glgen/stubs/gles11/glCreateShaderProgramv.cpp
7a4f272919e93012bd1b433898422608353847d2 01-Mar-2016 Aurimas Liutikas <aurimas@google.com> Merge "Fix warnings in frameworks/native/opengl/tests" into nyc-dev
0ef7178ae37526f5c515b9d9d9cb53e0104dfab7 29-Feb-2016 Pablo Ceballos <pceballos@google.com> Merge "Fix glGetTransformFeedbackVarying JNI" into nyc-dev
c507e7c3883c698ea8456709df4d2136fde7d388 25-Feb-2016 Pablo Ceballos <pceballos@google.com> Merge "Add glReadPixels with buffer-offset argument" into nyc-dev
d1d16998adea189d5f24a774aa06e0e4e5f3e7eb 24-Feb-2016 Aurimas Liutikas <aurimas@google.com> Fix warnings in frameworks/native/opengl/tests

Bug: 27152043
Change-Id: I66815e6c6d5f30a73db761e801126ca1262ed883
ests/hwc/Android.mk
ests/hwc/hwcColorEquiv.cpp
ests/hwc/hwcCommit.cpp
ests/hwc/hwcRects.cpp
ests/hwc/hwcStress.cpp
ests/lib/Android.mk
ests/lib/glTestLib.cpp
0a2c2fb459b539a98e7d34fdaf48e6e2a514f65e 23-Feb-2016 Bo Hu <bohu@google.com> Merge "emulator: load vendor specific egl libraries first" into nyc-dev
69e5b1ab80018817b1d4ffbbdb5695ff70168c95 20-Feb-2016 bohu <bohu@google.com> emulator: load vendor specific egl libraries first

Unless emulator specifically asks for gpu emulation on the host
(with ro.kernel.qemu.gles set to 1), always try to load vendor
supplied egl libraries on the guest and fall back to software
renderer.

qemu.gles will be setup correctly to reflect what gles is actually
used.

Change-Id: Ibaf2209dd1e40fa9f18ff4df27bb137d7ad53007
ibs/EGL/Loader.cpp
23ca6064e0e8f0388041b0a454e7ad63e971c181 22-Feb-2016 Pablo Ceballos <pceballos@google.com> Add glReadPixels with buffer-offset argument

- For reading into PBOs on GLES3, add an overloaded version of
glReadPixels that takes an offset argument.

Bug 18878609

Change-Id: Ide9beca7b241a9f8a016e8ae17082bd0ba21246a
ools/glgen/specs/gles11/GLES30.spec
02b05da60a4669df44c9c0747ec262ec1862cf61 03-Feb-2016 Pablo Ceballos <pceballos@google.com> egl: Add EGL extension for front buffer auto-refresh mode

- Add an EGL extension for enabling/disabling auto-refresh mode on
a surface that's being used for front-buffer rendering.
- Remove the temporary hack that was directly enabling/disabling
front-buffer rendering from the EGL wrapper. From now on the driver
will have to implement it.

Bug 24949410

Change-Id: I722577521a37f9892dbadaf504b4551fe37182ed
nclude/EGL/eglext.h
ibs/EGL/eglApi.cpp
pecs/EGL_ANDROID_front_buffer_auto_refresh.txt
pecs/README
ff95aabbcc6e8606acbd7933c90eeb9b8b382a21 14-Jan-2016 Pablo Ceballos <pceballos@google.com> Add interface for controlling single buffer auto refresh

- Adds a boolean to BufferQueue that controls whether or not auto
refresh is enabled in SurfaceFlinger when in single buffer mode.
- Adds plumbing up to ANativeWindow.
- When enabled, it will cache the shared buffer slot in Surface in
order to prevent the Binder transaction with SurfaceFlinger.

Bug 24940410

Change-Id: I83142afdc00e203f198a32288f071d926f8fda95
ibs/EGL/eglApi.cpp
dde548d4ac08c1e9cd7b3bad2b664eb866c96fb5 30-Jan-2016 Pablo Ceballos <pceballos@google.com> Fix glGetTransformFeedbackVarying JNI

- Deprecate the broken version that takes a byte argument.
- Implement a new version that takes a byte buffer argument.

Bug 19478262

Change-Id: I31cdb2e8bbcad5238b74443cf4ef25d36f5aba52
ools/glgen/stubs/gles11/glGetTransformFeedbackVarying.cpp
ools/glgen/stubs/gles11/glGetTransformFeedbackVarying.java
ools/glgen/stubs/gles11/glGetTransformFeedbackVarying.nativeReg
1b5a9cbafc466f17ec8bb46710c1093a4b7adb21 03-Feb-2016 Dan Albert <danalbert@google.com> Merge "Clean up warnings in EGL." am: c312141adc am: d380a770fd
am: f4acff7c49

* commit 'f4acff7c490c6bf8a88661a15ca4bf2536ca4854':
Clean up warnings in EGL.
eacd31f41ef1851bb420c65552b1aed6b74abe29 03-Feb-2016 Dan Albert <danalbert@google.com> Clean up warnings in EGL.

Bug: http://b/26936282
Change-Id: I059628332d638f080a5236eed62cf0afa1d4d6ba
ibs/EGL/egl_cache.cpp
ibs/EGL/egl_display.cpp
ibs/EGL/egl_object.h
05249fc2d0da542efa46acdb7b10a619a68538e1 16-Jan-2016 Craig Donner <cdonner@google.com> Adds private EGL extension to create an EGLClientBuffer from a gralloc'd buffer. This lets you create a color EGLimage backed by gralloc, which is needed to support protected textures.

Bug: 22775237
Bug: 22855417

Change-Id: I8e03061d74a74a8fdd6524ffa97a6c75a6ced89c
nclude/EGL/eglext.h
ibs/Android.mk
ibs/EGL/eglApi.cpp
ibs/EGL/egl_entries.in
8a59ca73f2434f0e19321351e38229314c173e4f 30-Oct-2015 Pablo Ceballos <pceballos@google.com> Add GLES32 class templates

- Added a script that takes the #defines in gl2/3.h and formats them
for use in the Java template.

- Generated GLES32.spec using glgen2.

- Added full support for void* in glgen. It wasn't previously
necessary since the apis were using GLvoid instead.

- Created the GLES32 header stubs. Added stubs for GLES32 functions
that couldn't be handled by the code generator. Added checks in the
checks.spec file where appropriate.

- Generated the GLES32 class and JNI.

Change-Id: Ifc8512ed56af75bbc3e7ec2ea1377895201d5325
ools/glgen/convert_to_java.py
ools/glgen/gen
ools/glgen/specs/gles11/GLES32.spec
ools/glgen/specs/gles11/checks.spec
ools/glgen/src/CFunc.java
ools/glgen/src/GenerateGLES.java
ools/glgen/src/JType.java
ools/glgen/stubs/gles11/GLES31Header.java-if
ools/glgen/stubs/gles11/GLES32Header.java-if
ools/glgen/stubs/gles11/GLES32cHeader.cpp
ools/glgen/stubs/gles11/glDebugMessageCallback.cpp
ools/glgen/stubs/gles11/glDebugMessageCallback.java
ools/glgen/stubs/gles11/glDebugMessageCallback.nativeReg
ools/glgen/stubs/gles11/glDrawElementsInstancedBaseVertex.cpp
ools/glgen/stubs/gles11/glDrawElementsInstancedBaseVertex.java
ools/glgen/stubs/gles11/glDrawElementsInstancedBaseVertex.nativeReg
ools/glgen/stubs/gles11/glGetDebugMessageLog.cpp
ools/glgen/stubs/gles11/glGetDebugMessageLog.java
ools/glgen/stubs/gles11/glGetDebugMessageLog.nativeReg
ools/glgen/stubs/gles11/glGetObjectLabel.cpp
ools/glgen/stubs/gles11/glGetObjectLabel.java
ools/glgen/stubs/gles11/glGetObjectLabel.nativeReg
ools/glgen/stubs/gles11/glGetObjectPtrLabel.cpp
ools/glgen/stubs/gles11/glGetObjectPtrLabel.java
ools/glgen/stubs/gles11/glGetObjectPtrLabel.nativeReg
ools/glgen/stubs/gles11/glGetPointerv.cpp
ools/glgen/stubs/gles11/glGetPointerv.java
ools/glgen/stubs/gles11/glGetPointerv.nativeReg
ools/glgen/stubs/gles11/glObjectPtrLabel.cpp
ools/glgen/stubs/gles11/glObjectPtrLabel.java
ools/glgen/stubs/gles11/glObjectPtrLabel.nativeReg
ools/glgen2/glgen.py
4690754ec38f77431431910ce878850e1c60ab79 27-Oct-2015 Pablo Ceballos <pceballos@google.com> opengl: Update headers and registry and regenerate *api.in

- Update the registry xml files and python scripts in glgen2. Took
r32166 from:
https://cvs.khronos.org/svn/repos/ogl/trunk/doc/registry/public/api/

- Update the GLES headers (and add gl32.h). Took r32166 from:
https://cvs.khronos.org/svn/repos/registry/trunk/public/gles/api/

- Include gl32.h in libs/hooks.h

- Update glgen2/glgen.py to properly handle glPathGlyphIndexRangeNV
which uses an explicit array parameter (and is the only GL extension
that does this). This modification also fixes a bunch of whitespace
issues in the *.in files.

- Get rid of the remaining bits of glTrace code in glgen2/glgen.py

- Regenerate the *.in files with glgen2

- The official glext.h hasn't been updated and differs from the
registry in the second to last argument to glMultiDrawElementsEXT.
This file was previously modified to match the registry and this
modification has been carried forward in this commit.

- getProcAddress.cpp was failing to compile for ARM because the
inline assembly for loading the function pointer now exceeds the
limit of 4095 for an immediate offset to the ldr instruction on ARM.
Modify it to instead load the offset into a register and add it with
an add instruction before the ldr instruction.

- Khronos has added #ifdef GL_GLEXT_PROTOTYPES guards to the function
prototypes in gl2/3.h. In order to keep existing code compiling add
#define GL_GLEXT_PROTOTYPES to include/KHR/khrplatform.h for now.
This should be fixed upstream and when it is this can be removed.

Change-Id: I952ace43879557d7c363810b83d65159ad2ad1e3
nclude/GLES2/gl2.h
nclude/GLES2/gl2ext.h
nclude/GLES3/gl3.h
nclude/GLES3/gl31.h
nclude/GLES3/gl32.h
nclude/GLES3/gl3platform.h
nclude/KHR/khrplatform.h
ibs/EGL/getProcAddress.cpp
ibs/GLES2/gl2_api.in
ibs/GLES2/gl2ext_api.in
ibs/GLES_CM/gl_api.in
ibs/GLES_CM/glext_api.in
ibs/entries.in
ibs/enums.in
ibs/hooks.h
ools/glgen2/glgen.py
ools/glgen2/registry/egl.xml
ools/glgen2/registry/genheaders.py
ools/glgen2/registry/gl.xml
ools/glgen2/registry/reg.py
3a7d74995dfb131538331f0946abf37b30632af9 08-Dec-2015 Dimitry Ivanov <dimitry@google.com> Merge "Replace libGLESv3 symlink with shared library" am: 18ff655766 am: bc432368f4
am: 7c1cd3422a

* commit '7c1cd3422a272ce6de4a0ae71f64466601d6c172':
Replace libGLESv3 symlink with shared library
bc432368f410d628d21435c9f8fbcdf6bb68ef95 08-Dec-2015 Dimitry Ivanov <dimitry@google.com> Merge "Replace libGLESv3 symlink with shared library"
am: 18ff655766

* commit '18ff6557667f3d130ad1f83e04f3b175f8b8cf6d':
Replace libGLESv3 symlink with shared library
776951f9db5744c94167d463584e9ee42c849712 06-Nov-2015 Nicolas Capens <capn@google.com> Load the emulation libraries only when qemu.gles=1

Bug 25467020

Change-Id: I4a47f369078af03e4146b3b96a7e7a8e8390da61
(cherry picked from commit 8404ebc7487ebcf317e88c78cbb81e238fb55c3f)
ibs/EGL/Loader.cpp
b952f42bef69e5cfb31e1f2d3b5acf351cac0461 18-Nov-2015 Dmitriy Ivanov <dimitry@google.com> Replace libGLESv3 symlink with shared library

Because of the link to libGLESv2.so, libGLESv3.so had
incorrect dt_soname, which led to inability to use
in in linker public namespaces.

This change replaces symlink with shared library.

Bug: http://b/25754041
Change-Id: I3743c81f05bc6caf746e40ef7531723e97632a70
ibs/Android.mk
445d453dba5fa11fd222d07e798dfe64b21ebbc8 10-Nov-2015 Pablo Ceballos <pceballos@google.com> Merge "glgen: Better support for null arguments in JNI"
ecc0c9aa412aaf463d91bedcf53f881536a6d560 30-Oct-2015 Nicolas Capens <capn@google.com> Fix parsing the EGL extension string.

The EGL extension string does not necessarily have a space before the
terminating null. The previous code would skip the last extension name
when there's no extra space. The new code also works for empty strings.

Change-Id: Ib272cf05a7ebcc0de417f91966489ed4db33c283
ibs/EGL/egl_display.cpp
b62e242c4c2bdfe84ce28231d2fcc85e79517f8c 02-Oct-2015 Pablo Ceballos <pceballos@google.com> glgen: Better support for null arguments in JNI

- Modify the checks.spec file format to specify which argument is
allowed to be null.
- Update the JniCodeEmitter to support passing null arguments for all
pointer types as well as strings.
- Update the EGL/GLES checks.spec files and stub files to allow null
arguments through the JNI layer where the spec allows it.

Bug 9321681

Change-Id: I7d8e7319b43da95993516aa3ac5318b971a1ff92
ools/glgen/specs/egl/checks.spec
ools/glgen/specs/gles11/checks.spec
ools/glgen/specs/jsr239/glspec-checks
ools/glgen/src/JniCodeEmitter.java
ools/glgen/stubs/egl/eglCreatePbufferFromClientBuffer.cpp
ools/glgen/stubs/egl/eglCreateWindowSurface.cpp
ools/glgen/stubs/gles11/glGetActiveAttrib.cpp
ools/glgen/stubs/gles11/glGetActiveUniform.cpp
ools/glgen/stubs/gles11/glGetActiveUniformBlockName.cpp
ools/glgen/stubs/gles11/glGetShaderSource.cpp
ools/glgen/stubs/gles11/glGetTransformFeedbackVarying.cpp
ccdfd60d79a8b7f1ed6401d0f2e8e29166a10584 08-Oct-2015 Pablo Ceballos <pceballos@google.com> BQ: Add support for single buffer mode

- Adds a single buffer mode to BufferQueue. In this mode designate the
first dequeued buffer as the shared buffer. All calls to dequeue()
and acquire() will then return the shared buffer, allowing the
producer and consumer to share it.
- Modify the buffer slot state tracking. Add a new SHARED state for
the shared buffer in single buffer mode. Also track how many times
a buffer has been dequeued/queued/acquired as it's possible for a
shared buffer to be both dequeued and acquired at the same time, or
dequeued/acquired multiple times. This tracking is needed to know
when to drop the buffer out of the SHARED state after single buffer
mode has been disabled.
- Add plumbing for enabling/disabling single buffer mode from Surface.

Bug 24940410

Change-Id: I3fc550c74bacb5523c049a227111356257386853
ibs/EGL/eglApi.cpp
b7a17c7e70a9196efd2e5729438098056010ce83 27-Oct-2015 Pablo Ceballos <pceballos@google.com> Merge "Add missing OpenGLES 3.1 bitfield constants."
0461dee9a8711c8e15e2442f5c63ef96e3df81b7 22-Oct-2015 Pablo Ceballos <pceballos@google.com> Merge "Revert "Revert "Remove GLTrace support"""
9f8d4e01a02401beeaa3185acd87b140cf881d12 21-Oct-2015 Pablo Ceballos <pceballos@google.com> Revert "Revert "Remove GLTrace support""

This reverts commit e6288e2660e9c310986bff7148fcfb745c13af9a.

Change-Id: Id50a7d471536150bb9e0393e159d66475aa4f473
ibs/Android.mk
ibs/EGL/Loader.cpp
ibs/EGL/egl.cpp
ibs/EGL/eglApi.cpp
ibs/EGL/egl_display.cpp
ibs/EGL/egl_tls.h
ibs/EGL/trace.cpp
ibs/GLES_trace/.gitignore
ibs/GLES_trace/Android.mk
ibs/GLES_trace/DESIGN.txt
ibs/GLES_trace/dev.make
ibs/GLES_trace/proto/gltrace.proto
ibs/GLES_trace/src/gltrace_api.cpp
ibs/GLES_trace/src/gltrace_api.h
ibs/GLES_trace/src/gltrace_context.cpp
ibs/GLES_trace/src/gltrace_context.h
ibs/GLES_trace/src/gltrace_egl.cpp
ibs/GLES_trace/src/gltrace_egl.h
ibs/GLES_trace/src/gltrace_eglapi.cpp
ibs/GLES_trace/src/gltrace_fixup.cpp
ibs/GLES_trace/src/gltrace_fixup.h
ibs/GLES_trace/src/gltrace_hooks.cpp
ibs/GLES_trace/src/gltrace_hooks.h
ibs/GLES_trace/src/gltrace_transport.cpp
ibs/GLES_trace/src/gltrace_transport.h
ibs/GLES_trace/tools/genapi.py
ibs/GLES_trace/tools/testgenapi.py
ibs/glestrace.h
ibs/tools/genfiles
ibs/tools/gltracegen
ibs/trace.in
6174c044f352d9bd812a8d4003bc5364260e8ddd 19-Oct-2015 Pablo Ceballos <pceballos@google.com> Merge "Revert "Remove GLTrace support""
e6288e2660e9c310986bff7148fcfb745c13af9a 19-Oct-2015 Pablo Ceballos <pceballos@google.com> Revert "Remove GLTrace support"

This reverts commit 5bf6f3b5bf06e04a742bde8d40409d3c9e434c05.

Change-Id: I25a2d9b4a4b219cb76b405db1f68997519361cd6
ibs/Android.mk
ibs/EGL/Loader.cpp
ibs/EGL/egl.cpp
ibs/EGL/eglApi.cpp
ibs/EGL/egl_display.cpp
ibs/EGL/egl_tls.h
ibs/EGL/trace.cpp
ibs/GLES_trace/.gitignore
ibs/GLES_trace/Android.mk
ibs/GLES_trace/DESIGN.txt
ibs/GLES_trace/dev.make
ibs/GLES_trace/proto/gltrace.proto
ibs/GLES_trace/src/gltrace_api.cpp
ibs/GLES_trace/src/gltrace_api.h
ibs/GLES_trace/src/gltrace_context.cpp
ibs/GLES_trace/src/gltrace_context.h
ibs/GLES_trace/src/gltrace_egl.cpp
ibs/GLES_trace/src/gltrace_egl.h
ibs/GLES_trace/src/gltrace_eglapi.cpp
ibs/GLES_trace/src/gltrace_fixup.cpp
ibs/GLES_trace/src/gltrace_fixup.h
ibs/GLES_trace/src/gltrace_hooks.cpp
ibs/GLES_trace/src/gltrace_hooks.h
ibs/GLES_trace/src/gltrace_transport.cpp
ibs/GLES_trace/src/gltrace_transport.h
ibs/GLES_trace/tools/genapi.py
ibs/GLES_trace/tools/testgenapi.py
ibs/glestrace.h
ibs/tools/genfiles
ibs/tools/gltracegen
ibs/trace.in
bd27a621ec7364e951a123f21da93798d92e1a56 19-Oct-2015 Pablo Ceballos <pceballos@google.com> Merge "Remove GLTrace support"
eb873c89e98b18b6db755aac4040bc45e3b1d11c 14-Oct-2015 Jesse Hall <jessehall@google.com> am 0983618f: am a518d5ad: am 312d7555: egl: Remove window disconnect before calling driver eglDestroySurface

* commit '0983618f0ad57b873163183eac6caf8dea7920c8':
egl: Remove window disconnect before calling driver eglDestroySurface
312d7555cb71ce7fb73bc758b9e30653e223b2f3 14-Oct-2015 Jesse Hall <jessehall@google.com> egl: Remove window disconnect before calling driver eglDestroySurface

This was originally added for b/14445579. An in-development app was
attempting to render to a window as an EGLSurface, then tear that
down, change some window properties, and create a new EGLSurface. The
second eglCreateWindowSurface failed because the window was already
connected. This change went in, but it turned out the real problem was
that the app still (unintentionally) had the surface current. After
the app bug was fixed, nobody revisited whether this change was
actually needed.

Turns out it wasn't needed. After an EGLSurface is both destroyed
*AND* not current (basically refcount==0), we were already
disconnecting the window in ~egl_surface_t().

Apart from being unnecessary and redundant, disconnecting the window
here is wrong for two reasons:

(a) The surface may still be in use after eglDestroySurface, if it was
still current. Rendering is undefined in that case, but disconnecting
the window leads to more catastrophic results than necessary.

(b) It's being called before calling the driver's eglDestroySurface.
The driver will almost definitely have a buffer dequeued that it needs
to cancel, and by disconnecting first we turn that into an error that
they don't have a graceful way to deal with.

Bug: 24524053
Change-Id: Ib063134413d25d3526f794aafb5e333e3417ea42
ibs/EGL/eglApi.cpp
5bf6f3b5bf06e04a742bde8d40409d3c9e434c05 05-Oct-2015 Pablo Ceballos <pceballos@google.com> Remove GLTrace support

GLTrace is defunct, it does not support newer GL features, breaks
security requirements, and has no supported tooling now that Eclipse
is at end of life.

Bug 22329852

Change-Id: I69e26da04cd78b5a196487c41bce456fd3c725c9
ibs/Android.mk
ibs/EGL/Loader.cpp
ibs/EGL/egl.cpp
ibs/EGL/eglApi.cpp
ibs/EGL/egl_display.cpp
ibs/EGL/egl_tls.h
ibs/EGL/trace.cpp
ibs/GLES_trace/.gitignore
ibs/GLES_trace/Android.mk
ibs/GLES_trace/DESIGN.txt
ibs/GLES_trace/dev.make
ibs/GLES_trace/proto/gltrace.proto
ibs/GLES_trace/src/gltrace_api.cpp
ibs/GLES_trace/src/gltrace_api.h
ibs/GLES_trace/src/gltrace_context.cpp
ibs/GLES_trace/src/gltrace_context.h
ibs/GLES_trace/src/gltrace_egl.cpp
ibs/GLES_trace/src/gltrace_egl.h
ibs/GLES_trace/src/gltrace_eglapi.cpp
ibs/GLES_trace/src/gltrace_fixup.cpp
ibs/GLES_trace/src/gltrace_fixup.h
ibs/GLES_trace/src/gltrace_hooks.cpp
ibs/GLES_trace/src/gltrace_hooks.h
ibs/GLES_trace/src/gltrace_transport.cpp
ibs/GLES_trace/src/gltrace_transport.h
ibs/GLES_trace/tools/genapi.py
ibs/GLES_trace/tools/testgenapi.py
ibs/glestrace.h
ibs/tools/genfiles
ibs/tools/gltracegen
ibs/trace.in
69b5141bb7816541ad47d8e29315877be262d1e1 30-Sep-2015 Pablo Ceballos <pceballos@google.com> Add missing OpenGLES 3.1 bitfield constants.

Bug 23892570

Change-Id: I4bd50c3fb4510d904ebdf76046a128d9a8fc0bda
ools/glgen/stubs/gles11/GLES31Header.java-if
96c5d65b0bef97c1315ea5d7568df912710383c7 22-Sep-2015 Nick Kralevich <nnk@google.com> am 251c8b3f: Merge "constify generated JNINativeMethod fn ptr tables"

* commit '251c8b3ff842363243c8eea25b369bd805af7aad':
constify generated JNINativeMethod fn ptr tables
c4e95a3e5ee2076d0c9bb1f18920e31c325bf391 21-Sep-2015 Daniel Micay <danielmicay@gmail.com> constify generated JNINativeMethod fn ptr tables

Change-Id: Icbad34e298f6d8e60ef12e9a91200994249fe2f5
ools/glgen/src/JniCodeEmitter.java
d1ddf29901aef92e53e420e9937e9a4937569b9d 19-Sep-2015 Colin Cross <ccross@android.com> resolved conflicts for 5b5c81c4 to stage-aosp-master

Change-Id: I0be665105d46cb3b934cb00890822d4dfae18f64
7944e8ad6737309d0f64d180a450eaeebfc9865f 09-Jul-2015 Evgenii Stepanov <eugenis@google.com> With SANITIZE_TARGET, load EGL libs from the instrumented path.

Bug: 21785137
Change-Id: Iac56419a9ca776c5704bed44d3f0a1a1edd9d172
(cherry picked from commit c2466e6f005e9cbeea7764e9d8864fa6bca17633)
ibs/Android.mk
ibs/EGL/Loader.cpp
73e26746fb193dcee89595ccbbacc1390796471b 18-Sep-2015 Ivan Krasin <krasin@google.com> asan: update condition to work with multiple SANITIZE_TARGET values.

The goal is to enable SANITIZE_TARGET='address coverage', which
will be used by LLVMFuzzer.

Bug: 22850550
Change-Id: Iaa300aa20798f2e9aa613842b463edf8aeebe3a7
ibs/Android.mk
905dc8b76a98268a8047358ac55e14b4db18de8b 01-Sep-2015 Dan Willemsen <dwillemsen@google.com> am ce92141c: Merge "Whitelist windows module"

* commit 'ce92141cbdfeae302fcc1d5e4b4b261c783feaf7':
Whitelist windows module
1cf2c1ad33fd1f2895618472edc899c910918d5e 28-Aug-2015 Dan Willemsen <dwillemsen@google.com> Whitelist windows module

Bug: 23566667
Change-Id: I4fa1243421885a0c1a8febbbcefb0d7e9cdcc99b
ibs/Android.mk
05d902b7a377920354327125e680fa97eb8a13f8 22-Aug-2015 Jesse Hall <jessehall@google.com> am d3bfedbb: am f364393a: Merge "libagl: Fix buffer read overrun in eglCreatePbufferSurface"

* commit 'd3bfedbb1fc6296b561e60eac19581a6f1705f9e':
libagl: Fix buffer read overrun in eglCreatePbufferSurface
2e8ca9d01ed6a64451f9d6182e4abe980cdc41f0 21-Aug-2015 Jesse Hall <jessehall@google.com> libagl: Fix buffer read overrun in eglCreatePbufferSurface

The code was assuming that EGL_NONE==0, which isn't true.

Bug: 23403170
Change-Id: Ic1eccdef086b4d610bd78dbb6b2ae883c91dc322
ibagl/egl.cpp
c6ada3b169827f581cd61749c6056c4209ebb650 13-Aug-2015 Elliott Hughes <enh@google.com> am 6a846dd5: am 5f5a0e0f: Merge "Lose HAVE_ANDROID_OS from frameworks/native."

* commit '6a846dd51885df861f4e1e30fcca86b9dd2f4092':
Lose HAVE_ANDROID_OS from frameworks/native.
6071da7ef84c60645572654504813d492b8b21d5 13-Aug-2015 Elliott Hughes <enh@google.com> Lose HAVE_ANDROID_OS from frameworks/native.

Change-Id: I8e6af2a46a9d875192fc7957ada9b5f66d84bad6
ibagl/context.h
ibagl/egl.cpp
d5dceea52af1677714e2fc2b66543ac2a93ddcfe 03-Aug-2015 Andreas Gampe <agampe@google.com> am 9079207a: am dfd082b9: Merge "Native/opengl: Remove unused variables from test"

* commit '9079207a14e097be2242692f3d68b2c340ad194a':
Native/opengl: Remove unused variables from test
e70efa644753596eeeee112c3135d9a9d1972c61 03-Aug-2015 Andreas Gampe <agampe@google.com> Native/opengl: Remove unused variables from test

For build-system CFLAGS clean-up.

Bug: 18632512

(cherry picked from commit a75f729650b18478e3ff822dbf686406ed7f7169)

Change-Id: Ibe2d59c7e0677f02e4bf5214d34655cd300d5f15
ests/gl_perfapp/jni/gl_code.cpp
e2fc6f87bea38ff3e4e6bd20ffe838b09b9f4411 29-Jul-2015 Michael Lentine <mlentine@google.com> Fix parsing of extension string

Previously the parsing found the next space and then added the the difference
between the current position and space to the set of tokens. This improperly
generated empty strings if there were consecutive spaces or if spaces existed at
the beginning or end of strings. To fix this, the parse is modified to use
simple stringstream parsing.

Bug: 22709246

Change-Id: I9e32c07bbf984eadccdadf1dc34437fa0c46088b
ibs/EGL/egl_object.cpp
c2466e6f005e9cbeea7764e9d8864fa6bca17633 09-Jul-2015 Evgenii Stepanov <eugenis@google.com> With SANITIZE_TARGET, load EGL libs from the instrumented path.

Bug: 21785137
Change-Id: Iac56419a9ca776c5704bed44d3f0a1a1edd9d172
ibs/Android.mk
ibs/EGL/Loader.cpp
000d88f02680607f45f600dde4e53ebe5b3895ab 01-Jul-2015 Season Li <seasonl@nvidia.com> Implement a number of KHR EGL extensions

Add following KHR EGL extensions:

EGL_KHR_gl_texture_3D_image
EGL_KHR_config_attribs
EGL_KHR_surfaceless_context
EGL_KHR_stream
EGL_KHR_stream_fifo
EGL_KHR_stream_producer_eglsurface
EGL_KHR_stream_consumer_gltexture
EGL_KHR_stream_cross_process_fd

Change-Id: Ie7a35b5e3761e343cb71cf446cba77f67f604bdf
ibs/EGL/eglApi.cpp
ibs/EGL/egl_entries.in
4f21a4cc22a94eeb65742fcbb0a8516624474fe5 01-Jul-2015 Amith Dsouza <amithds@google.com> Revert "Revert "Modify EGL to disconnect the window when the surface gets destroyed.""

This reverts commit 6e1a2fea67006b58e83ebbcc72f7b12f18c49d15.

Driver level issues fixed by an updated graphics driver.

Bug: 21266976
Change-Id: I93339fb6c6bab988f3550adb49ef8e70cda6473e
ibs/EGL/eglApi.cpp
9530388b260ddd47c4e013b10f7f56b987d4f79f 29-May-2015 Michael Lentine <mlentine@google.com> Check that width and height parameters are small.

The product of width and height should be less than UINT32_MAX (in practice
smaller). Adding the checks prevents overflows when allocating buffers.

Bug: 20726612
Change-Id: I9769edf0688a9bfe69906d49fa0540cadf4c49b0
(cherry picked from commit 1c4537e2e80aa776a61517be8b1605e36432287a)
ibagl/egl.cpp
1c4537e2e80aa776a61517be8b1605e36432287a 29-May-2015 Michael Lentine <mlentine@google.com> Check that width and height parameters are small.

The product of width and height should be less than UINT32_MAX (in practice
smaller). Adding the checks prevents overflows when allocating buffers.

Bug: 20726612
Change-Id: I9769edf0688a9bfe69906d49fa0540cadf4c49b0
ibagl/egl.cpp
6e1a2fea67006b58e83ebbcc72f7b12f18c49d15 29-May-2015 Michael Lentine <mlentine@google.com> Revert "Modify EGL to disconnect the window when the surface gets destroyed."

This reverts commit 00699fa64197cc72a160d69e1f0003cdd43dc136.
ibs/EGL/eglApi.cpp
89301eaf214f0da74c5266e7a548899d5f491b50 22-May-2015 Alistair Strachan <alistair.strachan@imgtec.com> Fix EGL shim extension injection for GL ES 3 drivers.

The Android EGL shim injects GL_EXT_debug_marker into the ES driver
EXTENSIONS string for the OpenGL ES 1.x and 2.0/3.0/3.1 drivers if
the extension is not already provided. This feature is used by
GLES_trace.

In Open GL ES 3.0 it became possible to query an indexed version of
the EXTENSIONS string via GetStringi(). NUM_EXTENSIONS Gets were
also added to the specification (taken from Open GL).

If the shim does not have to inject the extension, then there is no
problem, as glGetString() and glGetStringi() / NUM_EXTENSIONS will
be consistent. However, if the Android EGL shim injects the
extension, NUM_EXTENSIONS and GetStringi() will report one less
extension than is really available.

Consistency between these methods is tested by the dEQP framework
with the dEQP-GLES3.functional.state_query.string.extensions test.
If the driver does not provide GL_EXT_debug_marker, this test
fails.

This change wraps all of the affected entry points so that the
wrapped driver extensions are never visible directly to dEQP,
eliminating the inconsistency.
ibs/EGL/egl.cpp
ibs/EGL/egl_object.cpp
ibs/EGL/egl_object.h
ibs/GLES2/gl2.cpp
ibs/GLES2/gl2_api.in
ibs/egl_impl.h
ools/glgen2/glgen.py
87dd528beebe478b6c3abef4dd09453dd216e2fb 23-Jul-2014 Michael Lentine <mlentine@google.com> Modify EGL to disconnect the window when the surface gets destroyed.

Bug: 14445579

Change-Id: I1d263ff6cffcb6e448761fca7ca4b06466ad65aa
(cherry picked from commit 00699fa64197cc72a160d69e1f0003cdd43dc136)
ibs/EGL/eglApi.cpp
edfe72ed6738d3798c5384b7aec8ab73af549d79 22-May-2015 Alistair Strachan <alistair.strachan@imgtec.com> Fix EGL shim extension injection for GL ES 3 drivers.

The Android EGL shim injects GL_EXT_debug_marker into the ES driver
EXTENSIONS string for the OpenGL ES 1.x and 2.0/3.0/3.1 drivers if
the extension is not already provided. This feature is used by
GLES_trace.

In Open GL ES 3.0 it became possible to query an indexed version of
the EXTENSIONS string via GetStringi(). NUM_EXTENSIONS Gets were
also added to the specification (taken from Open GL).

If the shim does not have to inject the extension, then there is no
problem, as glGetString() and glGetStringi() / NUM_EXTENSIONS will
be consistent. However, if the Android EGL shim injects the
extension, NUM_EXTENSIONS and GetStringi() will report one less
extension than is really available.

Consistency between these methods is tested by the dEQP framework
with the dEQP-GLES3.functional.state_query.string.extensions test.
If the driver does not provide GL_EXT_debug_marker, this test
fails.

This change wraps all of the affected entry points so that the
wrapped driver extensions are never visible directly to dEQP,
eliminating the inconsistency.
ibs/EGL/egl.cpp
ibs/EGL/egl_object.cpp
ibs/EGL/egl_object.h
ibs/GLES2/gl2.cpp
ibs/GLES2/gl2_api.in
ibs/egl_impl.h
ools/glgen2/glgen.py
51c8c502f63624af8090fe42477b95791faec2c9 14-May-2015 Michael Lentine <mlentine@google.com> Merge "Modify EGL to disconnect the window when the surface gets destroyed." into mnc-dev
00699fa64197cc72a160d69e1f0003cdd43dc136 23-Jul-2014 Michael Lentine <mlentine@google.com> Modify EGL to disconnect the window when the surface gets destroyed.

Bug: 14445579

Change-Id: I1d263ff6cffcb6e448761fca7ca4b06466ad65aa
ibs/EGL/eglApi.cpp
af3a3778c2c17a8064da599bcabb7d141f59f9af 14-May-2015 Dmitriy Ivanov <dimitry@google.com> Merge "Switch libGLESv1_CM/libGLESv2 to hash-style=both" into mnc-dev
ae62e0573a6455db9d1ebcb244f052267710beca 14-May-2015 Dmitriy Ivanov <dimitry@google.com> Switch libGLESv1_CM/libGLESv2 to hash-style=both

Old version of unity uses custom linker to link
itself and libmono. The custom linker does not
support lookups with gnu-hash style. Switching
libraries needed by libunity.so to --hash-style=both
fixes this problem.

Bug: http://b/20093774
Change-Id: I2a4887cf7a5ee80a8976ecaad54b52dc62518e55
ibs/Android.mk
569bc1bcddf08a3247e896b52da61772956964c5 13-May-2015 Hiroshi Yamauchi <yamauchi@google.com> Replace JNI primitive array critical calls with non-critical ones.

The glgen part.

(cherry pick commit 4e7de461c18278a31be83e7c9074a02fbb6e9475)

Bug: 19235243
Change-Id: I0d1e78acf39feb37a67e857216a6d52f4cede180
ools/glgen/src/JType.java
ools/glgen/src/JniCodeEmitter.java
ools/glgen/stubs/egl/eglCreatePbufferFromClientBuffer.cpp
ools/glgen/stubs/egl/eglCreateWindowSurface.cpp
ools/glgen/stubs/gles11/common.cpp
ools/glgen/stubs/gles11/glDrawElementsInstanced.cpp
ools/glgen/stubs/gles11/glGetActiveAttrib.cpp
ools/glgen/stubs/gles11/glGetActiveUniform.cpp
ools/glgen/stubs/gles11/glGetActiveUniformBlockName.cpp
ools/glgen/stubs/gles11/glGetBooleanv.cpp
ools/glgen/stubs/gles11/glGetFloatv.cpp
ools/glgen/stubs/gles11/glGetIntegerv.cpp
ools/glgen/stubs/gles11/glGetShaderSource.cpp
ools/glgen/stubs/gles11/glGetTransformFeedbackVarying.cpp
ools/glgen/stubs/gles11/glGetUniformIndices.cpp
4e7de461c18278a31be83e7c9074a02fbb6e9475 09-May-2015 Hiroshi Yamauchi <yamauchi@google.com> Replace JNI primitive array critical calls with non-critical ones.

The glgen part.

Bug: 19235243
Change-Id: I69dfa84f15366808b964517c1ba270ddeb3c5940
ools/glgen/src/JType.java
ools/glgen/src/JniCodeEmitter.java
ools/glgen/stubs/egl/eglCreatePbufferFromClientBuffer.cpp
ools/glgen/stubs/egl/eglCreateWindowSurface.cpp
ools/glgen/stubs/gles11/common.cpp
ools/glgen/stubs/gles11/glDrawElementsInstanced.cpp
ools/glgen/stubs/gles11/glGetActiveAttrib.cpp
ools/glgen/stubs/gles11/glGetActiveUniform.cpp
ools/glgen/stubs/gles11/glGetActiveUniformBlockName.cpp
ools/glgen/stubs/gles11/glGetBooleanv.cpp
ools/glgen/stubs/gles11/glGetFloatv.cpp
ools/glgen/stubs/gles11/glGetIntegerv.cpp
ools/glgen/stubs/gles11/glGetShaderSource.cpp
ools/glgen/stubs/gles11/glGetTransformFeedbackVarying.cpp
ools/glgen/stubs/gles11/glGetUniformIndices.cpp
408e59f63aaaba30fb6db1477e985025dda085cd 24-Apr-2015 Jesse Hall <jessehall@google.com> libEGL: whitelist the EGL_KHR_create_context_no_error extension

Allow EGL implementations to expose the
EGL_KHR_create_context_no_error extension if they wish.

https://www.khronos.org/registry/egl/extensions/KHR/EGL_KHR_create_context_no_error.txt

Change-Id: I3290ccc2a69a1fa0b00ec3f1aa4f876906c64bfb
nclude/EGL/eglext.h
ibs/EGL/eglApi.cpp
5245af3cb782a4e1c66ec0bed907ce823f32eadf 24-Apr-2015 Jesse Hall <jessehall@google.com> libEGL: whitelist the EGL_KHR_create_context_no_error extension

Allow EGL implementations to expose the
EGL_KHR_create_context_no_error extension if they wish.

https://www.khronos.org/registry/egl/extensions/KHR/EGL_KHR_create_context_no_error.txt

Change-Id: I3290ccc2a69a1fa0b00ec3f1aa4f876906c64bfb
nclude/EGL/eglext.h
ibs/EGL/eglApi.cpp
a894d082cfee8d12ee5913163a34ec5dc521d005 20-Feb-2015 Dan Stoza <stoza@google.com> libEGL: Add wrappers for partial update functions

This adds EGL wrapper functions for the following EGL extensions:
EGL_EXT_buffer_age
EGL_KHR_partial_update
EGL_KHR_swap_buffers_with_damage

Change-Id: I407acda1e0310f7f01a5efe9c915721a941138a4
nclude/EGL/eglext.h
ibs/EGL/eglApi.cpp
ibs/EGL/egl_entries.in
82c6bcc9705eabcaf5b9e45bc81867b0e2d61a02 20-Feb-2015 Eino-Ville Talvala <etalvala@google.com> DO NOT MERGE Add dataSpace to buffer queues; remove old format enums.

- Wire up new dataSpace parameter through buffer queue stack
- Update tests to include the parameter
- Switch eglApi to using dataSpace to indicate sRGB gamma/linear
difference
- Remove RAW_SENSOR in favor of RAW16
- Remove use of sRGB format enums
- Add default dataspace to buffer queue core
- Add query for default dataspace

Cherry pick of I070bd2e7c56506055c419004c29e2e3feac725df

Change-Id: I461952389c18051176c6b75e664f20ad369f5760
ibs/EGL/eglApi.cpp
b6b81d6acd6949a731308666ac211864f824ab50 15-Mar-2015 Jesse Hall <jessehall@google.com> Merge "[MIPS] Fix mips32r1 build"
8d31934148301b449d1b6277e25a6c3a8d162dff 26-Feb-2015 Dan Albert <danalbert@google.com> am 79749845: Merge "Fix pointer-to-int and int-to-pointer warnings."

* commit '797498450cbcb87c28636e775ada942005436909':
Fix pointer-to-int and int-to-pointer warnings.
ad0f52fc2be6161f61fd95e4f12739c65661673a 23-Feb-2015 Dan Albert <danalbert@google.com> Fix pointer-to-int and int-to-pointer warnings.

Change-Id: If534cbcf2c3e644270572cbf829ba9b5acab29e6
ools/glgen/stubs/egl/eglGetDisplay.cpp
ools/glgen/stubs/gles11/glDrawElementsInstanced.cpp
ools/glgen/stubs/gles11/glGetTransformFeedbackVarying.cpp
28d41f5640cab96b5cac4b4b233ae9f721c96975 19-Feb-2015 Bill Yi <byi@google.com> Merge commit '26cc3d0b67ff4daf31eaeed0ecd87b391978aadb' into HEAD
733a80754786d39cdc0fee09509b194472c320bc 12-Feb-2015 Alistair Strachan <alistair.strachan@imgtec.com> egl: Remove old tuna BGRA vs RGBA workaround.

Some time before kitkat, a workaround was put in place to keep tuna
working with obsolete PowerVR GPU drivers. The tuna product was dropped
in AOSP for kitkat, but the workaround remained.

There are still a number of devices shipping with OMAP4 processors, and
this workaround continues to be applied on those products even when it
is not required. The effect is that virtual display CTS will fail on
those devices.
ibs/Android.mk
ibs/EGL/eglApi.cpp
ecacc3f164f2bf2c8c4ff5a20496511249d2cd4b 03-Feb-2015 Duane Sand <duane.sand@imgtec.com> [MIPS] Fix mips32r1 build

Fix regression from 6701fbe5f0d799c5245b0cdf3a69ecdcbfd9fb08 .
The rdhwr instruction is unsupported by mips32r1 cpus, but is
supported via kernel emulation on those cpus.

Change-Id: Ieb3343fff0f0da54003044f451c90e1c761208eb
ibs/EGL/getProcAddress.cpp
ibs/GLES2/gl2.cpp
ibs/GLES_CM/gl.cpp
2f1e3b4d219d1ad3fe66cc9abb4ed61be9906ed1 28-Jan-2015 Michael Lentine <mlentine@google.com> am d6fce7ab: Merge "Remove lock around ref count check in terminate." into lmp-mr1-dev

* commit 'd6fce7ab66e5d33e3ee16247485d1b8c26dd7ee8':
Remove lock around ref count check in terminate.
54466bc4412acf33a59af59d9eadde54c22b2ebe 27-Jan-2015 Michael Lentine <mlentine@google.com> Remove lock around ref count check in terminate.

Replace the global lock in terminate for the ref count check with atomics and a
local lock.

Bug: 19072064

Change-Id: I0cfd6564e227a75b8387a8788b16381d5bc2cc88
ibs/EGL/egl_display.cpp
ibs/EGL/egl_display.h
c7a7b118b501e82d98209ad64ddc18ac4ba404f7 26-Jan-2015 Jesse Hall <jessehall@google.com> am a46ff664: Merge "Use register numbers instead of register names"

* commit 'a46ff664571465b7a2741bed4225d30b5bf07503':
Use register numbers instead of register names
0cfe43a0ad9ee43590c4f181662dc0d7d91e384d 22-Jan-2015 Jesse Hall <jessehall@google.com> am f551e1c1: Merge "[MIPS] Further opengl support for mips64 and mipsr6"

* commit 'f551e1c1a59ae7ac906e2b204c3704d0dbf926a8':
[MIPS] Further opengl support for mips64 and mipsr6
5f5f65183c9a77bd4b5dc63b5767af69ac938b39 26-Dec-2014 Nikola Veljkovic <Nikola.Veljkovic@imgtec.com> Use register numbers instead of register names

Avoid ambiguity by using register numbers. Register names are
interpreted depending on the ABI. Fixes the issue with mips64 gcc,
where registers t0-t4 are translated into $8-$11 (o32 ABI) instead
of $12-$15 (o64 ABI).

Also, use t9 ($25) for storing function address
(in getProcAddress.cpp).

Change-Id: I12ef5cd98bf14dab3c01f2756889cc02856c1cd8
ibs/EGL/getProcAddress.cpp
ibs/GLES2/gl2.cpp
ibs/GLES_CM/gl.cpp
6701fbe5f0d799c5245b0cdf3a69ecdcbfd9fb08 26-Nov-2014 Duane Sand <duane.sand@imgtec.com> [MIPS] Further opengl support for mips64 and mipsr6

Combines 4 patches by Dragoslav and Douglas:

Use t9 to hold the address of the called function.
Add support for gl binding.
Fix inline assembly code to be R6 compatible.
Fix some more inline assembly code to be R6 compatible.

Change-Id: I0b899813790b2ba4ca538bb21692014cc1933f66
ibs/EGL/getProcAddress.cpp
ibs/GLES2/gl2.cpp
ibs/GLES_CM/gl.cpp
b9b86f644f47e6e3bdedc5b2419e9d4af1c8b455 16-Jan-2015 Jeff Davidson <jpd@google.com> am 4df903db: Merge "Revert "Revert "Update protobuf library from 2.3 to 2.6."""

* commit '4df903dbc71c48e2db6fae9390795b81782470b4':
Revert "Revert "Update protobuf library from 2.3 to 2.6.""
4df903dbc71c48e2db6fae9390795b81782470b4 15-Jan-2015 Jeff Davidson <jpd@google.com> Merge "Revert "Revert "Update protobuf library from 2.3 to 2.6."""
a198e1c14d23efd0d3acbe05fab31bf92748f329 13-Jan-2015 Brian Carlstrom <bdc@google.com> am 6f9c6541: Merge "[MIPS] Build libGLES for mips64, mips32r6"

* commit '6f9c6541b77b18a6922d1f50326faa9ec6ed6d2a':
[MIPS] Build libGLES for mips64, mips32r6
81c6d66a1daf740109eaaa10953a592907087e96 26-Nov-2014 Duane Sand <duane.sand@imgtec.com> [MIPS] Build libGLES for mips64, mips32r6

For now, use generic C code instead of assembler.

Change-Id: I604ecdcde2d5373f1f68ab97a63a80667b630846
ibagl/Android.mk
ibagl/fp.cpp
ibagl/matrix.h
eb329c07c150dfaf539d1d48bedf1572e963348f 12-Jan-2015 Jeff Davidson <jpd@google.com> am 83f14309: Merge "Revert "Update protobuf library from 2.3 to 2.6.""

* commit '83f14309f17af398ec8ff7f82d9b2f010ea7cd5f':
Revert "Update protobuf library from 2.3 to 2.6."
a9650f0cccf82271d47f5177d21b3132f1887b3a 12-Jan-2015 Jeff Davidson <jpd@google.com> Revert "Revert "Update protobuf library from 2.3 to 2.6.""

This reverts commit bca4262dac55cc59b28d6fde658d5f8a254fcc2d.

Change-Id: I8ecd859340779dfacffba4c6d1a44c5cdbdfceed
ibs/GLES_trace/Android.mk
ibs/GLES_trace/dev.make
ibs/GLES_trace/gltrace.proto
ibs/GLES_trace/proto/gltrace.proto
ibs/GLES_trace/src/gltrace.pb.cpp
ibs/GLES_trace/src/gltrace.pb.h
ibs/GLES_trace/src/gltrace_api.cpp
ibs/GLES_trace/src/gltrace_egl.cpp
ibs/GLES_trace/src/gltrace_fixup.cpp
ibs/GLES_trace/src/gltrace_fixup.h
ibs/GLES_trace/src/gltrace_transport.h
bca4262dac55cc59b28d6fde658d5f8a254fcc2d 12-Jan-2015 Jeff Davidson <jpd@google.com> Revert "Update protobuf library from 2.3 to 2.6."

This reverts commit a42cdf169060e1bb65c77bc8a394d266403d8583.

Change-Id: I8f75e6fcc921041ebdfd35c4724134fcb2c739c6
ibs/GLES_trace/Android.mk
ibs/GLES_trace/dev.make
ibs/GLES_trace/gltrace.proto
ibs/GLES_trace/proto/gltrace.proto
ibs/GLES_trace/src/gltrace.pb.cpp
ibs/GLES_trace/src/gltrace.pb.h
ibs/GLES_trace/src/gltrace_api.cpp
ibs/GLES_trace/src/gltrace_egl.cpp
ibs/GLES_trace/src/gltrace_fixup.cpp
ibs/GLES_trace/src/gltrace_fixup.h
ibs/GLES_trace/src/gltrace_transport.h
7581a96bfd9219030a8ae8a15f545da0d7eccdda 12-Jan-2015 Jeff Davidson <jpd@google.com> am 9200d4e3: Merge "Update protobuf library from 2.3 to 2.6."

* commit '9200d4e3bf0bf9bf21d9bb335e04818364bf12a8':
Update protobuf library from 2.3 to 2.6.
a42cdf169060e1bb65c77bc8a394d266403d8583 16-Sep-2014 Jeff Davidson <jpd@google.com> Update protobuf library from 2.3 to 2.6.

Remove generated cpp/h files for gltrace.proto as we can use the build
system to generate these dynamically.

Change-Id: I949d32fb5126f1c05e2a6ed48f6636a4a9b15a48
ibs/GLES_trace/Android.mk
ibs/GLES_trace/dev.make
ibs/GLES_trace/gltrace.proto
ibs/GLES_trace/proto/gltrace.proto
ibs/GLES_trace/src/gltrace.pb.cpp
ibs/GLES_trace/src/gltrace.pb.h
ibs/GLES_trace/src/gltrace_api.cpp
ibs/GLES_trace/src/gltrace_egl.cpp
ibs/GLES_trace/src/gltrace_fixup.cpp
ibs/GLES_trace/src/gltrace_fixup.h
ibs/GLES_trace/src/gltrace_transport.h
2965dab9091382803430a0607118e20e93d2bd1d 12-Dec-2014 Chih-Hung Hsieh <chh@google.com> am bceb29c8: Merge "Fix clang -Wc++11-narrowing warnings."

* commit 'bceb29c83ea54d38b38e40d66402e56364cff56b':
Fix clang -Wc++11-narrowing warnings.
3bded9177b579d96d72397d73b8f85bba47ec438 11-Dec-2014 Chih-Hung Hsieh <chh@google.com> Fix clang -Wc++11-narrowing warnings.

Clang compiler gives warning to implicit conversions of
literal structure fields, although the compiler generated
implicit conversions are what we want in these cases.

Change-Id: I8f04e7f2fa1db0ed1d1937135d9091532eec3d5b
ests/EGLTest/egl_cache_test.cpp
ests/angeles/app-linux.cpp
ests/fillrate/fillrate.cpp
ests/filter/filter.cpp
ests/linetex/linetex.cpp
84fd9bd151f4aa2392afcb9d7f9e054d035353d5 02-Dec-2014 Andreas Gampe <agampe@google.com> am f8954c81: Merge "OpenGL tests: Fix unused variables"

* commit 'f8954c81a4ec43958867d1f6f497ef449bf091fd':
OpenGL tests: Fix unused variables
f8954c81a4ec43958867d1f6f497ef449bf091fd 02-Dec-2014 Andreas Gampe <agampe@google.com> Merge "OpenGL tests: Fix unused variables"
414fd6fc7a1023a1ca5843e14e7634dfaf255a54 02-Dec-2014 Jesse Hall <jessehall@google.com> am 4aaa3935: Merge "Avoid overwriting EGL14.EGL_NO_SURFACE"

* commit '4aaa39358f538d8e06e026385bb8be8088d78c35':
Avoid overwriting EGL14.EGL_NO_SURFACE
4aaa39358f538d8e06e026385bb8be8088d78c35 02-Dec-2014 Jesse Hall <jessehall@google.com> Merge "Avoid overwriting EGL14.EGL_NO_SURFACE"
fa59862430a166d1257f75725e5119040491c4dd 25-Nov-2014 Andreas Gampe <agampe@google.com> OpenGL tests: Fix unused variables

For build-system CFLAGS clean-up, fix unused variables.

Change-Id: I1863418f7467412d7698dd0ce0c8e40d1bd0348e
ests/hwc/hwcColorEquiv.cpp
ests/hwc/hwcCommit.cpp
ests/hwc/hwcRects.cpp
ests/hwc/hwcTestLib.cpp
7290c24354ccf7efd7afa8fa6ba06689a852fae6 07-Nov-2014 Sangkyu Lee <sk82.lee@lge.com> Avoid overwriting EGL14.EGL_NO_SURFACE

Both EGL14 and EGLExt have the same initialization codes for
EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_CONTEXT and EGL14.EGL_NO_DISPLAY.
Since EGLExt is initialized later, they are overwritten by EGLExt's
initialization codes.
Therefore, EGL_NO_SURFACE returned by methods in EGL14 is not
actually EGL14.EGL_NO_SURFACE object and it makes several problems in
handling error cases.
For instance, "Let's fish" game application cannot be run on L.

To solve the problem, this patch makes EGL14.EGL_NO_SURFACE,
EGL14.EGL_NO_CONTEXT and EGL14.EGL_NO_DISPLAY initialized just once.

Change-Id: Icce878164ff0b715ad2b5a2cd038a9616c7cf1e9
ools/glgen/stubs/egl/EGLExtcHeader.cpp
22536916a5abd294ed4ccfa5bde9066305c81b48 17-Nov-2014 Chih-hung Hsieh <chh@google.com> am 1bb53054: Merge "Fix class vs. struct mismatch"

* commit '1bb53054f2d77ce570a22629006c849fc54707dc':
Fix class vs. struct mismatch
9f425914db84a3dd9e011ae0b1cb0bd2da6b6720 17-Nov-2014 Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org> Fix class vs. struct mismatch

egl_connection_t is a struct - shouldn't be forward-declared as a class

Change-Id: I39f5d9bff9fc64f4694fb2bef7e4afa131b449cc
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
ibs/EGL/egl_display.h
36ec7a8b99e287d923bfacd2ef69661818aeb85e 16-Nov-2014 Dan Albert <danalbert@google.com> am d72ff140: Merge "Move frameworks/native to libc++."

* commit 'd72ff140e0df44106cd8539396ce686aa8f3306a':
Move frameworks/native to libc++.
6d72063cfd28ab4e5ed9d3405c7e9389d8e78bad 16-Nov-2014 Dan Albert <danalbert@google.com> Move frameworks/native to libc++.

I'm pretty sure I had done this before... Must have been new
dependencies that slipped in when L merged in.

Bug: 15193147
Change-Id: Ib9b1b8a65665d25c33c6141b9476a8e13c4084e0
ibs/GLES_trace/Android.mk
c5657b0c344b39d794c4c8241004d4e19341c096 12-Nov-2014 Andreas Gampe <agampe@google.com> am fecc0bf4: Merge "Frameworks/native: Add pragmas to glgen headers"

* commit 'fecc0bf4f1d8d1939807123d0f01ca1fe377bda4':
Frameworks/native: Add pragmas to glgen headers
fecc0bf4f1d8d1939807123d0f01ca1fe377bda4 12-Nov-2014 Andreas Gampe <agampe@google.com> Merge "Frameworks/native: Add pragmas to glgen headers"
b5da0d78d2fde6abbfd387db4a3b218a5c301c20 11-Nov-2014 Andreas Gampe <agampe@google.com> Frameworks/native: Add pragmas to glgen headers

The code currently being generated by glgen is not the cleanest, but
we would like to get core/jni onto -Werror. Thus add pragmas turning
off warnings locally to the C headers.

Also fix signed-comparison in two functions.

Longer term TODO: Emit clean code.

Change-Id: Iee8582f8c0c1de076d64851d3b6ca467afd5bc43
ools/glgen/stubs/egl/EGL14cHeader.cpp
ools/glgen/stubs/egl/EGLExtcHeader.cpp
ools/glgen/stubs/gles11/GLES10ExtcHeader.cpp
ools/glgen/stubs/gles11/GLES10cHeader.cpp
ools/glgen/stubs/gles11/GLES11ExtcHeader.cpp
ools/glgen/stubs/gles11/GLES11cHeader.cpp
ools/glgen/stubs/gles11/GLES20cHeader.cpp
ools/glgen/stubs/gles11/GLES30cHeader.cpp
ools/glgen/stubs/gles11/GLES31ExtcHeader.cpp
ools/glgen/stubs/gles11/GLES31cHeader.cpp
ools/glgen/stubs/gles11/glDrawArraysIndirect.cpp
ools/glgen/stubs/gles11/glDrawElementsIndirect.cpp
ools/glgen/stubs/jsr239/GLCHeader.cpp
3b93c2b9d0bd4495b6d0fa5f834214f6665873ab 12-Nov-2014 Jesse Hall <jessehall@google.com> am 7b3fd290: Merge "EGL: make x86/64 wrappers resistant to -fno-omit-frame-pointer flag"

* commit '7b3fd29037bc12c2691e06334bf51171853aa8f3':
EGL: make x86/64 wrappers resistant to -fno-omit-frame-pointer flag
701048cbe8d35fcd7e00c875e128fae022b27607 08-Aug-2014 Michal Wajdeczko <michal.wajdeczko@intel.com> EGL: make x86/64 wrappers resistant to -fno-omit-frame-pointer flag

Wrapper functions were broken on builds that forced -fno-omit-frame-pointer flag.

Change-Id: I5a80f9587fb3db821b4156af56acda59a0b4579b
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Signed-off-by: Yong Yao <yong.yao@intel.com>
ibs/EGL/getProcAddress.cpp
ibs/GLES2/gl2.cpp
ibs/GLES_CM/gl.cpp
8e624d4cad45532c09879356f3adaa3b65fdcfc9 07-Nov-2014 Dan Stoza <stoza@google.com> am 98d20f82: Merge "Add a BufferItem parameter to onFrameAvailable" into lmp-mr1-dev

* commit '98d20f82ca8979b30c81df9639f54ab11e1951f9':
Add a BufferItem parameter to onFrameAvailable
8dc55396fc9bc425b5e2c82e76a38080f2a655ff 04-Nov-2014 Dan Stoza <stoza@google.com> Add a BufferItem parameter to onFrameAvailable

Passes the BufferItem for the queued buffer to the onFrameAvailable
callback so the consumer can track the BufferQueue's contents. Also
adds an onFrameReplaced callback, which is necessary if the consumer
wants to do anything more than simple queue length tracking.

Bug: 18111837
Change-Id: If9d07229c9b586c668e5f99074e9b63b0468feb0
ests/EGLTest/EGL_test.cpp
c90b7d9c0f1df1cec8afbfebad0f111d878113e7 05-Nov-2014 Dan Albert <danalbert@google.com> am d12586b8: Merge "Move hwc tests to libc++."

* commit 'd12586b8593cf0cb894d02104a9794ed9dd85d16':
Move hwc tests to libc++.
bcc1ae07d951c166573612f123f8f0340a9233eb 05-Nov-2014 Dan Albert <danalbert@google.com> Move hwc tests to libc++.

Since these tests were pulling in a static library linked against
stlport, the tests needed to be explicit about which STL they're
using. Might as well be libc++.

Bug: 15193147
Change-Id: I4e0fc4ea10f7982dd04e7baaf57139dd5d55543e
ests/hwc/Android.mk
ests/hwc/hwcTestLib.cpp
82ba423f1ca6b05956cc82ecb12da8e5048fa645 16-Oct-2014 Chih-hung Hsieh <chh@google.com> am e9034b45: Merge "Use LOCAL_CLANG := false for GLES wrappers for now"

* commit 'e9034b4502ae6e693ad52fe2e435066dc969a3ab':
Use LOCAL_CLANG := false for GLES wrappers for now
d3684aeda5b0c8f6101437f9f919d1b9f37f6cef 13-Oct-2014 Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> Use LOCAL_CLANG := false for GLES wrappers for now

GLES wrappers built with clang currently result in crashes in libhwui,
UI doesn't come up.

Force gcc for the wrappers until this is investigated and fixed
properly.

Bug: 18003438
Change-Id: I24a17ec019409930883da8040fe2fb05b0fea0c5
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
ibs/Android.mk
53bffaaf277f8b9ebd1bffafe52f9a66b38fe792 23-Sep-2014 Michael Lentine <mlentine@google.com> am 12c4bdad: Add rate-limited logging for unimplemented es functions.

* commit '12c4bdad7b2372ab64dcd2abbdbe47e709fb8b90':
Add rate-limited logging for unimplemented es functions.
12c4bdad7b2372ab64dcd2abbdbe47e709fb8b90 11-Sep-2014 Michael Lentine <mlentine@google.com> Add rate-limited logging for unimplemented es functions.

Bug: 17322013

Change-Id: I7aa5ab2f76cf344cfb75802edbfd44e8e7526ff1
ibs/EGL/egl.cpp
4355c0c98644c37f0511257403bbfb71b342e2df 12-Sep-2014 Dan Albert <danalbert@google.com> am e1e3d278: Merge "Clean cruft out of makefiles."

* commit 'e1e3d278549eb6389eb0b5fa3f13a4ac079a55a2':
Clean cruft out of makefiles.
b79dfe672138805b4f70183fd738d9af58591148 12-Sep-2014 Dan Albert <danalbert@google.com> Clean cruft out of makefiles.

Cleans up manual uses of stlport and bionic (and removes uses of private
bionic headers).

Change-Id: I157309d702e59152adfa3450939082248ae4c043
ibs/GLES_trace/Android.mk
ests/EGLTest/Android.mk
ests/hwc/Android.mk
ests/lib/Android.mk
6c011731d0802dc87d71643303c24d6fc0a2358c 20-Aug-2014 Ben Clayton <bclayton@google.com> am 4c5b9acf: Merge "Don\'t try to capture the pointer when using PBOs for texture APIs" into lmp-dev

* commit '4c5b9acf655531f1be45bf7fffc5ee145a80cca7':
Don't try to capture the pointer when using PBOs for texture APIs
16d7b6a8bb6f22ddd9252c6c0aefa84a53b65d53 18-Aug-2014 Ben Clayton <bclayton@google.com> Don't try to capture the pointer when using PBOs for texture APIs

If a PBO is bound, then the pointer argument is a relative offset from
the start of the PBO, not an absolute address.

Fixes b/17063439

Change-Id: I39629ce6c9bb3cb6bac5c9b0311287628306ddd4
(cherry picked from commit 0ad707f2f3d714af7d983d68330ed51dace815f5)
ibs/GLES_trace/src/gltrace_context.cpp
ibs/GLES_trace/src/gltrace_context.h
ibs/GLES_trace/src/gltrace_fixup.cpp
0ffbac894c4f72a04792aa3a66d058f774fcdf37 08-Aug-2014 Michael Lentine <mlentine@google.com> am 45e2fc22: Revert "Modify EGL to disconnect the window when the surface gets destroyed."

* commit '45e2fc22261cb8ecac4901b4425bcb7352c71174':
Revert "Modify EGL to disconnect the window when the surface gets destroyed."
45e2fc22261cb8ecac4901b4425bcb7352c71174 08-Aug-2014 Michael Lentine <mlentine@google.com> Revert "Modify EGL to disconnect the window when the surface gets destroyed."

This reverts commit 843cbb241da60ada234918a30cfe9a01a1e04187.
ibs/EGL/eglApi.cpp
83142a12fbc1249c53551765e3d99b4471b58f19 06-Aug-2014 Jesse Hall <jessehall@google.com> am e2e17e5b: Merge "GlES2: Add NULL check"

* commit 'e2e17e5b238ccd214c72ec1a1864cf391425f09f':
GlES2: Add NULL check
0627071cc983aadb8d7447fe222b05d15c7c25be 05-Nov-2013 Anshuman Dani <adani@codeaurora.org> GlES2: Add NULL check

Check for NULL before calling thread specific glGetString.

CRs-fixed: 569609

Change-Id: Ifee8257152ba7ca7a05df5d7b113171b71d16c82
ibs/GLES2/gl2.cpp
cd36eb445bcc55c88e157584d9ac229280459463 30-Jul-2014 Michael Lentine <mlentine@google.com> Merge "Modify EGL to disconnect the window when the surface gets destroyed." into lmp-dev
843cbb241da60ada234918a30cfe9a01a1e04187 23-Jul-2014 Michael Lentine <mlentine@google.com> Modify EGL to disconnect the window when the surface gets destroyed.

Bug: 14445579

Change-Id: I1d263ff6cffcb6e448761fca7ca4b06466ad65aa
ibs/EGL/eglApi.cpp
d1ceb8b78f4823c58185a22c5dd047c4174f91b1 23-Jul-2014 Ying Wang <wangying@google.com> Install symlinks in multilib build.

(cherry picked from commit c3aed1eaefa9c824d5863d58db3954eb642cffe4)

Change-Id: Ic0082ffbd7ecf610476bccb0929e67427a05190d
ibs/Android.mk
c3aed1eaefa9c824d5863d58db3954eb642cffe4 23-Jul-2014 Ying Wang <wangying@google.com> Install symlinks in multilib build.

Change-Id: Ia8a4995de127c42beebb3fe603366ce29a6f94d3
ibs/Android.mk
7b3f48d2efc83094de70c24520bafacda3749a20 17-Jul-2014 Ben Clayton <bclayton@google.com> Use the count parameter to store all the uniform vectors, not just the first one. DO NOT MERGE.

Change-Id: Ib56d859051f0b895de5c12ffa371cd4b2b65ac0b
(cherry picked from commit 31b0aec64ba44b1ee0581e00a588d84f4b081512)
ibs/GLES_trace/src/gltrace_fixup.cpp
3d3c125423ab922e705c3f563c689bd7c4a04bac 07-Jul-2014 Ben Clayton <bclayton@google.com> Add data capturing of glCompressedTexImage2D and glCompressedTexSubImage2D calls.

Change-Id: I38643f5d279a84f1b7069801d7c106fc8f1ae394
ibs/GLES_trace/src/gltrace_fixup.cpp
722e75179b7775121d8f33c899827ab866e2008b 11-Jun-2014 Ying Wang <wangying@google.com> am 0cea0a22: am d284c4cd: Merge "Don\'t set LOCAL_MODULE_PATH for native tests."

* commit '0cea0a22109ace7e3dfbb4913a1469f3f8480f6e':
Don't set LOCAL_MODULE_PATH for native tests.
8baf4fcabdb5daa3fff9aaae6a04e51f8b23a7a1 10-Jun-2014 Ying Wang <wangying@google.com> Don't set LOCAL_MODULE_PATH for native tests.

The build system will set it up automatically.

Change-Id: Id5ed9eff88dab2349c3b357ee09f7da9479d7d2d
ests/hwc/Android.mk
0d7271527fa48c26b657d689faffbc94c93e5b3c 07-Jun-2014 Jesse Hall <jessehall@google.com> am 17cbadf0: am 6fa169fa: Merge "Add aarch64 EGL/GLES trampolines"

* commit '17cbadf0f598b0d02179262ad5b6b270850ccb94':
Add aarch64 EGL/GLES trampolines
30a41aa1ccc47de41642308a243fa5df2bfeec06 31-May-2014 Jesse Hall <jessehall@google.com> Add aarch64 EGL/GLES trampolines

Change-Id: Ia90e18d26ff3bdb7e643aff8d77cbaddd2ac2a03
ibs/EGL/getProcAddress.cpp
ibs/GLES2/gl2.cpp
ibs/GLES_CM/gl.cpp
7ef56b7315f2c6c9f9d64d0c26883a3cf7fc1794 29-May-2014 Simon Wilson <simonwilson@google.com> am ad8d25e8: am 90654afb: Revert "Enable OMAP4 SGX workaround for OMAP3 too"

* commit 'ad8d25e812d8842298de92657158a0325c42cdbd':
Revert "Enable OMAP4 SGX workaround for OMAP3 too"
ad8d25e812d8842298de92657158a0325c42cdbd 29-May-2014 Simon Wilson <simonwilson@google.com> am 90654afb: Revert "Enable OMAP4 SGX workaround for OMAP3 too"

* commit '90654afb3aeac78916f2a53fe689a087c0e283c9':
Revert "Enable OMAP4 SGX workaround for OMAP3 too"
90654afb3aeac78916f2a53fe689a087c0e283c9 29-May-2014 Simon Wilson <simonwilson@google.com> Revert "Enable OMAP4 SGX workaround for OMAP3 too"

Since the new TI SGX DDK 1.12 has fixed support for RGBA8888,
the workaround can be reverted. This may help with CTS issues.

Bug: 14995811
This reverts commit 6e79cb81d02984c9f7ac0586078f947c94c56c2a.

Change-Id: Id8160ebe577d7009d2dd5eb4501ec40356a4274d
ibs/Android.mk
c2774f9b7341980c626c52a70e4fdf64d1b426e8 28-May-2014 Jesse Hall <jessehall@google.com> am 92374318: am 618c78c0: am dc273621: Merge "EGL: add x86/64 assembly code for EGL/GLES wrappers"

* commit '92374318b82945f3d03461f3d0c659adb8409fc5':
EGL: add x86/64 assembly code for EGL/GLES wrappers
92374318b82945f3d03461f3d0c659adb8409fc5 28-May-2014 Jesse Hall <jessehall@google.com> am 618c78c0: am dc273621: Merge "EGL: add x86/64 assembly code for EGL/GLES wrappers"

* commit '618c78c032ce84c02724a1e5a7f439fa788ecf3a':
EGL: add x86/64 assembly code for EGL/GLES wrappers
c80aafa61d619087a879dc1095ddf1ca2a5e69fb 26-May-2014 mwajdecz <michal.wajdeczko@intel.com> EGL: add x86/64 assembly code for EGL/GLES wrappers

There was no explicit support for x86/64 architecture in EGL/GLES wrappers.
This resulted either in failures or sub-optimal implementation of the wrapper functions.

Change-Id: I20d99d7372fbf642ee4b94a05c8cb971cba29988
Signed-off-by: Wajdeczko, Michal <michal.wajdeczko@intel.com>
ibs/EGL/getProcAddress.cpp
ibs/GLES2/gl2.cpp
ibs/GLES_CM/gl.cpp
391109083f683c990bdbc5ca3a5f521a9a3fc98d 20-May-2014 Jesse Hall <jessehall@google.com> opengl: Fix include style in generated JNI code

Bug: 15028495
Change-Id: Ie38d398751a374f11bef8944a2aa0f8311934911
ools/glgen/stubs/gles11/common.cpp
0232d3d11c0c2e9c2ee4f637778d19c8f042cb89 20-May-2014 Jesse Hall <jessehall@google.com> opengl: Un-hide GLES31 and GLES31Ext classes

Bug: 15028495
Change-Id: Iaac1e8d2ad5ea840d728a78804e2566be18a4340
ools/glgen/stubs/gles11/GLES31ExtHeader.java-if
ools/glgen/stubs/gles11/GLES31Header.java-if
16f03928743b01638419874e2b6300b52da6eb4c 20-May-2014 Jesse Hall <jessehall@google.com> opengl: Add GLES31 and GLES31Ext class templates

Bug: 15028495
Change-Id: I276d04f029d441e092428fad72f09ca15e1d233a
ools/glgen/gen
ools/glgen/specs/gles11/GLES31.spec
ools/glgen/specs/gles11/GLES31Ext.spec
ools/glgen/src/GenerateGLES.java
ools/glgen/stubs/gles11/GLES31ExtHeader.java-if
ools/glgen/stubs/gles11/GLES31ExtcHeader.cpp
ools/glgen/stubs/gles11/GLES31Header.java-if
ools/glgen/stubs/gles11/GLES31cHeader.cpp
ools/glgen/stubs/gles11/glBindVertexBuffer.cpp
ools/glgen/stubs/gles11/glBindVertexBuffer.java
ools/glgen/stubs/gles11/glBindVertexBuffer.nativeReg
ools/glgen/stubs/gles11/glCreateShaderProgramv.cpp
ools/glgen/stubs/gles11/glCreateShaderProgramv.java
ools/glgen/stubs/gles11/glCreateShaderProgramv.nativeReg
ools/glgen/stubs/gles11/glDebugMessageCallbackKHR.cpp
ools/glgen/stubs/gles11/glDebugMessageCallbackKHR.java
ools/glgen/stubs/gles11/glDebugMessageCallbackKHR.nativeReg
ools/glgen/stubs/gles11/glDebugMessageInsertKHR.cpp
ools/glgen/stubs/gles11/glDebugMessageInsertKHR.java
ools/glgen/stubs/gles11/glDebugMessageInsertKHR.nativeReg
ools/glgen/stubs/gles11/glDispatchComputeIndirect.cpp
ools/glgen/stubs/gles11/glDispatchComputeIndirect.java
ools/glgen/stubs/gles11/glDispatchComputeIndirect.nativeReg
ools/glgen/stubs/gles11/glDrawArraysIndirect.cpp
ools/glgen/stubs/gles11/glDrawArraysIndirect.java
ools/glgen/stubs/gles11/glDrawArraysIndirect.nativeReg
ools/glgen/stubs/gles11/glDrawElementsIndirect.cpp
ools/glgen/stubs/gles11/glDrawElementsIndirect.java
ools/glgen/stubs/gles11/glDrawElementsIndirect.nativeReg
ools/glgen/stubs/gles11/glGetDebugMessageLogKHR.cpp
ools/glgen/stubs/gles11/glGetDebugMessageLogKHR.java
ools/glgen/stubs/gles11/glGetDebugMessageLogKHR.nativeReg
ools/glgen/stubs/gles11/glGetObjectLabelKHR.cpp
ools/glgen/stubs/gles11/glGetObjectLabelKHR.java
ools/glgen/stubs/gles11/glGetObjectLabelKHR.nativeReg
ools/glgen/stubs/gles11/glGetObjectPtrLabelKHR.cpp
ools/glgen/stubs/gles11/glGetObjectPtrLabelKHR.java
ools/glgen/stubs/gles11/glGetObjectPtrLabelKHR.nativeReg
ools/glgen/stubs/gles11/glGetPointervKHR.cpp
ools/glgen/stubs/gles11/glGetPointervKHR.java
ools/glgen/stubs/gles11/glGetPointervKHR.nativeReg
ools/glgen/stubs/gles11/glGetProgramPipelineInfoLog.cpp
ools/glgen/stubs/gles11/glGetProgramPipelineInfoLog.java
ools/glgen/stubs/gles11/glGetProgramPipelineInfoLog.nativeReg
ools/glgen/stubs/gles11/glGetProgramResourceName.cpp
ools/glgen/stubs/gles11/glGetProgramResourceName.java
ools/glgen/stubs/gles11/glGetProgramResourceName.nativeReg
ools/glgen/stubs/gles11/glObjectPtrLabelKHR.cpp
ools/glgen/stubs/gles11/glObjectPtrLabelKHR.java
ools/glgen/stubs/gles11/glObjectPtrLabelKHR.nativeReg
ools/glgen2/glgen.py
26d82dd0ab2462beae286c58d36d400176b0b145 20-May-2014 Jesse Hall <jessehall@google.com> Merge "opengl: Regenerate code with ES 3.1 and new extensions"
c1eef76d2c32f022e286fed033cafade874d7764 20-May-2014 Jesse Hall <jessehall@google.com> Merge "opengl: Add EXT_primitive_bounding_box to registry"
481b5ebb907fe6bf9e3cfe25789450862baaf082 20-May-2014 Jesse Hall <jessehall@google.com> Merge "opengl: Update registry and headers from Khronos"
eb6e4cc81cdc978eba7b9f865b0d1b352b5e0de5 20-May-2014 Jesse Hall <jessehall@google.com> Merge "opengl: Generate *.in from registry XML"
aa986dd17107551152b8bd923662d9dbb3f7ba99 20-May-2014 Jesse Hall <jessehall@google.com> Merge "Update GLES headers from Khronos SVN r26322"
0abc6e904a1654e547087a3228ade9e4a19705d5 20-May-2014 Jesse Hall <jessehall@google.com> Merge "Import GL registry from upstream @r26448."
42defc1af784c4706de1d4f6365514b48f2d0649 20-May-2014 Jesse Hall <jessehall@google.com> Merge "Remove vestigial remnants of GLES2_dbg"
c8fc3a49a257094ceabba846709c1982ed70ec72 20-May-2014 Jesse Hall <jessehall@google.com> Merge "Disable warnings when generating GL wrappers"
544198338f3bad98c9db32733e146276628debe5 20-May-2014 Jesse Hall <jessehall@google.com> Merge "Rationalize GLES2/3 .in files."
6cb7d3dc9f1ce37547646979e0625992264ea4d0 18-May-2014 Jesse Hall <jessehall@google.com> opengl: Regenerate code with ES 3.1 and new extensions

Enable ES 3.1 generation in glgen.py, and regenerate everything to add
support for that as well as these new extensions in the registry:
- EXT_copy_image
- EXT_draw_buffers_indexed
- EXT_geometry_shader
- EXT_gpu_shader5
- EXT_primitive_bounding_box
- EXT_shader_implicit_conversions
- EXT_shader_io_blocks
- EXT_tessellation_shader
- EXT_texture_border_clamp
- EXT_texture_buffer
- EXT_texture_cube_map_array
- EXT_texture_view

Bug: 15028495
Change-Id: I35acb473cba2433b9aeb95d1b8bfbdcfadf22532
ibs/GLES2/gl2.cpp
ibs/GLES2/gl2_api.in
ibs/GLES2/gl2ext_api.in
ibs/GLES_trace/gltrace.proto
ibs/GLES_trace/src/gltrace.pb.cpp
ibs/GLES_trace/src/gltrace.pb.h
ibs/GLES_trace/src/gltrace_api.cpp
ibs/GLES_trace/src/gltrace_api.h
ibs/GLES_trace/tools/genapi.py
ibs/entries.in
ibs/enums.in
ibs/hooks.h
ibs/trace.in
ools/glgen2/glgen.py
a66730f78796664fb5232aa4c1139f4b837beaf4 18-May-2014 Jesse Hall <jessehall@google.com> opengl: Add EXT_primitive_bounding_box to registry

This extension hasn't been published yet, so it isn't in the public
registry. That will change before the next platform release to AOSP.

Bug: 15028495
Change-Id: Iadafe0f776b5b9be4f81c4279a89c57ae02293e4
nclude/GLES2/gl2ext.h
ools/glgen2/registry/gl.xml
f466a51c1325d2034326e25dd61c359ed2c566af 18-May-2014 Jesse Hall <jessehall@google.com> opengl: Update registry and headers from Khronos

gl.xml @ r26697:
https://cvs.khronos.org/svn/repos/ogl/trunk/doc/registry/public/api

GLES headers @ r26698:
https://cvs.khronos.org/svn/repos/registry/trunk/public/gles/api

Bug: 15028495
Change-Id: Id8e7aaf8a09ec6f47dc3a3b14b95d0ddf35d50f6
nclude/GLES2/gl2.h
nclude/GLES2/gl2ext.h
nclude/GLES3/gl3.h
nclude/GLES3/gl31.h
ools/glgen2/registry/gl.xml
4a73962c694bfe57eb2bea40ed6fb626be7006aa 14-May-2014 Jesse Hall <jessehall@google.com> opengl: Generate *.in from registry XML

There are many non-functional whitespace and parameter name changes
included here. These were introduced upstream when converting from the
old .spec registry to the new XML registry.

There are also some new extensions added. Unfortunately there isn't a
version of the XML that matches the headers the previous versions of
the *.in files were generated from, so I can't separate out the
non-functional changes from the new extensions (other than temporarily
hacking them out of the XML). See below.

Finally, I had to hack the official glext.h. Khronos hasn't updated
the official GLES1 headers since switching to the XML registry, and
there is one critical difference: a "const void**" parameter in the
official header is "const void* const*" in the registry. I changed the
header to avoid build errors with code generated from the registry.

Dependencies on the *.in files required manually updating some
GLES_trace/ files as well:

- gltrace_api.{h,cpp} must be manually re-generated using
tools/genapi.py.
- New GL prototypes must be manually added to gltrace.proto.
- gltrace.pb.{h,cpp} must be regenerated using aprotoc (see dev.make)

New GLES extensions in libs/GLES_CM/glext_api.in:
- GL_OES_byte_coordinates
- GL_EXT_map_buffer_range
- GL_APPLE_copy_texture_levels
- GL_APPLE_sync

New GLES2 extensions in libs/GLES2/gl2ext_api.in:
- GL_KHR_blend_equation_advanced
- GL_KHR_debug
- GL_OES_sample_shading
- GL_OES_texture_storage_multisample_2d_array
- GL_EXT_disjoint_timer_query
- GL_EXT_draw_buffers
- GL_EXT_draw_instanced
- GL_EXT_instanced_arrays
- GL_EXT_map_buffer_range
- GL_EXT_map_buffer_range
- GL_EXT_multiview_draw_buffers
- GL_EXT_separate_shader_objects
- GL_ANGLE_instanced_arrays
- GL_ANGLE_translated_shader_source
- GL_APPLE_copy_texture_levels
- GL_APPLE_sync
- GL_INTEL_performance_query
- GL_NV_blend_equation_advanced
- GL_NV_copy_buffer
- GL_NV_draw_instanced
- GL_NV_framebuffer_blit
- GL_NV_framebuffer_multisample
- GL_NV_instanced_arrays
- GL_NV_non_square_matrices

Bug: 15028495
Change-Id: Ib3fa700a146adf7f1487a93e459b1e6df0dcdc42
nclude/GLES/glext.h
ibs/GLES2/gl2_api.in
ibs/GLES2/gl2ext_api.in
ibs/GLES_CM/gl_api.in
ibs/GLES_CM/glext_api.in
ibs/GLES_trace/gltrace.proto
ibs/GLES_trace/src/gltrace.pb.cpp
ibs/GLES_trace/src/gltrace.pb.h
ibs/GLES_trace/src/gltrace_api.cpp
ibs/GLES_trace/src/gltrace_api.h
ibs/GLES_trace/tools/genapi.py
ibs/entries.in
ibs/enums.in
ibs/trace.in
ools/glgen2/.gitignore
ools/glgen2/glgen.py
20670e33c76a32370695a82a3e7f2fb30be30608 14-May-2014 Jesse Hall <jessehall@google.com> Update GLES headers from Khronos SVN r26322

Public registry is:
https://cvs.khronos.org/svn/repos/registry/trunk/public/gles/api

Bug: 15028495
Change-Id: I2269a6a2486c34b6a9e378d4a25a41492d531c81
nclude/GLES/glext.h
nclude/GLES2/gl2.h
nclude/GLES2/gl2ext.h
nclude/GLES2/gl2platform.h
nclude/GLES3/gl3.h
a42788e2b83bf9c1b2471c4ad2af59b8e72333e8 22-Apr-2014 Jesse Hall <jessehall@google.com> Import GL registry from upstream @r26448.

Public GL registry is at:
https://cvs.khronos.org/svn/repos/ogl/trunk/doc/registry/public/api

Bug: 15028495
Change-Id: I41cc865bf39e1155c4467411d0b1afced44b0874
ools/glgen2/registry/egl.xml
ools/glgen2/registry/genheaders.py
ools/glgen2/registry/gl.xml
ools/glgen2/registry/reg.py
2fc72d1c0294fb759380604ea906ce67ebeb5c5f 19-May-2014 Jesse Hall <jessehall@google.com> opengl: Fix whitespace in Java templates

Someone fixed these in the generated code, so re-generating even with
no other changes caused diffs. Better to just fix it at the source.

Bug: 15028495
Change-Id: I248f9796d4e3d904c4c0dc15be5f8de231df7285
ools/glgen/stubs/gles11/GLES10ExtHeader.java-if
ools/glgen/stubs/gles11/GLES10Header.java-if
ools/glgen/stubs/gles11/GLES11ExtHeader.java-if
ools/glgen/stubs/gles11/GLES11Header.java-if
ools/glgen/stubs/gles11/glGetUniformIndices.java
ools/glgen/stubs/gles11/glTransformFeedbackVaryings.java
ools/glgen/stubs/jsr239/GLImplHeader.java-impl
38cd5c5b610bf96d741a408041aee4cb976f0fc5 15-May-2014 Jesse Hall <jessehall@google.com> Remove vestigial remnants of GLES2_dbg

These are left over from an early (not finished?) GL debugging
facility that morphed into GLES_trace. Most of the rest of it has
already been removed, these few pieces were still hanging aroung.

Bug: 15028495
Change-Id: Ib7c03eb8d0db30112e1b83e5262bba03006770de
ibs/EGL/trace.cpp
ibs/debug.in
bbbddb83bbd3ca2032294b55c91b1023acc927ac 14-May-2014 Jesse Hall <jessehall@google.com> Disable warnings when generating GL wrappers

Bug: 15028495
Change-Id: Ic0c974e868d05632a06748c90cedbdd409ce2aa8
ibs/GLES2/gl2.cpp
ibs/GLES_CM/gl.cpp
4c0596f4cc7d3a0bbbe5862cb38585a58ef4d0a3 14-May-2014 Jesse Hall <jessehall@google.com> Rationalize GLES2/3 .in files.

We weren't using gl2_api.in, since gl3_api.in was a superset. And
gl3ext_api.in was empty, and Khronos has decided to keep it that way
(any GLES2/3/... extensions will be in gl2ext.h).

Since libGLES2.so will have all future backwards-compatible GLES APIs,
it makes sense to just use gl2_api.in and gl2ext_api.in to build its
contents. This changes renames gl3_api.in to gl2_api.in and updates
uses of it, and removes gl3ext_api.in and references.

Bug: 15028495
Change-Id: I0745eda27ec91ee625f03e957e4fdb22035dd781
ibs/GLES2/gl2.cpp
ibs/GLES2/gl2_api.in
ibs/GLES2/gl3_api.in
ibs/GLES2/gl3ext_api.in
ibs/GLES_trace/src/gltrace_api.cpp
ibs/GLES_trace/src/gltrace_api.h
ibs/GLES_trace/tools/genapi.py
ibs/tools/genfiles
f736f2f5daa40061409376435fb6a6e66e48b7ae 08-May-2014 Ying Wang <wangying@google.com> am 114d71ce: am 214b4a61: am 8155ce81: Merge "Remove unused LOCAL_LDLIBS."

* commit '114d71ce7c6ec1ce0327c812a42966c4258b4a46':
Remove unused LOCAL_LDLIBS.
114d71ce7c6ec1ce0327c812a42966c4258b4a46 08-May-2014 Ying Wang <wangying@google.com> am 214b4a61: am 8155ce81: Merge "Remove unused LOCAL_LDLIBS."

* commit '214b4a61ac3fa63e35c79157d3acf0d8b692b3ac':
Remove unused LOCAL_LDLIBS.
4a793fe95213675da514bc7f92655c3fa0e07ff3 08-May-2014 Ying Wang <wangying@google.com> Remove unused LOCAL_LDLIBS.

Change-Id: I62904c410a66f256da8253764577acae18f964f8
ibagl/Android.mk
ibs/Android.mk
6ec9862df1a0dffd334bc37ba9cd15340f10d6c1 25-Apr-2014 John Reck <jreck@google.com> Merge "Revert "Temporarily turn on callstack logging""
1f246d73d809f1502eb816b86b5d3c3f4de728dc 25-Apr-2014 John Reck <jreck@google.com> Revert "Temporarily turn on callstack logging"

Bug: 13927881

'twas useful and perhaps should be always enabled (please?)
but not like this, so reverting.

This reverts commit db4488565a791fc769b0b0b6ca4a0689eb3d5f4e.

Change-Id: I9a78c6d6e48342ef6ca1f2f7b5303ca47ccc6086
ibs/EGL/egl.cpp
1034cfc778e33e089422ae0212b1d116ec855a5a 21-Apr-2014 Jesse Hall <jessehall@google.com> am 43b3e600: am 3f0d5669: Merge "Expose core EGL entry points to eglGetProcAddress"

* commit '43b3e600c1a477697408b1cac4cbd40b0ad97d56':
Expose core EGL entry points to eglGetProcAddress
43b3e600c1a477697408b1cac4cbd40b0ad97d56 21-Apr-2014 Jesse Hall <jessehall@google.com> am 3f0d5669: Merge "Expose core EGL entry points to eglGetProcAddress"

* commit '3f0d5669eb437ce1f9ce599e196d045534ec3d4f':
Expose core EGL entry points to eglGetProcAddress
3f0d5669eb437ce1f9ce599e196d045534ec3d4f 21-Apr-2014 Jesse Hall <jessehall@google.com> Merge "Expose core EGL entry points to eglGetProcAddress"
10f91bbf7db6eb999de8f7041a8c7bb0cb809799 09-Apr-2014 John Reck <jreck@google.com> Merge "Temporarily turn on callstack logging"
db4488565a791fc769b0b0b6ca4a0689eb3d5f4e 09-Apr-2014 John Reck <jreck@google.com> Temporarily turn on callstack logging

Bug: 13745587
Temporarily turn on callstack logging for gl_no_context() to
try and track down font cache corruption

Change-Id: I657ee85e811746441c5ce0ffe5adbfb3fb011d4c
ibs/EGL/egl.cpp
5603a2fbbd1aae74c4635e2f600819fb05d112e0 07-Apr-2014 Dan Stoza <stoza@google.com> Remove deprecated BufferQueue constructor

Bug: 13415624
Change-Id: I153b5470b21832cebe3c617d28a4ab9c9bf3b362
ests/EGLTest/EGL_test.cpp
e6ef753ef6f134b6ff4fa1b30f0c3340a90f61af 02-Apr-2014 Glenn Kasten <gkasten@android.com> am fc1544d5: am 17b5ca1e: Merge "opengl: fix UAL conformity"

* commit 'fc1544d52d1232ccdf57a05704a013bad784f8f6':
opengl: fix UAL conformity
fc1544d52d1232ccdf57a05704a013bad784f8f6 02-Apr-2014 Glenn Kasten <gkasten@android.com> am 17b5ca1e: Merge "opengl: fix UAL conformity"

* commit '17b5ca1e665a1bbe17387b36fcce8f6b52513d5e':
opengl: fix UAL conformity
dd46c864c12f592896e4da14758accbcd54afd10 24-Feb-2014 synergy dev <synergye@codefi.re> opengl: fix UAL conformity

GAS assumes .align 2 if .align only is set, however the UAL doesn't enforce this assumption.

Change-Id: I88b567dc84ee8f04a13f2b8e80c3ee41530a9e49
ibagl/fixed_asm.S
ibagl/iterators.S
c0ec5e2333b6350480851b8b48f000c78ea3f88a 27-Jan-2014 Michael Chock <mchock@nvidia.com> Expose core EGL entry points to eglGetProcAddress

Required behavior for EGL_KHR_get_all_proc_addresses.

Change-Id: I1e6209ef3cb9f2fa6f22808b077c35139d4cb814
ibs/EGL/Loader.cpp
ibs/EGL/eglApi.cpp
ibs/EGL/egldefs.h
f3ed9a21b83df1e1b4aa8d2cdd08114de3484b59 25-Mar-2014 Andy McFadden <fadden@android.com> Request RGBX rather than RGBA

Fixes San Angeles for certain devices.

Bug 13641473

Change-Id: Icb148e1fed15fe56297942475c095e7eb4a11549
ests/lib/WindowSurface.cpp
993146092f8205d9747f082ccd63c09b536caa4e 14-Mar-2014 Mark Salyzyn <salyzyn@google.com> am d4dabf87: am cdbf28b3: Merge "native frameworks: 64-bit compile issues"

* commit 'd4dabf872ac0a12e12aebae9032f7d62762c2aeb':
native frameworks: 64-bit compile issues
85c0fee024384a7756a5eeb31592b6a0d7bacd91 13-Mar-2014 Jesse Hall <jessehall@google.com> Fix broken test build

Change-Id: I767bcefd92899334e4769dd3495595f546133694
ests/EGLTest/EGL_test.cpp
d4dabf872ac0a12e12aebae9032f7d62762c2aeb 13-Mar-2014 Mark Salyzyn <salyzyn@google.com> am cdbf28b3: Merge "native frameworks: 64-bit compile issues"

* commit 'cdbf28b3f7f5327f4cb0eb95b8326bf4c24c87ba':
native frameworks: 64-bit compile issues
92dc3fc52cf097bd105460cf377779bdcf146d62 12-Mar-2014 Mark Salyzyn <salyzyn@google.com> native frameworks: 64-bit compile issues

- Fix format (print/scanf)
- Suppress unused argument warning messages (bonus)

Change-Id: I05c7724d2aba6da1e82a86000e11f3a8fef4e728
ibagl/BufferObjectManager.h
ibagl/array.cpp
ibagl/egl.cpp
ibagl/light.cpp
ibagl/primitives.cpp
ibagl/state.cpp
ibagl/texture.cpp
ibagl/vertex.cpp
ibs/EGL/egl_display.cpp
ibs/GLES_CM/gl.cpp
ibs/GLES_trace/src/gltrace_egl.cpp
709d7dec790f046ae3f72e7ebe9046977a46ac65 12-Mar-2014 Andy McFadden <fadden@android.com> Adjust for device orientation

When the device is rotated, reverse the width/height values.

Change-Id: Idc2b80b1cb96d9379cd94192997580e1ade70bf6
ests/lib/WindowSurface.cpp
6ef57d7b368ebbac5f2b27c36a9032fee1cda8b1 06-Mar-2014 Andy McFadden <fadden@android.com> Restore old OpenGL tests

These tests call android_createDisplaySurface() to get a
FramebufferNativeWindow that is passed to EGL. This relies on the
existence of the framebuffer HAL, which is not supported on many
recent devices.

This change adds a new "window surface" object that the tests
can use to get a window from SurfaceFlinger instead. All tests
except for the HWC tests now appear to do things.

The HWC tests don't do anything useful, but they no longer depend
on the android_createDisplaySurface() function.

Bug 13323813

Change-Id: I2cbfbacb3452fb658c29e945b0c7ae7c94c1a4ba
ests/angeles/Android.mk
ests/angeles/app-linux.cpp
ests/fillrate/Android.mk
ests/fillrate/fillrate.cpp
ests/filter/Android.mk
ests/filter/filter.cpp
ests/finish/Android.mk
ests/finish/finish.cpp
ests/gl2_basic/Android.mk
ests/gl2_basic/gl2_basic.cpp
ests/gl2_copyTexImage/Android.mk
ests/gl2_copyTexImage/gl2_copyTexImage.cpp
ests/gl2_yuvtex/Android.mk
ests/gl2_yuvtex/gl2_yuvtex.cpp
ests/gl_basic/Android.mk
ests/gl_basic/gl_basic.cpp
ests/gl_perf/Android.mk
ests/gl_perf/gl2_perf.cpp
ests/gl_yuvtex/Android.mk
ests/gl_yuvtex/gl_yuvtex.cpp
ests/hwc/hwcColorEquiv.cpp
ests/hwc/hwcCommit.cpp
ests/hwc/hwcRects.cpp
ests/hwc/hwcStress.cpp
ests/hwc/hwcTestLib.cpp
ests/hwc/hwcTestLib.h
ests/include/WindowSurface.h
ests/lib/Android.mk
ests/lib/WindowSurface.cpp
ests/linetex/Android.mk
ests/linetex/linetex.cpp
ests/swapinterval/Android.mk
ests/swapinterval/swapinterval.cpp
ests/textures/Android.mk
ests/textures/textures.cpp
ests/tritex/Android.mk
ests/tritex/tritex.cpp
d5bb577de0582573e6a202558943fc8da8a9ef1f 04-Mar-2014 Mark Salyzyn <salyzyn@google.com> am eac548c6: am 61d6a008: Merge "hwc test: 64-bit compilation error"

* commit 'eac548c65c30b04983a8c904f9a1c6003d428196':
hwc test: 64-bit compilation error
eac548c65c30b04983a8c904f9a1c6003d428196 04-Mar-2014 Mark Salyzyn <salyzyn@google.com> am 61d6a008: Merge "hwc test: 64-bit compilation error"

* commit '61d6a00895d2e8b9085278d0acbf98c19e7d6ed5':
hwc test: 64-bit compilation error
e933c0396f1350c71b6753a5e25a82d800b1a9ae 04-Mar-2014 Mark Salyzyn <salyzyn@google.com> hwc test: 64-bit compilation error

* cast 1u to size_t in max() argument lists

Change-Id: I02f711c89e96e4cfc348f1c7bac455339bec2fa1
ests/hwc/hwcStress.cpp
08d6aa9a908aae214fc36bcc0469dc8f0dbb3ac8 04-Mar-2014 Simon Wilson <simonwilson@google.com> am 8ffc2346: am 6e79cb81: Enable OMAP4 SGX workaround for OMAP3 too

* commit '8ffc2346b86ef5a0d686b43229d2bbd70545a208':
Enable OMAP4 SGX workaround for OMAP3 too
8ffc2346b86ef5a0d686b43229d2bbd70545a208 04-Mar-2014 Simon Wilson <simonwilson@google.com> am 6e79cb81: Enable OMAP4 SGX workaround for OMAP3 too

* commit '6e79cb81d02984c9f7ac0586078f947c94c56c2a':
Enable OMAP4 SGX workaround for OMAP3 too
6e79cb81d02984c9f7ac0586078f947c94c56c2a 28-Feb-2014 Simon Wilson <simonwilson@google.com> Enable OMAP4 SGX workaround for OMAP3 too

Change-Id: I04308d8b7435b4adf1811f75f48f9e8a07a8c8a6
ibs/Android.mk
622b6b28f20498b410031c614cd0806b8fb50728 28-Feb-2014 Narayan Kamath <narayan@google.com> Fix bad link tag in javadoc.

Java7 javadoc tools seem to accept this without complaint
but not all targets use java7 yet.

Change-Id: Ib08be8ad0f7db2e89f38b764cce858d0e7eecd2e
ools/glgen/static/egl/EGLObjectHandle.java
a90086a914f2fad9686e8e3d23dcdf65f38360eb 27-Feb-2014 Narayan Kamath <narayan@google.com> API changes for 64 bit platforms.

EGLObjectHandle.<init>(int) and int EGLObjectHandle.getHandle()
have now been deprecated and replaced with variants that take
and return java longs.

bug: 13181704
Change-Id: Ie88e591c288d6de5655364b4cd673f61cce68d7d
ools/glgen/static/egl/EGLObjectHandle.java
2c95c57b62ca8ca28065642f34ca90bf06eec29f 27-Feb-2014 Narayan Kamath <narayan@google.com> am 3e599252: am 93e6a48b: Merge "AArch64: Make eglGetDisplay(int) work for EGL_DEFAULT_DISPLAY"

* commit '3e599252c0f5a8e70f4b8d4ab5baffb7e5b0b0e1':
AArch64: Make eglGetDisplay(int) work for EGL_DEFAULT_DISPLAY
d61b48c090cf288e406db11f3106257643657ead 26-Feb-2014 Ashok Bhat <ashok.bhat@arm.com> AArch64: Make eglGetDisplay(int) work for EGL_DEFAULT_DISPLAY

This will allow eglGetDisplay(int) to work on both 32-bit
and 64-bit systems when EGL_DEFAULT_DISPLAY is passed as
a parameter.

Change-Id: I0d7e9ca5410b0dd893eacc02aac40956908e4f25
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
ools/glgen/stubs/egl/eglGetDisplay.cpp
ools/glgen/stubs/egl/eglGetDisplay.java
d6b4e78dca84dd83297fd3113d581ba5c22f1fc6 25-Feb-2014 Narayan Kamath <narayan@google.com> am aa01ad91: am aaa27fd5: Merge "Use reinterpret_cast when an integer is cast to a pointer"

* commit 'aa01ad91cd22304fd15810f241c67ebb59e90c04':
Use reinterpret_cast when an integer is cast to a pointer
ab7b4fe490b091f6f8f56ba5edcce41a44a5d0f8 25-Feb-2014 Narayan Kamath <narayan@google.com> am 097b5991: am e5c99bf3: Merge "Use long for pointers in opengl/EGL classes"

* commit '097b59919f01d7b057d252d23cb96ce5fcdd9469':
Use long for pointers in opengl/EGL classes
aaa27fd5a0bb81ac17c25c33beb2656b32100cd6 25-Feb-2014 Narayan Kamath <narayan@google.com> Merge "Use reinterpret_cast when an integer is cast to a pointer"
d8f096114da14f9793d4cca6022ca41b70ab9daa 15-Feb-2014 Ashok Bhat <ashok.bhat@arm.com> Use reinterpret_cast when an integer is cast to a pointer

Change-Id: I5adcd59f58c029f7b2b596f4826d8ea69fb9bba6
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
ools/glgen/src/JniCodeEmitter.java
ools/glgen/stubs/gles11/common.cpp
ools/glgen/stubs/gles11/glGetActiveAttrib.cpp
ools/glgen/stubs/gles11/glGetActiveUniform.cpp
ools/glgen/stubs/gles11/glGetShaderSource.cpp
ools/glgen/stubs/jsr239/GLCHeader.cpp
ab6fc2a86f34be455c144a2d691e94909998c959 13-Feb-2014 Ashok Bhat <ashok.bhat@arm.com> Use long for pointers in opengl/EGL classes

EGL classes in frameworks/base have to be updated to support
64-bit platforms. Key changes in the EGL classes include

[x] EGLObjectHandle class - EGLObjectHandle class has two public
methods (constructor and getHandle) that assume handles are
32-bit. They have not been changed. Instead, two new hidden
methods (EGLObjectHandle(long) and getNativeHandle) have been
added.

[x] EG14 class - Two public methods eglGetDisplay and
eglCreatePbufferFromClientBuffer assume that handles are 32-bit.
They have been changed to throw unsupported operation exception
on non 32-bit machines. Two new methods eglGetDisplay(long)
and eglCreatePbufferFromClientBuffer(...long buffer..) have
been added to support 64-bit handles.

To allow the above changes in frameworks/base EGL classes,
corresponding code generation mechanism in frameworks/native has
been updated.

Change-Id: I5d0a62e10c20ccf05f610d6608b8dfb6414b5116
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
ools/glgen/src/JType.java
ools/glgen/static/egl/EGLConfig.java
ools/glgen/static/egl/EGLContext.java
ools/glgen/static/egl/EGLDisplay.java
ools/glgen/static/egl/EGLObjectHandle.java
ools/glgen/static/egl/EGLSurface.java
ools/glgen/stubs/egl/EGL14cHeader.cpp
ools/glgen/stubs/egl/EGLExtcHeader.cpp
ools/glgen/stubs/egl/eglCreatePbufferFromClientBuffer.cpp
ools/glgen/stubs/egl/eglCreatePbufferFromClientBuffer.java
ools/glgen/stubs/egl/eglCreatePbufferFromClientBuffer.nativeReg
ools/glgen/stubs/egl/eglGetDisplay.cpp
ools/glgen/stubs/egl/eglGetDisplay.java
ools/glgen/stubs/egl/eglGetDisplay.nativeReg
9076fa78d2541fa14253aaf08e6445fafa17e35b 21-Feb-2014 Narayan Kamath <narayan@google.com> Merge "Update EGL codegen to be in sync with frameworks/base"
fb913cdb47d5abfac55d6394084932fff597c8c5 13-Feb-2014 Ashok Bhat <ashok.bhat@arm.com> Update GLES codegen to be in sync with frameworks/base

Patch from synergydev with commit-id 01994c79 changed
core/jni/com_google_android_gles_jni_GLImpl.cpp in the
frameworks/base. However the corresponding code snippet
in frameworks/native was not updated. This patch addresses
the issue.

Change-Id: I89c3d88de832efc8cbbe682c8a7ff7dfbef99db3
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
ools/glgen/stubs/jsr239/GLCHeader.cpp
8e472fb4430c44f7d5b3f5c85a96516cfb762f88 13-Feb-2014 Ashok Bhat <ashok.bhat@arm.com> Update EGL codegen to be in sync with frameworks/base

Patch from Takeshi Aimi with commit-id f9337377 changed
core/jni/android_opengl_EGL14.cpp in the frameworks/base.
However the corresponding code snippet in frameworks/
native was not updated. This patch addresses the issue.

Change-Id: I40bcc43d36d7ab4e0db4a73556a4f7480c7431c1
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
ools/glgen/stubs/egl/eglCreateWindowSurface.cpp
382f1cc1f19e0d1a8019a57a84d4a4dd201b5f8c 19-Feb-2014 Andy McFadden <fadden@android.com> Merge "Hide three malformed GL bindings"
50166d117307a278a2cb95d59ac60780c010e4c1 14-Feb-2014 Andy McFadden <fadden@android.com> Hide three malformed GL bindings

They were replaced with correct bindings a while back, but the
broken methods weren't hidden.

Also, pick up two changes that were made to the generated code
rather than the source.

Bug 6006380

Change-Id: Ibfe9a5f2e13e745f8d82116d1b4d8c2d025ac830
ools/glgen/stubs/egl/eglCreateWindowSurface.cpp
ools/glgen/stubs/gles11/glGetActiveAttrib.java
ools/glgen/stubs/gles11/glGetActiveUniform.java
ools/glgen/stubs/gles11/glGetShaderSource.java
ools/glgen/stubs/jsr239/GLCHeader.cpp
0380d5279b6d6a401703900bfd4c1b9b77c7c063 18-Feb-2014 Colin Cross <ccross@android.com> am 7a66f7af: am 913a17fd: Merge "libagl: support multilib build"

* commit '7a66f7afd1b6a975ab3b99b4765781a0d66958c8':
libagl: support multilib build
913a17fd5f8cabbc73ff46db15b4b53b9aeba7b8 18-Feb-2014 Colin Cross <ccross@android.com> Merge "libagl: support multilib build"
505350b150d448c2e5fca35ab4a0f829abdbdbb7 18-Feb-2014 Colin Cross <ccross@android.com> am 8a9a2e24: am d5fe844b: Merge "Use /(vendor|system)/lib64/egl for 64-bit EGL libraries"

* commit '8a9a2e24db868fba404049d700ae704b0982e5f3':
Use /(vendor|system)/lib64/egl for 64-bit EGL libraries
8edb8f5f2d016e4e31530ad7a0c44a4a7a853f64 16-Feb-2014 Dan Willemsen <dwillemsen@nvidia.com> Use /(vendor|system)/lib64/egl for 64-bit EGL libraries

Change-Id: Ie64806bfe4ba60a3167b84685cf983d4ada1042d
ibs/EGL/Loader.cpp
ff75a8000c5b70b9dd895f9f7a8fb7412c2aa423 13-Feb-2014 Colin Cross <ccross@android.com> libagl: support multilib build

Use LOCAL_SRC_FILES_arch and LOCAL_CFLAGS_arch to support building
for multiple architectures.

Change-Id: I829c1bea880739bf8184df4006d0a481ffccc5c2
ibagl/Android.mk
1d41d5d82c0654313b33d45c7b8943eeba13469e 04-Feb-2014 Siva Velusamy <vsiva@google.com> am 67041e68: am fd6a3ff4: Merge "GLES_trace: fix compile errors on 64 bit architectures"

* commit '67041e6841d89efb0dbaf4562b601b80be61e1e6':
GLES_trace: fix compile errors on 64 bit architectures
39177b4103f7c8f1f9903b3f52e83048fc066235 28-Jan-2014 Siva Velusamy <vsiva@google.com> GLES_trace: fix compile errors on 64 bit architectures

GLES_trace passes some pointers back to the host. Encode them
using int64's rather than int32's

This fix requires an update to the host tool to look at pointers
as 64 bit, and if not found, then fall back to 32 bit integers.

Change-Id: I11ff2ca51290f05913c1b9143cecee1caf015543
ibs/GLES_trace/src/gltrace_api.cpp
ibs/GLES_trace/tools/genapi.py
4864e85430d16cff00b6624d9de6c958d319c876 17-Jan-2014 Dan Stoza <stoza@google.com> Make libEGL build cleanly under 64-bit

Change-Id: I255dfb70b166b7469d59352b1acfc7aececa07de
ibs/EGL/egl.cpp
ibs/EGL/eglApi.cpp
ea350ea65a44131452e9e9059d92138201df59f4 28-Jan-2014 Colin Cross <ccross@android.com> am dec678db: am a21ba585: am 55f0668f: Merge "frameworks/native: convert LOCAL_MODULE_PATH to LOCAL_MODULE_RELATIVE_PATH"

* commit 'dec678dbd240e5c53afac8c3901d5beb23706378':
frameworks/native: convert LOCAL_MODULE_PATH to LOCAL_MODULE_RELATIVE_PATH
df50868a32f101972ebcb703d244d7c17210d587 25-Jan-2014 Colin Cross <ccross@android.com> frameworks/native: convert LOCAL_MODULE_PATH to LOCAL_MODULE_RELATIVE_PATH

LOCAL_MODULE_PATH doesn't work for multiarch builds, replace it
with LOCAL_MODULE_RELATIVE_PATH.

Change-Id: I4e4ceec61d026bbe74ba604554c06104bde42e5e
ibagl/Android.mk
8b7cc0aeb7559db3241d19aa6c93883ca991a784 25-Jan-2014 Colin Cross <ccross@android.com> am dd000905: am e3aeefd1: am af29b77a: Merge "libGLES_android: fix 64-bit compile errors"

* commit 'dd00090530340de22ca60f79446b5fe3050cd95f':
libGLES_android: fix 64-bit compile errors
444839b842798497cfa326204285a4f2ca2362af 24-Jan-2014 Colin Cross <ccross@android.com> libGLES_android: fix 64-bit compile errors

Fix size of vertex_t on 64-bit architectures
Fix __get_tls casts, the TLS area is a void**
Cast through uintptr_t to store integers in a pointer
Use %zu to print size_t

Change-Id: I91079ec76025237e6d2081784c5348518b0ce122
ibagl/Tokenizer.cpp
ibagl/context.h
ibagl/egl.cpp
c3289c41e794117817895653300bd2cf7daa0a01 17-Jan-2014 Dan Stoza <stoza@google.com> Make libEGL build cleanly under 64-bit

Change-Id: I255dfb70b166b7469d59352b1acfc7aececa07de
ibs/EGL/egl.cpp
ibs/EGL/eglApi.cpp
d566ce3a26ce781ecdbc479aaba0e172b7c807a9 08-Jan-2014 Andy McFadden <fadden@android.com> Improve error message

The previous message indicated that the fault was due to an already-
connected window, which was misleading at times.

Bug 12439318

Change-Id: I1e0a042673dd245d1b0d237af963c52946803eb6
ibs/EGL/eglApi.cpp
bb3b52495909ee1ce5d8b9beb6e8a9c72f0cdd90 30-Oct-2013 Igor Murashkin <iam@google.com> am 40da5283: Merge "EGL: rename CallStack::dump into CallStack::log" into klp-dev

* commit '40da5283ebc6b5cf1e3820740dc274c47cc55f6d':
EGL: rename CallStack::dump into CallStack::log
1f8363329cd6b00c4f8e6f1f97bb3e76071d124a 26-Oct-2013 Igor Murashkin <iam@google.com> EGL: rename CallStack::dump into CallStack::log

Bug: 11324229
Change-Id: Ibac1be182c336e7aa5ac098f08d18b3c188964b4
ibs/EGL/trace.cpp
886b152111cc13dcfe1b47724f5e496f12ccc420 02-Oct-2013 Jamie Gennis <jgennis@google.com> am a9c47f32: Merge "GLConsumer: start using EGL_ANDROID_image_crop" into klp-dev

* commit 'a9c47f327373cbe48e187442c7f9554d24a75c08':
GLConsumer: start using EGL_ANDROID_image_crop
dbe9245e2e362b12e184cd33b9a27b0901f81244 24-Sep-2013 Jamie Gennis <jgennis@google.com> GLConsumer: start using EGL_ANDROID_image_crop

This change makes GLConsumer use the EGL_ANDROID_image_crop extension when
available on a device. The crop rectangle is passed to the EGL driver when
creating EGLImages, allowing the crop to be performed by the driver rather than
using the texture transform matrix.

Bug: 10897141
Change-Id: I63e9a5d5c85067376abc420e3639154468346311
nclude/EGL/eglext.h
ibs/EGL/eglApi.cpp
pecs/README
b7f3742feb0f419f9e2d7d43c6ba9dc64bb5d95c 28-Sep-2013 Elliott Hughes <enh@google.com> am d9be16f9: Merge "Fix OpenGL stub exception handling."

* commit 'd9be16f920f7c2581fda3ca495c1e6fc88857a6c':
Fix OpenGL stub exception handling.
2adde7c8372db646da2262731e47cda05afd7fe2 25-Sep-2013 Elliott Hughes <enh@google.com> Fix OpenGL stub exception handling.

Bug: https://code.google.com/p/android/issues/detail?id=60390
Change-Id: I2bdc22c5fe75f5e41ffb9dd9259ae92cf8a12917
ools/glgen/src/JniCodeEmitter.java
a2ba428a22125558a129c6ba4001dfc2169de2fe 15-Sep-2013 Jesse Hall <jessehall@google.com> Disable the egl_khr_gl_colorspace extension

Bug: 10777398
Change-Id: Ib50ea8b9d5d960537701b85929d6312304993a0f
ibs/EGL/eglApi.cpp
63108c34ec181e923b68ee840bb7960f205466a7 06-Sep-2013 Mathias Agopian <mathias@google.com> fix a possible null dereference when eglMakeCurrent() fails

Bug: 10648797
Change-Id: Iee0be47f2646feb25de4ea199bbb9b707452916e
ibs/EGL/eglApi.cpp
672ddf2b58b6c6ddef4fc4f296e5fa53910d8e3b 29-Aug-2013 Mathias Agopian <mathias@google.com> remove adreno 130 workaround support

Change-Id: I8ea5ee65d405114b30cfaa44e1a0c971d1ef2a61
ibs/Android.mk
ibs/EGL/egl_display.cpp
f4486c6ea4bcb728ee0f38df7a8ec75c389d9d2e 29-Aug-2013 Mathias Agopian <mathias@google.com> try to keep omap4 alive

Bug: 10527646
Change-Id: Iec572a910e932115cf4f2e1215142b10cd91bd6f
ibs/Android.mk
ibs/EGL/Loader.cpp
ibs/EGL/eglApi.cpp
0f288fcc9c1b2d23b1cff2f5c59689aef76b77ae 22-Aug-2013 Mathias Agopian <mathias@google.com> only use format compatible with CPU consumers

EGL now picks the buffer format out of a small set
of formats compatible with CPU consumers instead of
using the EGL_NATIVE_VISUAL_ID.

Bug: 10194508
Change-Id: If423cd29601b7a3ace8670f4c73004132cfc4b31
ibs/EGL/eglApi.cpp
bc2a90b024db82e3a277e5b366da17e00b21d98b 16-Aug-2013 Jesse Hall <jessehall@google.com> Replace sRGB_888 with sRGB_X_8888

Bug: 10357459
Change-Id: I3a1d92cce2c9d3e930408129fb20887276fffddc
ibs/EGL/eglApi.cpp
c2e41222bf02a6579763974f82d65875cfa43481 08-Aug-2013 Jesse Hall <jessehall@google.com> Add support for EGL_KHR_gl_colorspace

Change-Id: I684d0b8556cd6c84ee4b4d67e1bb95c3b96fccfb
ibs/EGL/eglApi.cpp
ibs/EGL/egl_display.cpp
ibs/EGL/egl_display.h
ea4fdd4beb83ab7019753a144d9afac6728dd3ee 13-Aug-2013 Jesse Hall <jessehall@google.com> Don't swallow eglCreateContext errors

If the implementation eglCreateContext failed, we called
eglGetError(), so we could check that it set the EGL error properly.
But since we'd already called this, when the app called eglGetError()
it would get EGL_SUCCESS!

Bug: 10181333
Change-Id: Ic45d3a8fcb8c4421e04844c6d2f52761790b5948
ibs/EGL/eglApi.cpp
a6bb107434ad36739c21e1f72ac8d0107808a7b9 08-Aug-2013 Mathias Agopian <mathias@google.com> make sure we have a context when creating the 1st surface

also add an option to dump the stack trace when
calling a GL function without a context.

Change-Id: I57b72bb8c322ac4253c3077bf150621bd9863b69
ibs/EGL/egl.cpp
43c2718b3fb404d72d711eb37d5c5d10edc97605 07-Aug-2013 Jesse Hall <jessehall@google.com> Merge "Add EGL_KHR_get_all_proc_addresses to extension string"
21558daf691dbcdff4a41e659fd013273db4d0b7 07-Aug-2013 Jesse Hall <jessehall@google.com> Add EGL_KHR_get_all_proc_addresses to extension string

We've had the extended behavior since Android 4.3, but the extension
hadn't been ratified by Khronos yet so we couldn't add it to the
extension string.

Bug: 9681677
Change-Id: I78842316a3ab7a3f66a0ac1a4742d837de664c4c
ibs/EGL/eglApi.cpp
ibs/EGL/egl_display.cpp
db89edc94bd2a78226b407f9f7261e202e7fa325 02-Aug-2013 Mathias Agopian <mathias@google.com> All consumers now take an IGraphicBufferConsumer instead of a BufferQueue

this means they only have access to the consumer end of
the interface. we had a lot of code that assumed consumers
where holding a BufferQueue (i.e.: both ends), so most of
this change is untangling in fix that

Bug: 9265647
Change-Id: Ic2e2596ee14c7535f51bf26d9a897a0fc036d22c
ools/glgen/stubs/egl/eglCreateWindowSurface.cpp
c1c39f8807f5b3dad9ca221d912f7cd4f4f74d9c 02-Aug-2013 Mathias Agopian <mathias@google.com> Merge "Binderize the consumer side of BufferQueue"
a4e19521ac4563f2ff6517bcfd63d9b8d33a6d0b 01-Aug-2013 Mathias Agopian <mathias@google.com> Binderize the consumer side of BufferQueue

While currently untested, this should allow to move the
BuffereQueue in the consumer process and have everything
work as usual.

Bug: 9265647

Change-Id: I9ca8f099f7c65b9a27b7e7a3643b46d1b58eacfc
ests/EGLTest/Android.mk
ests/EGLTest/EGL_test.cpp
14fab7dd794cd6bf29e6425340683c6221062b3c 01-Aug-2013 Andy McFadden <fadden@android.com> Drop frames based on presentation timestamp

If there are two or more buffers pending that are ready for
immediate presentation, drop all but the last one.

Any code that didn't explicitly specify timestamps for buffers
was using the default value (auto-generated "now"). As a result,
surfaceflinger would drop frames whenever more than one buffer
was queued. We now use zero as the auto-generated timestamp,
and we don't set the timestamp in eglBeginFrame().

Change-Id: I187f42d33de227cd3411ff0dcd3b9ce1961457eb
ibs/EGL/eglApi.cpp
e142428a9c8b9d2380032cd4d7b55ee440fe8770 30-Jul-2013 Mathias Agopian <mathias@google.com> Make Flattenable not virtual

Fallout from the Flattenable change, update all its uses.

Additionnaly, fix/tighten size checks when (un)flatten()ing
things.

Removed the assumption by some flattenables (e.g.: Fence)
that the size passed to them would be exact (it can
and will be larger in some cases)

The code in Parcel is a bit complicated so that we don't
have to expose the full implementation (and also to
keep the code smallish).

Change-Id: I0bf1c8aca2a3128491b4f45510bc46667e566dde
ibs/EGL/egl_cache.cpp
7925b6bdb81bd15f4eacc28b1a6dd3af2c494abb 31-Jul-2013 Jamie Gennis <jgennis@google.com> Merge "EGL: fix eglTerminate blob cache behavior"
5539e219de5ffa93e9f22b30dacf7c28e7f7a0be 31-Jul-2013 Jamie Gennis <jgennis@google.com> EGL: fix eglTerminate blob cache behavior

Bug: 9610573
Change-Id: I258e7e0d82ab76fbacf0b9c25d4f92fca6df04ac
ibs/EGL/egl_cache.cpp
c2414bb0989763641ca57cf72c11ef6d86565a23 26-Jul-2013 Mathias Agopian <mathias@google.com> get rid of HAL pixelformats 5551 and 4444

Change-Id: I39409103144c1ba09078c4ddc323a58987fb09ea
ibagl/egl.cpp
ests/hwc/hwcTestLib.cpp
ests/hwc/hwcTestLib.h
595264f1af12e25dce57d7c5b1d52ed86ac0d0c9 17-Jul-2013 Mathias Agopian <mathias@google.com> BufferQueue improvements and APIs changes

this is the first step of a series of improvements to
BufferQueue. A few things happen in this change:

- setSynchronousMode() goes away as well as the SynchronousModeAllowed flag
- BufferQueue now defaults to (what used to be) synchronous mode
- a new "controlled by app" flag is passed when creating consumers and producers
those flags are used to put the BufferQueue in a mode where it
will never block if both flags are set. This is achieved by:
- returning an error from dequeueBuffer() if it would block
- making sure a buffer is always available by replacing
the previous buffer with the new one in queueBuffer()
(note: this is similar to what asynchrnous mode used to be)

Note: in this change EGL's swap-interval 0 is broken; this will be
fixed in another change.

Change-Id: I691f9507d6e2e158287e3039f2a79a4d4434211d
ests/EGLTest/EGL_test.cpp
ba3ed90b095dfd397aa252fb0234647d7cc5c8f9 17-Jul-2013 Jesse Hall <jessehall@google.com> am 082fc1ca: am ae961022: Merge "EGL: Fix error for eglCreateWindowSurface"

* commit '082fc1cae6a0c283de3ad0d848e0757de3154d0b':
EGL: Fix error for eglCreateWindowSurface
082fc1cae6a0c283de3ad0d848e0757de3154d0b 17-Jul-2013 Jesse Hall <jessehall@google.com> am ae961022: Merge "EGL: Fix error for eglCreateWindowSurface"

* commit 'ae9610220b5f509687b840532f95f3638ee0146b':
EGL: Fix error for eglCreateWindowSurface
77a9b4a6bd21188e2744ae9dcd8092c6837bff7c 17-Jul-2013 Jonathan Hamilton <jonathan.hamilton@imgtec.com> EGL: Fix error for eglCreateWindowSurface

The EGL 1.4 spec section 3.5.1 states that EGL_BAD_ALLOC should be set
if the supplied window already has an associated EGLSurface, not
EGL_BAD_NATIVE_WINDOW as is currently set.

Change-Id: If1598617f4e31904f2045560ae1cdf49d8a697dc
ibs/EGL/eglApi.cpp
94cdba97ce1de140623d84c14fb15f12f7da89dd 11-Jul-2013 Jesse Hall <jessehall@google.com> resolved conflicts for merge of 5477d0e4 to master

Change-Id: I7ca75a44018a68bf3a7ac1de17a3ef568a48d2ac
5477d0e4e858df1ea9cb1b6965a160fb5fe23b57 09-Jul-2013 Jesse Hall <jessehall@google.com> am c07b5206: Find non-extension GLES wrappers in eglGetProcAddress

* commit 'c07b52060acd627c8510c1a9151e0753fce76330':
Find non-extension GLES wrappers in eglGetProcAddress
c07b52060acd627c8510c1a9151e0753fce76330 04-Jul-2013 Jesse Hall <jessehall@google.com> Find non-extension GLES wrappers in eglGetProcAddress

This allows apps to find OpenGL ES 3.0 functions using
eglGetProcAddress() instead of dlopen/dlsym.

Bug: 9681677
Change-Id: I7ce6e1636bc47d6b0bf20a4e46bd67235714d129
ibs/EGL/Loader.cpp
ibs/EGL/eglApi.cpp
ibs/EGL/egldefs.h
e0ea89ceef3b0fc5f3efc5d709a8156f0628c6c8 15-Jun-2013 Mathias Agopian <mathias@google.com> improve GLES jumptables

in the common case this saves one instructions per jump
(which will help with the i-cache).

this change also gets rid of the "use slow tls" option,
which was useless. So at least now architectures that don't have
assembly bindings will perform much better.

Change-Id: I31be6c06ad2136b50ef3a1ac14682d7812ad40d2
ibs/EGL/egl.cpp
ibs/EGL/eglApi.cpp
ibs/EGL/getProcAddress.cpp
ibs/GLES2/gl2.cpp
ibs/GLES_CM/gl.cpp
ibs/hooks.h
b83290c7b79b7dee0bd1870617ceda063bfcc1f9 26-Jun-2013 Jesse Hall <jessehall@google.com> Merge "Small clarifications to EGL_ANDROID_presentation_time"
5ac6c0a3ddbd4ff7680ba57c092c435d68eb9c13 26-Jun-2013 Jesse Hall <jessehall@google.com> Small clarifications to EGL_ANDROID_presentation_time

Change-Id: I4365a981776ab0a5719c268258b87ff1418f9aeb
pecs/EGL_ANDROID_presentation_time.txt
da22e6bf36a2a83efef83bd723714ea6af30f540 26-Jun-2013 Jean-Baptiste Queru <jbq@google.com> am db8c267e: am 3c0425cd: am 0ecf0b8d: Merge "Additional parameter validation for EGL functions"

* commit 'db8c267ec26997771eb718c29d3dacd4e738051b':
Additional parameter validation for EGL functions
3c0425cd95a7918d1dbfecf32aef3b238bf236a5 26-Jun-2013 Jean-Baptiste Queru <jbq@google.com> am 0ecf0b8d: Merge "Additional parameter validation for EGL functions"

* commit '0ecf0b8db74682222bf095a235e28edefff871a5':
Additional parameter validation for EGL functions
0ecf0b8db74682222bf095a235e28edefff871a5 26-Jun-2013 Jean-Baptiste Queru <jbq@google.com> Merge "Additional parameter validation for EGL functions"
9a90aa9003f8b53a6e8ce20f97ef3ba87891697a 22-Jun-2013 Andy McFadden <fadden@android.com> Fix wrapper equals()

Make it faster and correcter.

Also, fixed the "gen" script to update the static/egl/*.java files
as part of doing an update. Altered the "git" lines to change
directories before invoking git -- necessary because we're now
split between frameworks/base and frameworks/native.

Bug 9204146

Change-Id: Ie60504b1932349e6f2c9d3868dee6a645ef2b36e
ools/glgen/gen
ools/glgen/static/egl/EGLConfig.java
ools/glgen/static/egl/EGLContext.java
ools/glgen/static/egl/EGLDisplay.java
ools/glgen/static/egl/EGLSurface.java
4e620ddce344e946ced992f61a69c367ff92fe24 31-May-2013 Mathias Agopian <mathias@google.com> free EGL resources associated to a thread when it terminates

destroyed but current-to-a-thread resources are only destroyed
when they're made not-current; however, we were not destroying
those when the thread itself terminated, causing these resources
to be leaked forever.

we now install a tls-key destructor that takes care of this
by calling eglReleaseThread upon thread termination.

Bug: 9209776
Change-Id: I88298a34e3a27488eb81eab76717715569c7d57c
ibs/EGL/eglApi.cpp
ibs/EGL/egl_tls.cpp
ibs/EGL/egl_tls.h
ibs/GLES_trace/src/gltrace_context.cpp
f9872c8124d896349d1dd0284def8bc9add8e0ac 13-May-2013 Jesse Hall <jessehall@google.com> am 7a486528: am f0dcff89: Merge "gl_code.cpp: Remove a DOS style newline"

* commit '7a4865287460a5f0ff26e22be5f0271735d32ac7':
gl_code.cpp: Remove a DOS style newline
7a4865287460a5f0ff26e22be5f0271735d32ac7 13-May-2013 Jesse Hall <jessehall@google.com> am f0dcff89: Merge "gl_code.cpp: Remove a DOS style newline"

* commit 'f0dcff89acb998179757ca66b5c6a2c585a980e9':
gl_code.cpp: Remove a DOS style newline
f0dcff89acb998179757ca66b5c6a2c585a980e9 13-May-2013 Jesse Hall <jessehall@google.com> Merge "gl_code.cpp: Remove a DOS style newline"
f03e51dd2fa4e9af855a8025b609c79a24186405 03-May-2013 Mathias Agopian <mathias@google.com> Merge "change how the userspace GLES drivers are named"
16b4f33d2b9b06c3223fb692dbbaa74808f390c2 02-May-2013 Jesse Hall <jessehall@google.com> am 958ef3d7: am c8639351: Generate new EGLExt class

* commit '958ef3d79c48ddef3afa5327f7ed15a5ecfd2d1d':
Generate new EGLExt class
c86393510c8747519fe34e5aa38ce5218593c19c 30-Apr-2013 Jesse Hall <jessehall@google.com> Generate new EGLExt class

Initially populated with EGL_ANDROID_presentation_time (moved from the
EGL14 class) and the ES-relevant parts of EGL_KHR_create_context.

Bug: 8678160
Change-Id: Ifed2ee3da264ca701ae1f4b309a0758f7fcc3acc
ools/glgen/gen
ools/glgen/specs/egl/EGL14.spec
ools/glgen/specs/egl/EGLExt.spec
ools/glgen/src/GenerateEGL.java
ools/glgen/stubs/egl/EGL14Header.java-if
ools/glgen/stubs/egl/EGL14cHeader.cpp
ools/glgen/stubs/egl/EGLExtHeader.java-if
ools/glgen/stubs/egl/EGLExtcHeader.cpp
c59db7fdfeb8e95e6405945b0aeff1ed5e9f0012 01-May-2013 Jesse Hall <jessehall@google.com> am 34c0fb18: am cc8f8ad3: Merge "Fix glGetUniformIndices JNI prototype" into jb-mr2-dev

* commit '34c0fb183767b80e93a7cd77233ead5fe50bd822':
Fix glGetUniformIndices JNI prototype
cc8f8ad33d4f8f55ff30e1600cc59c7cf5113c8a 01-May-2013 Jesse Hall <jessehall@google.com> Merge "Fix glGetUniformIndices JNI prototype" into jb-mr2-dev
80f9f26d1004a37e086c948609419ef1a8ae1467 01-May-2013 Andy McFadden <fadden@android.com> am ef4dbb6a: am 5d46b04b: Merge "Recommend different time source" into jb-mr2-dev

* commit 'ef4dbb6af3db147f4c25ae1d7013b1a30fd8fed2':
Recommend different time source
5d46b04bd5a8ec00ea527b68aa48907d3978a007 01-May-2013 Andy McFadden <fadden@android.com> Merge "Recommend different time source" into jb-mr2-dev
46fc9cb60cdbd44f4f42966d37babc8a1bc1263d 30-Apr-2013 Jesse Hall <jessehall@google.com> Fix glGetUniformIndices JNI prototype

Bug: 8657863
Change-Id: I130d1b54d0cbd1f8613d3108482526d05d73d9e4
ools/glgen/stubs/gles11/glGetUniformIndices.nativeReg
0e775697fb12d3f9c577c7758a362103c2194519 26-Apr-2013 Andy McFadden <fadden@android.com> Recommend different time source

We were recommending SystemClock#uptimeMillis() from Java code, but
millisecond resolution is a little coarse. We don't have an
appropriate call in SystemClock, so use System.nanoTime() instead.

Bug 8733179

Change-Id: Ifb85a03eabf7ff168966adcb5ed5914bbf3884b2
pecs/EGL_ANDROID_presentation_time.txt
565bce248b0a21f9cf42329d5b5d0aa6dd425959 29-Apr-2013 Jamie Gennis <jgennis@google.com> am 8369c473: am f6d1c393: EGL: expose the EGL_KHR_create_context extension

* commit '8369c4739a58367e9636c84facc272cf8ddcb070':
EGL: expose the EGL_KHR_create_context extension
5075b21e1a0a0b5a8f054413df81469c07242d7c 29-Apr-2013 Andy McFadden <fadden@android.com> Merge "Fix range check"
993814255fc248454368ed9fe34b4703a05eaf99 23-Apr-2013 Mathias Agopian <mathias@google.com> change how the userspace GLES drivers are named

for single library:
/vendor/lib/egl/GLES.so

for multiple libraries:
/vendor/lib/egl/EGL.so
/vendor/lib/egl/GLESv1_CM.so
/vendor/lib/egl/GLESv2.so

EGL_BOARD_CONFIG as well as egl.cfg are not needed anymore.

To facilitate the transition, the loader will also look
for the older naming scheme.

Bug: 8631636
Change-Id: Id4b113468df29bae72b323f76598229914e1c7a1
ibs/EGL/Loader.cpp
ibs/EGL/Loader.h
f6d1c3930eeba6b089ba12fb82ecad1c6622e550 26-Apr-2013 Jamie Gennis <jgennis@google.com> EGL: expose the EGL_KHR_create_context extension

Bug: 8616866
Change-Id: Ic60f9f21397a1760c552b6f141d5177d1cbaf1f8
ibs/EGL/eglApi.cpp
42137d2e72cebb41f70c4a306877587fd0ea8c20 26-Apr-2013 Andy McFadden <fadden@android.com> Fix range check

The getarray() function checks to see if there's enough room in
the buffer, but it's using a byte count for the available size
and a possibly non-byte count for the space required. Dividing
down by the unit size corrects the problem.

Bug 8713753

Change-Id: Id42c0df65c3233dcc5f76d05e229f7d40d4c1f99
ools/glgen/stubs/gles11/common.cpp
b4ba50dd833d8b94043635663f2ee1ad0cb54b35 23-Apr-2013 Mathias Agopian <mathias@google.com> fix a typo in EGL loader

the code intended to filter out the software-renderer, but the
test as written was essentially a no-op.

the problem didn't happen most of the time because we had
updated egl.cfg to not even list the software renderer.

the test as written didn't generate a compile-time error
because String8 has a const char* cast operator; but the
end result was to compare pointers instead of the string
itself.

http://code.google.com/p/android/issues/detail?id=54606

Change-Id: I739dd1c838fbc24c5643a631fae19713a8ef1717
ibs/EGL/Loader.cpp
ed6d08b70d775852f4827471814c83eba3606aaa 17-Apr-2013 Mathias Agopian <mathias@google.com> fix "traceGpuCompletion" debug feature

eglCreateSyncKHR requires a call to glFlush which we were not doing.
fixed by moving the code above eglSwapBuffers(), which both
fixes the problem and gives us a slightly better idea of when
the GPU is done drawing.

Change-Id: Ic826ef1fe25a6247742c3d49d0cb69f4031e3593
ibs/EGL/eglApi.cpp
c0d184b8c1002098138f65e5cd2d9b1fb3da8bb1 16-Apr-2013 Jesse Hall <jessehall@google.com> Subclass GLES30 from GLES20, @Deprecate GL_STENCIL_INDEX

Bug: 8566953
Change-Id: I66085c300a8658a4018796645257edb73be94719
ools/glgen/specs/gles11/GLES30.spec
ools/glgen/stubs/gles11/GLES20Header.java-if
ools/glgen/stubs/gles11/GLES30Header.java-if
ools/glgen/stubs/gles11/glGetProgramInfoLog.java
ools/glgen/stubs/gles11/glGetShaderInfoLog.java
4f6693080c9a186f3fe37abe445abdb39662ae22 11-Apr-2013 Jesse Hall <jessehall@google.com> Special-case glGetActiveUniformBlockName

Bug: 8566953
Change-Id: Ic9b3be9fa0136495633ee3b1c38583cfa315942a
ools/glgen/specs/gles11/GLES30.spec
ools/glgen/stubs/gles11/glGetActiveUniformBlockName.cpp
ools/glgen/stubs/gles11/glGetActiveUniformBlockName.java
ools/glgen/stubs/gles11/glGetActiveUniformBlockName.nativeReg
fa4c1170ac1c18fb919efcc965f55a045a42c06e 11-Apr-2013 Jesse Hall <jessehall@google.com> Special-case glGetStringi

Modeled on the existing glGetString special-case.

Bug: 8566953
Change-Id: Icc6b23ab53b00510368900ad99c92028253dc797
ools/glgen/specs/gles11/GLES30.spec
ools/glgen/stubs/gles11/glGetStringi.cpp
ools/glgen/stubs/gles11/glGetStringi.java
ools/glgen/stubs/gles11/glGetStringi.nativeReg
1c8b8e8b8ee6290875fe59288ffa7ccaf4d86247 11-Apr-2013 Jesse Hall <jessehall@google.com> Special-case glMapBufferRange

Updating the generator to handle GLvoid*/java.nio.Buffer return values
probably wouldn't be too hard, but this is the only function that
needs it currently.

Bug: 8566953
Change-Id: I359a951136ab479ab576ce2e5a2881b937b7e8c9
ools/glgen/specs/gles11/GLES30.spec
ools/glgen/stubs/gles11/glMapBufferRange.cpp
ools/glgen/stubs/gles11/glMapBufferRange.java
ools/glgen/stubs/gles11/glMapBufferRange.nativeReg
610bbf2b6fd80af98849d7e23526c6ce8a4112da 11-Apr-2013 Jesse Hall <jessehall@google.com> Special-case glGetBufferPointerv

Bug: 8566953
Change-Id: I11a7394eb46f229fd3ae716e77487a45bac6ed53
ools/glgen/specs/gles11/GLES30.spec
ools/glgen/stubs/gles11/glGetBufferPointerv.cpp
ools/glgen/stubs/gles11/glGetBufferPointerv.java
ools/glgen/stubs/gles11/glGetBufferPointerv.nativeReg
27c86b962373f40a01f094689d623d51c51d4f83 10-Apr-2013 Jesse Hall <jessehall@google.com> Special-case glGetUniformIndices

Bug: 8566953
Change-Id: Ic8bcd03e8d41a81f48d603f67ce2046a4afa1561
ools/glgen/specs/gles11/GLES30.spec
ools/glgen/stubs/gles11/glGetUniformIndices.cpp
ools/glgen/stubs/gles11/glGetUniformIndices.java
ools/glgen/stubs/gles11/glGetUniformIndices.nativeReg
31f6edc21bbc2802f4c755b4982945d5237e92ce 10-Apr-2013 Jesse Hall <jessehall@google.com> Special-case glGetTransformFeedbackVarying

Just a search-and-replace on the glGetActiveAttrib special-case, since
they have the same signature and parameter handling.

Bug: 8566953
Change-Id: I40834d6f32bf9ecb39718df29036aa2d1bbfa07a
ools/glgen/specs/gles11/GLES30.spec
ools/glgen/stubs/gles11/glGetTransformFeedbackVarying.cpp
ools/glgen/stubs/gles11/glGetTransformFeedbackVarying.java
ools/glgen/stubs/gles11/glGetTransformFeedbackVarying.nativeReg
552a6204828b5f25db0c3e644cead321664706fa 10-Apr-2013 Jesse Hall <jessehall@google.com> Special-case glTransformFeedbackVaryings

Bug: 8566953
Change-Id: I02a1548aebc12bd3599903029bfd2e4ccea53211
ools/glgen/specs/gles11/GLES30.spec
ools/glgen/stubs/gles11/glTransformFeedbackVaryings.cpp
ools/glgen/stubs/gles11/glTransformFeedbackVaryings.java
ools/glgen/stubs/gles11/glTransformFeedbackVaryings.nativeReg
071fc660597efdfa5ebc58b427252393e628a497 10-Apr-2013 Jesse Hall <jessehall@google.com> Add buffer object versions of several functions

Some of these are new ES3 functions, some are existing ES2 functions
that can now use the new pixel pack/unpack buffer bindings.

glDrawElementsInstanced needs a special case since the pointer/offset
arg isn't the last one like the generator assumes.

Bug: 8566953
Change-Id: I638a36b0a31aefcb5bfee6f4d049348223045103
ools/glgen/specs/gles11/GLES30.spec
ools/glgen/src/JniCodeEmitter.java
ools/glgen/stubs/gles11/common.cpp
ools/glgen/stubs/gles11/glDrawElementsInstanced.cpp
ools/glgen/stubs/gles11/glDrawElementsInstanced.java
ools/glgen/stubs/gles11/glDrawElementsInstanced.nativeReg
68fc8bbced285a8a2b716e5fe1900968ad8ba7d3 10-Apr-2013 Jesse Hall <jessehall@google.com> Add *int64 and GLsync types and related functions

Return values are declared with the C return type, but the JNI
function returns the JNI return type. In the case of GLsync/jlong as
in glFenceSync(), this causes a compile error. So the generator now
explicitly casts the return value to the JNI return type.

Bug: 8566953
Change-Id: I814befe2e4cce745434cbc4e1c8639fc3ce8aeae
ools/glgen/specs/gles11/GLES30.spec
ools/glgen/src/JType.java
ools/glgen/src/JniCodeEmitter.java
2d9faafa2318c05f8991beff9cc683d72cbabd07 29-Mar-2013 Jesse Hall <jessehall@google.com> Add ES3 functions and constants, difficult ones commented out

This change adds ES3 functions to GLES30.spec, disabling any that
require non-trivial changes for the generator to handle.

Steps taken to add these:
- Copy ES3 function declarations from gl3.h
- Remove GL_APICALL, GL_APIENTRY, and semicolon from each declaration
- Add whitespace around parens and *s as required by the parser
- Comment out functions that the generator doesn't understand or that
it generates bad Java interfaces for (by inspection).

Bug: 8566953
Change-Id: Iaaef7d53e24f9a576759dbba72cd206bae1c1276
ools/glgen/specs/gles11/GLES30.spec
ools/glgen/stubs/gles11/GLES20Header.java-if
ools/glgen/stubs/gles11/GLES30Header.java-if
0eb6ad563825b97aec760a893db0eead10fe0ae6 29-Mar-2013 Jesse Hall <jessehall@google.com> Support "const GLChar*" and "const GLenum*" types

Bug: 8566953
Change-Id: I349575e592e8b0d93d14237230b69bec4e04cf3e
ools/glgen/src/CType.java
ools/glgen/src/JType.java
439bc1614dba5694cd10476c0238ddd1f77fc94e 29-Mar-2013 Jesse Hall <jessehall@google.com> Minor changes to ES3 functions inherited from ES2

With the addition of float framebuffer support in ES3, some parameters
to ES2 functions are now GLfloat instead of GLclampf. Both are
typedefs for 'float', so this is a source and binary compatible change.

Bug: 8566953
Change-Id: I0b5acc78da7799a04053fdb568205f793792cad9
ools/glgen/specs/gles11/GLES30.spec
63ed38dc52b27c5b39b11717d0c7736e1756db42 29-Mar-2013 Jesse Hall <jessehall@google.com> Generate GLES30 class, just a clone of GLES20 for now

Bug: 8566953
Change-Id: I6fad880344b9c247de4018711ea7cb6eb1a609d6
ools/glgen/gen
ools/glgen/specs/gles11/GLES30.spec
ools/glgen/src/GenerateGLES.java
ools/glgen/stubs/gles11/GLES30Header.java-if
ools/glgen/stubs/gles11/GLES30cHeader.cpp
a3b641e89c89d9fe7e18123cffb8bac67a2c168d 29-Mar-2013 Jesse Hall <jessehall@google.com> Make gen more readable, use UNIX-style line endings

Change-Id: I6f4a1afa19f84d89278e9447f14a124476106fef
ools/glgen/gen
ools/glgen/specs/gles11/GLES20.spec
8a0cb4ee0b6c351de82987efb472fa38dfaf608a 10-Apr-2013 Ying Wang <wangying@google.com> Add liblog

Bug: 8580410
Change-Id: I2ca4fa00dde0b574df3619134836bcb9315bd506
ibagl/Android.mk
ibs/Android.mk
ibs/GLES_trace/Android.mk
ests/gl2_jni/Android.mk
ests/gl_jni/Android.mk
ests/gl_perf/Android.mk
ests/gl_perfapp/Android.mk
ests/gldual/Android.mk
ests/hwc/Android.mk
39c24a20bbc697630d2b92c251b70c04d6f9d00c 05-Apr-2013 Mathias Agopian <mathias@google.com> fix local include paths

Change-Id: Icb921fa796ec08612dbb2feb7e7161bcb0cf4a99
ibs/EGL/Loader.cpp
ibs/EGL/egl.cpp
ibs/EGL/eglApi.cpp
ibs/EGL/egl_cache.cpp
ibs/EGL/egl_display.cpp
ibs/EGL/egl_display.h
ibs/EGL/egl_tls.h
ibs/EGL/egldefs.h
ibs/EGL/getProcAddress.cpp
ibs/GLES2/gl2.cpp
ibs/GLES_CM/gl.cpp
83a3ad4d579b514dfeff43008254d05922e5e324 02-Apr-2013 Jamie Gennis <jgennis@google.com> Merge "EGL_ANDROID_presentation_time: initial spec draft" into jb-mr2-dev
6730acb6816e30d534703a668c40f658ca2b727c 09-Jan-2013 Jamie Gennis <jgennis@google.com> EGL_ANDROID_presentation_time: initial spec draft

Change-Id: I1cd174a08c499e5bde19e7ecd449da8266e7e66e
pecs/EGL_ANDROID_presentation_time.txt
441f69463ec595ad42fdaad1bbfbb0f7a932437c 31-Mar-2013 Jesse Hall <jessehall@google.com> Fix MIPS assembly variable names to not conflict with GL API parameter names

Change-Id: I8e93fb55018de53a596cb176d48dbfdf1fd396e4
ibs/EGL/getProcAddress.cpp
ibs/GLES2/gl2.cpp
ibs/GLES_CM/gl.cpp
86e392e9b3b92e3a58d2fb65eef1552108941a76 30-Mar-2013 Mathias Agopian <mathias@google.com> Merge "don't use compile-time configuration of libgui as much as possible" into jb-mr2-dev
ca08833d5ea99130797e10ad68a651b50e99da74 29-Mar-2013 Mathias Agopian <mathias@google.com> don't use compile-time configuration of libgui as much as possible

We now detect at runtime which sync features to use, which
allows us to remove a lot of the compile-time configuration
options. There is still one option though, to disable
KHR_fence_sync on some devices (which are more efficient
without it).

- added a backdoor to get the vendor's EGL strings

the new logic is:
- use always ANDROID_native_fence_sync if available
- fallback to KHR_fence_sync if available and not disabled
by the compile-time option
- use KHR_wait_sync if available and either of the above is
enabled

Change-Id: I9c4b49d9ff1151faf902cc93bd53ea5f205aaabf
ibs/EGL/eglApi.cpp
7fd5ef3ecad09e71756720bc0666cd4552508d9c 29-Mar-2013 Keun-young Park <keunyoung@google.com> am e3a396b2: am 906bd042: Merge "[MIPS] Add MIPS architecture support to libagl"

* commit 'e3a396b25d53cc9ae61e3a2f0daeaa68ac1ba5a1':
[MIPS] Add MIPS architecture support to libagl
906bd0422a99b37663a1cb130bf061fdbb3ea189 29-Mar-2013 Keun-young Park <keunyoung@google.com> Merge "[MIPS] Add MIPS architecture support to libagl"
ea116f1acb911963751d72515714803aeae95d59 29-Mar-2013 Keun-young Park <keunyoung@google.com> am 111d920b: am d3b2c029: Merge "[MIPS] Add MIPS architecture support to opengl framework"

* commit '111d920bb588669006bdd8699e786d6305f14c36':
[MIPS] Add MIPS architecture support to opengl framework
d3b2c029eba356e7bed3754d60ade556c216348e 29-Mar-2013 Keun-young Park <keunyoung@google.com> Merge "[MIPS] Add MIPS architecture support to opengl framework"
bf667e31558d14d75076e45da665288d6fa2ed3c 28-Mar-2013 Mathias Agopian <mathias@google.com> Merge changes I22f1b358,I5496d0de,Ifd98966b into jb-mr2-dev

* changes:
replace eglWaitSyncANDROID by eglWaitSyncKHR
update EGL headers to most recent
cleanup EGL extensions strings and entry-points
2bb716871cf8bfadfff1193ed798da3bffc1f8ec 28-Mar-2013 Mathias Agopian <mathias@google.com> replace eglWaitSyncANDROID by eglWaitSyncKHR

Change-Id: I22f1b3588011c88389e249f738f1e6915cc97e72
nclude/EGL/eglext.h
ibs/EGL/eglApi.cpp
ibs/EGL/egl_entries.in
12af3f6665f209cb7275f0c81fdc1cf4ccfb6208 27-Mar-2013 Mathias Agopian <mathias@google.com> update EGL headers to most recent

- add ANDROID extensions missing from official headers:
EGL_ANDROID_wait_sync
EGL_ANDROID_presentation_time

Change-Id: I5496d0de123a6279234098c19f9a12220adec876
nclude/EGL/eglext.h
nclude/EGL/eglplatform.h
nclude/KHR/khrplatform.h
e9b3dfb7d5cc233747407381a51a081c335dc076 27-Mar-2013 Mathias Agopian <mathias@google.com> cleanup EGL extensions strings and entry-points

- move all the code related to EGL extensions in one place

- add missing extension strings:
EGL_KHR_lock_surface
EGL_KHR_reusable_sync

- add public extensions strings and entry-points
EGL_ANDROID_wait_sync
EGL_ANDROID_presentation_time

- add missing entry-points for EGL_KHR_reusable_sync

Change-Id: Ifd98966b549e8efd8ef5385eba0efde8c4cbc77b
ibs/EGL/eglApi.cpp
ibs/EGL/egl_display.cpp
ibs/EGL/egl_entries.in
c9a4e2f7dc6cc0843d1b029a9860f4786bb6dbd8 28-Mar-2013 Jesse Hall <jessehall@google.com> am 4194b389: am 0b6c4157: Merge "frameworks/native/opengl: Fix build with gcc 4.8"

* commit '4194b3898df867a5c4377de49ddc72ad3e51122b':
frameworks/native/opengl: Fix build with gcc 4.8
46b4253b760916ea8f64c8c32a51ae85ec3b050e 27-Mar-2013 Duane Sand <duane.sand@imgtec.com> [MIPS] Add MIPS architecture support to opengl framework

Change-Id: Id7704d35bed14d96a85dc1f29db0566cd03872b5
ibs/EGL/getProcAddress.cpp
ibs/GLES2/gl2.cpp
ibs/GLES_CM/gl.cpp
ibs/hooks.h
b43722c3dd69a90f0d0665912bd543aa12521c58 27-Mar-2013 Duane Sand <duane.sand@imgtec.com> [MIPS] Add MIPS architecture support to libagl

Change-Id: I30eb92857a2a6ea867fe0ee45109f17609043aae
ibagl/Android.mk
ibagl/arch-mips/fixed_asm.S
ibagl/fp.cpp
ibagl/matrix.h
0f036d43b00d602a073b413d0fc746c82ca1db7a 27-Mar-2013 Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org> gl_code.cpp: Remove a DOS style newline

Change-Id: Id3edd6e511371fa8b0afef2e90baed4662ed76c4
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
ests/gl2_jni/jni/gl_code.cpp
c80fae6e8576b9675e4d9305986fe0341e6db3c9 27-Mar-2013 Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org> frameworks/native/opengl: Fix build with gcc 4.8

In gcc 4.8, the warning for unused parameters (such as JNIEnv* pointers
in JNI functions that don't need it) is enabled by default - causing
-Werror to break the build.

Change-Id: Ib91721f2cb9912b79c2ac19b4210b1309b08304f
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
ests/gl2_jni/Android.mk
ests/gl_jni/Android.mk
ests/gl_perfapp/Android.mk
ests/gldual/Android.mk
cab25d680e644d962041d05a319e485b96136a5d 22-Mar-2013 Mathias Agopian <mathias@google.com> improved CallStack a bit

- added a ctor that updates and dumps the stack immediately
- added a "logtag" parameter to dump()

Change-Id: Ie51c256071d282591752243bdb4f68cf9ff8829d
ibs/EGL/egl.cpp
ibs/EGL/egl_tls.cpp
49385ec7c361347a69245c8a0838f6d03343a1de 08-Mar-2013 Jesse Hall <jessehall@google.com> Merge "When disconnecting a surface, cancel don't queue the buffer" into jb-mr2-dev
86306b587644e939c5b6d4a53d67c9b74ce24ba5 08-Mar-2013 Jesse Hall <jessehall@google.com> Merge "Defer destroying surfaces until not current" into jb-mr2-dev
5f555569e757d280f707e2587b3d154c9d8c872f 08-Mar-2013 Jesse Hall <jessehall@google.com> When disconnecting a surface, cancel don't queue the buffer

This isn't really right either, but avoids having an extra buffer that
the consumer has to drain which it might not be expecting.

To be correct, disconnecting a surface from a context should retain
the current buffer and continue using it when reconnected. The buffer
should only be canceled when the surface is destroyed. That will wait
for a later change.

Bug: 8320762
Change-Id: I5efa39c741193ca4f5612ea9de001ccbb683b345
ibagl/egl.cpp
78141e3acc9913153883fa337a0f3a5eff7acc64 07-Mar-2013 Jesse Hall <jessehall@google.com> Defer destroying surfaces until not current

Bug: 8320762
Change-Id: I1320cf87923bcc5b795a86a13193363a49e29653
ibagl/egl.cpp
3cd153a0330d4234a536fc5f4e4346413bde5a44 07-Mar-2013 Mathias Agopian <mathias@google.com> another attempt to fix the build

Change-Id: Ie0245db97170cca9a2cd8783b0fd512daf0d30a6
ests/gl2_yuvtex/Android.mk
ests/gl_yuvtex/Android.mk
84b470d78f10b6fbfbf84edba749e5f7f315fc3a 07-Mar-2013 Mathias Agopian <mathias@google.com> attempt to fix build

Change-Id: Ifb186d2f157ad02f593bf9b681aab53575f183ce
ests/hwc/Android.mk
7284145d564fa8a422a8e564a38c730fb4a2962b 02-Mar-2013 Andy McFadden <fadden@android.com> Add eglPresentationTimeANDROID

Added EGL extension to set a timestamp on a surface.

Also, fix JNI encoding of "long" in glgen.

Bug 8191230

Change-Id: I38b7334bade3f8ff02bffe600bb74469ef22c164
nclude/EGL/eglext.h
ibs/EGL/eglApi.cpp
ools/glgen/specs/egl/EGL14.spec
ools/glgen/src/JType.java
ools/glgen/src/JniCodeEmitter.java
bf13ba5e77804ca7466acb7100cdaf7c14cc0fb7 23-Feb-2013 Mathias Agopian <mathias@google.com> add some missing parameter validation in GLES java bindings

- added support for comments in checks.spec
- added most missing checks
- added and commented with // special-cased functions
- added and commented with # functions that are still missing validation checks
- moved glGet* to a special case and updated all the "pnames" from the khronos spec
- changed ifcheck to default to 1 value. this allows us to simplify the checks.spec file
and handle unknown pnames automatically (they'll be validated against 1 value, if
it happens to need more, the call will go through but the validation will not
happen).
- refactored the cpp headers in to a common header + GLES version specific
header

Bug: 7402895
Change-Id: Ib5c68ca0ca416407b4cfa36e3a21901b2d6263ab
ools/glgen/gen
ools/glgen/specs/gles11/checks.spec
ools/glgen/src/GenerateGLES.java
ools/glgen/src/JniCodeEmitter.java
ools/glgen/src/ParameterChecker.java
ools/glgen/stubs/gles11/GLES10ExtHeader.java-if
ools/glgen/stubs/gles11/GLES10ExtcHeader.cpp
ools/glgen/stubs/gles11/GLES10Header.java-if
ools/glgen/stubs/gles11/GLES10cHeader.cpp
ools/glgen/stubs/gles11/GLES11ExtHeader.java-if
ools/glgen/stubs/gles11/GLES11ExtcHeader.cpp
ools/glgen/stubs/gles11/GLES11Header.java-if
ools/glgen/stubs/gles11/GLES11cHeader.cpp
ools/glgen/stubs/gles11/GLES20Header.java-if
ools/glgen/stubs/gles11/GLES20cHeader.cpp
ools/glgen/stubs/gles11/common.cpp
ools/glgen/stubs/gles11/glGetBooleanv.cpp
ools/glgen/stubs/gles11/glGetBooleanv.java
ools/glgen/stubs/gles11/glGetBooleanv.nativeReg
ools/glgen/stubs/gles11/glGetFloatv.cpp
ools/glgen/stubs/gles11/glGetFloatv.java
ools/glgen/stubs/gles11/glGetFloatv.nativeReg
ools/glgen/stubs/gles11/glGetIntegerv.cpp
ools/glgen/stubs/gles11/glGetIntegerv.java
ools/glgen/stubs/gles11/glGetIntegerv.nativeReg
ools/glgen/stubs/gles11/glGetProgramInfoLog.java
ools/glgen/stubs/gles11/glGetShaderInfoLog.java
ools/glgen/stubs/gles11/glGetString.java
ools/glgen/stubs/gles11/glShaderSource.java
f5c7cb316cc8c8e2d6ae93a659ac771420cbfa2b 24-Feb-2013 Jesse Hall <jessehall@google.com> Merge changes Ic344ef63,If9bb02be,Ic8f94634

* changes:
Symlink /system/lib/libGLESv3.so -> libGLESv2.so
Add ES3 support to libGLESv2 and tracing tools
Import OpenGL ES 3.0 headers from Khronos SVN
751402c866968204af050f95d14a38cb3c3fa134 23-Feb-2013 Jesse Hall <jessehall@google.com> Merge changes I45836219,I70a4075e

* changes:
Regenerate API/trace files for constness change
Import constness fix from gl3.h into gl2.h.
1e602df420c8a884026b85beee92e51093f1a068 23-Feb-2013 Mathias Agopian <mathias@google.com> sort the check file in alphabetical order

this simplifies a lot comparing it to the spec files.

Change-Id: I4b9b5e7469338a626100472d360ea26a902017bc
ools/glgen/specs/gles11/checks.spec
54c2818abe6d366815aec67dfcede1b1e008a52e 23-Feb-2013 Mathias Agopian <mathias@google.com> update glgen to take into account recent changes

- it looks like UserId has been renamed to UserHandle in the
framework.
- also for some reason I don't understand glgen didn't seem
to be up to date with respect to the generated bindings in the tree.
It's like the bindings were generated with a more recent version of
glgen (maybe it was never checked in). So we fix that here.

Change-Id: Ie49522ebf67fcab9213246b4d93500e37a3cbc05
ools/glgen/gen
ools/glgen/stubs/egl/EGL14cHeader.cpp
ools/glgen/stubs/egl/eglCreateWindowSurface.cpp
ools/glgen/stubs/jsr239/GLImplHeader.java-impl
e3c697fb929c856b59fa56a8e05a2a7eba187c3d 15-Feb-2013 Mathias Agopian <mathias@google.com> Refactoring: Rename SurfaceTextureClient to Surface

Change-Id: Ibed34175ae273608393aaa5f0a7df207dc40d709
ests/EGLTest/EGL_test.cpp
ools/glgen/stubs/egl/EGL14cHeader.cpp
ools/glgen/stubs/egl/eglCreateWindowSurface.cpp
bbb7322c363d1ff98b09ec4ad95338cc82eb86b0 14-Feb-2013 Elliott Hughes <enh@google.com> am 45b0e435: Merge "Simplify OpenGL TLS access on ARM."

# Via Elliott Hughes (1) and Gerrit Code Review (1)
* commit '45b0e4350d3404bd194edc569e36ecca017c3d76':
Simplify OpenGL TLS access on ARM.
288870ebc3da8121b7a237a53280bd8b931b7a2f 14-Feb-2013 Elliott Hughes <enh@google.com> Simplify OpenGL TLS access on ARM.

bionic now assumes the TLS register is available, so OpenGL can too.

Change-Id: If2b56a4c08de9f887759b78f70022026a181dc47
ibagl/Android.mk
ibs/Android.mk
ibs/EGL/getProcAddress.cpp
ibs/GLES2/gl2.cpp
ibs/GLES_CM/gl.cpp
ibs/GLES_trace/Android.mk
5ea4c7305850ad4003d314597f4a8255b5b45ba4 09-Feb-2013 Jesse Hall <jessehall@google.com> Symlink /system/lib/libGLESv3.so -> libGLESv2.so

The platform has a unified GLES2/GLES3 wrapper in libGLESv2.so, which
is what bundled binaries should link against. The NDK will have
separate GLES2 and GLES3 libraries so that applications will get a
link error if they accidentally use GLES3 entry points in a GLES2
application. This symlink allows GLES3 NDK apps to load using the
unified wrapper.

Change-Id: Ic344ef63c334047fccebb55b7cb2fb23a4c2d61b
ibs/Android.mk
4774338bd0ad1ebe42c311fd0c72f13786b5c800 08-Feb-2013 Jesse Hall <jessehall@google.com> Add ES3 support to libGLESv2 and tracing tools

Since ES3 is backwards compatible with ES2, a new wrapper isn't
necessary, and the Khronos implementation guidelines recommend
supporting both versions with the same library.

Change-Id: If9bb02be60ce01cc5fe25d1f40c4e7f37244ebf6
ibs/EGL/egl.cpp
ibs/EGL/eglApi.cpp
ibs/EGL/egl_display.h
ibs/EGL/egl_object.cpp
ibs/EGL/egl_object.h
ibs/EGL/trace.cpp
ibs/GLES2/gl2.cpp
ibs/GLES2/gl3_api.in
ibs/GLES2/gl3ext_api.in
ibs/GLES_trace/gltrace.proto
ibs/GLES_trace/src/gltrace.pb.cpp
ibs/GLES_trace/src/gltrace.pb.h
ibs/GLES_trace/src/gltrace_api.cpp
ibs/GLES_trace/src/gltrace_api.h
ibs/GLES_trace/tools/genapi.py
ibs/entries.in
ibs/enums.in
ibs/hooks.h
ibs/tools/genfiles
ibs/trace.in
61d1b812137b7f3a877e855f9a088be307ec11b6 08-Feb-2013 Jesse Hall <jessehall@google.com> Import OpenGL ES 3.0 headers from Khronos SVN

Add MODULE_LICENSE_MIT: The GLES headers use an MIT license or a
slight variant of it (the "SGI Free Software License B version 2.0",
http://oss.sgi.com/projects/FreeB/).

Change-Id: Ic8f946341cdd0d579f51b6f7a3ee109cd31b1691
nclude/GLES2/gl2.h
nclude/GLES3/gl3.h
nclude/GLES3/gl3ext.h
nclude/GLES3/gl3platform.h
nclude/MODULE_LICENSE_MIT
d58974c6b25fe9fdadb38dc1f1371196b71a0913 07-Feb-2013 Jesse Hall <jessehall@google.com> Regenerate API/trace files for constness change

Change-Id: I45836219fc0e97607d83d458de9babb44f4c7534
ibs/GLES_trace/src/gltrace_api.cpp
ibs/GLES_trace/src/gltrace_api.h
ibs/entries.in
ibs/trace.in
7c95911157999d30fbadf8f964155396d17c49da 21-Jan-2013 Alistair Strachan <alistair.strachan@imgtec.com> Import constness fix from gl3.h into gl2.h.

This change has been made in Khronos SVN for GLES2 already, however it
is mildly controversial and discussion is on-going.

This change is necessary for Android because otherwise applications
cannot include both GLES2/gl2.h and GLES3/gl3.h as the glShaderSource()
prototype mismatches. Native programs may include framework headers
(which now include GLES3 headers only) but already have included GLES2
headers, creating an incompatibility.

Change-Id: I70a4075e079ee063e76cef5a227abb0ae70aebb4
nclude/GLES2/gl2.h
ibs/GLES2/gl2_api.in
2b6694f5f0106b535bf9188262ca8ca72278e906 05-Feb-2013 Jesse Hall <jessehall@google.com> Force a specific locale for sorting

Avoids irrelevant output differences based on the user's locale. The
current output files were generated with a C or POSIX locale, and sort
differently under en_US.UTF-8.

Change-Id: I0dd85475e9ee2d58e7fa9fe2a4f86ad5c8142e00
ibs/tools/genfiles
519191670e37bdfa7f686fb3d3ee84fafe9ad0cb 01-Feb-2013 Jesse Hall <jessehall@google.com> am 873ab60e: am 75b83e4d: Merge "Gfx-3d: fix GetProcAddress in egl extention"

# By luliuhui
# Via Android Git Automerger (1) and others
* commit '873ab60e94811488caea1906eb98133329a3e28f':
Gfx-3d: fix GetProcAddress in egl extention
873ab60e94811488caea1906eb98133329a3e28f 01-Feb-2013 Jesse Hall <jessehall@google.com> am 75b83e4d: Merge "Gfx-3d: fix GetProcAddress in egl extention"

# By luliuhui
# Via Gerrit Code Review (1) and Shuo Gao (1)
* commit '75b83e4dc7d8055a70e590f868f7307fdaf656a7':
Gfx-3d: fix GetProcAddress in egl extention
69d100762c7c26d8328f4bb61cfef026d3a69bbf 30-Aug-2012 luliuhui <liuhui.lu@intel.com> Gfx-3d: fix GetProcAddress in egl extention

This patch can fix issue when Proc address return NULL.
Glbench10, egl-ext and conformance test need this patch to run pass.

Change-Id: I275c7cb6f77cb334c3ee7fa23cd696bba1c5a458
Author: Liuhui Lu <liuhui.lu@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 52622
ibs/EGL/eglApi.cpp
582dbf82f9e362093b1923f9786745948fd45840 20-Dec-2012 Siva Velusamy <vsiva@google.com> Merge "gltrace: Add support for tracing running applications."
a73a97728befb5ba5ad647ab3b60058c4d536ba4 18-Dec-2012 Siva Velusamy <vsiva@google.com> gltrace: Add support for tracing running applications.

Currently, to activate OpenGL tracing, an application has to be
start with --opengl-trace option (or have a debug prop set).

This CL adds support for tracing an application which may already
be running. This is implemented as follows:
- DDMS initiates a JDWP message to the VM indicating that
opengl traces be enabled.
- When that message is received, a flag is set that indicates
that tracing should be enabled.
- The trace flag is checked during every eglSwap() operation,
and if it finds that tracing should be active and it isn't,
then it starts the tracing component.

Change-Id: I3347fe89fc06c7404d7aa9360f4b21e5bf36ebcb
ibs/EGL/egl.cpp
ibs/EGL/eglApi.cpp
ibs/GLES_trace/DESIGN.txt
ibs/GLES_trace/src/gltrace_eglapi.cpp
ibs/glestrace.h
52f733c45797938e1a1081b7b8e4d6f2bd6f5af8 19-Dec-2012 Jesse Hall <jessehall@google.com> Merge "Merge extensions as published at khronos.org"
2adaf04fab35cf47c824d74d901b54094e01ccd3 18-Dec-2012 Andy McFadden <fadden@android.com> Rename ISurfaceTexture and SurfaceTexture

The C++ class names don't match what the classes do, so rename
ISurfaceTexture to IGraphicBufferProducer, and SurfaceTexture to
GLConsumer.

Bug 7736700

Change-Id: Ia03e468888025b5cae3c0ee1995434515dbea387
ests/EGLTest/EGL_test.cpp
ools/glgen/stubs/egl/EGL14cHeader.cpp
ools/glgen/stubs/egl/eglCreateWindowSurface.cpp
31134cd4804ca19a7057129aeff1d061c4bc8e22 14-Dec-2012 Jesse Hall <jessehall@google.com> Merge extensions as published at khronos.org

No significant changes. The extensions now have assigned extensions
numbers. And Jon Leech added missing suffixes in the declaration of
eglSetBlobCacheFuncsANDROID; our header and code already had the
suffix.

Change-Id: I2faad8ebe0ca81b13e29729a15515ee6b17b94b2
pecs/EGL_ANDROID_blob_cache.txt
pecs/EGL_ANDROID_framebuffer_target.txt
pecs/EGL_ANDROID_image_native_buffer.txt
pecs/EGL_ANDROID_native_fence_sync.txt
pecs/EGL_ANDROID_recordable.txt
ac0de62ba3f86400f08c3791ba56b6cb057e1dfa 04-Dec-2012 Ying Wang <wangying@google.com> Use LOCAL_REQUIRED_MODULES to establish dependency

instead of using the tricky order-only dependency on a phony target
module name.

Change-Id: I691f2d352d1bd7f619bdb0b75070709e1b8222c0
ibs/Android.mk
c34204436870a21912e817cbe596af8b7b27c48a 30-Nov-2012 Jesse Hall <jessehall@google.com> Mark extensions 'Complete', correct some stale version info

Change-Id: I46ccd8eaeacc647399a5531e262c1b01e0a080b0
pecs/EGL_ANDROID_blob_cache.txt
pecs/EGL_ANDROID_framebuffer_target.txt
pecs/EGL_ANDROID_image_native_buffer.txt
pecs/EGL_ANDROID_native_fence_sync.txt
pecs/EGL_ANDROID_recordable.txt
721192ed0d0a87385095d4d153d78b5adef06b0a 29-Nov-2012 Jesse Hall <jessehall@google.com> Initial draft of EGL_ANDROID_image_native_buffer

Change-Id: If9bdd27ffdb13fb85e9ef873b311d6721399f75f
pecs/EGL_ANDROID_image_native_buffer.txt
db2e4f16bb1c804414773862030cdb0aa5413778 27-Nov-2012 Andy McFadden <fadden@android.com> am a90173d8: am 762a6d86: Merge "DO NOT MERGE - native_fence_sync: fix an enum name" into jb-mr1.1-dev

* commit 'a90173d86dd209aee55d833c73c424d854a98c70':
DO NOT MERGE - native_fence_sync: fix an enum name
762a6d86de63ad319884ab6e666be6ad0d75996e 27-Nov-2012 Andy McFadden <fadden@android.com> Merge "DO NOT MERGE - native_fence_sync: fix an enum name" into jb-mr1.1-dev
378787cf626276474ea7e4fbbbca0c7e10bb2a10 26-Nov-2012 Jamie Gennis <jgennis@google.com> DO NOT MERGE - native_fence_sync: fix an enum name

This change replaces all references to the "EGL_NO_NATIVE_FENCE_ANDROID" enum
with "EGL_NO_NATIVE_FENCE_FD_ANDROID".

Bug: http://code.google.com/p/android/issues/detail?id=40295

(cherry-pick from master)

Change-Id: Ie25d4ab9721d8b69b8d4afcf18e902ef8e3ad911
pecs/EGL_ANDROID_native_fence_sync.txt
333fb7975302f820a1e5377f460f259a92dd1fae 26-Nov-2012 Jamie Gennis <jgennis@google.com> Merge "native_fence_sync: fix an enum name"
e346c503ce4d5e3fcc799ebd98cda18f123cd5e8 26-Nov-2012 Jamie Gennis <jgennis@google.com> native_fence_sync: fix an enum name

This change replaces all references to the "EGL_NO_NATIVE_FENCE_ANDROID" enum
with "EGL_NO_NATIVE_FENCE_FD_ANDROID".

Bug: http://code.google.com/p/android/issues/detail?id=40295
Change-Id: I049b2ba185c2dbdccb8fc069701dbe805d63f645
pecs/EGL_ANDROID_native_fence_sync.txt
0e34af6284c258c1dc56670a573ef11a76dda9fe 21-Nov-2012 Siva Velusamy <vsiva@google.com> am c859084c: am a9a4cd48: gltrace: Make sure device is debuggable.

* commit 'c859084ca303ca1ab69bdc78f864d39c9c81ab0b':
gltrace: Make sure device is debuggable.
a9a4cd4806ea5b2cf525c8ab4c6604d78c6e3f8f 20-Nov-2012 Siva Velusamy <vsiva@google.com> gltrace: Make sure device is debuggable.

(cherry picked from commit 6482fa4db0a7ac99cd3503d6bf170f80b26fb695)

Change-Id: I205aabcab1932025c12e7ba3d1b3cf94684f6758
ibs/EGL/egl.cpp
6482fa4db0a7ac99cd3503d6bf170f80b26fb695 20-Nov-2012 Siva Velusamy <vsiva@google.com> gltrace: Make sure device is debuggable.

Change-Id: Icc22ff823a2f56733b232b927dd1fa494e9e1e81
ibs/EGL/egl.cpp
20b9749959786a11d91332202009d3903f15e3f0 07-Nov-2012 Ben Cheng <bccheng@google.com> Disable ld --fatal-warnings because of using mktemp.

Change-Id: Id18b1e38672294b025bc26adb38aed0ac3e0fb45
ests/EGLTest/Android.mk
16ac25b73a089e840e8d53cb3af3b6ff08ff54a3 07-Nov-2012 Andrew Hsieh <andrewhsieh@google.com> am 168dfe71: am 5e530e02: am a151a19d: Merge "Fix return type of glGetAttribLocation and glGetUniformLocation"

* commit '168dfe71bfafebaa26b6f75df553f5fad7607669':
Fix return type of glGetAttribLocation and glGetUniformLocation
5e530e02bc3073a2e2469df3c333ae14f1b37433 07-Nov-2012 Andrew Hsieh <andrewhsieh@google.com> am a151a19d: Merge "Fix return type of glGetAttribLocation and glGetUniformLocation"

* commit 'a151a19db2fa07295837027fb5d84c02401cc78d':
Fix return type of glGetAttribLocation and glGetUniformLocation
300ad09822db1013d9f28c4bca3680f865533ab6 06-Nov-2012 Andrew Hsieh <andrewhsieh@google.com> Fix return type of glGetAttribLocation and glGetUniformLocation

from int to GLint.

See:
http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetAttribLocation.xml
http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetUniformLocation.xml

Change-Id: I4a9f8e9e34b8c3cca239ae84bfe8f3cdfd94802a
nclude/GLES2/gl2.h
ibs/GLES2/gl2_api.in
ibs/GLES_trace/src/gltrace_api.cpp
ibs/GLES_trace/src/gltrace_api.h
ibs/GLES_trace/src/gltrace_fixup.cpp
ibs/entries.in
ibs/trace.in
ests/gl_perf/fill_common.cpp
ools/glgen/specs/gles11/GLES20.spec
d991b40739fad782dbb319e9de50f3a8b70e4bc6 19-Oct-2012 Romain Guy <romainguy@google.com> am f58475b5: am 60393d45: Merge "Add runtime debugging capabilities to OpenGL" into jb-mr1-dev

* commit 'f58475b5ae4ccb3a31c05c79da8b2914c62a3510':
Add runtime debugging capabilities to OpenGL
f58475b5ae4ccb3a31c05c79da8b2914c62a3510 19-Oct-2012 Romain Guy <romainguy@google.com> am 60393d45: Merge "Add runtime debugging capabilities to OpenGL" into jb-mr1-dev

* commit '60393d45207b6548e1f61ca104fa59aecee87d30':
Add runtime debugging capabilities to OpenGL
16928bfeca8858a0acae6942fc68c14a040b92ff 19-Oct-2012 Romain Guy <romainguy@google.com> Add runtime debugging capabilities to OpenGL

The shell property debug.egl.trace can now be set to:

0
disables tracing
1
logs all GL calls
error
checks glGetError after every GL call, logs a stack trace on error
systrace
logs each GL call to systrace

Change-Id: I34a2a2d4e19c373fd9eaa1b0cd93e67c87378996
ibs/EGL/egl.cpp
ibs/EGL/trace.cpp
ibs/GLES2/gl2.cpp
4d0aec67c4423404a3d82793e5771230426521cc 16-Oct-2012 Romain Guy <romainguy@google.com> am 23bcd8d2: am 825a9a2d: Merge "Update comments to reflect what the code actually does" into jb-mr1-dev

* commit '23bcd8d298597659622919027c9ea921d5eed513':
Update comments to reflect what the code actually does
23bcd8d298597659622919027c9ea921d5eed513 16-Oct-2012 Romain Guy <romainguy@google.com> am 825a9a2d: Merge "Update comments to reflect what the code actually does" into jb-mr1-dev

* commit '825a9a2dcd1b3e139dd0677ff46f966fb23f963c':
Update comments to reflect what the code actually does
1ba2f61d75c70b5a0275c93a9908aa7280f43bc6 16-Oct-2012 Romain Guy <romainguy@google.com> am 49fe8add: am b96fe085: Merge "Add new debug option to force 4x MSAA in OpenGL ES 2.0 apps" into jb-mr1-dev

* commit '49fe8addbfe52bf9a3e69e6250e462a70332235c':
Add new debug option to force 4x MSAA in OpenGL ES 2.0 apps
49fe8addbfe52bf9a3e69e6250e462a70332235c 16-Oct-2012 Romain Guy <romainguy@google.com> am b96fe085: Merge "Add new debug option to force 4x MSAA in OpenGL ES 2.0 apps" into jb-mr1-dev

* commit 'b96fe08540dcf7e90be56919ea9863f687da779c':
Add new debug option to force 4x MSAA in OpenGL ES 2.0 apps
be3c3e4ecad501eecfe1f7a424a792f0f7f3f307 16-Oct-2012 Romain Guy <romainguy@google.com> Update comments to reflect what the code actually does

Change-Id: I2613aa32c29eddc52a00090656c1bd11f9f5732b
ibs/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
ibs/EGL/eglApi.cpp
c6e84523201670241545a4858216c1d5514ce0e5 10-Oct-2012 Siva Velusamy <vsiva@google.com> Merge "gltrace: Do not start gltrace from early_egl_init."
8420c5fbe862753f7b7420c27f037b388c1103a9 10-Oct-2012 Chet Haase <chet@google.com> am 8b75830c: am 8d5d2019: Revert "Add GL Error logs (temporary)"

* commit '8b75830c5ce5e0097909c11c559d50d7f6f7303b':
Revert "Add GL Error logs (temporary)"
8b75830c5ce5e0097909c11c559d50d7f6f7303b 10-Oct-2012 Chet Haase <chet@google.com> am 8d5d2019: Revert "Add GL Error logs (temporary)"

* commit '8d5d2019805df1f27cbec07eeca47dd5ab453dad':
Revert "Add GL Error logs (temporary)"
8d5d2019805df1f27cbec07eeca47dd5ab453dad 08-Oct-2012 Chet Haase <chet@google.com> Revert "Add GL Error logs (temporary)"

This reverts commit 2da2c15068327a4fdad411f638905abcb2209d8a.
ibs/Android.mk
ibs/GLES2/gl2.cpp
2e080904aba15f585fcf36df9b12ff8d00829523 10-Oct-2012 Siva Velusamy <vsiva@google.com> gltrace: Do not start gltrace from early_egl_init.

The debugging and tracing levels are initialized both during
early_egl_init and egl_display_t::initialize(). For apps this has
no effect since early_egl_init is called in the context of zygote.
This CL removes the unnecessary call from early_egl_init.

Change-Id: Ibc55c26228cd197f2e2623fbfb2d1a63d0722401
ibs/EGL/egl.cpp
76942a49740d6cf53fc5fe3c5a53f4de4011d954 05-Oct-2012 Jean-Baptiste Queru <jbq@google.com> Merge "egl: Reintroduce eglGetRenderBufferANDROID"
b39844e25191a2828a85fbf682a892bc7f7ad3c4 05-Oct-2012 Chet Haase <chet@google.com> am 9c58d96f: am 27b28fd9: Merge "Add GL Error logs (temporary)" into jb-mr1-dev

* commit '9c58d96f0079e627004c606436df27fa97ff4c8e':
Add GL Error logs (temporary)
9c58d96f0079e627004c606436df27fa97ff4c8e 05-Oct-2012 Chet Haase <chet@google.com> am 27b28fd9: Merge "Add GL Error logs (temporary)" into jb-mr1-dev

* commit '27b28fd9960b73a1f13e22dd6655f75e2e76eef7':
Add GL Error logs (temporary)
2da2c15068327a4fdad411f638905abcb2209d8a 05-Oct-2012 Chet Haase <chet@google.com> Add GL Error logs (temporary)

Adding logs to tell which specific methods throw OpenGL errors.

Change-Id: I1d73c7566ed1ea6610392020411762c6255a0ede
ibs/Android.mk
ibs/GLES2/gl2.cpp
090503a01c457feb6e64facfc7eb50c1f5612c6b 01-Oct-2012 Siva Velusamy <vsiva@google.com> gltrace: Fix NPE

Change-Id: Id7af9cd388f3508201f96a0624966c2ce01b4da5
ibs/GLES_trace/src/gltrace_fixup.cpp
4cb9e0062eac60fcc65948b11d8a9a7f03b526a8 28-Sep-2012 Chet Haase <chet@google.com> am bba6bb81: am 4c273277: Merge "Re-enable FAST_TLS in gl2 code" into jb-mr1-dev

* commit 'bba6bb81373b285b456bb851d37f7f2ecfc742ad':
Re-enable FAST_TLS in gl2 code
bba6bb81373b285b456bb851d37f7f2ecfc742ad 28-Sep-2012 Chet Haase <chet@google.com> am 4c273277: Merge "Re-enable FAST_TLS in gl2 code" into jb-mr1-dev

* commit '4c2732779a11c92222958e7150162d4eaaab7b66':
Re-enable FAST_TLS in gl2 code
e8b0fac720b249639fa1cf2f3a06f7d88d207b76 28-Sep-2012 Chet Haase <chet@google.com> Re-enable FAST_TLS in gl2 code

Temporarily changed USE_FAST_TLS_KEY ifdef during debugging. Changing it
back now.

Change-Id: I7c2fcf7265b3d545e31ff7683bd7614100fad3e5
ibs/GLES2/gl2.cpp
f51c798c039307872ae5d889424a18dad9d77a2b 28-Sep-2012 Romain Guy <romainguy@google.com> am e1549fcb: am cb094a78: Merge "New compile-time flags to make debugging easier for us poor souls Bug #7195815" into jb-mr1-dev

* commit 'e1549fcb4493fe84deb488d85fc626d635153eb8':
New compile-time flags to make debugging easier for us poor souls Bug #7195815
e1549fcb4493fe84deb488d85fc626d635153eb8 28-Sep-2012 Romain Guy <romainguy@google.com> am cb094a78: Merge "New compile-time flags to make debugging easier for us poor souls Bug #7195815" into jb-mr1-dev

* commit 'cb094a783f14daae3378ac8aa7dc509980f037b2':
New compile-time flags to make debugging easier for us poor souls Bug #7195815
f12fe43e8c280923fde743f22cea238e48c929f1 28-Sep-2012 Romain Guy <romainguy@google.com> New compile-time flags to make debugging easier for us poor souls
Bug #7195815

Change-Id: I23e7ac991891b9586cb8ed20b1305c8b1b3e2b43
ibs/GLES2/gl2.cpp
b428bf60a3992d1c06db1dcb3ecd76dd2c0b345e 27-Sep-2012 Mathias Agopian <mathias@google.com> am 2ac41948: am 1e83690c: Merge "assert -eng builds when calling a GL function without a context" into jb-mr1-dev

* commit '2ac4194854a70c6e319b1b3b647344e595082b38':
assert -eng builds when calling a GL function without a context
2ac4194854a70c6e319b1b3b647344e595082b38 27-Sep-2012 Mathias Agopian <mathias@google.com> am 1e83690c: Merge "assert -eng builds when calling a GL function without a context" into jb-mr1-dev

* commit '1e83690c6030b33c7776fa65cb57132d5e2d0b40':
assert -eng builds when calling a GL function without a context
455e3601498096d1daa0cf0ec7c23abb28b39af3 27-Sep-2012 Mathias Agopian <mathias@google.com> assert -eng builds when calling a GL function without a context

Bug: 7241626

Change-Id: I0f1f9361e75e9186af8cff8d98a7d2224b266765
ibs/EGL/egl.cpp
651d23e6f73dbd54a9556870f195221a29ae62b7 25-Sep-2012 Jamie Gennis <jgennis@google.com> am 483ab742: am 2f45d746: Merge "EGL: add the EGL_ANDROID_framebuffer_target enum" into jb-mr1-dev

* commit '483ab74243870e6af4b8a947873556ff86d076c0':
EGL: add the EGL_ANDROID_framebuffer_target enum
f48bec48eaf91f19a3350e481aa1aaecb2ffc338 25-Sep-2012 Jamie Gennis <jgennis@google.com> am ca5f79c2: am 363847d4: Merge "EGL: expose the EXT_create_context_robustness ext" into jb-mr1-dev

* commit 'ca5f79c2bb6c2e3995d9e2427f2600d1b03a84c4':
EGL: expose the EXT_create_context_robustness ext
483ab74243870e6af4b8a947873556ff86d076c0 25-Sep-2012 Jamie Gennis <jgennis@google.com> am 2f45d746: Merge "EGL: add the EGL_ANDROID_framebuffer_target enum" into jb-mr1-dev

* commit '2f45d7464a55d7a91da6fcd6f8cf1b11e395d029':
EGL: add the EGL_ANDROID_framebuffer_target enum
ca5f79c2bb6c2e3995d9e2427f2600d1b03a84c4 25-Sep-2012 Jamie Gennis <jgennis@google.com> am 363847d4: Merge "EGL: expose the EXT_create_context_robustness ext" into jb-mr1-dev

* commit '363847d498bffe0e2d8e7b8aba693bb402513413':
EGL: expose the EXT_create_context_robustness ext
2f45d7464a55d7a91da6fcd6f8cf1b11e395d029 25-Sep-2012 Jamie Gennis <jgennis@google.com> Merge "EGL: add the EGL_ANDROID_framebuffer_target enum" into jb-mr1-dev
363847d498bffe0e2d8e7b8aba693bb402513413 25-Sep-2012 Jamie Gennis <jgennis@google.com> Merge "EGL: expose the EXT_create_context_robustness ext" into jb-mr1-dev
73d2a3940074f5d17c8b8895aa892cd8f228b2db 25-Sep-2012 Mathias Agopian <mathias@google.com> am 0d45d711: am 500407a2: log an error when eglCreateContext() fails in an inconsistant way

* commit '0d45d711976bdca1165536b8948680680d38eb6a':
log an error when eglCreateContext() fails in an inconsistant way
0d45d711976bdca1165536b8948680680d38eb6a 25-Sep-2012 Mathias Agopian <mathias@google.com> am 500407a2: log an error when eglCreateContext() fails in an inconsistant way

* commit '500407a2c07ced40c36e7356574a47bcec9c2fd9':
log an error when eglCreateContext() fails in an inconsistant way
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
ibs/EGL/eglApi.cpp
68872cac38d8f593ede3fabab81484a095e5b5d8 25-Sep-2012 Mathias Agopian <pixelflinger@gmail.com> am 81b316aa: am 98838aa0: am 77af25b6: Merge "Return back-end result from eglDestroyImageKHR"

* commit '81b316aa5395b6318ad4a10e1ed27d0b9b0df07f':
Return back-end result from eglDestroyImageKHR
81b316aa5395b6318ad4a10e1ed27d0b9b0df07f 25-Sep-2012 Mathias Agopian <pixelflinger@gmail.com> am 98838aa0: am 77af25b6: Merge "Return back-end result from eglDestroyImageKHR"

* commit '98838aa0836518b7397cbfe763f34305e3387a5f':
Return back-end result from eglDestroyImageKHR
77af25b6dd41e76052b5b0ec6aaeebca896a4dbe 24-Sep-2012 Mathias Agopian <pixelflinger@gmail.com> Merge "Return back-end result from eglDestroyImageKHR"
3ff48e5e69955b37292446c0f2ac98e8238bdaca 24-Sep-2012 Jamie Gennis <jgennis@google.com> EGL: add the EGL_ANDROID_framebuffer_target enum

Change-Id: Id8b1b114e2a7a88956b857c63a0429e9b33fdb5c
nclude/EGL/eglext.h
ibs/EGL/egl_display.cpp
09b11432b64d368dee7be69480ab54256058376a 21-Sep-2012 Jamie Gennis <jgennis@google.com> EGL: expose the EXT_create_context_robustness ext

Change-Id: I1db43e96aa5e9e91a6176a4a3e5aa9d1f3ee4a7e
nclude/EGL/eglext.h
ibs/EGL/egl_display.cpp
6a2f058458931610cd8313ab6749787f7beb7c48 24-Sep-2012 Jamie Gennis <jgennis@google.com> am 849df8cd: am e0606e29: Merge "Add a spec for EGL_ANDROID_framebuffer_target." into jb-mr1-dev

* commit '849df8cd6baa26ef431404d1b1eea1e141eb5030':
Add a spec for EGL_ANDROID_framebuffer_target.
aaf421c465794c02f86ee2929f330a8b7206199b 20-Sep-2012 Jamie Gennis <jgennis@google.com> Add a spec for EGL_ANDROID_framebuffer_target.

This change adds a new extension for EGL implementations to indicate the
EGLConfigs that support use as a HWComposer framebuffer target layer.

Change-Id: Ia7c8fbe8da09d57b4ec8bf1d9ddb67ca21aa2885
pecs/EGL_ANDROID_framebuffer_target.txt
pecs/README
991c18586a54f19ff673c3891981aaabf61412ac 20-Sep-2012 Mathias Agopian <pixelflinger@gmail.com> am 278b3016: am 2a60824a: am 516efc1b: am 8a2b5423: Merge "libagl: Transform the vertex if using eye space lighting with point lights"

* commit '278b301690d5428e4ec97ac8cf2d9bfb8f901f0b':
libagl: Transform the vertex if using eye space lighting with point lights
2a60824abcbfc2c5b936d3711d6d32318c489e88 20-Sep-2012 Mathias Agopian <pixelflinger@gmail.com> am 516efc1b: am 8a2b5423: Merge "libagl: Transform the vertex if using eye space lighting with point lights"

* commit '516efc1bea1c05492c5d4636a589cfc686661842':
libagl: Transform the vertex if using eye space lighting with point lights
8a2b54235a45f92827b13723380065d1ce308236 20-Sep-2012 Mathias Agopian <pixelflinger@gmail.com> Merge "libagl: Transform the vertex if using eye space lighting with point lights"
7d33bc558871ea72bb489c93b2f7fce07dbc1ca2 18-Sep-2012 Jamie Gennis <jgennis@google.com> am 8e7e5399: am f0f56f32: Merge "EGL: fix an extension string bug" into jb-mr1-dev

* commit '8e7e5399764c4ef44125c41b172a04dd1403d3a0':
EGL: fix an extension string bug
a08cf6e3a4ee045608bc8991a779dedb4f281a3f 16-Sep-2012 Jamie Gennis <jgennis@google.com> EGL: fix an extension string bug

This change fixes a bug where initializing EGL multiple times (eglTerminate
followed by eglInitialize) would cause extensions to show up in the extension
string multiple times.

Change-Id: I707a3da62ed30ef13835087167f84a08bc6addd7
ibs/EGL/egl_display.cpp
29821a3010c9bae1e119313e9f2d4cd2e00ae264 13-Sep-2012 Jamie Gennis <jgennis@google.com> am 688115bb: am e45b01f5: Merge "EGL: make max cache key size BoardConfig-able" into jb-mr1-dev

* commit '688115bbd75416d0c665e8a922223bbf8742edc0':
EGL: make max cache key size BoardConfig-able
646a5c593f9819dc5da6a1ec859bc70cb7ba096f 05-Jun-2012 Steven Holte <sholte@nvidia.com> Return back-end result from eglDestroyImageKHR

Change-Id: I0e972b778f9802c28f52092bb9af087285833e0b
ibs/EGL/eglApi.cpp
0673e1e2d77c673c2e9bc57616a02c3188b55ad1 21-Jun-2012 Michael Chock <mchock@nvidia.com> Additional parameter validation for EGL functions

Change-Id: I841d005647559799edbc2c4824c61ea5791cf893
ibs/EGL/eglApi.cpp
f478e6d18cb9eba1ded1f124ce16a899d271689e 12-Sep-2012 Jamie Gennis <jgennis@google.com> EGL: make max cache key size BoardConfig-able

This change makes the maximum EGL blob cache key size configurable via a
BoardConfig.

Change-Id: Ic669cd25fc743662bd4f13aab62354fc3d54560c
ibs/Android.mk
ibs/EGL/egl_cache.cpp
db28e001849a94a6b034903535981099562af13b 11-Sep-2012 Jamie Gennis <jgennis@google.com> am 26606ba0: am 010dd4fb: EGL: Add the EGL_ANDROID_wait_sync extension

* commit '26606ba0a0409c6ebc2e4b070f96c8d19743e260':
EGL: Add the EGL_ANDROID_wait_sync extension
010dd4fb892aecf71e4631c22148fe57ef5b3958 10-Sep-2012 Jamie Gennis <jgennis@google.com> EGL: Add the EGL_ANDROID_wait_sync extension

Change-Id: Ie9a78e07fcaf27c5c13797141ad3c692217607fb
nclude/EGL/eglext.h
ibs/EGL/eglApi.cpp
ibs/EGL/egl_entries.in
1d137fb623e86d1c40ba1eb7526d1d57b83cacb4 07-Sep-2012 Jamie Gennis <jgennis@google.com> am 0a8e3367: am 331841b9: EGL: add the native_fence_sync extension

* commit '0a8e33679240df2c7746eb5adf05d90265d3111c':
EGL: add the native_fence_sync extension
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
nclude/EGL/eglext.h
ibs/EGL/eglApi.cpp
ibs/EGL/egl_display.cpp
ibs/EGL/egl_entries.in
pecs/EGL_ANDROID_native_fence_sync.txt
d3b8840a138a7e870de4f5ee911c57adbdf5e62b 07-Sep-2012 Jamie Gennis <jgennis@google.com> am 2ec08f82: am 8893d5bb: EGL_ANDROID_native_fence_sync: fix the version

* commit '2ec08f825ff4ffa120b13272f575a179517636ce':
EGL_ANDROID_native_fence_sync: fix the version
8893d5bba1191b0dc9db1432868d8dc64de606ad 06-Sep-2012 Jamie Gennis <jgennis@google.com> EGL_ANDROID_native_fence_sync: fix the version

Change-Id: Ib43b8fec8f37bb847d7bcdbf7607fd56f19a0563
pecs/EGL_ANDROID_native_fence_sync.txt
111d71a90577ee520f8abecaa9ea97f46828342d 05-Sep-2012 Jamie Gennis <jgennis@google.com> am 6d53451b: am f42449e1: Merge "EGL_ANDROID_fence_sync: make it more generic" into jb-mr1-dev

* commit '6d53451b038591c57c0743ef4b5649d4e9240c45':
EGL_ANDROID_fence_sync: make it more generic
a1d49ce1f11d18f0e1592c9567e911e1728fc4a4 05-Sep-2012 Jamie Gennis <jgennis@google.com> EGL_ANDROID_fence_sync: make it more generic

This change updates the extension spec to refer to generic "native fence sync
objects" rather than "Android fence sync objects."

Change-Id: I15a79f08571586431845b54c58c8420b652f40ef
pecs/EGL_ANDROID_fence_sync.txt
pecs/EGL_ANDROID_native_fence_sync.txt
f9752cc4cf4e4f36eaa6f19f607957b9eb496bc4 22-Aug-2012 Bjorn Andersson <bjorn.andersson@sonymobile.com> egl: Reintroduce eglGetRenderBufferANDROID

eglGetRenderBufferANDROID was removed as it had no users. This commit
reintroduces this extensions as it's used by Qualcomm graphics HAL.

Change-Id: I493306830a0d4f8722a42bcc84fb49236afdabeb
nclude/EGL/eglext.h
ibagl/egl.cpp
ibs/EGL/eglApi.cpp
9024417a27405c8df807530eeb0ea6809523120e 20-Aug-2012 Jean-Baptiste Queru <jbq@google.com> am ada50888: am 0adc8f26: am 6e820eec: am 6f89ebde: Merge "EGL: do not use sparse files for shader"

* commit 'ada508884284f9cd2025f683dd4ac4c66a1ffc08':
EGL: do not use sparse files for shader
0adc8f260023ec25c31ff4ceadde047528cb64ab 20-Aug-2012 Jean-Baptiste Queru <jbq@google.com> am 6e820eec: am 6f89ebde: Merge "EGL: do not use sparse files for shader"

* commit '6e820eec21917f8e25c40dbc8b972468535af0e8':
EGL: do not use sparse files for shader
2fca1689510f49ef758818b345482897be2466d7 17-Aug-2012 Siva Velusamy <vsiva@google.com> am 0bbd95b9: am c21fc05a: Merge "gltrace: flush trace buffer on createContext & makeCurrent" into jb-mr1-dev

* commit '0bbd95b9beece22fe7f833e6def244e39536a95e':
gltrace: flush trace buffer on createContext & makeCurrent
ad9693f4f0586d18a82fdbb70c6a89e43d662ff1 16-Aug-2012 Siva Velusamy <vsiva@google.com> gltrace: flush trace buffer on createContext & makeCurrent

Certain apps (e.g. chrome) seem to create contexts which are unused
for long periods of time. If tracing is stopped before those contexts
are used, then the debugger never gets to know that these contexts
were created. Flushing the trace after these calls ensures that
the debugger knows about all created/used contexts.

Change-Id: I01baa11aa56ac89eddce3c2851e4bf01076984d1
ibs/GLES_trace/src/gltrace_context.cpp
b4b138abaab3231434449bb5eb5cfb9191aaa655 13-Aug-2012 Jesse Hall <jessehall@google.com> am b58c6d5e: am 7e5099a9: Add compile-time option to systrace GL-ES calls

* commit 'b58c6d5ef1edcb04849d30f9b981a5f4bfd163e3':
Add compile-time option to systrace GL-ES calls
7e5099a9ece6a3ed7edb1b5bf60a43422428326c 02-Aug-2012 Jesse Hall <jessehall@google.com> Add compile-time option to systrace GL-ES calls

Change-Id: Ibec103bbf159626ad9745d0e071192ad424bc0e9
ibs/Android.mk
ibs/GLES2/gl2.cpp
62a0a2a8ca389ae936c56f3a93a2e0a88ba7451e 09-Aug-2012 Thomas Tafertshofer <tafertth@google.com> Updated eglCreateWindowSurface stub for glgen

Updates the stub for eglCreateWindowSurface
to accept Surface as a native window.

Change-Id: I9ff7f68ad9ae4ff10439588aaef138b4564d959e
ools/glgen/stubs/egl/eglCreateWindowSurface.java
a610da900cf67f0cbd323c60a0dd55827df8313a 08-Aug-2012 Keun young Park <keunyoung@google.com> Merge "enable java/jni build in PDK if supported" into jb-mr1-dev
203a3357c7042680304e3821b1f6ed1aea8c17cd 08-Aug-2012 Keun young Park <keunyoung@google.com> enable java/jni build in PDK if supported

- testFramerate requires platform java API
while all other tests only need SDK support

Change-Id: Iaefe23c41b3ace87522b5deefd6db2f5d80ed872
ests/Android.mk
b685c542836b93c99cd85053e07696406ea37adb 31-Jul-2012 Jesse Hall <jessehall@google.com> Changes to support multi-display HWC

Change-Id: I07efff54f2980dcb013935747b03e099b8f1181b
ests/hwc/hwcColorEquiv.cpp
ests/hwc/hwcCommit.cpp
ests/hwc/hwcRects.cpp
ests/hwc/hwcStress.cpp
ests/hwc/hwcTestLib.cpp
ests/hwc/hwcTestLib.h
bc0d7dc8f5f43749ff6e7f0b42c760f5ee9f6d14 31-Jul-2012 Jesse Hall <jessehall@google.com> Revert "Minimal changes to support multi-display HWC"

This reverts commit bddd724b178b1263c16e41b564165fcd0e93ff83

Change-Id: Ib7db20b5b3de4779b6e173473a33976ae398abd4
ests/hwc/hwcColorEquiv.cpp
ests/hwc/hwcCommit.cpp
ests/hwc/hwcRects.cpp
ests/hwc/hwcStress.cpp
ests/hwc/hwcTestLib.cpp
ests/hwc/hwcTestLib.h
bddd724b178b1263c16e41b564165fcd0e93ff83 26-Jul-2012 Jesse Hall <jessehall@google.com> Minimal changes to support multi-display HWC

Change-Id: I5efea78ac381c3e3118e6e92b508f336233ac319
ests/hwc/hwcColorEquiv.cpp
ests/hwc/hwcCommit.cpp
ests/hwc/hwcRects.cpp
ests/hwc/hwcStress.cpp
ests/hwc/hwcTestLib.cpp
ests/hwc/hwcTestLib.h
36b285eac98cccdb9394c14ae2e6ace9f3d90966 24-Jul-2012 Thomas Tafertshofer <tafertth@google.com> Fixed bug in opengl es binding generation

This fixes the glgen code generation for methods
which have a buffer arg that can be NULL.

Bug: 6845189
Change-Id: I5fb745b806601e5665f97bfd15fd865cd9c241ed
ools/glgen/src/JniCodeEmitter.java
493c4feb753760408a33a5bef29c0f9c0ea4fc3b 24-Jul-2012 Mathias Agopian <mathias@google.com> Merge "glgen stubs to fix bad methods in gles20 bindings"
9a82fe645d2c1358842f849f1a14250d1227bdea 24-Jul-2012 Jamie Gennis <jgennis@google.com> Merge "Update the EGL_ANDROID_fence_sync spec."
648654d741b445eab5b80b275d12ee0623afbcf3 20-Jul-2012 Jamie Gennis <jgennis@google.com> Update the EGL_ANDROID_fence_sync spec.

Change-Id: I26589e51c2023aed4da8a25a098b01804200ddc2
pecs/EGL_ANDROID_fence_sync.txt
a30cc7db8dba9f028333a8e1865006bf6d4f410d 28-Jun-2012 vijay gupta <vijayg@nvidia.com> EGL: do not use sparse files for shader

- Process is killed by system with SIGBUS signal if it writes
data to mapped sparse file on full filesystem.
- Allocate space using write() function instead of ftruncate()
to avoid creation of sparse files on full filesystem.
Catch write() errors to handle out-of-space case during allocation.

Bug: http://code.google.com/p/android/issues/detail?id=35376
Change-Id: Ifc366454f34e71a43a0973eda4f591a920ea3a14
Signed-off-by: Kirill Artamonov <kartamonov@nvidia.com>
ibs/EGL/egl_cache.cpp
55b4e553c8e6021cb65a9ac99857bfbf4d4f335d 20-Jul-2012 Thomas Tafertshofer <tafertth@google.com> glgen stubs to fix bad methods in gles20 bindings

this adds correct versions of the broken GLES20 methods
glGetShaderSource, glGetActiveAttrib and glGetActiveUniform.
the old broken methods are still there and need to be @hide later.

Bug: 6006380
Change-Id: Ide74242ada54b85459b459ae4f20cd26a23c7610
ools/glgen/stubs/gles11/glGetActiveAttrib.cpp
ools/glgen/stubs/gles11/glGetActiveAttrib.java
ools/glgen/stubs/gles11/glGetActiveAttrib.nativeReg
ools/glgen/stubs/gles11/glGetActiveUniform.cpp
ools/glgen/stubs/gles11/glGetActiveUniform.java
ools/glgen/stubs/gles11/glGetActiveUniform.nativeReg
ools/glgen/stubs/gles11/glGetShaderSource.cpp
ools/glgen/stubs/gles11/glGetShaderSource.java
ools/glgen/stubs/gles11/glGetShaderSource.nativeReg
df5cbd76224ea1facb7cfb499f4d522e55753774 19-Jul-2012 Mathias Agopian <mathias@google.com> Merge "OpenGL bindings fix for methods with iobuffer args"
c5ee93e5fe2de4390ee96fb3b14c41f6ca45f5a2 13-Jul-2012 Thomas Tafertshofer <tafertth@google.com> Remove @hide from the generated EGL 1.4 API

Change-Id: Ia5707533fcf1186ef648b8a4e25987f5e7e7dea3
ools/glgen/src/EGLCodeEmitter.java
ools/glgen/static/egl/EGLConfig.java
ools/glgen/static/egl/EGLContext.java
ools/glgen/static/egl/EGLDisplay.java
ools/glgen/static/egl/EGLObjectHandle.java
ools/glgen/static/egl/EGLSurface.java
ools/glgen/stubs/egl/EGL14Header.java-if
e58a97b5d77b59fad1572ba3c0572c7434e8e503 12-Jul-2012 Thomas Tafertshofer <tafertth@google.com> OpenGL bindings fix for methods with iobuffer args

This changes generation of the OpenGL bindings to prevent
crashes of methods with more then one nio buffer argument.

Bug: 6772416
Change-Id: I4eff25c2f568dea78a6ffd3e95ff4620ab4b3b7d
ools/glgen/src/JniCodeEmitter.java
ools/glgen/stubs/gles11/GLES10ExtcHeader.cpp
ools/glgen/stubs/gles11/GLES10cHeader.cpp
ools/glgen/stubs/gles11/GLES11ExtcHeader.cpp
ools/glgen/stubs/gles11/GLES11cHeader.cpp
ools/glgen/stubs/gles11/GLES20cHeader.cpp
ools/glgen/stubs/jsr239/GLCHeader.cpp
d5b1cda91ea5826e0fe8fa20d7daad57dc9ffd8b 23-Apr-2012 Martin Storsjo <martin@martin.st> libagl: Transform the vertex if using eye space lighting with point lights

This fixes lighting when using point lights, when eye space
lighting is used (which is the default).

Change-Id: I0cd0d2329893d6b5f8af3b1e595274c2076fc322
ibagl/light.cpp
66a42db8cbfba902f72f0ace5ac448ef4bfd3951 16-Jun-2012 Thomas Tafertshofer <tafertth@google.com> improve glgen tool to support EGL1.4

- added EGL1.4 bindings generation
- fixed bugs in GLES bindings

Bug: 6709865
Change-Id: I04ac63f652e1968a51eb833f47e00336ea449980
ools/glgen/gen
ools/glgen/specs/egl/EGL14.spec
ools/glgen/specs/egl/checks.spec
ools/glgen/src/CFunc.java
ools/glgen/src/CType.java
ools/glgen/src/EGLCodeEmitter.java
ools/glgen/src/GenerateEGL.java
ools/glgen/src/JType.java
ools/glgen/src/JniCodeEmitter.java
ools/glgen/static/egl/EGLConfig.java
ools/glgen/static/egl/EGLContext.java
ools/glgen/static/egl/EGLDisplay.java
ools/glgen/static/egl/EGLObjectHandle.java
ools/glgen/static/egl/EGLSurface.java
ools/glgen/stubs/egl/EGL14Header.java-if
ools/glgen/stubs/egl/EGL14cHeader.cpp
ools/glgen/stubs/egl/eglCreateWindowSurface.cpp
ools/glgen/stubs/egl/eglCreateWindowSurface.java
ools/glgen/stubs/egl/eglCreateWindowSurface.nativeReg
ools/glgen/stubs/egl/eglQueryString.cpp
ools/glgen/stubs/egl/eglQueryString.java
ools/glgen/stubs/egl/eglQueryString.nativeReg
ools/glgen/stubs/jsr239/GLImplHeader.java-impl
d8e812ce6fe9ae0388e98b08456e1d18b9498239 14-Jun-2012 Jamie Gennis <jgennis@google.com> Update ANativeWindow clients for sync

This change updates the uses of ANativeWindow to use the new ANW functions that
accept and return Sync HAL fence file descriptors.

Change-Id: I3ca648b6ac33f7360e86754f924aa072f95242f6
ibagl/Android.mk
ibagl/egl.cpp
5880cc573823148237eac9ab7bc586b8e4eb7160 06-Jun-2012 Jesse Hall <jessehall@google.com> Add support for HWC_DEVICE_API_VERSION_1_0

The acquire and release fences aren't yet used; this is just support
for the new version and temporary backwards compatibility for older
versions.

Change-Id: Ia5ccc05a97c86f649042b9a35e11042fa0187e84
ests/hwc/hwcColorEquiv.cpp
ests/hwc/hwcCommit.cpp
ests/hwc/hwcRects.cpp
ests/hwc/hwcStress.cpp
ests/hwc/hwcTestLib.cpp
ests/hwc/hwcTestLib.h
fe6102f07cc3fa8cfa2283e2c51e6d19f056ee7c 14-Jun-2012 Mathias Agopian <mathias@google.com> Merge "don't error out when eglTerminate()ing an already terminated display"
fe98127eaaf82686ba750001e2b771abece44e97 14-Jun-2012 Mathias Agopian <mathias@google.com> don't error out when eglTerminate()ing an already terminated display

so says the EGL specification, section 3.2

Change-Id: Ice60530f8f6e47b4e14e06d2ab8eba799a7688a6
ibs/EGL/egl_display.cpp
4b3e4ae04577d4fcce0aac40bfba4043c34047f6 12-Jun-2012 Mathias Agopian <mathias@google.com> am 1d2eb663: am 2d15fcab: Merge "reduce PB size from 2MB to 512KB" into jb-dev

* commit '1d2eb663ef5cf69aa852045c8a1c1807dfa7039e':
reduce PB size from 2MB to 512KB
3ef9e9671c224af82d2efec1a1e9a275fb9acf44 11-Jun-2012 Siva Velusamy <vsiva@google.com> gltrace: Fixup vertex attrib pointers only for GLES2

Change-Id: Ibf280c2a4372ce6e598e164eef0d72b7c0a6d1c2
ibs/GLES_trace/src/gltrace_context.cpp
ibs/GLES_trace/src/gltrace_context.h
ibs/GLES_trace/src/gltrace_fixup.cpp
d75f84d6410da934d1b1760fdc0d05d4ba1e8f35 06-Jun-2012 Mathias Agopian <mathias@google.com> reduce PB size from 2MB to 512KB

this allows us to enable h/w acceleration on low-end
devices while keeping memory usage down.

Bug: 6557760
Change-Id: I8af2de3038dc2579360b8b73aa452cb7a0e506a9
ibs/Android.mk
ibs/EGL/Loader.cpp
1401ad526c62afafe1747aed94b51c177e593cce 30-May-2012 Jamie Gennis <jgennis@google.com> Add the EGL_ANDROID_fence_sync spec.

Change-Id: I8c26e5caaf8d89a60a09a5308d55e336537b916e
pecs/EGL_ANDROID_fence_sync.txt
pecs/README
83e7c8c431ec8b578b6f778811837632e3798768 22-May-2012 Jesse Hall <jessehall@google.com> Implement the EGL_KHR_fence_sync in libagl

Implementing this in libagl allows us to start using it for
SurfaceTexture in emulator builds, which is necessary to avoid
corruption in the Browser when using the host-accelerated GL path.

Bug: 6515813
Change-Id: Icafba8687cb5d010d8d42b3866b298d2be984fc9
ibagl/egl.cpp
ibagl/state.cpp
cc2b1560e87369676a2d13f17bd1ff4021a91819 21-May-2012 Mathias Agopian <mathias@google.com> fix EGL_CLIENT_STRING

it should read OpenGL_ES (with an underscore)

Bug: 6529643

Change-Id: I7caf07793bffe5a8dcceaff496a222077486fc87
ibagl/egl.cpp
ibs/EGL/egl_display.cpp
2fdcc81ddfdbdfbbde63bd64e9ac9272b5417553 16-May-2012 Siva Velusamy <vsiva@google.com> gltrace: Allow receiving commands of length > 4

Currently, gltrace offers very few trace collection options. As a
result, these options are encoded in a single integer. The trace
control task simply receives integers and interprets them as
commands.

This patch changes the control protocol to first receive the
command length followed by the actual command itself. This allows
for future flexibility to provide enable other commands.

Change-Id: Id5f56c80a025bbbe7613ab4457e092732e7d9dc9
ibs/GLES_trace/src/gltrace_eglapi.cpp
ibs/GLES_trace/src/gltrace_transport.cpp
ibs/GLES_trace/src/gltrace_transport.h
201f3b2da572eb27b9d4b3131e6d8c3c92a13de8 04-May-2012 Jesse Hall <jessehall@google.com> Disable EGL hibernation due to jank

Hibernating EGL takes a long time (>100 ms) and blocks all other
rendering. During window animations, the outgoing activity begins
hibernation before the animation stops, causing visible stutter.
Hibernation is still available by setting 'BOARD_ALLOW_EGL_HIBERNATION
:= true' in the devices BoardConfig.mk

Change-Id: Iab4e00723a1adcd97481e81b2efdc821b3e9712f
ibs/Android.mk
ibs/EGL/egl_display.cpp
ibs/EGL/egl_display.h
c7d767ad57a25eeefbbfe2610396d800f04178ed 26-Apr-2012 Siva Velusamy <vsiva@google.com> gldebugger: Allow connections from root user

Change-Id: I26ce670ae93c43bd36843576e824a9d7acea644d
ibs/GLES_trace/src/gltrace_transport.cpp
4a8111bc8c7e659164f75dcfe9efcd33582f3669 20-Apr-2012 Mathias Agopian <mathias@google.com> Merge "Added an EGLTest for eglTerminate"
a0fef1c8bb22443402fb3aeda7ce70f7d5775b0a 17-Apr-2012 Jesse Hall <jessehall@google.com> Fix deadlock when cleaning objects in eglTerminate

When eglTerminate() is called with a window surface still exists, a
deadlock would occur since egl_display_t::terminate() holds a lock
while destroying the window surface, which calls
onWindowSurfaceDestroyed() which attempts to take the same lock.

This change refactors the hibernation code and data into a separate
object with its own lock, separate from the egl_display_t lock. This
avoids the deadlock and better encapsulates the hibernation logic.

The change also fixes a bug discovered incidentally while debugging:
hibernating after calling eglTerminate() succeeds, but will cause
awakens from subsequent eglInitialize() to fail. We will no longer
hibernate a terminated display.

Change-Id: If55e5bb603d4f8953babc439ffc8d8a60af103d9
ibs/EGL/egl_display.cpp
ibs/EGL/egl_display.h
1cbcb98a2528ea0d8ce34dc35513859c7ef957f3 17-Apr-2012 Daniel Lam <dalam@google.com> Added an EGLTest for eglTerminate

This tests if eglTerminate can succeed while objects
are leaked. Currently the test fails because of a deadlock.

Change-Id: Ibe26edfda28691284d0674e803e8d3114f3ce4c6
ests/EGLTest/Android.mk
ests/EGLTest/EGL_test.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
nclude/EGL/eglext.h
ibs/EGL/eglApi.cpp
ibs/EGL/egl_display.cpp
ibs/EGL/egl_display.h
ibs/EGL/egl_entries.in
ibs/EGL/egl_object.cpp
ibs/EGL/egl_object.h
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
ibs/EGL/egl.cpp
ibs/EGL/eglApi.cpp
ibs/EGL/egl_display.cpp
ibs/EGL/egl_display.h
ibs/EGL/egl_object.cpp
ibs/EGL/egl_object.h
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
ibs/EGL/eglApi.cpp
ibs/EGL/egl_display.cpp
ibs/EGL/egl_display.h
bb6755687192a33cb1c3a3397d44305ffc7e86cd 27-Mar-2012 Colin Cross <ccross@android.com> Merge "frameworks/native: prevent some opengl tests from building in pdk"
9f64c2a9e448f2b39369782c77add9c33e2c605d 27-Mar-2012 Colin Cross <ccross@android.com> frameworks/native: prevent some opengl tests from building in pdk

Some of the tests in frameworks/native/opengl/tests depend on java
or jni, and shouldn't be in frameworks/native. Prevent them from
building in pdk builds for now.

Change-Id: Ie7a012513dd03992ac1f093bd245aeca826c9cb9
ests/Android.mk
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
ibs/EGL/eglApi.cpp
ibs/EGL/egl_display.cpp
ibs/EGL/egl_display.h
b0e76f456afaada43ddb0968bb37145219f90cd3 23-Mar-2012 Mathias Agopian <mathias@google.com> remove dependency of EGL on ndk header

Change-Id: Ia6e489b5b4f028864bdf54923e81f604710dd8ad
nclude/EGL/eglplatform.h
8e2f3858d5a06dae5a543d9428278f59120f7f8c 16-Mar-2012 Siva Velusamy <vsiva@google.com> gltrace: Only accept connections from the shell.

Only accept incoming connections from the shell user.

Change-Id: Ibef1a796d794d45f73db59949b39cb1ce68542b4
ibs/GLES_trace/src/gltrace_transport.cpp
b13c78f8520ef5a96effdee977bbacb881236c66 09-Mar-2012 Siva Velusamy <vsiva@google.com> gltrace: Expose a function to set OpenGL trace level.

This patch adds a function setGlDebugLevel() to libEGL to enable
GL tracing. This will be used by the Java layer to add an option
to "am start" that can enable tracing for a particular application.

Change-Id: Ie1dbdd550f502df8633553595cb33ee9d9ae44e1
ibs/EGL/egl.cpp
ibs/EGL/egl_display.cpp
373c2b28692b5454c42ac286aaae8483d6921188 08-Mar-2012 Mathias Agopian <mathias@google.com> fix include path

Change-Id: I84adf53594cd4083a4a8ab475f175abb7414cda5
ests/EGLTest/Android.mk
2178dcf149797a4d20a2d357495f24532d5ab8e0 06-Mar-2012 Siva Velusamy <vsiva@google.com> Merge "gltrace: Send vertex attribute data after glDraw() call."
622cfadc8f0d294f875151fe1d8985e0553795ea 05-Mar-2012 Mathias Agopian <mathias@google.com> fixup include paths

- remove unneeded include deps
- remove some hardcoded include paths

Change-Id: Ifae0e2b2d738e0f94f8525c45be78f4227ce1673
ests/angeles/Android.mk
ests/fillrate/Android.mk
ests/filter/Android.mk
ests/finish/Android.mk
ests/gl2_basic/Android.mk
ests/gl2_copyTexImage/Android.mk
ests/gl2_yuvtex/Android.mk
ests/gl_basic/Android.mk
ests/gl_perf/Android.mk
ests/gl_yuvtex/Android.mk
ests/hwc/Android.mk
ests/hwc/hwcCommit.cpp
ests/hwc/hwcRects.cpp
ests/hwc/hwcStress.cpp
ests/hwc/hwcTestLib.cpp
ests/lib/Android.mk
ests/linetex/Android.mk
ests/swapinterval/Android.mk
ests/textures/Android.mk
ests/tritex/Android.mk
50129e4ae2777dfbe0738f0f69b17f4d8f9400e2 29-Feb-2012 Siva Velusamy <vsiva@google.com> gltrace: Send vertex attribute data after glDraw() call.

This patch enables tracing of vertex attribute data that
is specified using glVertexAttribPointer().

At the time the glVertexAttribPointer() call is made, we
only receive a pointer in client space, without any indication
of the size (# of attributes). This size is known only at
the time of the glDraw() call.

This patch generates a new message glVertexAttribPointerData()
when a draw call is issued that contains the vertex attribute
data.

A glDrawArrays() call directly gives the size of data to copy.
A glDrawElements() call gives the indices to copy. In such a
case, all data between the min & max indices drawn are copied
and sent to the host. To support glDrawElements() with an
element array buffer, this patch also adds state that maintains
a copy of all element array buffers.

Change-Id: I434da794a0aa9ada8e7474e219ffb1d79b183ecf
ibs/GLES_trace/dev.make
ibs/GLES_trace/gltrace.proto
ibs/GLES_trace/src/gltrace.pb.cpp
ibs/GLES_trace/src/gltrace.pb.h
ibs/GLES_trace/src/gltrace_context.cpp
ibs/GLES_trace/src/gltrace_context.h
ibs/GLES_trace/src/gltrace_fixup.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
ibs/EGL/eglApi.cpp
864d2afbb3b8ffa17b408660624b384b518ef752 26-Feb-2012 Mathias Agopian <mathias@google.com> libagl shouldn't export anything

Change-Id: Ia823dbc56aab2a0b8a6063df4348fe6baac124c6
ibagl/context.h
640579b736a75b29aeca8948a6fdc09307e935da 27-Feb-2012 Siva Velusamy <vsiva@google.com> Merge "gltrace: Make code 64-bit safe."
9801142afbe3d906259b634ef3bc8bebdafe0083 27-Feb-2012 Siva Velusamy <vsiva@google.com> gltrace: Make code 64-bit safe.

Currently, the trace API passes the pointers that need to be
patched up via 32 bit integers. Such code will not be 64 bit safe.
This patch sends all pointers in a separate array of pointers
for the fixup calls to read from.

Change-Id: If975333f11a6f6f9a74fba57de328affaed452a5
ibs/GLES_trace/src/gltrace_api.cpp
ibs/GLES_trace/src/gltrace_fixup.cpp
ibs/GLES_trace/src/gltrace_fixup.h
ibs/GLES_trace/tools/genapi.py
0128a6b819bd4e1c162f00a5501b31d359e79f29 27-Feb-2012 Siva Velusamy <vsiva@google.com> Merge "gltrace: attach buffer data sent with glBufferData"
5f2165f9455d4893b581b73a67c5431f4344b47e 25-Feb-2012 Mathias Agopian <mathias@google.com> remove dependency on android_native{s_priv|buffer}.h

Change-Id: Ie4b95f7061c240f37c504414259f92d72c4ffc89
ibagl/TextureObjectManager.cpp
ibagl/egl.cpp
ibagl/texture.cpp
870b8aa15cb5c722b5d8eb7726eaa5f1a7c23d69 25-Feb-2012 Mathias Agopian <mathias@google.com> remove libui dependency on libEGL

Change-Id: I1194f04085637d5c384e134967249430cc43b6ee
ests/angeles/Android.mk
ests/angeles/app-linux.cpp
ests/angeles/gpustate.c
ests/fillrate/Android.mk
ests/fillrate/fillrate.cpp
ests/filter/Android.mk
ests/filter/filter.cpp
ests/finish/Android.mk
ests/finish/finish.cpp
ests/gl2_basic/Android.mk
ests/gl2_basic/gl2_basic.cpp
ests/gl2_copyTexImage/Android.mk
ests/gl2_copyTexImage/gl2_copyTexImage.cpp
ests/gl2_yuvtex/Android.mk
ests/gl2_yuvtex/gl2_yuvtex.cpp
ests/gl_basic/Android.mk
ests/gl_basic/gl_basic.cpp
ests/gl_perf/Android.mk
ests/gl_perf/gl2_perf.cpp
ests/gl_yuvtex/Android.mk
ests/gl_yuvtex/gl_yuvtex.cpp
ests/hwc/hwcColorEquiv.cpp
ests/hwc/hwcCommit.cpp
ests/hwc/hwcRects.cpp
ests/hwc/hwcStress.cpp
ests/hwc/hwcTestLib.cpp
ests/hwc/hwcTestLib.h
ests/include/EGLUtils.h
ests/include/glTestLib.h
ests/lib/glTestLib.cpp
ests/linetex/Android.mk
ests/linetex/linetex.cpp
ests/swapinterval/Android.mk
ests/swapinterval/swapinterval.cpp
ests/textures/Android.mk
ests/textures/textures.cpp
ests/tritex/Android.mk
ests/tritex/tritex.cpp
9291da97cbb5f8d3ae5eb9e8d5415ef85916d982 23-Feb-2012 Siva Velusamy <vsiva@google.com> gltrace: attach buffer data sent with glBufferData

Attach the buffer that is passed with glBufferData
and glBufferSubData to the proto buf.

Change-Id: I1b4c1172d405736b06cb0a356a6e241e1d60c4d5
ibs/GLES_trace/src/gltrace_fixup.cpp
05df4504e57657994a89e424b6881ee26d0f313c 17-Feb-2012 Siva Velusamy <vsiva@google.com> gltrace: Trace thread time and wall clock time.

For each gl function, trace both the thread and wall clock
times.

Change-Id: I32b6caa67fa50bf915dab89b3c5021ee82e28d55
ibs/GLES_trace/TODO.txt
ibs/GLES_trace/gltrace.proto
ibs/GLES_trace/src/gltrace.pb.cpp
ibs/GLES_trace/src/gltrace.pb.h
ibs/GLES_trace/src/gltrace_api.cpp
ibs/GLES_trace/src/gltrace_fixup.cpp
ibs/GLES_trace/src/gltrace_fixup.h
ibs/GLES_trace/tools/genapi.py
3ac9473cb94b575427e1587911adb7d4b4ba6151 15-Feb-2012 Mathias Agopian <mathias@google.com> Merge "Don't wrap EGLImageKHR and EGLSyncKHR anymore"
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
ibs/EGL/egl.cpp
ibs/EGL/eglApi.cpp
ibs/EGL/egl_object.h
ibs/GLES2/gl2.cpp
ibs/GLES2/gl2ext_api.in
ibs/GLES_CM/gl.cpp
ibs/GLES_CM/glext_api.in
ibs/egl_impl.h
ibs/tools/glapigen
fefddbc181c2b674868c6cfbf64a9b02df7175c2 15-Feb-2012 Siva Velusamy <vsiva@google.com> Merge "gltrace: Patch up all glUniform*() calls."
88e8e5a3f16f0003bd2b43142241b8e1a9a46abe 15-Feb-2012 Siva Velusamy <vsiva@google.com> gltrace: Patch up all glUniform*() calls.

This patch updates the trace information for all glUniform*() calls
to have the right data (the actual uniforms that are passed).

In addition, as soon as a program is linked, information regarding
all the active attributes and uniforms is passed on to the debugger.

Change-Id: Icfbc6722789b42c413a845cf546577fa6de7da2b
ibs/GLES_trace/src/gltrace_fixup.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
ibs/EGL/Loader.cpp
ibs/EGL/egl.cpp
ibs/EGL/eglApi.cpp
ibs/EGL/egl_display.cpp
ibs/EGL/egl_display.h
ibs/EGL/egldefs.h
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
ibs/EGL/Loader.cpp
ibs/EGL/Loader.h
ibs/EGL/egl.cpp
ibs/EGL/eglApi.cpp
ibs/EGL/egl_cache.cpp
ibs/EGL/egl_display.cpp
ibs/EGL/egl_display.h
ibs/EGL/egl_object.cpp
ibs/EGL/egl_object.h
ibs/EGL/egldefs.h
a4b2c041828d1074dca3b999407e7dd85568c5aa 04-Feb-2012 Mathias Agopian <mathias@google.com> fix a dead-lock in eglMakeCurrent

this was introduced in a recent change. eglMakeCurrent can
end up calling eglDestroyImageKHR via ANativewWindow::disconnect
when the consumer is in the same process.

we make sure we don't hold the lock while this is happening.

Change-Id: Id17fe4fd76eecf5f962cefb9aa32be41fc1b042d
ibs/EGL/egl_display.cpp
ibs/EGL/egl_display.h
a7167f364737c12e621d836f470cf328c6e111cd 01-Feb-2012 Siva Velusamy <vsiva@google.com> gltrace: fixup Push & Insert Marker calls

Change-Id: I58ced7225fac79ec636a65da4883614a5dce6dff
ibs/GLES_trace/src/gltrace_fixup.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
ibs/EGL/eglApi.cpp
ibs/EGL/egl_display.cpp
ibs/EGL/egl_display.h
0d6aa287d1832da5e817bd778731f2f2e7902f90 31-Jan-2012 Mathias Agopian <mathias@google.com> Merge "add all needed GL extension wrappers"
a6d86e5ea748a7bcde4ff30b0b1f882dca36a8f3 31-Jan-2012 Mathias Agopian <mathias@google.com> add all needed GL extension wrappers

when increasing MAX_NUMBER_OF_GL_EXTENSIONS to 256
we also needed to create all the corresponding wrappers.

Change-Id: I90edaaf0885ccdfab48e7a1396bcf88e039cfb25
ibs/EGL/getProcAddress.cpp
9e2464c4b96d8935ee2ac1e00896f75cd7a20e0f 31-Jan-2012 Mathias Agopian <mathias@google.com> Merge "add support for GL_EXT_debug_marker"
b8c39145475391a134c052533292332516083dec 30-Jan-2012 Siva Velusamy <vsiva@google.com> Merge "gltrace: Use Unix Domain Socket rather than INET Socket"
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
ibs/EGL/Loader.cpp
ibs/EGL/egl.cpp
ibs/EGL/eglApi.cpp
ibs/EGL/egl_object.cpp
ibs/EGL/egl_object.h
ibs/EGL/egldefs.h
ibs/GLES2/gl2.cpp
ibs/GLES2/gl2_api.in
ibs/GLES_CM/gl.cpp
ibs/GLES_CM/gl_api.in
ibs/egl_impl.h
ibs/tools/glapigen
453851f3a00d198374395581275a9ae7fa7aa4bf 30-Jan-2012 Mathias Agopian <mathias@google.com> Merge "update GLES headers and add support for corresponding new extensions."
31272606149d83437a097800074b21e9e6a205ad 28-Jan-2012 Mathias Agopian <mathias@google.com> update GLES headers and add support for corresponding new extensions.

Change-Id: I554d9659113b4721b748ee5c1a3b1ca82b11d75e
nclude/GLES/glext.h
nclude/GLES2/gl2ext.h
ibs/GLES2/gl2ext_api.in
ibs/GLES_CM/glext_api.in
ibs/GLES_trace/gltrace.proto
ibs/GLES_trace/src/gltrace.pb.cpp
ibs/GLES_trace/src/gltrace.pb.h
ibs/GLES_trace/src/gltrace_api.cpp
ibs/GLES_trace/src/gltrace_api.h
ibs/GLES_trace/tools/genapi.py
ibs/GLES_trace/tools/testgenapi.py
ibs/entries.in
ibs/enums.in
ibs/hooks.h
ibs/trace.in
cf701aa9fe3067f18569320d9a70eac25aaf7b20 29-Jan-2012 Mathias Agopian <mathias@google.com> remove unused code

Change-Id: If900fcc50f9ffc424e270cb6063b16a2d7bc04d3
ibs/GLES2_dbg/generate_api_cpp.py
ibs/GLES2_dbg/generate_caller_cpp.py
ibs/GLES2_dbg/generate_debug_in.py
ibs/GLES2_dbg/generate_debugger_message_proto.py
ibs/GLES2_dbg/gl2_api_annotated.in
ibs/GLES2_dbg/src/api.cpp
ibs/GLES2_dbg/src/api.h
ibs/GLES2_dbg/src/caller.cpp
ibs/GLES2_dbg/src/caller.h
ibs/GLES2_dbg/src/dbgcontext.cpp
ibs/GLES2_dbg/src/debugger_message.pb.cpp
ibs/GLES2_dbg/src/debugger_message.pb.h
ibs/GLES2_dbg/src/egl.cpp
ibs/GLES2_dbg/src/header.h
ibs/GLES2_dbg/src/server.cpp
ibs/GLES2_dbg/src/vertex.cpp
ibs/GLES2_dbg/test/Android.mk
ibs/GLES2_dbg/test/test_main.cpp
ibs/GLES2_dbg/test/test_server.cpp
ibs/GLES2_dbg/test/test_socket.cpp
0832fb6407d1c85cba20a8cc0aff828db3c134de 27-Jan-2012 Siva Velusamy <vsiva@google.com> gltrace: Use Unix Domain Socket rather than INET Socket

Export trace information via abstract Unix Domain Socket (UDS).
This allows tracing of applications without INTERNET permission,
and should be faster as well.

Change-Id: Iabb67fcc2bc2484afd8128af07dca723b81c52c6
ibs/GLES_trace/src/gltrace_eglapi.cpp
ibs/GLES_trace/src/gltrace_transport.cpp
ibs/GLES_trace/src/gltrace_transport.h
e8696a40e09b24b634214684d18526187b316a2f 16-Jan-2012 Jamie Gennis <jgennis@google.com> hack up frame latency measurement

Change-Id: I6d9a466a23285304f0e229a5649815636ab5d6af
ibs/EGL/eglApi.cpp
34c726efb54a941a97a6d7252e7c1442d2eded56 17-Jan-2012 Siva Velusamy <vsiva@google.com> gltrace: fixup data for glTexSubImage2D & glDeleteBuffers

Change-Id: I1c1deb8c6026ecf1fa0ed5287ccf601416eba6dc
ibs/GLES_trace/src/gltrace_fixup.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
ibagl/egl.cpp
ibagl/mipmap.cpp
ibs/EGL/Loader.cpp
ibs/EGL/egl.cpp
ibs/EGL/eglApi.cpp
ibs/EGL/egl_cache.cpp
ibs/EGL/egl_object.cpp
ibs/EGL/egl_object.h
ibs/EGL/egl_tls.cpp
ibs/GLES2_dbg/src/dbgcontext.cpp
ibs/GLES_CM/gl.cpp
ibs/GLES_trace/src/gltrace_eglapi.cpp
ibs/GLES_trace/src/gltrace_fixup.cpp
ibs/GLES_trace/src/gltrace_transport.cpp
ests/gl2_jni/jni/gl_code.cpp
ests/gl_perf/fill_common.cpp
ests/gl_perfapp/jni/gl_code.cpp
ests/gldual/jni/gl_code.cpp
32397c1cd3327905173b36baa6fd1c579bc328ff 06-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/157065

Bug: 5449033
Change-Id: I00a4b904f9449e6f93b7fd35eac28640d7929e69
ibagl/TextureObjectManager.cpp
ibs/EGL/egl_cache.cpp
ibs/EGL/egl_display.cpp
ibs/EGL/egl_object.h
c267bab3d1c7980a03541283e88c0b6df378b826 05-Jan-2012 Steve Block <steveblock@google.com> Merge "Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGE"
3f194e6e3a62cbb846e8948eac8e4ce9aa7444a6 03-Jan-2012 Siva Velusamy <vsiva@google.com> gltrace: add user settings to control data captured.

Currently users do not have control over the amount of data
captured during tracing. This patch adds 3 settings that users
can enable/disable at runtime:
- capture framebuffer on eglSwap() calls
- capture framebuffer on glDraw*() calls
- capture texture data passed to glTexImage*() calls
Disabling these options when not needed signficantly decreases
the size of the trace file, and reduces performance overhead for
the running application.

These settings are stored in the per process GLTraceState.
A separate thread listens for commands from the host, and updates
the state based on the user commands.

Change-Id: Ic4518b94e8bcbc5330ac7138153721caa98b365d
ibs/GLES_trace/src/gltrace_context.cpp
ibs/GLES_trace/src/gltrace_context.h
ibs/GLES_trace/src/gltrace_egl.cpp
ibs/GLES_trace/src/gltrace_eglapi.cpp
ibs/GLES_trace/src/gltrace_fixup.cpp
a19954ab377b46dbcb9cbe8a6ab6d458f2e32bca 04-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/156801

Bug: 5449033
Change-Id: Ib08fe86d23db91ee153e9f91a99a35c42b9208ea
ests/gl2_jni/jni/gl_code.cpp
ests/gl_jni/jni/gl_code.cpp
ests/gl_perf/fill_common.cpp
ests/gl_perfapp/jni/gl_code.cpp
ests/gldual/jni/gl_code.cpp
56ac6ff9bdc3c117e820c5a361ab45049c8b03f8 16-Dec-2011 Siva Velusamy <vsiva@google.com> gltrace: add start time & duration to each traced call.

Change-Id: Idfec8f715f6000594b6381cbfdee9fdf6d89f484
ibs/GLES_trace/gltrace.proto
ibs/GLES_trace/src/gltrace.pb.cpp
ibs/GLES_trace/src/gltrace.pb.h
ibs/GLES_trace/src/gltrace_api.cpp
ibs/GLES_trace/src/gltrace_api.h
ibs/GLES_trace/src/gltrace_egl.cpp
ibs/GLES_trace/src/gltrace_fixup.cpp
ibs/GLES_trace/src/gltrace_fixup.h
ibs/GLES_trace/tools/genapi.py
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
ibs/EGL/egl.cpp
ibs/EGL/eglApi.cpp
ibs/GLES_trace/src/gltrace_api.cpp
ibs/GLES_trace/src/gltrace_context.cpp
ibs/GLES_trace/src/gltrace_context.h
ibs/GLES_trace/src/gltrace_egl.cpp
ibs/GLES_trace/src/gltrace_egl.h
ibs/GLES_trace/src/gltrace_eglapi.cpp
ibs/GLES_trace/src/gltrace_fixup.cpp
ibs/GLES_trace/src/gltrace_fixup.h
ibs/GLES_trace/src/gltrace_transport.cpp
ibs/GLES_trace/src/gltrace_transport.h
ibs/GLES_trace/tools/genapi.py
ibs/glestrace.h
59511ad1cbdb13509f5c249a5193e0180e0dbf0c 04-Jan-2012 Siva Velusamy <vsiva@google.com> Merge "gltrace: attach contents of the appropriate framebuffer"
9d4536835248525f32f1504a3d28d5bbfa0a2910 20-Dec-2011 Steve Block <steveblock@google.com> Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/156016

Bug: 5449033
Change-Id: I4c4e33bb9df3e39e11cd985e193e6fbab4635298
ibagl/Tokenizer.cpp
ibagl/egl.cpp
ibagl/matrix.cpp
ibs/EGL/Loader.cpp
ibs/EGL/egl.cpp
ibs/EGL/egl_display.cpp
ibs/EGL/trace.cpp
ibs/GLES2/gl2.cpp
ibs/GLES2_dbg/src/caller.cpp
ibs/GLES2_dbg/src/dbgcontext.cpp
ibs/GLES2_dbg/src/header.h
ibs/GLES2_dbg/src/server.cpp
ibs/GLES2_dbg/src/vertex.cpp
ibs/GLES_trace/src/gltrace_transport.cpp
2b93f0bf448160b002dec10c5bb1c9985a5950e6 09-Dec-2011 Jack Palevich <jackpal@google.com> Fix convert8To4, convert8To5

See b/5680952 "Compilation warnings in etc1.cpp" for discussion.

Fixes b/5680952

Change-Id: I0af6ba5ed5e60f3ed7a6a28eba3b09504fee1a3f
ibs/ETC1/etc1.cpp
f132ac35d82a2960542619fb3fb91d22ab256dc7 08-Dec-2011 Siva Velusamy <vsiva@google.com> gltrace: attach contents of the appropriate framebuffer

Currently, gltrace always attaches the contents of the currently
bound framebuffer. This patch changes it to attach the contents
of FB0 on eglSwap, and the currently bound framebuffer for the
glDraw* calls.

Change-Id: Ice0520d45d75638fe61cd91149df773074216510
ibs/GLES_trace/src/gltrace_context.cpp
ibs/GLES_trace/src/gltrace_context.h
ibs/GLES_trace/src/gltrace_egl.cpp
ibs/GLES_trace/src/gltrace_fixup.cpp
ibs/GLES_trace/src/gltrace_fixup.h
a8cfde8897c840ce6a491a054ade806b41df2a70 05-Dec-2011 Siva Velusamy <vsiva@google.com> gltrace: Make framebuffer contents an optional message.

Currently, the contents of the FrameBuffer are sent by encoding
them as the last argument to the function call. As a result, it is
not possible to know if a message has the framebuffer encoded in it
without looking at the function type.

This patch modifies the protobuf definition to include a separate
optional framebuffer message.

Change-Id: Ief3a6950052d927ca0743e729457435b48c25a92
ibs/GLES_trace/gltrace.proto
ibs/GLES_trace/src/gltrace.pb.cpp
ibs/GLES_trace/src/gltrace.pb.h
ibs/GLES_trace/src/gltrace_fixup.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
ibs/Android.mk
ibs/EGL/Loader.cpp
ibs/EGL/egl.cpp
ibs/EGL/eglApi.cpp
ibs/EGL/egl_tls.cpp
ibs/EGL/egl_tls.h
ibs/EGL/trace.cpp
ibs/GLES2_dbg/Android.mk
ibs/GLES_trace/.gitignore
ibs/GLES_trace/Android.mk
ibs/GLES_trace/DESIGN.txt
ibs/GLES_trace/TODO.txt
ibs/GLES_trace/dev.make
ibs/GLES_trace/gltrace.proto
ibs/GLES_trace/src/gltrace.pb.cpp
ibs/GLES_trace/src/gltrace.pb.h
ibs/GLES_trace/src/gltrace_api.cpp
ibs/GLES_trace/src/gltrace_api.h
ibs/GLES_trace/src/gltrace_context.cpp
ibs/GLES_trace/src/gltrace_context.h
ibs/GLES_trace/src/gltrace_egl.cpp
ibs/GLES_trace/src/gltrace_egl.h
ibs/GLES_trace/src/gltrace_eglapi.cpp
ibs/GLES_trace/src/gltrace_fixup.cpp
ibs/GLES_trace/src/gltrace_fixup.h
ibs/GLES_trace/src/gltrace_hooks.cpp
ibs/GLES_trace/src/gltrace_hooks.h
ibs/GLES_trace/src/gltrace_transport.cpp
ibs/GLES_trace/src/gltrace_transport.h
ibs/GLES_trace/tools/genapi.py
ibs/GLES_trace/tools/testgenapi.py
ibs/glestrace.h
ibs/glesv2dbg.h
ibs/glesv2dbg_functions.h
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
ibs/EGL/eglApi.cpp
pecs/README
e011aa2b0f8c13bb821505b49c70b7e9a5e2f29d 22-Nov-2011 Jamie Gennis <jgennis@google.com> Merge "EGL: Use cache sizes defined in the BoardConfig" into ics-mr1
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
ibs/EGL/eglApi.cpp
89c1d61c16c786ecfd258a43fed24bcf8f8456ed 20-Nov-2011 Jamie Gennis <jgennis@google.com> EGL: Use cache sizes defined in the BoardConfig

This change introduces two new BoardConfig variables to control the size
limits of the EGL blob cache. MAX_EGL_CACHE_ENTRY_SIZE is the size
limit for values inserted into the cache, and MAX_EGL_CACHE_SIZE is the
size limit for all entries in the entire cache (including both keys and
values). If either of these BoardConfig variables are not defined then
a default size limit is used instead.

Change-Id: I6703d93f966b6389c6499f23d841e42339f9c9d7
ibs/Android.mk
ibs/EGL/egl_cache.cpp
0f83b2f976b5974546182b1b8483c9956aee8496 18-Nov-2011 Jamie Gennis <jgennis@google.com> Merge "EGL: fix blob cache extension detection" into ics-mr1
11f8fde84d594b9f78548d0d0ca385d8747150fe 18-Nov-2011 Jamie Gennis <jgennis@google.com> Merge "GLES: add image external enums" into ics-mr1
9f43009177520c89ca03789993634a3689f41d10 17-Nov-2011 Jamie Gennis <jgennis@google.com> EGL: fix blob cache extension detection

Bug: 5474671
Change-Id: I6359063ccf23f076fc84c80b8a2f6731a65eef18
ibs/EGL/egl_cache.cpp
f3ae82d8134e7f5a2f0432ef809569bfa418883b 17-Nov-2011 Mathias Agopian <mathias@google.com> be a bit more defensive when parsing extension strings

hopefully this will fix a crash in the emulator.

Bug: 5624674
Change-Id: I96586e29ea20efd73c4ad50870df5b7368bf3c3b
ibs/EGL/egl_display.cpp
9c6c6992e010672b559a0da19d5079a6da2509d7 15-Nov-2011 Jamie Gennis <jgennis@google.com> GLES: add image external enums

This change adds Java definitions for the enums of the
GL_OES_EGL_image_external OpenGL ES extension.

Bug: 3482193
Change-Id: Ib50326f8be9b9cc9021753855c3846ddcdc5eaa2
ools/glgen/stubs/gles11/GLES11ExtHeader.java-if
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
nclude/EGL/eglext.h
ibagl/egl.cpp
ibagl2/Android.mk
ibagl2/README
ibagl2/libagl2.project
ibagl2/src/api.cpp
ibagl2/src/egl.cpp
ibagl2/src/get.cpp
ibagl2/src/gles2context.h
ibagl2/src/shader.cpp
ibagl2/src/state.cpp
ibagl2/src/texture.cpp
ibagl2/src/vertex.cpp
ibs/EGL/eglApi.cpp
ibs/EGL/egl_display.cpp
ibs/EGL/egl_display.h
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
ibs/EGL/egl.cpp
ibs/EGL/eglApi.cpp
ibs/EGL/egl_display.cpp
ibs/EGL/egl_display.h
ibs/EGL/egl_object.cpp
ibs/EGL/egl_object.h
7cd230c508aa0935068020726685c66498be0e64 15-Nov-2011 Jamie Gennis <jgennis@google.com> Merge "EGL: add the ANDROID suffix to the blob cache ext" into ics-mr1
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
nclude/EGL/eglext.h
ibs/EGL/eglApi.cpp
ibs/EGL/egl_cache.cpp
ibs/EGL/egl_cache.h
pecs/EGL_ANDROID_blob_cache.txt
c58b9999e1ccfee50b8248a2f0bc9a8ed39ed902 11-Nov-2011 Romain Guy <romainguy@google.com> Merge "Terminate EGL when an app goes in the background" into ics-mr1
4725e2ca8050250813afcdcac1330244c6e0f5ae 10-Nov-2011 Romain Guy <romainguy@google.com> Terminate EGL when an app goes in the background

This does not happen on high end gfx devices. This happens
only if only one EGL context is initialized in the current
process.

Change-Id: Ibd1737efdf84eef8a84108b05795440d1ae9964e
ibs/EGL/egl_display.h
99c3d700d2d0886fe27fa961c89dae7c6c3b8195 09-Nov-2011 Jamie Gennis <jgennis@google.com> EGL: add deferred saving of the cache

This change causes any insertions into the EGL cache to trigger an
attempt to save the cache contents to disk. The save operation is
deferred to allow multiple cache insertions to be batched up.

Change-Id: I6cfec9c0dbbef94d3f8880860e2a365dccc296c7
ibs/EGL/egl_cache.cpp
ibs/EGL/egl_cache.h
98c6383580f94bb7ff9cc9a7cc24d8b8519e484a 08-Nov-2011 Jamie Gennis <jgennis@google.com> EGL: implement loading and saving the cache

This change adds support for saving and loading the contents of the EGL
cache. It also adds some simple tests for the EGL cache.

Change-Id: I18e5e789e0897a0783d29d1c1e64d26de2dd44c4
ibs/EGL/egl_cache.cpp
ibs/EGL/egl_cache.h
ibs/EGL/egl_display.h
ests/EGLTest/Android.mk
ests/EGLTest/egl_cache_test.cpp
766010858ea7696d64f1b559413670bdd8627595 06-Nov-2011 Jamie Gennis <jgennis@google.com> EGL: use an in-memory the blob cache

This change makes the makes the stub EGL_ANDROID_blob_cache callbacks
actually use a BlobCache object.

Bug: 5474671
Change-Id: I5cbaae2dea3aad2fe306c9f57029c3f215a0863a
nclude/EGL/eglext.h
ibs/EGL/egl_cache.cpp
ibs/EGL/egl_cache.h
ibs/EGL/egl_display.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
ibs/Android.mk
ibs/EGL/eglApi.cpp
ibs/EGL/egl_cache.cpp
ibs/EGL/egl_cache.h
ibs/EGL/egl_display.cpp
0e8bbee5775d81c7bbc479b995496cac9238559f 06-Oct-2011 Mathias Agopian <mathias@google.com> don't log EGL errors due to unimplemented proprietary extensions

Change-Id: Icfc33d4f55d1e7fb49390ce0921ba37a438c9fc2
ibs/EGL/eglApi.cpp
ibs/EGL/egl_tls.cpp
ibs/EGL/egl_tls.h
1ac8b72f4f231d3c786ddeb1e4ca7385d5650d11 14-Sep-2011 Mathias Agopian <mathias@google.com> fix EGL debugger

always use GL_RGBA, GL_UNSIGNED_BYTE for screen capture
and make sure to handle GL_BGRA_EXT used on some gpu.

Change-Id: If9c973677fec8a5c4e72be22e7ef7d4bf5f008f4
ibs/GLES2_dbg/Android.mk
ibs/GLES2_dbg/src/dbgcontext.cpp
ibs/GLES2_dbg/src/egl.cpp
ibs/GLES2_dbg/src/header.h
ibs/GLES2_dbg/src/vertex.cpp
ibs/GLES2_dbg/test/test_main.cpp
ibs/GLES2_dbg/test/test_server.cpp
ibs/GLES2_dbg/test/test_socket.cpp
06649fece4d97a89c6b197a570b6012e9ad9d228 16-Sep-2011 Mathias Agopian <mathias@google.com> cleanup: fix typos in logs

Change-Id: Ib5744564a873ea2b84100174673dc4d3ae109fcf
ibs/EGL/egl_object.h
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>
nclude/EGL/eglext.h
ibs/EGL/eglApi.cpp
ibs/EGL/egl_entries.in
ecfe091af3e3e5d7165fe64a5f9c84c4576a6c06 07-Sep-2011 Mathias Agopian <mathias@google.com> add an option to EGL to dump stack traces on errors

enable by setting debug.egl.callstack to 1

Change-Id: I7fad9ce71b4c4c5ece97d4f9d139348eab742a3c
ibs/EGL/egl.cpp
ibs/EGL/egl_tls.cpp
80b30c24ffc0f67b87d7a6b29f616d1c521d40ae 26-Aug-2011 David 'Digit' Turner <digit@android.com> opengl: EGL: special case for GLES emulation

This patch modifies the library loaded in libEGL.so to
handle the case of GLES emulation as follows:

- if we detect that we run inside the emulator, check the
GPU emulation status through ro.kernel.qemu.gles, which
will be set to 1 if supported, or 0 otherwise.

When trying to run on an older version of the emulator,
the kernel parameter will not be defined at all.

- if GPU emulation is supported, use egl.cfg as usual.
It will contain a line like "0 0 emulation" that will
load libEGL_android.so appropriately.

- nothing is changed if we don't run inside the emulator.

NOTE: Ideally, we would modify libEGL_emulation.so to
redirect all calls to libEGL_android.so in this case.

However, this turns out to be extremely tedious to implement
(too many functions with different signatures).

As such, it is much simpler to make the check before
loading the library.

Change-Id: I9930bc168d9013cc8700feedc57b979384467c37
ibs/EGL/Loader.cpp
a45c5479104c2bf4ecc4b797a1a51134e433f023 02-Sep-2011 Mathias Agopian <mathias@google.com> fix another bug that prevented the gl debugger to work

we didn't set the debug tls properly

Change-Id: Iad9cc5b5d230a8eb7f680c4b70925c5e43e73051
ibs/GLES2_dbg/src/dbgcontext.cpp
ccfa5c3364a88b0acdbe555b210bd2bc9feb6285 01-Sep-2011 Mathias Agopian <mathias@google.com> this should fix the GL debugger

we were checking against to the wrong variable

Change-Id: Iff3f5ab2d6ba5ac0d3d8161011b38e673ee7e67b
ibs/EGL/egl.cpp
5fecea776a5f093c21ac1a0ad3552b847d4be23e 26-Aug-2011 Mathias Agopian <mathias@google.com> fix logging of eglMakeCurrent() errors

Change-Id: Ie22cabff822a8fb3186f082491234b9503b431c3
ibs/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
ibs/EGL/eglApi.cpp
ibs/EGL/egl_object.h
3a0cae8e5f3881cb1bcb02ab7fa4cbacf5b55525 19-Aug-2011 Mathias Agopian <mathias@google.com> implement EGL_TEXTURE_EXTERNAL_OES in libagl

this allows the emulator to display some graphics

Change-Id: Ib4671ad70b8df598d02307f2b9c5b843421cea25
ibagl/state.cpp
ibagl/texture.cpp
7dddeac97122170f71151dfdd7934c4d207c679b 15-Aug-2011 Mathias Agopian <mathias@google.com> fix test-opengl-swapinterval

EGLConfig selection should now work on any device

Change-Id: I4d4580e891d1faf817fa853838406fb49d12e50a
ests/swapinterval/swapinterval.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
ibs/EGL/eglApi.cpp
868a0aff31a5cccd285117131219f572fbf07362 20-Jul-2011 Romain Guy <romainguy@google.com> Add new OpenGL test

Change-Id: Icab48d71945bf94dd53f58b728a951d46380d945
ests/gl2_copyTexImage/Android.mk
ests/gl2_copyTexImage/gl2_copyTexImage.cpp
dc159f92fa54858302c2423b145e259991dc8cb5 18-Jul-2011 Jamie Gennis <jgennis@google.com> EGL: update EGL_ANDROID_recordable extension.

This change adds an enum value and a description of the expected
implementations to the EGL_ANDROID_recordable extension specification.
It also adds the new enum value to the 'eglext.h' header.

Change-Id: Ia0de2d5613708445ff83b85a7e550f9417531ee4
nclude/EGL/eglext.h
pecs/EGL_ANDROID_recordable.txt
71753982479b9a68e36d43fbb58de0331ea5797c 12-Jul-2011 Jeff Brown <jeffbrown@google.com> Merge "Remove the simulator target from all makefiles. Bug: 5010576"
baa44b89ec159fd65230cbb8ebab62d63a513b0b 12-Jul-2011 Jeff Brown <jeffbrown@google.com> Remove the simulator target from all makefiles.
Bug: 5010576

Change-Id: I04d722f258951a3078fe07899f5bbe8aac02a8e8
ibagl/Android.mk
ibagl2/Android.mk
ibs/Android.mk
ibs/GLES2_dbg/Android.mk
ibs/GLES2_dbg/test/Android.mk
ests/EGLTest/Android.mk
ests/gl2_jni/Android.mk
ests/gl_jni/Android.mk
ests/gl_perfapp/Android.mk
ests/gldual/Android.mk
ests/testPauseResume/Android.mk
ests/testViewport/Android.mk
1a14b442e0a20c8586e9a1a0f2f988f018f2d324 12-Jul-2011 Jamie Gennis <jgennis@google.com> Merge changes I002177a6,Ibaff52fe

* changes:
Add the EGL_ANDROID_recordable spec.
Add the spec for EGL_ANDROID_blob_cache.
bd3b6ef117f4ab137451f238287b2f8fd39a6b49 09-Jul-2011 Jamie Gennis <jgennis@google.com> Add the EGL_ANDROID_recordable spec.

Change-Id: I002177a68fafd6bb941aa64445c85fd5ff56223a
pecs/EGL_ANDROID_recordable.txt
pecs/README
0d0c5a6d6b434d3d7890f4bd9eca90084ba4e780 12-Jul-2011 Jamie Gennis <jgennis@google.com> Merge "EGL: fix the ANativeWindow size/fmt override"
e03de9379410fd9947189f0f14e3ec457df2ebfe 12-Jul-2011 Romain Guy <romainguy@google.com> Always make GL calls with a valid EGL context.
Bug #5010760

Change-Id: If7500ef69683948e727df1406f458f18b11259d1
ibs/EGL/egl.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
ibs/EGL/eglApi.cpp
34d3f3810d90aacb48494dcf8436b038d99f6eb9 08-Jul-2011 Jamie Gennis <jgennis@google.com> Add the spec for EGL_ANDROID_blob_cache.

Change-Id: Ibaff52fee5c856283536ad37251cc80a9f3f938b
pecs/EGL_ANDROID_blob_cache.txt
2f739f8f0442f9c1bb42c47ab43d365fd9020008 07-Jul-2011 Mathias Agopian <mathias@google.com> Add a simple EGL test

currently it just tests EGLConfig selection

Change-Id: Id9d9971012d733147dd7dc02fa2054307960235e
ests/EGLTest/Android.mk
ests/EGLTest/EGL_test.cpp
1cadb25da1ed875bdd078270e642966724a0c39a 24-May-2011 Mathias Agopian <mathias@google.com> fix x86 build

Change-Id: I03cfbfeaeb8b13842248856b14b4a23711036e10
ibs/Android.mk
ibs/EGL/Loader.cpp
ibs/EGL/egl.cpp
ibs/EGL/egl_display.h
ibs/EGL/egl_tls.h
ibs/EGL/egldefs.h
ibs/EGL/getProcAddress.cpp
ibs/EGL/hooks.cpp
ibs/EGL/trace.cpp
ibs/egl_impl.h
ibs/hooks.h
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
ibs/EGL/egl.cpp
ibs/EGL/eglApi.cpp
ibs/EGL/egl_display.cpp
ibs/EGL/egl_display.h
ibs/EGL/egl_object.cpp
ibs/EGL/egl_object.h
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.
ibs/Android.mk
ibs/EGL/egl.cpp
ibs/EGL/eglApi.cpp
ibs/EGL/egl_display.cpp
ibs/EGL/egl_display.h
ibs/EGL/egl_object.cpp
ibs/EGL/egl_object.h
ibs/EGL/egl_tls.cpp
ibs/EGL/egl_tls.h
ibs/GLES2_dbg/src/dbgcontext.cpp
ibs/GLES2_dbg/test/test_server.cpp
ibs/GLES2_dbg/test/test_socket.cpp
ibs/egl_impl.h
ibs/egl_tls.h
ibs/glesv2dbg.h
0ad71a97c6061e3b12d2308bd43e02dfeeb63db4 12-May-2011 Mathias Agopian <mathias@google.com> fix (Again) adding OES postfix when looking for gl functions

Change-Id: Ib14723ed5355fdc423226ec20a32e26fe7dd68fe
ibs/EGL/Loader.cpp
e647f3c76c5d401d5b1cc0d8a08b314bf467113d 28-Jan-2011 Jeff Boody <jboody@quicinc.com> add OES postfix without truncating function

Change-Id: Id47304cf38914190cec58d703801f456ab916f63
ibs/EGL/Loader.cpp
69e43b71afb2af729657f6d26ffef142fedbafab 11-May-2011 Mathias Agopian <mathias@google.com> fix libagl surface initialization

this broke recently when removing copybit support.

Change-Id: I5cc7ff7f49268411c6c2cfb2d97590d52b13dbd5
ibagl/egl.cpp
697526bc9e44ce61c88614f98387ae8bbf0a187e 01-May-2011 Iliyan Malchev <malchev@google.com> frameworks/base: android_native_buffer_t -> ANativeWindowBuffer

Change-Id: Idc2eabaa805bb6d308ebb315872623f28d428417
Signed-off-by: Iliyan Malchev <malchev@google.com>
nclude/EGL/eglext.h
ibagl/TextureObjectManager.cpp
ibagl/TextureObjectManager.h
ibagl/egl.cpp
ibagl/texture.cpp
ibagl2/src/egl.cpp
75c1535eb3bde60dfa3438083540afddc01e1cec 03-May-2011 Mathias Agopian <mathias@google.com> remove last traces of copybit

Change-Id: Ia0f13a0ee6f702256482b5eb29d7fa2aa840bfc7
ibagl/egl.cpp
ibagl2/src/egl.cpp
9cdb01da71934e98b6732db0f5758ea4edd5d5c7 29-Apr-2011 Mathias Agopian <mathias@google.com> get rid of dependency on copybit HAL module

Change-Id: Ia608099a2426c11a91d33063ba53c93e1eccb428
ibagl/egl.cpp
ibagl2/src/egl.cpp
1b528fb9d818044973abf656c9d2d3c1192bcfdc 26-Apr-2011 Jamie Gennis <jgennis@google.com> EGL: Allow creating a SurfaceTexture EGLSurface.

This change removes the check that disallowed the creation of an
EGLSurface that would send frames to a SurfaceTexture.

Change-Id: I44c6d5df503cc676a88144d72d39b414692ce4c9
ibs/EGL/egl.cpp
133cf52ac9872e369c3b48dfeba744b2aa7f954b 21-Apr-2011 David Li <davidxli@google.com> GLES2Dbg: noop - format & comment

Change-Id: Ibb36508181d4322e236b6595b28d253f282c36d7
Signed-off-by: David Li <davidxli@google.com>
ibs/GLES2_dbg/generate_api_cpp.py
ibs/GLES2_dbg/generate_debugger_message_proto.py
620676eec75b3bda103ad2400a1217dd6af6338f 16-Apr-2011 David Li <davidxli@google.com> GLES2Dbg: send some GL implementation constants to client

Change-Id: Ic6c51c09b1c3d2e1e1a28c6ed552714c3243827c
Signed-off-by: David Li <davidxli@google.com>
ibs/GLES2_dbg/generate_debugger_message_proto.py
ibs/GLES2_dbg/src/dbgcontext.cpp
ibs/GLES2_dbg/src/debugger_message.pb.cpp
ibs/GLES2_dbg/src/debugger_message.pb.h
ibs/GLES2_dbg/src/server.cpp
ibs/GLES2_dbg/test/test_server.cpp
ibs/GLES2_dbg/test/test_socket.cpp
7b271eba888de89c075f5372dd1cd1f48eeecb05 14-Apr-2011 David Li <davidxli@google.com> GLES2Dbg: initial tests

Change-Id: Ibf07eff68d39267fd5c9bec2870f59a5ae2f51e3
ibs/GLES2_dbg/Android.mk
ibs/GLES2_dbg/src/dbgcontext.cpp
ibs/GLES2_dbg/src/header.h
ibs/GLES2_dbg/src/server.cpp
ibs/GLES2_dbg/src/vertex.cpp
ibs/GLES2_dbg/test/Android.mk
ibs/GLES2_dbg/test/test_main.cpp
ibs/GLES2_dbg/test/test_server.cpp
ibs/GLES2_dbg/test/test_socket.cpp
c2ca836b176bfac63c63482055509e2e73de517e 09-Apr-2011 David Li <davidxli@google.com> GLES2Dbg: added CaptureDraw and CaptureSwap options

CaptureDraw specifies how many glDrawArrays/Elements to glReadPixel
CaptureSwap similarly applies to eglSwapBuffers

Change-Id: Ie7a7e3392b4ecdc0659dcee04f4bab97c35267dc
Signed-off-by: David Li <davidxli@google.com>
ibs/GLES2_dbg/generate_debugger_message_proto.py
ibs/GLES2_dbg/src/dbgcontext.cpp
ibs/GLES2_dbg/src/debugger_message.pb.cpp
ibs/GLES2_dbg/src/debugger_message.pb.h
ibs/GLES2_dbg/src/egl.cpp
ibs/GLES2_dbg/src/header.h
ibs/GLES2_dbg/src/server.cpp
ibs/GLES2_dbg/src/vertex.cpp
499c6f02e696622a532a504be9706896aea5a304 09-Apr-2011 David Li <davidxli@google.com> GLES2Dbg: use dump.gles2dbg file when fails to create socket

setprop debug.egl.debug_forceUseFile 1: always use file
setprop debug.egl.debug_maxFileSize <int MB>: exit when reached
setprop debug.egl.debug_filePath <path>: may need to make the file
writable first.
setprop debug.egl.debug_port <unsigned short>
setprop debug.egl.debug_proc <proc cmdline>: to match debuggee process

Change-Id: I34ca1f3092f3abf17e2ded9d1689d0cdef6e07e8
Signed-off-by: David Li <davidxli@google.com>
ibs/EGL/egl.cpp
ibs/GLES2_dbg/generate_debugger_message_proto.py
ibs/GLES2_dbg/src/api.h
ibs/GLES2_dbg/src/dbgcontext.cpp
ibs/GLES2_dbg/src/debugger_message.pb.cpp
ibs/GLES2_dbg/src/debugger_message.pb.h
ibs/GLES2_dbg/src/server.cpp
ibs/glesv2dbg.h
904f18f792fa9205a980a36152db61086a9b8374 09-Apr-2011 David Li <davidxli@google.com> GLES2Dbg: add EXTEND_AFTER_CALL_Debug_* macro and improve protocol

To allow auto generate of Debug_glReadPixels function.
Also added AfterGeneratedCall messag type, and client override
of expectResponse for improving protocol.
Also implemented callers for client to get shader/program iv & infolog

Change-Id: I8426de0be4b7ffcb8b2b4f063ad85d19a9d2d72e
Signed-off-by: David Li <davidxli@google.com>
ibs/GLES2_dbg/generate_api_cpp.py
ibs/GLES2_dbg/generate_debugger_message_proto.py
ibs/GLES2_dbg/src/api.cpp
ibs/GLES2_dbg/src/api.h
ibs/GLES2_dbg/src/caller.cpp
ibs/GLES2_dbg/src/caller.h
ibs/GLES2_dbg/src/dbgcontext.cpp
ibs/GLES2_dbg/src/debugger_message.pb.cpp
ibs/GLES2_dbg/src/debugger_message.pb.h
ibs/GLES2_dbg/src/header.h
ibs/GLES2_dbg/src/server.cpp
ibs/GLES2_dbg/src/vertex.cpp
864f839e969ba3417d82ab3ff7906b2f69afa900 28-Mar-2011 David Li <davidxli@google.com> GLES2Dbg: change GLES2_dbg to shared library

Change-Id: I493e9bff431bd939f4e80e1e9c614dd557307fa2
Signed-off-by: David Li <davidxli@google.com>
ibs/Android.mk
ibs/EGL/egl.cpp
ibs/GLES2_dbg/Android.mk
ibs/GLES2_dbg/generate_api_cpp.py
ibs/GLES2_dbg/generate_caller_cpp.py
ibs/GLES2_dbg/src/api.cpp
ibs/GLES2_dbg/src/caller.cpp
ibs/GLES2_dbg/src/dbgcontext.cpp
ibs/GLES2_dbg/src/header.h
ibs/egl_tls.h
ibs/glesv2dbg.h
9875750593aae7c2a62f33c620809d49162393eb 09-Apr-2011 Elliott Hughes <enh@google.com> Kill the global references in the OpenGL wrappers.

Just use jniThrowException instead. Note that it would be trivial to throw
seemingly more appropriate exceptions (NullPointerException and
OutOfMemoryException in particular), but I'm only attempting to preserve
existing behavior here.

I also found shadowing bugs in some of the special-case functions, which
would previously always have leaked memory.

This also moves an accidental change to a generated file (ActivityThread ->
AppGlobals) into the generator, so it won't be overwritten in future.

Change-Id: Iab570310b568cb406c60dd0e2b8211f8a36ae590
ools/glgen/gen
ools/glgen/src/JniCodeEmitter.java
ools/glgen/stubs/gles11/GLES10ExtcHeader.cpp
ools/glgen/stubs/gles11/GLES10cHeader.cpp
ools/glgen/stubs/gles11/GLES11ExtcHeader.cpp
ools/glgen/stubs/gles11/GLES11cHeader.cpp
ools/glgen/stubs/gles11/GLES20cHeader.cpp
ools/glgen/stubs/gles11/glGetProgramInfoLog.cpp
ools/glgen/stubs/gles11/glGetShaderInfoLog.cpp
ools/glgen/stubs/gles11/glGetString.cpp
ools/glgen/stubs/gles11/glShaderSource.cpp
ools/glgen/stubs/jsr239/GLCHeader.cpp
ools/glgen/stubs/jsr239/GLImplHeader.java-impl
ools/glgen/stubs/jsr239/glGetString.cpp
7fecf8c1ff04b85de0656d823224702ec5175344 01-Apr-2011 Eric Hassold <hassold@google.com> Initialize reference counter for egl_display_t

Add missing member initialization for reference counter, used to determine
if a context is ready.

Change-Id: I45f81177ac2851129681f827afe015b60b3cd73c
ibs/EGL/egl.cpp
2e2132d773634e58db83cab17983443ae334cef8 29-Mar-2011 Eino-Ville Talvala <etalvala@google.com> Merge "Add a simple OpenGL ES 2.0 test program that displays a camera preview stream."
214c31dbe5739bf9bc78574a32ba4dc7211aad7d 29-Mar-2011 David Li <davidxli@google.com> Merge "GLES2Dbg: use 256KB chunks for lzf compression"
55c617aa2d49e3403f8700b173dc9220654deb74 04-Mar-2011 Eino-Ville Talvala <etalvala@google.com> Add a simple OpenGL ES 2.0 test program that displays a camera preview stream.

Uses a SurfaceTexture feeding into a OpenGL ES2 GLSurfaceView. Also
uses accelerometer data and SurfaceTexture-provided timestamps for a
simple physics simulation which moves the camera preview oval in
response to device movement.

Change-Id: I275a0c6a4e25829d617e635b25e70e2a9c8455cb
ests/gl2_cameraeye/Android.mk
ests/gl2_cameraeye/AndroidManifest.xml
ests/gl2_cameraeye/res/values/strings.xml
ests/gl2_cameraeye/src/com/android/gl2cameraeye/GL2CameraEye.java
62d08f5bc3f975e10a593b428d88fe8977cb3bfc 28-Mar-2011 Jack Palevich <jackpal@google.com> Add Java support for a few accidentally omitted OpenGL ES APIs.

Fixes 3491494 Support OpenGL APIs: glBlendEquationSeparate and friends

Change-Id: I8fdc94b6ea14e9a7e3d402a965d500790a3d8f77
ools/glgen/specs/gles11/checks.spec
7a52015696011fc129d1ae296b9b30718db7ace8 23-Mar-2011 David Li <davidxli@google.com> GLES2Dbg: use 256KB chunks for lzf compression

Data format is uint32_t totalDecompressedSize, then repeat:
uint32_t chunkDecompressedSize, chunkCompressedSize, chunk data.
If chunkCompressedSize == 0, then chunk is not compressed.

Also start fixing integer sizes on server.
On client, set endianness to match server.

Change-Id: I0d5afa16976ea6019b91c4e21d284605da7e135e
Signed-off-by: David Li <davidxli@google.com>
ibs/GLES2_dbg/src/api.h
ibs/GLES2_dbg/src/dbgcontext.cpp
ibs/GLES2_dbg/src/header.h
ibs/GLES2_dbg/src/vertex.cpp
11c01568c31157bb2486e73efd3249a26dcaecb5 25-Mar-2011 Eric Hassold <hassold@google.com> Make objects collection a member of egl_display object

Move EGL objects (contexts, surfaces, ...) collection from global
static into EGL display object. Since EGL implementation currently
supports only one display, this doesn't change current logic. This
aims at preparing for next coming changes in eglTerminate() to
support per-display cleanup.

Bug: 4152714
Change-Id: I5e424781b89c3c275f9922f943463d5f6b1f6bc6
ibs/EGL/egl.cpp
922ddd6dadedd1f0b27f8f9e0431f11478076142 25-Mar-2011 David Li <davidxli@google.com> Merge "GLESv2Dbg: ability to create GL calls from client"
fef0451f7fbd05864d8d2426c14a0b596fc47379 25-Mar-2011 David Li <davidxli@google.com> Merge "GLES2Dbg: added SETPROP expectResponse"
3f9c90c1ec7cb9103d5df8262e83a8991ff989a7 25-Mar-2011 David Li <davidxli@google.com> Merge "GLES2Dbg: added reference frame for glReadPixels"
e315b16e8ff21de177fcc837a186705a6e9eaa1d 25-Mar-2011 David Li <davidxli@google.com> Merge "GLES2Dbg: use libLZF for compressing images"
3ede7c133af1fc9713d7f2aedd785ce6bad780e8 23-Mar-2011 Eric Hassold <hassold@google.com> Check for initialized EGLDisplay when required by specification

Check for initialized display, and set EGL error to EGL_NOT_INITIALIZED
whenever it isn't, for all EGL functions taking an EGLDisplay as argument
and requiring it to have been initialized.

Bug: 3366011
Change-Id: Ib1d8a3a207257995518f4430fe97f8c406c7fc13
ibs/EGL/egl.cpp
49633ca2edd3a56399a4c2ce0a4e88c0c0a21fe2 22-Mar-2011 David Li <davidxli@google.com> GLESv2Dbg: ability to create GL calls from client

caller.cpp Is generated by generate_caller_cpp.py
Hand written functions are in caller.h

Change-Id: I27ed9792df52569159a2d1b8a78207c7a7518537
Signed-off-by: David Li <davidxli@google.com>
ibs/GLES2_dbg/Android.mk
ibs/GLES2_dbg/generate_caller_cpp.py
ibs/GLES2_dbg/src/caller.cpp
ibs/GLES2_dbg/src/caller.h
ibs/GLES2_dbg/src/header.h
ibs/GLES2_dbg/src/server.cpp
ibs/GLES2_dbg/src/vertex.cpp
ebcfe2d6329b00d293ddefbc2f4dcf380e27d6f0 22-Mar-2011 David Li <davidxli@google.com> GLES2Dbg: added SETPROP expectResponse

to allow "stepping" in functions.
Also fix bug in reference frame.

Change-Id: Ia33620eaf2c5f4e615f7aad2df277b6afc617060
Signed-off-by: David Li <davidxli@google.com>
ibs/GLES2_dbg/Android.mk
ibs/GLES2_dbg/generate_api_cpp.py
ibs/GLES2_dbg/generate_debugger_message_proto.py
ibs/GLES2_dbg/src/api.cpp
ibs/GLES2_dbg/src/api.h
ibs/GLES2_dbg/src/dbgcontext.cpp
ibs/GLES2_dbg/src/debugger_message.pb.cpp
ibs/GLES2_dbg/src/debugger_message.pb.h
ibs/GLES2_dbg/src/egl.cpp
ibs/GLES2_dbg/src/header.h
ibs/GLES2_dbg/src/server.cpp
ibs/GLES2_dbg/src/texture.cpp
ibs/GLES2_dbg/src/vertex.cpp
8b27d3592dd77f9326efb6f0c338c520db9d082f 23-Mar-2011 David Li <davidxli@google.com> GLES2Dbg: added reference frame for glReadPixels

Change-Id: I37398d8d835e54a1764dfabd617fdc2c640864c2
ibs/GLES2_dbg/generate_debugger_message_proto.py
ibs/GLES2_dbg/src/api.h
ibs/GLES2_dbg/src/dbgcontext.cpp
ibs/GLES2_dbg/src/debugger_message.pb.cpp
ibs/GLES2_dbg/src/debugger_message.pb.h
ibs/GLES2_dbg/src/egl.cpp
ibs/GLES2_dbg/src/header.h
ibs/GLES2_dbg/src/server.cpp
ibs/GLES2_dbg/src/vertex.cpp
c6158166791a6e762c7709f3205d9a5885461c7f 21-Mar-2011 David Li <davidxli@google.com> GLES2Dbg: use libLZF for compressing images

liblzf is in external/liblzf, it's BSD-type licence (optionally GPL2)

Change-Id: Idc7883fe2155f366cda384e64796a1493335ae4f
Signed-off-by: David Li <davidxli@google.com>
ibs/Android.mk
ibs/GLES2_dbg/Android.mk
ibs/GLES2_dbg/src/api.h
ibs/GLES2_dbg/src/dbgcontext.cpp
ibs/GLES2_dbg/src/header.h
ibs/GLES2_dbg/src/texture.cpp
ibs/GLES2_dbg/src/vertex.cpp
5a0d29009c5e66dde652eb5c7fd1812bcf97547e 17-Mar-2011 David Li <davidxli@google.com> Merge "GLES2Debugger: Make command exchange async to improve performance."
7d7723d330f544d1e3882b2a360a6e8b6b70e02a 17-Mar-2011 Mathias Agopian <mathias@google.com> am 9405d987: am a05a8ac5: am af831a7b: Merge "fix [4107131] nvidia driver call takes a very long time" into honeycomb-mr1

* commit '9405d98705db1c8102b77ef960f344ac416d165c':
fix [4107131] nvidia driver call takes a very long time
36bdf14a75a7c5e50f62d8f9e1c1be0c8e8a41be 16-Mar-2011 Mathias Agopian <mathias@google.com> fix [4107131] nvidia driver call takes a very long time

We were leaking all EGLSyncKHR objects, over time the list
would grow and become very slow to operate on.

Bug: 4107131
Change-Id: I6c82daf49fe3189d04550781d64d57c30c95f552
ibs/EGL/egl.cpp
9db01a7c1c64d2ce00fdbeb0730278998b97183f 15-Mar-2011 Jamie Gennis <jgennis@google.com> am 0ea44ac0: am 00f47af8: Merge "SurfaceTexture: disallow unsupported uses." into honeycomb-mr1

* commit '0ea44ac0deb5cc95d60dd512c3a8f6a1bb69f5d1':
SurfaceTexture: disallow unsupported uses.
5c0c93a8c49b4053744efb8953b915fa7f0923a5 14-Mar-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: disallow unsupported uses.

This change makes the ANativeWindow_lock NDK function error out if it is
passed an ANativeWindow with a concrete type that is not Surface. It
also makes eglCreateWindowSurface fail if it is passed a
SurfaceTextureClient as its 'window' argument.

Bug: 4087277
Change-Id: Ie68c50c52d88f72d8a387f6c094908044c83a88c
ibs/EGL/egl.cpp
3875d79ef6f125d82f99406e350bfe093594ec6f 15-Mar-2011 Iliyan Malchev <malchev@google.com> Merge "frameworks/base: remove LOCAL_PRELINK_MODULE"
5b92e39c14712a2259ebb473ac81430af1cebbc2 14-Mar-2011 Jamie Gennis <jgennis@google.com> am dcbc2557: am c313b59b: am 071929b2: Merge "gl2_yuvtex: use the gralloc-provided stride." into honeycomb-mr1

* commit 'dcbc255734e506bacd36d8d9483b7f3d6d96d10b':
gl2_yuvtex: use the gralloc-provided stride.
9dde9efd0b6b4d1311d1313d0657a8e94b550989 14-Mar-2011 Iliyan Malchev <malchev@google.com> frameworks/base: remove LOCAL_PRELINK_MODULE

Change-Id: I54dd62ebef47e7690afa5a858f3cad941b135481
Signed-off-by: Iliyan Malchev <malchev@google.com>
ests/gl2_jni/Android.mk
ests/gl_jni/Android.mk
ests/gl_perfapp/Android.mk
ests/gldual/Android.mk
ests/hwc/Android.mk
ests/lib/Android.mk
181f1c33c254496f2252efd41a4d1db5399c5ad2 10-Mar-2011 Jamie Gennis <jgennis@google.com> gl2_yuvtex: use the gralloc-provided stride.

This change fixes the gl2_yuvtex test to use the stride chosen by the
gralloc implementation rather than hard-coding it.

Bug: 4081948
Change-Id: If7c96a20fc3fb1df2ff25e6afaa9f34dbad2002c
ests/gl2_yuvtex/gl2_yuvtex.cpp
85f33a7168c5563aa7765b91d5d045fe62bcfcd8 11-Mar-2011 David Li <davidxli@google.com> GLES2Debugger: Make command exchange async to improve performance.

In message loop, use select to check for available commands from client,
rather than always expecting commands in eglSwapBuffers.

Change-Id: Ifc34dd77c2528c8b9c71f594e3eda4f93400cd2b
Signed-off-by: David Li <davidxli@google.com>
ibs/EGL/egl.cpp
ibs/GLES2_dbg/generate_debugger_message_proto.py
ibs/GLES2_dbg/src/dbgcontext.cpp
ibs/GLES2_dbg/src/debugger_message.pb.cpp
ibs/GLES2_dbg/src/debugger_message.pb.h
ibs/GLES2_dbg/src/egl.cpp
ibs/GLES2_dbg/src/header.h
ibs/GLES2_dbg/src/server.cpp
ibs/GLES2_dbg/src/vertex.cpp
ibs/glesv2dbg.h
65948aa0466e3e833c5a4e4feec78c787d8769a7 11-Mar-2011 David Li <davidxli@google.com> GLES2Debugger: Added DbgContext and vertex data capturing.

Send VBO related commands to client, which tracks the state.
Maintain index buffer content and vertex attrib pointer/buffer state on server.
During glDrawArrays/Elements, send user memory data to client.

Change-Id: Ia920e90479329b301ae4b5735e833eeb20293c94
Signed-off-by: David Li <davidxli@google.com>
ibs/EGL/Loader.cpp
ibs/EGL/egl.cpp
ibs/EGL/trace.cpp
ibs/GLES2_dbg/Android.mk
ibs/GLES2_dbg/generate_api_cpp.py
ibs/GLES2_dbg/generate_debugger_message_proto.py
ibs/GLES2_dbg/include/glesv2_dbg.h
ibs/GLES2_dbg/src/DebuggerMessage.pb.cpp
ibs/GLES2_dbg/src/DebuggerMessage.pb.h
ibs/GLES2_dbg/src/api.cpp
ibs/GLES2_dbg/src/api.h
ibs/GLES2_dbg/src/dbgcontext.cpp
ibs/GLES2_dbg/src/header.h
ibs/GLES2_dbg/src/server.cpp
ibs/GLES2_dbg/src/shader.cpp
ibs/GLES2_dbg/src/vertex.cpp
ibs/glesv2dbg.h
ibs/glesv2dbg_functions.h
c95e452508c45d5812d01281c6227d1a466ce947 09-Mar-2011 David Li <davidxli@google.com> Merge "Added screenshot after glDraw* option to GLES2 Debugger"
c7ec152b9df48e063af457749aecffe47ce4b73b 09-Mar-2011 David Li <davidxli@google.com> Merge "Initial commit of GLESv2 debugger server"
aa1f54d78f67a3fa29c15fa1425ae43ec9d5031b 02-Mar-2011 David Li <davidxli@google.com> Initial commit of libAgl2 using Pixelflinger2 in external/mesa3d

Somewhat functional, refer to README for details.
Need to enable Android.mk to build.
It builds libGLES_android.so, which needs to replace
the one in system/lib/egl built by libagl.

Change-Id: Iec3aaa8f3963a4185d81955cd24019eb0c4a5850
Signed-off-by: David Li <davidxli@google.com>
ibagl2/Android.mk
ibagl2/README
ibagl2/libagl2.project
ibagl2/src/api.cpp
ibagl2/src/egl.cpp
ibagl2/src/get.cpp
ibagl2/src/gles2context.h
ibagl2/src/shader.cpp
ibagl2/src/state.cpp
ibagl2/src/texture.cpp
ibagl2/src/vertex.cpp
b33d5cff62c912fb0312daca083002558fb4a26b 05-Mar-2011 David Li <davidxli@google.com> Added screenshot after glDraw* option to GLES2 Debugger

Also added timing mode option using utils/Timers.h.
Factored out common code to reduce size.
Improved Protobuf message.
Uploads data from glBufferData and glBufferSubData.

Change-Id: Iaae5e706235d942df81c7eada7223fb0b0583911
Signed-off-by: David Li <davidxli@google.com>
ibs/Android.mk
ibs/EGL/egl.cpp
ibs/GLES2_dbg/Android.mk
ibs/GLES2_dbg/generate_DebuggerMessage_proto.py
ibs/GLES2_dbg/generate_GLEnum_java.py
ibs/GLES2_dbg/generate_GLFunction_java.py
ibs/GLES2_dbg/generate_MessageFormatter_java.py
ibs/GLES2_dbg/generate_api_cpp.py
ibs/GLES2_dbg/generate_debug_in.py
ibs/GLES2_dbg/generate_debugger_message_proto.py
ibs/GLES2_dbg/gl2_api_annotated.in
ibs/GLES2_dbg/src/api.cpp
ibs/GLES2_dbg/src/caller.h
ibs/GLES2_dbg/src/debugger_message.pb.cpp
ibs/GLES2_dbg/src/debugger_message.pb.h
ibs/GLES2_dbg/src/egl.cpp
ibs/GLES2_dbg/src/header.h
ibs/GLES2_dbg/src/server.cpp
ibs/GLES2_dbg/src/shader.cpp
ibs/GLES2_dbg/src/texture.cpp
ibs/GLES2_dbg/src/vertex.cpp
2f5a6557ef6a7b9fd33077cfd8a037904d41e3bd 02-Mar-2011 David Li <davidxli@google.com> Initial commit of GLESv2 debugger server

Use debug.egl.debug_proc property to match process cmdline.
Binds to TCP:5039 and waits for client connection.
Sends function call parameters, textures and shaders using Protobuf.
Java Eclipse client plug-in is next.

Change-Id: I183b755263663f87e86dde1ad12f527d0445fd57
Signed-off-by: David Li <davidxli@google.com>
ibs/Android.mk
ibs/EGL/Loader.cpp
ibs/EGL/egl.cpp
ibs/EGL/trace.cpp
ibs/GLES2_dbg/Android.mk
ibs/GLES2_dbg/generate_DebuggerMessage_proto.py
ibs/GLES2_dbg/generate_GLEnum_java.py
ibs/GLES2_dbg/generate_GLFunction_java.py
ibs/GLES2_dbg/generate_MessageFormatter_java.py
ibs/GLES2_dbg/generate_api_cpp.py
ibs/GLES2_dbg/generate_debug_in.py
ibs/GLES2_dbg/gl2_api_annotated.in
ibs/GLES2_dbg/include/glesv2_dbg.h
ibs/GLES2_dbg/src/DebuggerMessage.pb.cpp
ibs/GLES2_dbg/src/DebuggerMessage.pb.h
ibs/GLES2_dbg/src/api.cpp
ibs/GLES2_dbg/src/header.h
ibs/GLES2_dbg/src/server.cpp
ibs/GLES2_dbg/src/shader.cpp
ibs/GLES2_dbg/src/texture.cpp
ibs/debug.in
af1cf07134dccc884c654da0e713c9213d7be3f4 16-Feb-2011 Kenny Root <kroot@google.com> Clean up use of HAVE_ANDROID_OS

HAVE_ANDROID_OS was defined as "1" for targets, but never defined as "0"
for non-targets. Changing them to #ifdef should be safe and matches
all the other uses of HAVE_ANDROID_OS throughout the system.

Change-Id: I82257325a8ae5e4e4371ddfc4dbf51cea8ea0abb
ibs/EGL/egl.cpp
8446681ebebc874b52645b6fdcd8e5b485e29f6b 01-Feb-2011 Jamie Gennis <jgennis@google.com> Merge "Clear all EGL errors when entering EGL funcs."
f1cde8e0ed019791641bd07c5c1f965b0f8cf7c5 31-Jan-2011 Jamie Gennis <jgennis@google.com> Clear all EGL errors when entering EGL funcs.

This changes the clearError function in the EGL wrapper layer to simply
call eglGetError(). That should clear any pending errors from all the
underlying EGL implementations, which is needed to correctly report the
error for the most recently called EGL function.

Change-Id: Iad19c69f0c5305e873f3c2f96d353280d31f7b61
ibs/EGL/egl.cpp
2076f35549c7c04035b9f626d9209e049b6c91f8 31-Jan-2011 Jamie Gennis <jgennis@google.com> Fix a multithreading bug in libagl's EGL.

The bug caused libagl to return 0 from eglGetError if an EGL error value
(including EGL_SUCCESS) was set on a different thread but not yet on the
current thread.

Bug: 3403756
Change-Id: Ifd965091d116745c2e22c121151ade9e78eb14c6
ibagl/egl.cpp
4aea6bff1409590559341fe41b68360b8da64e26 22-Jan-2011 Michael I. Gold <gold@nvidia.com> egl: clear error on function entry

Clear the current thread error state on entry to API functions as
mandated by the EGL 1.4 specification, section 3.1. glGetError
returns additional information about the "most recent EGL function".

Change-Id: Ic24c64b39294ffc1a4e43fa72663e076b9d7decf
ibs/EGL/egl.cpp
609bb4dbf04d78c9f7b4cc5988aafda020c38a61 04-Jan-2011 Michael I. Gold <gold@nvidia.com> egl: fix GetProcAddress for EGLimage extensions

Return wrappers from GetProcAddress for glEGLImageTargetTexture2DOES
and glEGLImageTargetRenderbufferStorageOES which unwrap the EGLimage
handle before calling through to the implementation.

Change-Id: I2f5b180ab3ccdb28a4f510a2bd8c2eee941a84df
ibs/EGL/egl.cpp
ca41e362662a50383679b18d9832f6120dc721d9 13-Jan-2011 Michael I. Gold <gold@nvidia.com> egl: expose EGLimage extensions

Add EGL_KHR_gl_texture_cubemap_image and EGL_KHR_gl_renderbuffer_image
to the static EGL extension string since these require no new APIs
beyond what is already required.

Change-Id: I2d1fde86b19bb9eee46b3b977f51784a17cfcc3c
ibs/EGL/egl.cpp
ee8e64a539f147b8b01dffde4ec8654b64f855be 11-Jan-2011 Louis Huemiller <lhuemill@google.com> Hardware Composer Test hwcCommit set blend type

Change-Id: If345641bd009cfd131b1a8e74cd4a9e8e4a7dfc7
ests/hwc/hwcCommit.cpp
06c3ae9457d602461d249b0146e92b84a740eb32 11-Jan-2011 Louis Huemiller <lhuemill@google.com> Hardware Composer Test Overlap Stats

Change-Id: I2f4a02924149f3964de31fb6250f4c21a64d96aa
ests/hwc/hwcCommit.cpp
ests/hwc/hwcTestLib.cpp
9a8244b8f8d7f1acf9e475123959301666e03406 10-Jan-2011 Louis Huemiller <lhuemill@google.com> Hardware Composer Test Lib HBlen off by 1

Change-Id: If51727a041e20afa307e5d1735b77da5a54a712b
ests/hwc/hwcTestLib.cpp
653f81087920d479d8916a6ae6d2575dd80ed665 09-Jan-2011 Louis Huemiller <lhuemill@google.com> Hardware Composer Commit Points Benchmark

Change-Id: Ie997d13559c0e4e9dc3babfe92ca1acacef2a549
ests/hwc/Android.mk
ests/hwc/hwcColorEquiv.cpp
ests/hwc/hwcCommit.cpp
ests/hwc/hwcRects.cpp
ests/hwc/hwcTestLib.cpp
ests/hwc/hwcTestLib.h
734d8d898c6b0b315e431b231cc6759514da361b 06-Jan-2011 Louis Huemiller <lhuemill@google.com> Hardware Composer new and refactored test cases

Change-Id: Iabf46fc5d75891f917e06a257470a0e3f2bd3c95
ests/hwc/Android.mk
ests/hwc/hwcColorEquiv.cpp
ests/hwc/hwcRects.cpp
ests/hwc/hwcStress.cpp
ests/hwc/hwcTestLib.cpp
ests/hwc/hwcTestLib.h
ests/hwc/hwc_stress.cpp
ests/include/glTestLib.h
ests/lib/Android.mk
ests/lib/glTestLib.cpp
0c3ce2a3650e5a8a005179162c87af639eef60cf 23-Dec-2010 Michael I. Gold <gold@nvidia.com> egl: fixes for object refcounts

eglMakeCurrent() would only deref the previous surfaces if the old and
new contexts were the same. eglTerminate() should not touch TLS.
eglReleaseThread() needs to unbind the current context.

Change-Id: I213b8be77b1a23b5a8a6afaac60643662c8aa010
ibs/EGL/egl.cpp
1812cfde39bf5e74a9c33ffe071f1787bcf68fa6 14-Dec-2010 Louis Huemiller <lhuemill@google.com> HWC Stress Test - relocate print msg

Change-Id: I95f9f5c6edffff8c737c4a6996f97e69bccc0448
ests/hwc/hwc_stress.cpp
5d86b53dc1cc51b018e50a37805ea86fcb5894b4 14-Dec-2010 Louis Huemiller <lhuemill@google.com> HWC Stres Test Enhancments

+ YV12 width/height divisable by 2
+ Row width determined by getStride()
+ Misc comment and whitespace fixes
+ printf changed to testPrintI

Change-Id: I27551141bafbfb258eb1b6b7f63c5295b1f9501a
ests/hwc/hwc_stress.cpp
b526594d848e2be3b59aec87bb24cb5ba272eb9d 13-Dec-2010 Louis Huemiller <lhuemill@google.com> Hardware Composer Stress Test Enhancements

Enhancements include:
+ Change default delay after each set operation
from 0.1 to 0.0 seconds. This significantly
increases the default rate at which operations
are performed.

+ Make sourceCrop to displayFrame scale
factor of 1.0 a frequent occurance.

+ Enable use of RGB888 and YV12 graphic formats.

+ Add initCheck() call after creation of a
GraphicBuffer, to confirm it was created
without any errors.

Change-Id: I1606dff3924a23bdd5cb27ba302bebb4f200d768
ests/hwc/hwc_stress.cpp
695b66f082033d618ce19ee289d858130bd5420b 09-Dec-2010 Mathias Agopian <mathias@google.com> fix build.

Change-Id: I49262ac143da297efcaec4eed04052274c73b7f8
ibagl/egl.cpp
2fa3af5b43ed6c4288fcc25ac05efbad17ef8bf2 09-Dec-2010 Mathias Agopian <mathias@google.com> am 054ae782: am e1752f41: Merge "fix [3258603] \'Quadrant\' benchmark crashes inside eglQueryContext on GB/Crespo" into gingerbread

* commit '054ae78245fe9b4c14bbc372ae77cd0a977ded73':
fix [3258603] 'Quadrant' benchmark crashes inside eglQueryContext on GB/Crespo
18c35abd39d443ec77cd47b2c9047fa59ffa3eeb 09-Dec-2010 Mathias Agopian <mathias@google.com> am e1752f41: Merge "fix [3258603] \'Quadrant\' benchmark crashes inside eglQueryContext on GB/Crespo" into gingerbread

* commit 'e1752f41d34249c891564889b07963262b1bd8bf':
fix [3258603] 'Quadrant' benchmark crashes inside eglQueryContext on GB/Crespo
c3ce8809728cad1724458006a38892d2fa0d0e4d 09-Dec-2010 Mathias Agopian <mathias@google.com> fix [3258603] 'Quadrant' benchmark crashes inside eglQueryContext on GB/Crespo

eglQueryContext(..., EGL_CONFIG_ID, ...) is dereferencing an uninitialized pointer
due to a typo.

Change-Id: I100addf3150f19cb6dfbce9987fb5239dd240878
ibs/EGL/egl.cpp
47c9507c910eec5c1ebe6ef71c742dd2e5afae96 08-Dec-2010 Dan Bornstein <danfuzz@android.com> Merge "Fix another set of out-of-date headers."
4bb407d47ea0826cd3f068aa40f6195225f18506 08-Dec-2010 Dan Bornstein <danfuzz@android.com> Fix another set of out-of-date headers.

This time in XML files.

Change-Id: Iebe36810c3a2d7a6ff354f43808b1b8649b85637
ests/gl2_java/AndroidManifest.xml
ests/gl2_java/res/values/strings.xml
ests/gl2_jni/AndroidManifest.xml
ests/gl2_jni/res/values/strings.xml
ests/gl_jni/AndroidManifest.xml
ests/gl_jni/res/values/strings.xml
ests/gl_perfapp/AndroidManifest.xml
ests/gl_perfapp/res/values/strings.xml
ests/gldual/AndroidManifest.xml
ests/gldual/res/values/strings.xml
ests/testFramerate/AndroidManifest.xml
ests/testFramerate/res/values/strings.xml
ests/testLatency/AndroidManifest.xml
ests/testLatency/res/values/strings.xml
ests/testPauseResume/AndroidManifest.xml
ests/testPauseResume/res/values/strings.xml
ests/testViewport/AndroidManifest.xml
ests/testViewport/res/values/strings.xml
a5651f24b88de7a453c7ec1358656a90f17deee9 08-Dec-2010 Dan Bornstein <danfuzz@android.com> Merge "Fix newlines in this file."
22b03897a889522b0cb7001eaed8d7905ad86913 08-Dec-2010 Dan Bornstein <danfuzz@android.com> Fix newlines in this file.

They were CRLF instead of just LF.

Change-Id: I2d06d19b4d8ca969527d93bd996103c161e48a79
ools/glgen/stubs/gles11/glGetString.java
b0c48b89934ec6fdef36ca438ab7ffffb5b2e014 07-Dec-2010 Mathias Agopian <mathias@google.com> am 0484a673: am daef0a04: Merge "[3229973, 3247470, ...] set EGLNativeWindowSurface\'s format in EGL" into gingerbread

* commit '0484a673c5839d2be9e615e52c6a45febdf1127b':
[3229973, 3247470, ...] set EGLNativeWindowSurface's format in EGL
d6a9c7d2db89f640a1d2651c261e0c61277f6470 07-Dec-2010 Mathias Agopian <mathias@google.com> am daef0a04: Merge "[3229973, 3247470, ...] set EGLNativeWindowSurface\'s format in EGL" into gingerbread

* commit 'daef0a040de7a9825bdbcba7b2eae66195e3a95f':
[3229973, 3247470, ...] set EGLNativeWindowSurface's format in EGL
644bb2a29e5c725a92f8744b6065a5ca7d7dc31f 25-Nov-2010 Mathias Agopian <mathias@google.com> [3229973, 3247470, ...] set EGLNativeWindowSurface's format in EGL

(there are multiple bugs this should fix)

we now use the EGL_NATIVE_VISUAL_ID of a config to set
the ANativeWindow's format from eglCreateWindowSurface(),
this guarantees that the surface's format will match
whatever EGLConfig the user chose.

this should fix all current and future config/surface format
mismatch and allow users to easily select 32-bits surfaces.

Change-Id: I3835d0eb70c75eeecded3c3509a0a8207554c98b
ibs/EGL/egl.cpp
365b2c66a23cf7b078bb42a44fe0a7fa92ef9a55 23-Nov-2010 Louis Huemiller <lhuemill@google.com> Hardware Composer Stress Test

Change-Id: Ief08b22dacd052483f10754b3ab61aa09ca28b17
ests/hwc/Android.mk
ests/hwc/hwc_stress.cpp
a8422af09e3bb2a51eff357ec02bf60f5f4cb79c 10-Nov-2010 Mathias Agopian <mathias@google.com> am 17fd21fc: Merge "DO NOT MERGE. workaround [3177481] eglGetProcAddress() returns the wrong pointer for some GL extensions" into gingerbread

* commit '17fd21fc0638d8734867b6f189efbabb227f3ae1':
DO NOT MERGE. workaround [3177481] eglGetProcAddress() returns the wrong pointer for some GL extensions
70745094cc6013ec9dcab0952016cff11d62e1fe 10-Nov-2010 Mathias Agopian <mathias@google.com> Merge "DO NOT MERGE. workaround [3177481] eglGetProcAddress() returns the wrong pointer for some GL extensions" into gingerbread
ab5426e53d9f0a505c3a187e70c70cf42d23c229 10-Nov-2010 David 'Digit' Turner <digit@google.com> am b02ca27f: am b7a109c0: Merge "Refresh EGL header to work with the NDK" into gingerbread

* commit 'b02ca27f05a47fad75c57d6d8c52ccc5b21a8043':
Refresh EGL header to work with the NDK
2346d0223f91bf9d3a8df3eface30e6a7d2590e0 10-Nov-2010 David 'Digit' Turner <digit@google.com> am b7a109c0: Merge "Refresh EGL header to work with the NDK" into gingerbread

* commit 'b7a109c02735bb0d9e0bcb8f84e4aa3923701460':
Refresh EGL header to work with the NDK
744026fed6be5a95927de2db1a9c76a60473bd12 09-Nov-2010 Mathias Agopian <mathias@google.com> DO NOT MERGE. workaround [3177481] eglGetProcAddress() returns the wrong pointer for some GL extensions

We just make sure eglGetProcAddress() will return NULL for
glEGLImageTargetTexture2DOES
glEGLImageTargetRenderbufferStorageOES

which is better than returning the address of the wrong implementation.

the correct fix is more involved.

Change-Id: I585a1f40e564f862e5dd382224609ccd069cd3b5
ibs/EGL/egl.cpp
dfd0759ff635c2734104f63518f63efd2345cdc4 05-Nov-2010 David 'Digit' Turner <digit@google.com> Refresh EGL header to work with the NDK

This change allows to use this header with the NDK's standalone toolchain.
For the record, the NDK toolchain defines __ANDROID__ as a compiler built-in
macro, this is however not the case currently for the prebuilt binaries that
are being used by the full Android build system, which otherwise defines ANDROID.

This change allows the header to be used by all toolchains properly. Note however
that we should properly should change our toolchain and sources to provide and
rely on __ANDROID__ instead of ANDROID though.

Change-Id: Iaa1aa1146985b5f24dcf3a83d9ddb9b4b59dc328
nclude/EGL/eglplatform.h
b27cb7f5bfeb0c48a5d8cc8b4f8904fdb22f04ef 29-Oct-2010 Jamie Gennis <jgennis@google.com> Merge "OpenGL ES 1 YUV texturing test"
e6bb73a1cd4492db7f3f04ccc6ae957edc877c62 29-Oct-2010 Jamie Gennis <jgennis@google.com> Merge "YUV texturing test."
6132b3703da76389e81d26b0023846a78b008603 28-Oct-2010 Jack Palevich <jackpal@google.com> Trace glUniformXXv and glUniformMatrixXfv calls.

Change-Id: I653021d2174fa1a7343d10b0fd2c29b3e5147be6
ibs/EGL/trace.cpp
ce0a5ca4238ff82c523ea7ce9cfb5de00bc16bcb 09-Oct-2010 Nuno Subtil <nsubtil@nvidia.com> OpenGL ES 1 YUV texturing test

Change-Id: I295e5bce16a8ab088b99929f788f2fbbe8492b8d
ests/gl_yuvtex/Android.mk
ests/gl_yuvtex/gl_yuvtex.cpp
6ecdb49b2545add54e68cb935f71ed456320078e 21-Sep-2010 Michael I. Gold <gold@nvidia.com> YUV texturing test.

Change-Id: Ib2a6b7eb2a5fc98ecaace032d6c63d50613aaa0d
ests/gl2_yuvtex/Android.mk
ests/gl2_yuvtex/gl2_yuvtex.cpp
72c384e0a16504638927fea2da36a4731953c8df 27-Oct-2010 Kristian Monsen <kristianm@google.com> Fix for simulator build

The code looks correct, but causes an internal compiler error on
simulator builds on mine (an other) gLucid desktops.

Change-Id: Iaf0d8120778ec1c6fc739ef13e6eaaac53e3bcc8
ibagl/egl.cpp
8c026c039f17b783f9145fe7e944d22413590ea0 27-Oct-2010 Jack Palevich <jackpal@google.com> Merge "OpenGL tracing."
a2dd6cf59962e3a21a47df29b2f243e904839ba7 27-Oct-2010 Jack Palevich <jackpal@google.com> OpenGL tracing.

Enable with:

adb shell setprop debug.egl.trace 1

Change-Id: Icfbc795f5260141510975228e72234e9aab56a85
ibs/Android.mk
ibs/EGL/egl.cpp
ibs/EGL/trace.cpp
ibs/enums.in
ibs/hooks.h
ibs/tools/genfiles
ibs/tools/glenumsgen
ibs/tools/gltracegen
ibs/trace.in
698346ed5951f1172c1a71a68299b244e9d9b01e 26-Oct-2010 Mathias Agopian <mathias@google.com> am d9588e9c: am a7b745ca: Merge "fix eglChooseConfig() for special attributes." into gingerbread
3e98e385109f838fc7798e1b4280e5ce005bc31a 26-Oct-2010 Mathias Agopian <mathias@google.com> am a7b745ca: Merge "fix eglChooseConfig() for special attributes." into gingerbread
639716736f5d87b64a43a20f39f37dee6bd98806 26-Oct-2010 Mathias Agopian <mathias@google.com> fix eglChooseConfig() for special attributes.

affects software renderer (emu) only.

per EGL spec:
If EGL_MAX_PBUFFER_WIDTH, EGL_MAX_PBUFFER_HEIGHT,
EGL_MAX_PBUFFER_PIXELS, or EGL_NATIVE_VISUAL_ID are specified
in attrib list, then they are ignored

Change-Id: I3d5214ce896986da2f11d2eb1889afc41731eaa6
ibagl/egl.cpp
2e6153ee11fa61d83125bd738a8cc707963a3de6 22-Oct-2010 Mathias Agopian <mathias@google.com> am 49af98ed: am aa6df366: Merge "fix [3119687] [Maps][4.6.0] Force close in street view" into gingerbread

Merge commit '49af98ed877e8a2db5a6b5be811c798e6f73dff7'

* commit '49af98ed877e8a2db5a6b5be811c798e6f73dff7':
fix [3119687] [Maps][4.6.0] Force close in street view
613493c424a8d62ecbcd7b90cb1008d569e93746 22-Oct-2010 Mathias Agopian <mathias@google.com> am aa6df366: Merge "fix [3119687] [Maps][4.6.0] Force close in street view" into gingerbread

Merge commit 'aa6df3669deab2a804c6f8cc1ea3fd5af0a28685' into gingerbread-plus-aosp

* commit 'aa6df3669deab2a804c6f8cc1ea3fd5af0a28685':
fix [3119687] [Maps][4.6.0] Force close in street view
6af358e0a752b179671a9f9ea01757ade3b123cf 22-Oct-2010 Mathias Agopian <mathias@google.com> fix [3119687] [Maps][4.6.0] Force close in street view

The EGLConfig attributes MUST be sorted, because they're used in a binary search.
A recent change introduced a bug where 2 of the configs had improperly
sorted attributes.

Change-Id: I1ac53e4463d62f27125ca9f82ed946e6c98ddba0
ibagl/egl.cpp
e3c5974719d609db437e8cee6bc489006f127f99 21-Oct-2010 Mathias Agopian <mathias@google.com> am 63ac8f53: am 2b2da526: Merge "Add a test application to dump all the EGLConfig available" into gingerbread

Merge commit '63ac8f5377833303a7f8c4d60f0d74daf903e6ea'

* commit '63ac8f5377833303a7f8c4d60f0d74daf903e6ea':
Add a test application to dump all the EGLConfig available
f6715ba6dec84edff64c9991df556102eb1289ad 21-Oct-2010 Mathias Agopian <mathias@google.com> am 6d90e89a: am a0795fc9: Merge "software renderer: fix [3117351] GL driver doesn\'t set the EGL_NATIVE_VISUAL_ID" into gingerbread

Merge commit '6d90e89afa47293cf5fe18f512cce43d2fa6df82'

* commit '6d90e89afa47293cf5fe18f512cce43d2fa6df82':
software renderer: fix [3117351] GL driver doesn't set the EGL_NATIVE_VISUAL_ID
41e5645b1a9f416f926c7f2aa024ed0bef206076 21-Oct-2010 Mathias Agopian <mathias@google.com> am add9db83: am f4cd9be0: Merge "fix [2236865] STOPSHIP: bump soft gl and egl minor version number" into gingerbread

Merge commit 'add9db83fdbf939f0610f8b357788fd3e8ad9ab5'

* commit 'add9db83fdbf939f0610f8b357788fd3e8ad9ab5':
fix [2236865] STOPSHIP: bump soft gl and egl minor version number
483d8242712497d8866ab554610bbce43756736f 21-Oct-2010 Mathias Agopian <mathias@google.com> am 2b2da526: Merge "Add a test application to dump all the EGLConfig available" into gingerbread

Merge commit '2b2da52608303b149d22418865e67c8030c70e73' into gingerbread-plus-aosp

* commit '2b2da52608303b149d22418865e67c8030c70e73':
Add a test application to dump all the EGLConfig available
a6da12c071375b7b8a607b4f27b21b6b0e29c65a 21-Oct-2010 Mathias Agopian <mathias@google.com> Merge "Add a test application to dump all the EGLConfig available" into gingerbread
3f9f60fa42fef63b57752377f00ed18f3df26b49 21-Oct-2010 Mathias Agopian <mathias@google.com> am a0795fc9: Merge "software renderer: fix [3117351] GL driver doesn\'t set the EGL_NATIVE_VISUAL_ID" into gingerbread

Merge commit 'a0795fc9bdf97703780cbf0ec47c06eccb642e72' into gingerbread-plus-aosp

* commit 'a0795fc9bdf97703780cbf0ec47c06eccb642e72':
software renderer: fix [3117351] GL driver doesn't set the EGL_NATIVE_VISUAL_ID
d8e5ceb963c9bd3cba5c307aef481ded7859ef79 21-Oct-2010 Mathias Agopian <mathias@google.com> software renderer: fix [3117351] GL driver doesn't set the EGL_NATIVE_VISUAL_ID

Change-Id: I371bc0abfee6065247bc6f04b0e0451645eb2dbf
ibagl/egl.cpp
16a3e39cc007ebf7c7ee38d7464f99efed3e2574 21-Oct-2010 Mathias Agopian <mathias@google.com> Add a test application to dump all the EGLConfig available

Change-Id: Iddf27f2a9dd51733f6b90081a523ca37bfe310fa
ests/configdump/Android.mk
ests/configdump/configdump.cpp
309be7131f8a969fb3715665fba389f0ac9f3852 20-Oct-2010 Mathias Agopian <mathias@google.com> am f4cd9be0: Merge "fix [2236865] STOPSHIP: bump soft gl and egl minor version number" into gingerbread

Merge commit 'f4cd9be0390135269e22e42fd2e1fe61fdcf9863' into gingerbread-plus-aosp

* commit 'f4cd9be0390135269e22e42fd2e1fe61fdcf9863':
fix [2236865] STOPSHIP: bump soft gl and egl minor version number
141550bc18f670f7e7ec65fc25363da3dd35d52e 19-Oct-2010 Mathias Agopian <mathias@google.com> fix [2236865] STOPSHIP: bump soft gl and egl minor version number

Change-Id: Ibf46b18d7493348e189f2c93e969a6cac61f68b5
ibagl/egl.cpp
ibagl/state.cpp
551dc26ebd7db09a6ae8604a8612c00d2ebab403 01-Oct-2010 Ari Hirvonen <ahirvonen@nvidia.com> libagl: eglSwapInterval fix

SW egl returned always EGL_FALSE even when the display was valid.
This made calls to eglSwapInterval to fail on HW since the wrapper
fails if either SW or HW egl fails.

Letting SW eglSwapInterval to return true when display is valid is
ok since spec says that interval parameter is silently clamped.

Change-Id: Ib4aa1dbfccf510a0f36621796e79a4d46852ee6a
ibagl/egl.cpp
257d2bbcbf275757f4009e3b02bd6657e6c13b27 28-Sep-2010 Jim Shuma <jshuma@google.com> Initial checkin of a framerate test app

Measures the time to do nothing but clear the screen in an
OpenGL Java app. Spews frame time statistics to the log.

Control long frame time by setting debug.longframe_ms;
e.g., adb shell setprop debug.longframe_ms 33

Change-Id: I435a3cb170048349e00417c44db42121c68744b2
ests/testFramerate/Android.mk
ests/testFramerate/AndroidManifest.xml
ests/testFramerate/res/values/strings.xml
ests/testFramerate/src/com/android/testframerate/TestFramerateActivity.java
ests/testFramerate/src/com/android/testframerate/TestFramerateView.java
30faafb7d3544ab013958fbc920c1bc4d3f05472 24-Sep-2010 Mathias Agopian <mathias@google.com> am 4eb1ad5e: am 524a6d8e: Merge "better fix for [3028370] GL get error should return a valid error if no context is bound." into gingerbread

Merge commit '4eb1ad5e98c7b36f7ac4ec8c3270f9763afd107e'

* commit '4eb1ad5e98c7b36f7ac4ec8c3270f9763afd107e':
better fix for [3028370] GL get error should return a valid error if no context is bound.
303f3eb35240a58b59d5c3baffddc0b4b791860f 24-Sep-2010 Mathias Agopian <mathias@google.com> am 524a6d8e: Merge "better fix for [3028370] GL get error should return a valid error if no context is bound." into gingerbread

Merge commit '524a6d8e9bb4df9cec0520ac1d9733642b13e76f' into gingerbread-plus-aosp

* commit '524a6d8e9bb4df9cec0520ac1d9733642b13e76f':
better fix for [3028370] GL get error should return a valid error if no context is bound.
6f0871222f04dfeb479d37fe9753d491e3150e42 24-Sep-2010 Mathias Agopian <mathias@google.com> better fix for [3028370] GL get error should return a valid error if no context is bound.

it turns out that we cannot return INVALID_OPERATION from glGetError() because the
GL spec says that it must be called in a loop until it returns GL_NO_ERROR.

now, we always return 0 from GL functions called from a thread with no
context bound. This means that glGetError() will return NO_ERROR in this case,
which is better than returning a random value (which could trap the app in a loop).

if this happens in the main thread of a process, we LOG an error message once.

Change-Id: Id59620e675a890286ef62a257c02b06e0fdcaf69
ibs/EGL/egl.cpp
ibs/GLES2/gl2.cpp
ibs/GLES_CM/gl.cpp
aa22d205549f5c9604f5d66b5368c53b484c3638 23-Sep-2010 Mathias Agopian <mathias@google.com> am 9c4d7d67: am 5c6c5c7a: fix [3028370] GL get error should return a valid error if no context is bound.

Merge commit '9c4d7d677097981a349c718902e29050dad3d59f'

* commit '9c4d7d677097981a349c718902e29050dad3d59f':
fix [3028370] GL get error should return a valid error if no context is bound.
6ee79cfa2f2885967910ffd27f6f81e1928b3d8d 23-Sep-2010 Mathias Agopian <mathias@google.com> am 5c6c5c7a: fix [3028370] GL get error should return a valid error if no context is bound.

Merge commit '5c6c5c7a43d44316395f5c35ab713372124b8b4c' into gingerbread-plus-aosp

* commit '5c6c5c7a43d44316395f5c35ab713372124b8b4c':
fix [3028370] GL get error should return a valid error if no context is bound.
05c53113e0c73c7cab61edf53524c61c20a547c2 23-Sep-2010 Mathias Agopian <mathias@google.com> fix [3028370] GL get error should return a valid error if no context is bound.

glGetError() will now always return GL_INVALID_OPERATION if called from a thread
with no GL context bound.

Change-Id: I28ba458871db051bb4f5a26668a1fa123526869c
ibs/EGL/egl.cpp
cd2c51cf451bb4ff8cde6724b10e420b42ca4d90 22-Sep-2010 Mathias Agopian <mathias@google.com> am d01ce192: am 9d5fac51: Merge "fix small bug in EGL error management" into gingerbread

Merge commit 'd01ce1924a51539c4d47ef1f55913bdf1a018124'

* commit 'd01ce1924a51539c4d47ef1f55913bdf1a018124':
fix small bug in EGL error management
d7a0841a1981a31d5ded88191e1e5cca4cc6f0cd 22-Sep-2010 Mathias Agopian <mathias@google.com> am 9d5fac51: Merge "fix small bug in EGL error management" into gingerbread

Merge commit '9d5fac517463526450268bf6353e32c13a8cdd0c' into gingerbread-plus-aosp

* commit '9d5fac517463526450268bf6353e32c13a8cdd0c':
fix small bug in EGL error management
f3c24f87036fb269cef18940e0fa17b590f10aa1 22-Sep-2010 Mathias Agopian <mathias@google.com> Merge "fix typo EGL_NO_IMAGE_KHR -> EGL_NO_SYNC_KHR"
d7a4f91401d869dad63e1a461240f4800a969312 22-Sep-2010 Jack Palevich <jackpal@google.com> Add simple interactive end-to-end latency test.

Change-Id: I4c2f2acf797a3a753f8a6061db3d2bcdc7d642f0
ests/testLatency/Android.mk
ests/testLatency/AndroidManifest.xml
ests/testLatency/res/values/strings.xml
ests/testLatency/src/com/android/testlatency/TestLatencyActivity.java
ests/testLatency/src/com/android/testlatency/TestLatencyView.java
a93b957e8e3170b0cc7b7fb5d847f6e98fb1e87b 22-Sep-2010 Mathias Agopian <mathias@google.com> fix typo EGL_NO_IMAGE_KHR -> EGL_NO_SYNC_KHR

Change-Id: I38c87803e32030918f2deb06381eabce0faa870c
ibs/EGL/egl.cpp
02dafb5068be31cc45af897a8bd1cae8f4724401 22-Sep-2010 Mathias Agopian <mathias@google.com> fix small bug in EGL error management

make sure to clear our EGL implementation's error when returning
an error from an underlying implementation

Change-Id: Ibce4726cef1f900e4c7f16002345d7a07f8cdf41
ibs/EGL/egl.cpp
04b9ff8e2682f057c3f6a655bbc60db19585ede6 21-Sep-2010 Brian Swetland <swetland@google.com> am 5c746522: am 181e5ea8: Merge "support loading EGL libraries from /vendor/lib/egl as well as /system/lib/egl" into gingerbread

Merge commit '5c7465220d52c64c87fe4566fe109c649ec5c4f7'

* commit '5c7465220d52c64c87fe4566fe109c649ec5c4f7':
support loading EGL libraries from /vendor/lib/egl as well as /system/lib/egl
d77cec91b09d57169171d38ad7a734fdd589b239 20-Sep-2010 Brian Swetland <swetland@google.com> am 181e5ea8: Merge "support loading EGL libraries from /vendor/lib/egl as well as /system/lib/egl" into gingerbread

Merge commit '181e5ea8087360742b3ed0a7f2e6f8f8baa0a760' into gingerbread-plus-aosp

* commit '181e5ea8087360742b3ed0a7f2e6f8f8baa0a760':
support loading EGL libraries from /vendor/lib/egl as well as /system/lib/egl
2b9e4f6a2490864ead44e88a68da78be5cb3da22 20-Sep-2010 Brian Swetland <swetland@google.com> support loading EGL libraries from /vendor/lib/egl as well as /system/lib/egl

Change-Id: Idd9ca85ce3ba6c92234375071b53e5365e689062
ibs/EGL/Loader.cpp
ibs/EGL/Loader.h
fe0a0af7bdab1e61fdb00f4705ccff5b46c19d8e 17-Sep-2010 Mathias Agopian <mathias@google.com> am 793b2293: am 1bcb8b1a: Merge "surfaceflinger / GL extensions cleanup" into gingerbread

Merge commit '793b2293797ea930078640c4827d3cbdf449c227'

* commit '793b2293797ea930078640c4827d3cbdf449c227':
surfaceflinger / GL extensions cleanup
c05246ae344f16f3892a1274ef75627772c7c9aa 17-Sep-2010 Mathias Agopian <mathias@google.com> am 1bcb8b1a: Merge "surfaceflinger / GL extensions cleanup" into gingerbread

Merge commit '1bcb8b1afbfa2fc387a0f7068740f1efbe9a1f69' into gingerbread-plus-aosp

* commit '1bcb8b1afbfa2fc387a0f7068740f1efbe9a1f69':
surfaceflinger / GL extensions cleanup
7f198b6bff54af3c8e8ac32b83ffc6488e773ac1 16-Sep-2010 Michael I. Gold <gold@nvidia.com> surfaceflinger / GL extensions cleanup

Add correct enumerants for OES_EGL_image_external to glext.h.
SurfaceFlinger now checks for the correct extension name.

Change-Id: I2ba2728a01fa2260bd086d2df4316c68f694a9b1
nclude/GLES/glext.h
nclude/GLES2/gl2ext.h
c291f585855f0e2569bde9dd47b62e46c06c45f3 28-Aug-2010 Mathias Agopian <mathias@google.com> Add support for KHR_fence_sync

Change-Id: Ie2771b5869c9c8dcf5ecf9318e2ee6d4d1cd5cc9
ibs/EGL/egl.cpp
ibs/EGL/egl_entries.in
9e14a3404b6b15cf98ff7aedefe4c6f618fbe505 09-Sep-2010 Jason Sams <rjsams@android.com> Merge "Rework gl perf test to focus on important use cases."
0b30bf5782f76e550a4da5998595bf8276ff1ff7 09-Sep-2010 Mathias Agopian <mathias@google.com> am 45bd9946: am fec5d38b: Merge "option to enable multisampling" into gingerbread

Merge commit '45bd99466ce9962778eacaefff1c0a44bb268f0c'

* commit '45bd99466ce9962778eacaefff1c0a44bb268f0c':
option to enable multisampling
acd8fd04934c3d5fb9853fd250b6a7f2ab347276 09-Sep-2010 Mathias Agopian <mathias@google.com> am a9ff29b5: am 6808e6a8: Merge "Fix a few typos in EGL wrapper" into gingerbread

Merge commit 'a9ff29b59cf33e552285a0bff3caf7a44f93f1c0'

* commit 'a9ff29b59cf33e552285a0bff3caf7a44f93f1c0':
Fix a few typos in EGL wrapper
bae7b39496342dd43befa7c83ba50a13e9c1d87a 09-Sep-2010 Mathias Agopian <mathias@google.com> am fec5d38b: Merge "option to enable multisampling" into gingerbread

Merge commit 'fec5d38baf4487d8ab0143451a3f2c39edeeb5b2' into gingerbread-plus-aosp

* commit 'fec5d38baf4487d8ab0143451a3f2c39edeeb5b2':
option to enable multisampling
829622113873392b01b37ee72effbeb6b5966dbf 09-Sep-2010 Mathias Agopian <mathias@google.com> option to enable multisampling

multisampling can be enabled by specifying the number of
samples desired on the command line.

Change-Id: I5f93c93ae7ada54bcd646c1065e07890d0cb9808
ests/angeles/app-linux.cpp
358fea99da4e676b258fe38c7bb858e88a5bd24e 09-Sep-2010 Mathias Agopian <mathias@google.com> am 6808e6a8: Merge "Fix a few typos in EGL wrapper" into gingerbread

Merge commit '6808e6a867ba0b32f8bd97163e134c2866423f01' into gingerbread-plus-aosp

* commit '6808e6a867ba0b32f8bd97163e134c2866423f01':
Fix a few typos in EGL wrapper
e7bca18f7942d7c1f31f10406b6462841501a4c3 09-Sep-2010 Mathias Agopian <mathias@google.com> Merge "Fix a few typos in EGL wrapper" into gingerbread
77fbf8ddd9ecdde8272de845db29c34a6f1ff55e 09-Sep-2010 Mathias Agopian <mathias@google.com> Fix a few typos in EGL wrapper

Change-Id: I3b815ca6ec334ca12088f9721eece33df42b2e46
ibs/EGL/egl.cpp
e3372bd6f055991e95c044f0bb3a424fe4eb9302 09-Sep-2010 Mathias Agopian <mathias@google.com> am 099aa9a1: am edbb8083: Merge "add a fps counter to sanangeles demo" into gingerbread

Merge commit '099aa9a1b4eaf6536decbcafac43476c4908ef24'

* commit '099aa9a1b4eaf6536decbcafac43476c4908ef24':
add a fps counter to sanangeles demo
7d1588e4e3b37b7f480618e111d78eb102b5ac1e 09-Sep-2010 Mathias Agopian <mathias@google.com> am edbb8083: Merge "add a fps counter to sanangeles demo" into gingerbread

Merge commit 'edbb8083a815e9d911f8e659fc5c293543fdf502' into gingerbread-plus-aosp

* commit 'edbb8083a815e9d911f8e659fc5c293543fdf502':
add a fps counter to sanangeles demo
879ba138fc8cc4a88d355322a67eaa26f1d57682 09-Sep-2010 Mathias Agopian <mathias@google.com> add a fps counter to sanangeles demo

Change-Id: I9a9473ce213301cc7661fddfb1ef5a6ffcb346d4
ests/angeles/app-linux.cpp
74b28e45c38d742a517ca95e29ab8cbbb1645fd5 09-Sep-2010 Jason Sams <rjsams@android.com> Rework gl perf test to focus on important use cases.

Change-Id: I82825dbe3b24a520b79f6b05d01f37e1b5008b62
ests/gl_perf/fill_common.cpp
ests/gl_perf/filltest.cpp
ests/gl_perf/fragment_shaders.cpp
ests/gl_perfapp/jni/gl_code.cpp
8e4b5a3e6af0dcb636b6f7baa9e908681776fa36 28-Aug-2010 Mathias Agopian <mathias@google.com> Add KHR_gl_texture_2D_image extension string.
ibs/EGL/egl.cpp
27e2fac3370d2de56c05b9ec838ceff9a10b137c 27-Aug-2010 Mathias Agopian <mathias@google.com> cleanup EGL a bit. remove unused extension.

Change-Id: I7758bc7d6dc2e70fc3590fe939ebf71fbcde7059
nclude/EGL/eglext.h
ibagl/egl.cpp
ibs/EGL/egl.cpp
1bd367434376a942074645f2b302748186dec25b 27-Aug-2010 Mathias Agopian <mathias@google.com> am ff3dcf27: Merge "cleanup EGL a bit. remove unused extension." into gingerbread

Merge commit 'ff3dcf27be2bbb259b7605396d36e50ade35266f' into gingerbread-plus-aosp

* commit 'ff3dcf27be2bbb259b7605396d36e50ade35266f':
cleanup EGL a bit. remove unused extension.
10cab190ba3bdad058cbb674f956e7b251bf74da 27-Aug-2010 Mathias Agopian <mathias@google.com> cleanup EGL a bit. remove unused extension.

Change-Id: Ia87120b076ab1bf7b28f06087878d8161fb46c88
nclude/EGL/eglext.h
ibagl/egl.cpp
ibs/EGL/egl.cpp
d56f54b269216b76fb0c320ddebd9e2d75ff41a1 21-Aug-2010 Mathias Agopian <mathias@google.com> am b3aaf3ba: am bccfcd95: Merge "fix [2931718] glDrawArrays skips a triangle when more than 70 vertices are used." into gingerbread

Merge commit 'b3aaf3baa7fd811af19835bbc8837a88984c160a'

* commit 'b3aaf3baa7fd811af19835bbc8837a88984c160a':
fix [2931718] glDrawArrays skips a triangle when more than 70 vertices are used.
c3fb41b1dbf5637ffd60a8827f6c685346af534c 21-Aug-2010 Mathias Agopian <mathias@google.com> am 43647129: am 17da0663: Merge "fix [2931161] crash in labyritnth when completing a level" into gingerbread

Merge commit '43647129d676e8c802850ca493f2ebc6064a4a1a'

* commit '43647129d676e8c802850ca493f2ebc6064a4a1a':
fix [2931161] crash in labyritnth when completing a level
8807ecb3c1d6e435142db4dbcdd2601d8c9ef9f0 19-Aug-2010 Mathias Agopian <mathias@google.com> am bccfcd95: Merge "fix [2931718] glDrawArrays skips a triangle when more than 70 vertices are used." into gingerbread

Merge commit 'bccfcd95d3cc4029c1ed8514d31436a857283873' into gingerbread-plus-aosp

* commit 'bccfcd95d3cc4029c1ed8514d31436a857283873':
fix [2931718] glDrawArrays skips a triangle when more than 70 vertices are used.
e3586182ec7a5942b758610fe9d084a82486307e 19-Aug-2010 Mathias Agopian <mathias@google.com> fix [2931718] glDrawArrays skips a triangle when more than 70 vertices are used.

a typo prevented the last 2 vertices of a batch to be copied to the front of
the next batch. Instead, the 2 very first vertices were used.

Change-Id: I3c344784dac1cef64df2fb6f6efb2f901cc788db
ibagl/array.cpp
1071c201432405883c22ae4a331cc5a1b3a0fa8c 19-Aug-2010 Mathias Agopian <mathias@google.com> am 17da0663: Merge "fix [2931161] crash in labyritnth when completing a level" into gingerbread

Merge commit '17da06631041f9f2237738fb673a74a85b1d9cf4' into gingerbread-plus-aosp

* commit '17da06631041f9f2237738fb673a74a85b1d9cf4':
fix [2931161] crash in labyritnth when completing a level
031213e5b31c317135f603271333949dda89e01e 19-Aug-2010 Mathias Agopian <mathias@google.com> fix [2931161] crash in labyritnth when completing a level

Change-Id: I821d67effaf73d7008b2828d06f5489d1f976a1e
ibagl/egl.cpp
62d59ed785b5a878721a773b7fb4bd1c7672f240 16-Aug-2010 Romain Guy <romainguy@google.com> am a4ed1c67: am 1e4aa48c: Merge "fix [2912927] Can\'t get NV_draw_path extension to work" into gingerbread

Merge commit 'a4ed1c6788ead0324106d76f497233ee42a1f1ac'

* commit 'a4ed1c6788ead0324106d76f497233ee42a1f1ac':
fix [2912927] Can't get NV_draw_path extension to work
5e1bf8d4faabb9acd35fe969effe5ca541298737 13-Aug-2010 Romain Guy <romainguy@google.com> am 1e4aa48c: Merge "fix [2912927] Can\'t get NV_draw_path extension to work" into gingerbread

Merge commit '1e4aa48cfd2b2c13c4f7ace8c9fcb33adfa18661' into gingerbread-plus-aosp

* commit '1e4aa48cfd2b2c13c4f7ace8c9fcb33adfa18661':
fix [2912927] Can't get NV_draw_path extension to work
4a88b522359c080d4da5ac3f016b3272021655c9 13-Aug-2010 Mathias Agopian <mathias@google.com> fix [2912927] Can't get NV_draw_path extension to work

there was a problem with eglGetProcAddress() which would only work with
GLES 1.x contexts.

Change-Id: I4747671cbf7ed469bb471a377f1d6f36550d24df
ibs/EGL/egl.cpp
5d708a591666b64115e7ee1bf6bc2e3378220c17 10-Aug-2010 Mathias Agopian <mathias@google.com> am 553a333d: am 603a34ee: Merge "improve a bit the implementation of eglGetProcAddress" into gingerbread

Merge commit '553a333d4446bb34330da92f02daa515dc597939'

* commit '553a333d4446bb34330da92f02daa515dc597939':
improve a bit the implementation of eglGetProcAddress
14a4443344dce37b7eed7f960c324e56e54e9ba8 10-Aug-2010 Mathias Agopian <mathias@google.com> am 603a34ee: Merge "improve a bit the implementation of eglGetProcAddress" into gingerbread

Merge commit '603a34ee30e7d14ddc02c1beb7bca915622ae4bf' into gingerbread-plus-aosp

* commit '603a34ee30e7d14ddc02c1beb7bca915622ae4bf':
improve a bit the implementation of eglGetProcAddress
761eaed2ffc5022606de252997630dbcd9e805d9 10-Aug-2010 Romain Guy <romainguy@google.com> Fix tons of bugs and add new text rendering support.

Change-Id: I326c66b10784006f6df2f12d38e120cef94cd0d7
ibs/GLES2/gl2.cpp
7f781d155221c4067c93f85b4153c204423f49f2 10-Aug-2010 Mathias Agopian <mathias@google.com> improve a bit the implementation of eglGetProcAddress

Change-Id: Ie07f33ae2162830df1e4f3d3b5e00fcfb8c350d6
ibs/EGL/getProcAddress.cpp
ff1448b53fe03097008ca08debd658a02da7603a 04-Aug-2010 Mathias Agopian <mathias@google.com> am d12a98e2: am 9abce39a: Merge "fix [2421247] implement eglGetProcAddress(), needed in the ndk" into gingerbread

Merge commit 'd12a98e2b1eb3a2ae20eace8a7d4b5fa13bbedfb'

* commit 'd12a98e2b1eb3a2ae20eace8a7d4b5fa13bbedfb':
fix [2421247] implement eglGetProcAddress(), needed in the ndk
574a26fa52750b1def27735ac9e69a0f15e7e993 03-Aug-2010 Mathias Agopian <mathias@google.com> am 9abce39a: Merge "fix [2421247] implement eglGetProcAddress(), needed in the ndk" into gingerbread

Merge commit '9abce39a991a6bc1cfab4284b5448a4f676bb06f' into gingerbread-plus-aosp

* commit '9abce39a991a6bc1cfab4284b5448a4f676bb06f':
fix [2421247] implement eglGetProcAddress(), needed in the ndk
24035338ed6329e4d85fb00cf99a91e2cdd55ba5 03-Aug-2010 Mathias Agopian <mathias@google.com> fix [2421247] implement eglGetProcAddress(), needed in the ndk

Change-Id: I5027a27b43c0dd449a404024087853ca05bb8e4e
ibs/Android.mk
ibs/EGL/egl.cpp
ibs/EGL/getProcAddress.cpp
ibs/hooks.h
90f7672a6fbf8c29a3886501dda956844a914673 31-Jul-2010 Mathias Agopian <mathias@google.com> am 67e4ff76: am 4d7fc365: Merge "remove copybit hack from software opengl (libagl)" into gingerbread

Merge commit '67e4ff768d71088a64fbac3b8e398e2e16dd84ec'

* commit '67e4ff768d71088a64fbac3b8e398e2e16dd84ec':
remove copybit hack from software opengl (libagl)
d7beac601a153c4543813d3100f160cdb8d8ed4c 31-Jul-2010 Mathias Agopian <mathias@google.com> am 4d7fc365: Merge "remove copybit hack from software opengl (libagl)" into gingerbread

Merge commit '4d7fc3651bd93d588d2b8580010414b59bc67729' into gingerbread-plus-aosp

* commit '4d7fc3651bd93d588d2b8580010414b59bc67729':
remove copybit hack from software opengl (libagl)
bb0628d9debc5ddd5b1ca3311d6397bbe668c4ee 30-Jul-2010 Mathias Agopian <mathias@google.com> remove copybit hack from software opengl (libagl)

h/w acceleration is not supported through software gl + copybit anylonger,
instead, h/w opengl must be used. in the system compositor, a new h/w
composition api will be introduced to allow h/w accelerated composition with
overlays and/or 2D blocks.

Change-Id: I04949cb074ba8c4d637319ace23497c16a58d5bf
ibagl/Android.mk
ibagl/TextureObjectManager.cpp
ibagl/TextureObjectManager.h
ibagl/array.cpp
ibagl/copybit.cpp
ibagl/copybit.h
ibagl/egl.cpp
ibagl/state.cpp
ibagl/texture.cpp
bcfcddf94a13bb455a1c7a7e79b082e9aa8737b2 30-Jul-2010 Mathias Agopian <mathias@google.com> am eb248a58: am 55a76dd8: Merge "fix [2870926] Issue 9802: EGL wrapper has not been implemented correctly for eglQuerySurface()." into gingerbread

Merge commit 'eb248a58fabac31873982e4f389ba81981f4041f'

* commit 'eb248a58fabac31873982e4f389ba81981f4041f':
fix [2870926] Issue 9802: EGL wrapper has not been implemented correctly for eglQuerySurface().
31fc9fd03771e288ad086297645dc2e5e3e42a43 30-Jul-2010 Mathias Agopian <mathias@google.com> am 55a76dd8: Merge "fix [2870926] Issue 9802: EGL wrapper has not been implemented correctly for eglQuerySurface()." into gingerbread

Merge commit '55a76dd8d9996c1e93762d7611789aea696d536c' into gingerbread-plus-aosp

* commit '55a76dd8d9996c1e93762d7611789aea696d536c':
fix [2870926] Issue 9802: EGL wrapper has not been implemented correctly for eglQuerySurface().
cee79391c8c4e4111dd2f5074fa84d47b2a8f153 27-Jul-2010 Mathias Agopian <mathias@google.com> fix [2870926] Issue 9802: EGL wrapper has not been implemented correctly for eglQuerySurface().

rework how our EGL wrapper manages EGLConfig:

- we now store the EGLConfig with the EGLSurface and EGLContext
so that we can have easy access to it from eglQueryContext
and eglQuerySurface.

- EGLConfig now are an index into a sorted table of egl_config_t,
we use a binary search to retrieve our EGLConfig (the index) from
the implementation's EGLConfig.

- egl_config_t keeps track of the implementation's index,
EGLConfig and CONFIG_ID as well as our CONFIG_ID.

In many ways, this implementation is simpler and more robust, as it doesn't
assume anything about the number of implementations nor what EGLConfig is
made of (the previous code assumed EGLConfig didn't usem more than 24-bits).

Change-Id: Id5abe923aacb6e1fd2b63bd8c15d7b04ae824922
ibs/EGL/egl.cpp
7920987182de225959a3bf40f36fd5ee23204cae 21-Jul-2010 Jason Sams <rjsams@android.com> Update filltest.

Change-Id: I37f2bde9898046eafb6431519dae78bf6f368f05
ests/gl_perf/fill_common.cpp
ests/gl_perf/filltest.cpp
ests/gl_perfapp/jni/gl_code.cpp
3e9eb868b3ad6a93adcb6e8874779f1f57c6ca16 20-Jul-2010 Jack Palevich <jackpal@google.com> Fix extraMath state variable.

Change-Id: Iba76d3e4e3bab0b993d176755f588201c8a967cd
ests/gl_perfapp/jni/gl_code.cpp
92a9ae4a02682a9e195f3e3a68d2c7293c018173 20-Jul-2010 Jack Palevich <jackpal@google.com> Try to handle end-of-application better.

Handle rotation from portrait to landscape by restarting test if not
finished.

Don't write blank line to csv file.

Change-Id: I154443138817bcec9530123c8388fcf659632336
ests/gl_perfapp/jni/gl_code.cpp
63bcb5f8e2d2c1d054b09a5ab9f989644cfeb9b1 20-Jul-2010 Jack Palevich <jackpal@google.com> Write test timings to /sdcard/glperf.csv

Change-Id: If09e209a9d8049f03320dbd7df257137bf06949e
ests/gl_perfapp/AndroidManifest.xml
ests/gl_perfapp/jni/gl_code.cpp
965b95468d8325388557003eec24bd70fd22640a 20-Jul-2010 Jack Palevich <jackpal@google.com> Keep screen on for whole test.

Print only one set of timings per test.

Draw blank black screen when done.

Change-Id: I963bcbca99ff5975683b15e60437978eb1a8beb8
ests/gl_perfapp/jni/gl_code.cpp
ests/gl_perfapp/src/com/android/glperf/GLPerfActivity.java
eb69d2ae19c89553c142a7b716fe2ac72e32080a 20-Jul-2010 Jack Palevich <jackpal@google.com> An application version of the GL test.

Change-Id: Ibcccdf2560eb24d3037c02c4740f0048b60d070c
ests/gl_perfapp/Android.mk
ests/gl_perfapp/AndroidManifest.xml
ests/gl_perfapp/jni/gl_code.cpp
ests/gl_perfapp/res/values/strings.xml
ests/gl_perfapp/src/com/android/glperf/GLPerfActivity.java
ests/gl_perfapp/src/com/android/glperf/GLPerfLib.java
ests/gl_perfapp/src/com/android/glperf/GLPerfView.java
e0f1cff1fac644bd585e6d9ff1a3297338ef0013 12-Jul-2010 Jason Sams <rjsams@android.com> gl perf test cleanup.

Change-Id: Ic486774e25421bd2f412f0ba2bbac4660e3982b8
ests/gl_perf/filltest.cpp
ests/gl_perf/gl2_perf.cpp
a5c381fd51deb4bdd8fea3141ad00925f2e2cfb6 12-Jul-2010 Andy McFadden <fadden@android.com> Fix build.

Added missing #include <string.h>.

Change-Id: Idf151876851110098fe538a042f896784821919b
ests/gl_perf/filltest.cpp
e448dd1a4f01da5d9d0ab813c2d5939bcba85ccb 10-Jul-2010 Jason Sams <rjsams@android.com> Remove points from fixed function.
Add basic GL performance test.

Change-Id: I421a41b6683b2c5f70045cdd0f610a6939105fee
ests/gl_perf/Android.mk
ests/gl_perf/filltest.cpp
ests/gl_perf/gl2_perf.cpp
c64622bcb0ba5a681da0cc43c47d151e1c943ad6 02-Jul-2010 Mathias Agopian <mathias@google.com> am 5219a82f: am 8ecfb60a: Merge "Fix a bug that prevented the creation of EGL shared contexts." into gingerbread

Merge commit '5219a82f9d64a7d13401dcf9a0703a0ca2cd842d'

* commit '5219a82f9d64a7d13401dcf9a0703a0ca2cd842d':
Fix a bug that prevented the creation of EGL shared contexts.
7c1c974d7927695e63a950c01e50e590efebf5a3 02-Jul-2010 Mathias Agopian <mathias@google.com> am 8ecfb60a: Merge "Fix a bug that prevented the creation of EGL shared contexts." into gingerbread

Merge commit '8ecfb60a8e74dfcd51bbf3f236d5f414a4d5ac7d' into gingerbread-plus-aosp

* commit '8ecfb60a8e74dfcd51bbf3f236d5f414a4d5ac7d':
Fix a bug that prevented the creation of EGL shared contexts.
bf83375c73f0dcde5d97b36273e3fd971411e866 02-Jul-2010 Mathias Agopian <mathias@google.com> Merge "Fix a bug that prevented the creation of EGL shared contexts." into gingerbread
4c39f8f9e2df75a5b53b3ccae712a8946195a8a3 02-Jul-2010 Jamie Gennis <jgennis@google.com> Fix a bug that prevented the creation of EGL shared contexts.

Change-Id: I6b0ec5ef86abdd4e9083067ba297107cfb094df3
ibs/EGL/egl.cpp
d26e345f29b48abe0c404366c45c72afaebdad47 02-Jul-2010 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of f601ce2c to master

Change-Id: I9e880aacef9d949d83945d41ee5b6eb63ddc4cc7
3541b20f6fb1f6d53c484f9536732ad26b376e6d 02-Jul-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: Ifec16490ea2170728cb6ccb18d2e74fcb3478db6
ed2b843c91ca79e0e58e27621bf7b537374a2e68 01-Jul-2010 Dianne Hackborn <hackbod@google.com> am 177c405a: am c6e1d880: Merge "Introduce official public NativeWindow type." into gingerbread

Merge commit '177c405a242e811b1010bd8382b5807ab8df31a8'

* commit '177c405a242e811b1010bd8382b5807ab8df31a8':
Introduce official public NativeWindow type.
d729836ff87fb71772592a1069c89284321eabc6 01-Jul-2010 Dianne Hackborn <hackbod@google.com> am c6e1d880: Merge "Introduce official public NativeWindow type." into gingerbread

Merge commit 'c6e1d88022db800773401c16803e1ab27fd01a7e' into gingerbread-plus-aosp

* commit 'c6e1d88022db800773401c16803e1ab27fd01a7e':
Introduce official public NativeWindow type.
4b5e91e4820f03dba7dcc36e4b148331bc964b4b 30-Jun-2010 Dianne Hackborn <hackbod@google.com> Introduce official public NativeWindow type.

Not yet hooked up to anything in the NDK, but requires renaming
the existing android_native_window_t type everywhere.

Change-Id: Iffee6ea39c93b8b34e20fb69e4d2c7c837e5ea2e
nclude/EGL/eglplatform.h
ibagl/egl.cpp
a1a79197c0e52b61fa129baeaa0345508708addc 25-Jun-2010 Bruce Beare <brucex.j.beare@intel.com> Fix missing NL

Change-Id: I323f0c01d2e9ad4c9f07cad24bf6b63edc28ad62
Signed-off-by: Bruce Beare <brucex.j.beare@intel.com>
ests/gl_jni/jni/gl_code.cpp
037256be7ed56ba802b4f83efb71d36f48379954 23-Jun-2010 Jack Palevich <jackpal@google.com> am 1e08cc1d: am 224107a4: Add OpenGL ES 2.0 VBO versions glDrawElements and glVertexAttribPointer.

Merge commit '1e08cc1dfda9a0264fcf62898af0bdd6ed5a205c'

* commit '1e08cc1dfda9a0264fcf62898af0bdd6ed5a205c':
Add OpenGL ES 2.0 VBO versions glDrawElements and glVertexAttribPointer.
243ce507c4507cd9ee01423793d59868bf892971 23-Jun-2010 Mathias Agopian <mathias@google.com> am cefb8858: am 28333315: Merge "Added support for the GL_TEXTURE_EXTERNAL target" into gingerbread

Merge commit 'cefb88587443323d147e687ff78eae9195eb584c'

* commit 'cefb88587443323d147e687ff78eae9195eb584c':
Added support for the GL_TEXTURE_EXTERNAL target
0a51628683d4abb012ece9be3971e6147cd1ebee 22-Jun-2010 Jack Palevich <jackpal@google.com> am 224107a4: Add OpenGL ES 2.0 VBO versions glDrawElements and glVertexAttribPointer.

Merge commit '224107a421e2611b15d1ec736df54bca9ee3e78d' into gingerbread-plus-aosp

* commit '224107a421e2611b15d1ec736df54bca9ee3e78d':
Add OpenGL ES 2.0 VBO versions glDrawElements and glVertexAttribPointer.
b3ffef9dfe43a0b33aef57b279ab0e8b98df6e8c 22-Jun-2010 Jack Palevich <jackpal@google.com> Add OpenGL ES 2.0 VBO versions glDrawElements and glVertexAttribPointer.

Change-Id: Id0069535e97fe96eef74e4d0c1d19b010061fe3b
ools/glgen/specs/gles11/GLES20.spec
ools/glgen/src/JniCodeEmitter.java
38c371361b9141f227a73ec0e3c74954ca90aa52 22-Jun-2010 Mathias Agopian <mathias@google.com> am 28333315: Merge "Added support for the GL_TEXTURE_EXTERNAL target" into gingerbread

Merge commit '28333315c6f62b303de2ec0ac9e48158ed419f06' into gingerbread-plus-aosp

* commit '28333315c6f62b303de2ec0ac9e48158ed419f06':
Added support for the GL_TEXTURE_EXTERNAL target
ff5f34f3c93eec726c17816f8fe612e8c580224e 21-Jun-2010 Jean-Baptiste Queru <jbq@google.com> Recover a handful of commits that were reverted earlier
ibagl/egl.cpp
ecfae4c86a094c27ea004a4d759e4578614078a0 21-Jun-2010 The Android Open Source Project <initial-contribution@android.com> merge from froyo-plus-aosp

Change-Id: I36dd4460cae6e3212d724e70ff1091cb791670cd
0a91775c4df380d6a5b7f3ccad5127388ac01306 15-Jun-2010 Mathias Agopian <mathias@google.com> Added support for the GL_TEXTURE_EXTERNAL target

This will allow us to support YUV surfaces.

Change-Id: I2d4da75f1006a5285bdc552695d4caeecccf2183
nclude/GLES/glext.h
nclude/GLES2/gl2ext.h
0acbc14307d69dccf7749fff9239d224523799a4 15-Jun-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I12af4b88c1881a6a120031459bc63d87b1dd4956
21f82d43d68784e74a272d2d2426eedc16345b80 10-Jun-2010 Mathias Agopian <mathias@google.com> am e52d66fa: am 44bea8f8: Merge changes I00274431,I83be9404,I0359531a,Iceef1e95 into kraken
e81a3cb2bd16f0ce1e9c256559aaa2095a1f41f6 10-Jun-2010 Mathias Agopian <mathias@google.com> update EGL headers to the latest

note that this doesn't update the EGL stubs.

Change-Id: I00274431a490249d93eb6b5ba13f274b7f2682ae
nclude/EGL/egl.h
nclude/EGL/eglext.h
nclude/EGL/eglplatform.h
ests/gl2_basic/gl2_basic.cpp
ests/gl_basic/gl_basic.cpp
11cca925b23a5226d0582e9da52a1627eaa4a9b3 10-Jun-2010 Mathias Agopian <mathias@google.com> update GL ES stub libraries with the new GL ES headers

Change-Id: I83be94049ddfe3fd7f5bee71a21172ade1498dd5
ibs/GLES2/gl2_api.in
ibs/GLES2/gl2ext_api.in
ibs/GLES_CM/gl_api.in
ibs/GLES_CM/glext_api.in
ibs/entries.in
05bb9c973b414d961e2716efc0e340698e8ebd2a 10-Jun-2010 Mathias Agopian <mathias@google.com> fix OpenGL ES extension headers from khronos

the official headers have a couple typos, which
this CL fixes.

Change-Id: I0359531a05a4a62ddbdce70c5841ec1c355feb3b
nclude/GLES/glext.h
nclude/GLES2/gl2ext.h
8f62c3031e0c8297d3fa1593430ab402cf6a776f 10-Jun-2010 Mathias Agopian <mathias@google.com> update the OpenGL ES headers to the latest

Change-Id: Iceef1e95504897a5e3759b0401cf7031c9e74547
nclude/GLES/gl.h
nclude/GLES/glext.h
nclude/GLES/glplatform.h
nclude/GLES2/gl2.h
nclude/GLES2/gl2ext.h
nclude/GLES2/gl2platform.h
a409e195fefcfdc2672418d7ad058f3ff865999e 02-Jun-2010 Mathias Palmqvist <mathias.palmqvist@sonyericsson.com> Use stride for source and target buffers when copybit is enabled.

Change-Id: Ie651013b3522f8e004685d74190da86433086307
ibagl/egl.cpp
fa5ec24a581d7878bafd618befadaa81d5585226 17-May-2010 Mathias Agopian <mathias@google.com> am df9556f3: am 23100fd1: Merge "fix a crasher in our EGL wrapper when attrib_list is NULL in eglChooseConfig" into kraken
04aed2149d95f04602127eef4d5b6d7d48684359 17-May-2010 Mathias Agopian <mathias@google.com> fix a crasher in our EGL wrapper when attrib_list is NULL in eglChooseConfig

the EGL specification states that this should be treated as though it was
an empty list terminated with EGL_NONE.

Change-Id: I294104370a86b5e5c34c7bcf15c5459eab464631
ibagl/egl.cpp
ibs/EGL/egl.cpp
92677d978d48a6ab482c511f8a1b6ed7b6f285e0 12-May-2010 The Android Open Source Project <initial-contribution@android.com> am 1b7e3ef4: am 55bef14f: am fb234bbe: merge from open-source master
e4582835f0732a24dd14324e895d373d598d7fe0 12-May-2010 The Android Open Source Project <initial-contribution@android.com> am fb234bbe: merge from open-source master

Merge commit 'fb234bbe5e7cbae42b4fc8f4ab353ba561599db2' into kraken

* commit 'fb234bbe5e7cbae42b4fc8f4ab353ba561599db2':
Notify user regarding invalid number during MO call.
Build software AGL library with correct get_tls() macro for ARMv7 based platforms
Fix glReadPixels() to verify that both x and y are non-negative.
c77a20a9d6ab56e79276215d8d1492a9893c9b59 12-May-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I022d0781a232396e2b8a67a420ecf50e64b87d8c
b0eed511a25848de05cd4bc167e5a68fe107bb90 11-May-2010 Mathias Agopian <pixelflinger@google.com> Merge "Build software AGL library with correct get_tls() macro for ARMv7 based platforms"
32a220aa6ef0ea78d50e42a63622869e069f9851 11-May-2010 Mathias Agopian <pixelflinger@google.com> Merge "Fix glReadPixels() to verify that both x and y are non-negative."
9d665b9fc92cddd6b8d3f15c04a46918e578efbd 29-Apr-2010 Jack Palevich <jackpal@google.com> Declare that testViewport targets Froyo APIs

(So that it can be built in Master, but run in
Froyo.)
ests/testViewport/Android.mk
ests/testViewport/AndroidManifest.xml
b282219d5ed429074c71fdfd586a93e138513c7a 10-Apr-2010 Mathias Agopian <mathias@google.com> am c0fa6589: am cf2bd285: Merge "small cleanup. gEGLImpl should have been static" into kraken
bf41b11ef889b69a5ef75a2e223c95c5cfc5731c 09-Apr-2010 Mathias Agopian <mathias@google.com> small cleanup. gEGLImpl should have been static

also added a ctor to initialized it in case we use it ont he stack
one day.

Change-Id: I2736b9bce3d8ba3b74fd029de4c18cca2cdbbf60
ibs/EGL/egl.cpp
ibs/egl_impl.h
f22092a1eb54d7c63af26f4956006097746c2521 31-Mar-2010 The Android Open Source Project <initial-contribution@android.com> am 4790259c: am 8de2cf4c: merge from open-source master
45ef27a260c9a2d7619bd26e879313fe6733fd41 31-Mar-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I627b3a7080e413f756d1751cdae88ec6642b02c4
80505806c407016f213d8b1a1be3372fb5c3ac31 30-Mar-2010 Jack Palevich <jackpal@google.com> Merge "Add a test program for Sapphire viewport rotation issue."
fbbbb7c855be5ed261b98b90d6ab437460462dc1 30-Mar-2010 Jack Palevich <jackpal@google.com> Add a test program for Sapphire viewport
rotation issue.
ests/testViewport/Android.mk
ests/testViewport/AndroidManifest.xml
ests/testViewport/README
ests/testViewport/res/values/strings.xml
ests/testViewport/src/com/android/test/TestActivity.java
ests/testViewport/src/com/android/test/TestView.java
8fb47ec10e7f4dad630fcac4ed47d243d4f33375 30-Mar-2010 Mathias Agopian <mathias@google.com> Fix Android's glEGLImageTargetRenderbufferOES() wrapper

glEGLImageTargetRenderbufferOES() pass the wrapped EGLImage
to the implementation, rather than the unwrapped one.

Change-Id: I149f9ed73e6ab9089110600e1db4311ba7a8c83a
ibs/GLES2/gl2.cpp
ibs/GLES_CM/gl.cpp
4b1409812a437a6a4374f9700c32f82c0fb4963a 29-Mar-2010 Jack Palevich <jackpal@google.com> Add a test of EGL pausing and resuming.
ests/testPauseResume/Android.mk
ests/testPauseResume/AndroidManifest.xml
ests/testPauseResume/README
ests/testPauseResume/res/values/strings.xml
ests/testPauseResume/src/com/android/test/TestActivity.java
ests/testPauseResume/src/com/android/test/TestView.java
4fb265e877b70cf52c3b53f5c33bf6309dca2ee6 29-Mar-2010 Jack Palevich <jackpal@google.com> Add a test of EGL pausing and resuming.
ests/testPauseResume/Android.mk
ests/testPauseResume/AndroidManifest.xml
ests/testPauseResume/README
ests/testPauseResume/res/values/strings.xml
ests/testPauseResume/src/com/android/test/TestActivity.java
ests/testPauseResume/src/com/android/test/TestView.java
988fce5ee54b7a29376ee5dfbd429f4e7d018ec2 26-Mar-2010 Mathias Agopian <mathias@google.com> fix [2236865] STOPSHIP: bump soft gl and egl minor version number

this is to allow developpers to deal with potiential differences
between the softgl versions.

Change-Id: I7ec2451d6af1be29818d66215b22977405d403e8
ibagl/state.cpp
7efc2fc955087663f17848913c93835634bc2de8 30-Nov-2009 Jae-Hyung Ahn <jerry.ahn@windriver.com> gl_code : add end of line.

Signed-off-by: Jae-Hyung Ahn <jerry.ahn@windriver.com>
ests/gl_jni/jni/gl_code.cpp
81cd08448586d73e1ea602f4c83a2203483ae735 16-Mar-2010 Jack Palevich <jackpal@google.com> Implement eglInitialize / eglTerminate reference counting

Previously we imlpemented the standard semantics for
eglInitialize / eglTerminate, which are that
eglInitialize may be called any number of times,
but the first call to eglTerminate will terminate
the display.

Now we follow reference-countins semantics, which
means that eglTerminate will only terminate the
display when the reference count returns to zero.

This change allows EGL to be used by multiple
independently written modules in the same process.

(Otherwise there is no way for the independent
modules to coordinate their use of the display.)
ibs/EGL/egl.cpp
7c5fe4c4f6ad9f5bad5aa7d7dce6122a3124b87d 13-Mar-2010 Jack Palevich <jackpal@google.com> Fix glCopyTexSubImage2D inverted texture bug.

This bug only affects the software OpenGL ES
driver.
ibagl/texture.cpp
bd393b7f39a71a13893aea8b64474b0b07ebe0dd 12-Mar-2010 Kenny Root <kroot@google.com> Add correct copyright headers to multiple files

Format for the list of changes shows the origin commit reference followed
by the file name.

33931-p9 awt/org/apache/harmony/awt/gl/font/AndroidGlyphVector.java
33931-p9 awt/org/apache/harmony/awt/gl/image/PngDecoderJava.java
133776-p9 core/java/android/app/IntentService.java
127013-p9 core/java/android/appwidget/AppWidgetHost.java
27863-p9 core/java/android/bluetooth/BluetoothAudioGateway.java
60765-p9 core/java/android/content/SyncResult.java
43920-p9 core/java/android/content/pm/ActivityInfo.java
43920-p9 core/java/android/content/pm/ApplicationInfo.java
43920-p9 core/java/android/content/pm/InstrumentationInfo.java
43920-p9 core/java/android/content/pm/PackageInfo.java
44103-p9 core/java/android/content/pm/PackageItemInfo.java
68960-p9 core/java/android/content/pm/PackageStats.java
43920-p9 core/java/android/content/pm/ResolveInfo.java
43920-p9 core/java/android/content/pm/ServiceInfo.java
60641-p9 core/java/android/content/res/Configuration.java
60734-p9 core/java/android/content/res/TypedArray.java
137672-p9 core/java/android/inputmethodservice/ExtractButton.java
123112-p9 core/java/android/inputmethodservice/ExtractEditText.java
119291-p9 core/java/android/inputmethodservice/IInputMethodSessionWrapper.java
112946-p9 core/java/android/inputmethodservice/IInputMethodWrapper.java
115078-p9 core/java/android/os/BatteryStats.java
124790-p9 core/java/android/text/style/UpdateAppearance.java
45083-p9 core/java/android/view/RawInputEvent.java
101491-p9 core/java/android/view/inputmethod/EditorInfo.java
114701-p9 core/java/android/view/inputmethod/ExtractedText.java
123112-p9 core/java/android/view/inputmethod/ExtractedTextRequest.java
119291-p9 core/java/com/android/internal/os/HandlerCaller.java
129279-p9 core/java/com/android/internal/os/PkgUsageStats.java
114701-p9 core/java/com/android/internal/view/IInputConnectionWrapper.java
114701-p9 core/java/com/android/internal/view/InputConnectionWrapper.java
84364-p9 opengl/java/android/opengl/EGLLogWrapper.java
11355-p9 opengl/tools/glgen/src/CFunc.java
11355-p9 opengl/tools/glgen/src/CType.java
11355-p9 opengl/tools/glgen/src/CodeEmitter.java
11355-p9 opengl/tools/glgen/src/GenerateGL.java
11355-p9 opengl/tools/glgen/src/JFunc.java
11355-p9 opengl/tools/glgen/src/JType.java
11355-p9 opengl/tools/glgen/src/JniCodeEmitter.java
11355-p9 opengl/tools/glgen/src/ParameterChecker.java
57236-p9 services/java/com/android/server/status/AnimatedImageView.java
66754-p9 services/java/com/android/server/status/CloseDragHandle.java
57188-p9 services/java/com/android/server/status/DateView.java
46928-p9 services/java/com/android/server/status/ExpandedView.java
70590-p9 services/java/com/android/server/status/FixedSizeDrawable.java
45968-p9 services/java/com/android/server/status/IconData.java
57470-p9 services/java/com/android/server/status/IconMerger.java
82719-p9 services/java/com/android/server/status/LatestItemView.java
45968-p9 services/java/com/android/server/status/NotificationData.java
66754-p9 services/java/com/android/server/status/NotificationLinearLayout.java
57458-p9 services/java/com/android/server/status/NotificationViewList.java
45968-p9 services/java/com/android/server/status/StatusBarException.java
45968-p9 services/java/com/android/server/status/StatusBarIcon.java
46130-p9 services/java/com/android/server/status/StatusBarNotification.java
45968-p9 services/java/com/android/server/status/StatusBarView.java
46199-p9 services/java/com/android/server/status/Ticker.java
62286-p9 services/java/com/android/server/status/TickerView.java
57188-p9 services/java/com/android/server/status/TrackingView.java
86041-p9 telephony/java/android/telephony/PhoneStateListener.java
87020-p9 telephony/java/com/android/internal/telephony/TelephonyIntents.java
136269-p9 telephony/java/com/android/internal/telephony/gsm/SpnOverride.java
34409-p9 tests/FrameworkTest/src/com/android/frameworktest/FrameworkTestApplication.java
55717-p9 tests/FrameworkTest/src/com/android/frameworktest/performance/InvalidateCycle.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/AutoCompleteTextViewActivityLandscape.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/AutoCompleteTextViewActivityPortrait.java
129372-p9 tests/ImfTest/src/com/android/imftest/samples/BigEditTextActivityNonScrollablePanScan.java
129372-p9 tests/ImfTest/src/com/android/imftest/samples/BigEditTextActivityNonScrollableResize.java
129372-p9 tests/ImfTest/src/com/android/imftest/samples/BigEditTextActivityScrollablePanScan.java
129372-p9 tests/ImfTest/src/com/android/imftest/samples/BigEditTextActivityScrollableResize.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/BottomEditTextActivityPanScan.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/BottomEditTextActivityResize.java
127341-p9 tests/ImfTest/src/com/android/imftest/samples/ButtonActivity.java
129347-p9 tests/ImfTest/src/com/android/imftest/samples/DialogActivity.java
129372-p9 tests/ImfTest/src/com/android/imftest/samples/EditTextActivityDialog.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/ManyEditTextActivityNoScrollPanScan.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/ManyEditTextActivityScrollPanScan.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/ManyEditTextActivityScrollResize.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/OneEditTextActivityNotSelected.java
128994-p9 tests/ImfTest/src/com/android/imftest/samples/OneEditTextActivitySelected.java
25959-p9 tests/framework-tests/src/android/test/FrameworkTests.java
46162-p9 tests/framework-tests/src/com/android/internal/http/multipart/MultipartTest.java
77101-p9 tools/layoutlib/bridge/tests/com/android/layoutlib/bridge/NinePatchTest.java
9788976b1465ce982b5ae7c741345edd0ecd9322 core/java/android/accounts/AuthenticatorDescription.java
53332883543868fb83e111a07306368b7772b340 core/java/android/app/UiModeManager.java
93e7e22ec91dbc641d10ca6d70423e1357a95bba core/java/android/app/FullBackupAgent.java
328c0e7986aa6bb7752ec6de3da9c999920bb55f core/java/android/content/CursorEntityIterator.java
307da1a46b4c9b711bafe8fbaaa6b98e8868c18e core/java/android/content/SyncQueue.java
307da1a46b4c9b711bafe8fbaaa6b98e8868c18e core/java/android/content/SyncOperation.java
eb034652c2037a47ebfd99779e8383bb8bb528af core/java/android/content/pm/LabeledIntent.java
49237345d83e62fdb9eb8d50b13ad086636a04fa core/java/android/content/pm/FeatureInfo.java
a2b6c3775ed6b8924232d6a01bae4a19740a15f8 core/java/android/content/pm/PackageInfoLite.java
3ecd5f437580e49d80beecd29489d5fb1f7a7db0 core/java/android/content/pm/RegisteredServicesCacheListener.java
5ebbb4a6b3e16f711735ae0615b9a9ea64faad38 core/java/android/content/pm/XmlSerializerAndParser.java
c4516a7b62de525e3d6d5e76851bdfaf12c11f05 core/java/android/database/sqlite/SQLiteTransactionListener.java
9bbc21a773cbdfbef2876a75c32bda5839647751 core/java/com/android/internal/backup/LocalTransport.java
21f1bd17b2dfe361acbb28453b3f3b1a110932fa core/java/com/android/internal/content/PackageMonitor.java
4c62fc0e1e5ea9c69a12a7d1cf8b3ec8b2d114a3 core/java/com/android/internal/view/BaseSurfaceHolder.java
4c62fc0e1e5ea9c69a12a7d1cf8b3ec8b2d114a3 core/java/com/android/internal/view/BaseIWindow.java
e540833fdff4d58e37c9ba859388e24e2945ed45 core/java/com/android/internal/os/SamplingProfilerIntegration.java
192ab903887bbb8e7c7b6da5c581573850e30f46 core/tests/coretests/src/android/widget/expandablelistview/PositionTesterContextMenuListener.java
1619367ab823150fa8856d419abe02ceb75886f1 media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/MediaProfileReader.java
27f8002e591b5c579f75b2580183b5d1c4219cd4 opengl/tools/glgen/stubs/gles11/glGetString.java
560814f6b11abe83ff0c4ed18cac015c276b3181 opengl/tools/glgen/stubs/gles11/glGetProgramInfoLog.java
560814f6b11abe83ff0c4ed18cac015c276b3181 opengl/tools/glgen/stubs/gles11/glGetShaderInfoLog.java
560814f6b11abe83ff0c4ed18cac015c276b3181 opengl/tools/glgen/stubs/gles11/glShaderSource.java
1c4907ee77392afb768c2f088e0dedbe4239f6fb opengl/tools/glgen/src/GenerateGLES.java
1c4907ee77392afb768c2f088e0dedbe4239f6fb opengl/tools/glgen/src/Jsr239CodeEmitter.java
1c4907ee77392afb768c2f088e0dedbe4239f6fb opengl/tools/glgen/src/GLESCodeEmitter.java
69e21f5f6e0d04539cd92848ea009dd615d88c2c opengl/tests/gldual/src/com/android/gldual/TriangleRenderer.java
c028be4f3b8c7476b46859f66c3f33d528adf181 packages/DefaultContainerService/src/com/android/defcontainer/DefaultContainerService.java
7c6efa13f129dbae5319f0981a430d4662f43354 tests/BrowserPowerTest/src/com/android/browserpowertest/PowerMeasurement.java
7c6efa13f129dbae5319f0981a430d4662f43354 tests/BrowserPowerTest/src/com/android/browserpowertest/PowerTestActivity.java
7c6efa13f129dbae5319f0981a430d4662f43354 tests/BrowserPowerTest/src/com/android/browserpowertest/PowerTestRunner.java
df8a3f31d871db25e952972c2eb346a71186e9e3 tests/BrowserTestPlugin/src/com/android/testplugin/TestPlugin.java
cfaef699e1dfb3a75d5b51f3b15816f13670fd51 tests/permission/src/com/android/framework/permission/tests/ActivityManagerPermissionTests.java
cfaef699e1dfb3a75d5b51f3b15816f13670fd51 tests/permission/src/com/android/framework/permission/tests/ServiceManagerPermissionTests.java
cfaef699e1dfb3a75d5b51f3b15816f13670fd51 tests/permission/src/com/android/framework/permission/tests/WindowManagerPermissionTests.java

Copyright header moved to top in following file:

core/tests/coretests/src/android/widget/ListViewTest.java

Change-Id: I3c3198be5a0ba36e18679ed834170432bf0b8418
ests/gldual/src/com/android/gldual/TriangleRenderer.java
ools/glgen/src/CFunc.java
ools/glgen/src/CType.java
ools/glgen/src/CodeEmitter.java
ools/glgen/src/GLESCodeEmitter.java
ools/glgen/src/GenerateGL.java
ools/glgen/src/GenerateGLES.java
ools/glgen/src/JFunc.java
ools/glgen/src/JType.java
ools/glgen/src/JniCodeEmitter.java
ools/glgen/src/Jsr239CodeEmitter.java
ools/glgen/src/ParameterChecker.java
ools/glgen/stubs/gles11/glGetProgramInfoLog.java
ools/glgen/stubs/gles11/glGetShaderInfoLog.java
ools/glgen/stubs/gles11/glGetString.java
ools/glgen/stubs/gles11/glShaderSource.java
d08583b05c47e676a5e9a9f4ae58594d75141e62 19-Feb-2010 Magnus Landqvist <magnus.landqvist@sonyericsson.com> Build software AGL library with correct get_tls() macro for ARMv7 based platforms

This prevents crashes on snapdragon processors.
ibagl/Android.mk
54ed4f6282bdea251455f39b978626026affdbef 17-Feb-2010 Mathias Agopian <mathias@google.com> get rid off the YUV formats at the libui layer
ibagl/copybit.cpp
82c19b101eb18f1027f1855a4f690bf57684cbf8 06-Feb-2010 Mathias Agopian <mathias@google.com> Merge "fix [2189862] Race condition in eglIntialize and eglDestroy"
75bc27803efd96d15f48ef36429b27ab31182b67 06-Feb-2010 Mathias Agopian <mathias@google.com> fix [2189862] Race condition in eglIntialize and eglDestroy

there is now a lock protext a perticular display. it's held during
initialization and destruction.
ibs/EGL/egl.cpp
8dccb26901973722164f2a11551fd6d5c52081bf 05-Feb-2010 Mathias Agopian <mathias@google.com> Proper EGLImageKHR error handling

Validate EGLImageKHR format and return an error for unsupported ones.
Also make sure to return an error when binding EGL_NO_IMAGE_KHR to a texture
ibagl/egl.cpp
ibagl/texture.cpp
04a3f57d19b471c21f3c83c50793a94908cafdc7 03-Feb-2010 Mathias Agopian <mathias@google.com> fix [2133133] Software OpenGL ES Lighting is buggy (GL Gears washed out bug)

A typo caused GL_AMBIENT_AND_DIFFUSE to only set the the ambient color.

Fix another typo which caused the viewer position to be wrong for
specular highlights.

Switch back to eye-space lighting, since there are still some issues
with some demos (San Angeles in particular).
ibagl/light.cpp
ibagl/light.h
ibagl/matrix.cpp
06735863719e08b44edebddcb97861f867bdc01d 03-Feb-2010 Jack Palevich <jackpal@google.com> Fix ETC1 texture decoding.

etc1_decode_image requires the stride argument to be in bytes, but the
surface->stride field is in pixels. Convert by multiplying by pixel size.
ibagl/texture.cpp
18b915a1026dfe9d273ee3fd2139b7feed22008c 02-Feb-2010 Mathias Agopian <mathias@google.com> implement [2396050] Add ETC1 texture support to AGL
ibagl/Android.mk
ibagl/state.cpp
ibagl/texture.cpp
fda42f318a2f6508ed87e51a02bd588db2ddb464 01-Feb-2010 Mathias Agopian <mathias@google.com> fix [2397853] glCopyTexImage2D crashes emulator

Fixed a typo which would cause a buffer overflow
ibagl/texture.cpp
a48c654e8207ed820670ea3214a649ff7d92c8a3 29-Jan-2010 Mike Playle <mike.playle@realvnc.com> Fix glReadPixels() to verify that both x and y are non-negative.
ibagl/texture.cpp
e44e45c454a1f6ab89bce338d4ef12471549a7a2 28-Jan-2010 Jack Palevich <jackpal@google.com> Implement the GL11ExtensionPack APIs.
ools/glgen/specs/jsr239/glspec-1.1extpack
ools/glgen/specs/jsr239/glspec-checks
ools/glgen/src/JniCodeEmitter.java
ools/glgen/stubs/jsr239/GLCHeader.cpp
ools/glgen/stubs/jsr239/GLImplHeader.java-impl
45351bcae55fea67d5560c8a68887394eff9eda8 25-Jan-2010 Mathias Agopian <mathias@google.com> fix [2341222] AGL version of glDrawTexxOES doesn't handle "Z" value correctly
ibagl/texture.cpp
8063c3ab04c922ef7c9bc3984a75503598001fd9 25-Jan-2010 Mathias Agopian <mathias@google.com> fix [2303866] eglMakeCurrent doesn't return all error messages described in the spec
ibs/EGL/egl.cpp
9166f7bfa7796489d9b34f49846541cfd9a640d5 29-Sep-2009 Gary King <gking@nvidia.com> Use correct TLS codepath in graphics libraries

Duplicate ARCH_ARM_HAVE_TLS_REGISTER BoardConfig to proprocessor
HAVE_ARM_TLS_REGISTER define from Bionic's libc Android.mk to ensure that
OpenGL libraries (libEGL, libGLESv1_CM, libGLESv2, libGLES_android) use the
correct codepath in bionic_tls.h for accessing the TLS address
ibagl/Android.mk
ibs/Android.mk
91ea437c47ec1fde57746d757a46b8f56c9f3731 10-Jan-2010 Jack Palevich <jackpal@google.com> am 6d0f6c78: Merge "DO NOT MERGE A library for encoding and decoding ETC1 textures." into eclair

Merge commit '6d0f6c78037225ef5648d10e45a513a2e7c612b5' into eclair-plus-aosp

* commit '6d0f6c78037225ef5648d10e45a513a2e7c612b5':
DO NOT MERGE A library for encoding and decoding ETC1 textures.
e8b6618c4c8cbfca2a63f4fc7ccd41fdfc79f953 09-Jan-2010 Romain Guy <romainguy@android.com> Deprecate fill_parent and introduce match_parent.
Bug: #2361749.
ests/gldual/res/layout/gldual_activity.xml
618c755192c452b1138528058419be8dc1d56c05 08-Jan-2010 Jack Palevich <jackpal@google.com> DO NOT MERGE A library for encoding and decoding ETC1 textures.

The ETC1 compressed texture format is commonly
supported by OpenGL ES 2.0-capable devices.

This change adds a host-only version of the library. It is used by
the etc1tool.
nclude/ETC1/etc1.h
ibs/Android.mk
ibs/ETC1/etc1.cpp
837edec5e39e4c914b56bd74f7cdf31ab5bc5843 06-Jan-2010 Jean-Baptiste Queru <jbq@google.com> Do not use a user tag on apps, as it is ignored.

The build system does not honor user tags on apps,
and setting it is misleading.

This removes the confusion by making the makefiles
behave like they read.

Change-Id: I7c5feba1c7d07f915b97dd098584f29938a4c885
ests/gl2_jni/Android.mk
ests/gl_jni/Android.mk
ests/gldual/Android.mk
01cc538b290ecc9ccfdf1907fb714b76cf0f648b 28-Dec-2009 Jack Palevich <jackpal@google.com> A library for encoding and decoding ETC1 textures.

The ETC1 compressed texture format is commonly
supported by OpenGL ES 2.0-capable devices.
nclude/ETC1/etc1.h
ibs/Android.mk
ibs/ETC1/etc1.cpp
909486a7cbb89b7163e221d1c7b93e1dba0ee5c7 24-Dec-2009 Jack Palevich <jackpal@google.com> Print OpenGL version and extension information.

Something happened to the line endings, adding
a blank line after most lines of text. I
repaired the damage, but in the process some
blank lines have been added / removed.
ests/gl_basic/gl_basic.cpp
5233a4e1b7e0496157a2fa17435f773f6fb16f64 10-Dec-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I5ddc721d

* changes:
Add misssing symbol type directives.
9054ddfcd7a159ec6720a8592e9a35205e0a9865 07-Dec-2009 Doug Kwan <dougkwan@google.com> Add misssing symbol type directives.
ibagl/fixed_asm.S
ibagl/iterators.S
66089a33ea4efda711a3a5180f0b001bdac48dcf 08-Dec-2009 Jack Palevich <jackpal@google.com> Implement Matrix Palette extension.

Adds support for formerly-unimplemented methods:

glCurrentPaletteMatrixOES
glLoadPaletteFromModelViewMatrixOES
glMatrixIndexPointerOES
glWeightPointerOES

The bulk of the changes are related to implementing the two PointerOES
methods, which are implemented pretty much the same way as the existing
Pointer methods were implemented.

This change also changes the way glPointSizePointerOES is implemented,
making it act like all the other Pointer methods. (Previously it was
not handling non-direct-buffer arguments correctly.)

Fixes bug 2308625 "Support matrix palette skinning
in JSR239 and related APIs"

Also updated GLLogWraper to fix two bugs in GLLogWrapper that were
discovered while testing matrix palette skinning support:

a) Handle trying to print the contents of null-but-enabled buffers.
(It's not legal to draw with null-but-enabled buffers, and
in fact some OpenGL drivers will crash if you try to render in this
state, but there's no reason the GLLogWrapper should crash while trying
to debug this situation.

b) Don't read off the end of a vertex buffer with non-zero position when
printing the entire contents of the vertex buffer. Now we only print from
the current position to the end of the buffer.
ibs/GLES_CM/gl.cpp
ools/glgen/specs/gles11/checks.spec
ools/glgen/specs/jsr239/glspec-checks
ools/glgen/src/JniCodeEmitter.java
ools/glgen/stubs/gles11/GLES11ExtHeader.java-if
ools/glgen/stubs/gles11/GLES11ExtcHeader.cpp
ools/glgen/stubs/gles11/GLES11Header.java-if
ools/glgen/stubs/gles11/GLES11cHeader.cpp
ools/glgen/stubs/gles11/GLES20Header.java-if
ools/glgen/stubs/jsr239/GLCHeader.cpp
ools/glgen/stubs/jsr239/GLImplHeader.java-impl
87d295375b55f8550fb00afdec3f775ff8dc817c 02-Dec-2009 Mathias Agopian <mathias@google.com> am 7671c088: am 77f17095: am 533a2803: Merge change I18ffb549 into eclair

Merge commit '7671c088cd5e6ce938c89939f55ead6629bd6516'

* commit '7671c088cd5e6ce938c89939f55ead6629bd6516':
fix [2069023] STOPSHIP: disable DEBUG_COPYBIT
69fec4726b744813c39e3e79f573f465076b8297 02-Dec-2009 Mathias Agopian <mathias@google.com> am 77f17095: am 533a2803: Merge change I18ffb549 into eclair

Merge commit '77f17095ed17a6ccc7fc1f1b3ddb31c63bbf66a2' into eclair-mr2-plus-aosp

* commit '77f17095ed17a6ccc7fc1f1b3ddb31c63bbf66a2':
fix [2069023] STOPSHIP: disable DEBUG_COPYBIT
ea5b203790f6a1c356f7bb5aa78e2d8ad92e105c 02-Dec-2009 Mathias Agopian <mathias@google.com> am 533a2803: Merge change I18ffb549 into eclair

Merge commit '533a2803506cc4f196403fdfafd948bd4f8e60d9' into eclair-mr2

* commit '533a2803506cc4f196403fdfafd948bd4f8e60d9':
fix [2069023] STOPSHIP: disable DEBUG_COPYBIT
f9f36b5ecd8878c269d4a533286e60f67eb9b066 30-Nov-2009 Mathias Agopian <mathias@google.com> am 533a2803: Merge change I18ffb549 into eclair

Merge commit '533a2803506cc4f196403fdfafd948bd4f8e60d9' into eclair-plus-aosp

* commit '533a2803506cc4f196403fdfafd948bd4f8e60d9':
fix [2069023] STOPSHIP: disable DEBUG_COPYBIT
f74573486d10f04a81d94a8b2509193d4f10f0ea 30-Nov-2009 Mathias Agopian <mathias@google.com> fix [2069023] STOPSHIP: disable DEBUG_COPYBIT
ibagl/copybit.cpp
87d0958b9e317a3fa24177651195aef23b1dbdff 20-Nov-2009 Mathias Agopian <mathias@google.com> am 8e9af2bd: am b439f561: am 13feccf5: Merge change I39f0003e into eclair

Merge commit '8e9af2bd1d600cd2c69c88c7d60c7d455921677e'

* commit '8e9af2bd1d600cd2c69c88c7d60c7d455921677e':
fix [2235414] libagl glDeleteBuffers() crashes
1850ea3a03a76f5435507cde92470f135143e67a 20-Nov-2009 Mathias Agopian <mathias@google.com> am b439f561: am 13feccf5: Merge change I39f0003e into eclair

Merge commit 'b439f561a6aa3900f1850e71a4aa60618af13f90' into eclair-mr2-plus-aosp

* commit 'b439f561a6aa3900f1850e71a4aa60618af13f90':
fix [2235414] libagl glDeleteBuffers() crashes
8386ce0d5b923f08a38745563a4d17c93f95c91e 20-Nov-2009 Mathias Agopian <mathias@google.com> am 13feccf5: Merge change I39f0003e into eclair

Merge commit '13feccf592d6870b41b3b8a0a31d2abefad0d7ae' into eclair-mr2

* commit '13feccf592d6870b41b3b8a0a31d2abefad0d7ae':
fix [2235414] libagl glDeleteBuffers() crashes
935b3deec9cce3b67ba21994e67db89c196a402e 20-Nov-2009 Mathias Agopian <mathias@google.com> am 13feccf5: Merge change I39f0003e into eclair

Merge commit '13feccf592d6870b41b3b8a0a31d2abefad0d7ae' into eclair-plus-aosp

* commit '13feccf592d6870b41b3b8a0a31d2abefad0d7ae':
fix [2235414] libagl glDeleteBuffers() crashes
a750fc0bf8bdfd47e058ac51a719716440c7aa98 20-Nov-2009 Mathias Agopian <mathias@google.com> fix [2235414] libagl glDeleteBuffers() crashes

don't dereference null pointers, would happen if one of the array wasn't bound.
ibagl/array.cpp
378112ebed362a85471bd2acb307aa0ddb539d17 19-Nov-2009 Jack Palevich <jackpal@google.com> Extend GLSurfaceView to make it easy to create an OpenGL ES 2.0 context

Provide a new method, GLSurfaceView.setEGLContextClientVersion. Clients
call this method to define which level of OpenGL ES support they want.

This method only affects the default behavior of GLSurfaceView. If clients
have supplied their own EGLContextFactory or EGLConfigChooser then they
are on their own if they want to create an OpenGL ES 2.0 context.

This API is currently hidden.

Update the gl2_java test to use this new API.

Update the gl2_java test's AndroidManifest.xml file to indicate that
it requires OpenGL ES 2.0.
ests/gl2_java/AndroidManifest.xml
ests/gl2_java/src/com/android/gl2java/GL2JavaView.java
50d0b14689b0ae95ea7b66a8c2f7b955115812dd 19-Nov-2009 Jack Palevich <jackpal@google.com> Add a Java API for OpenGL ES 2.0.

Currently this API is hidden.

Add a test program.
ests/gl2_java/Android.mk
ests/gl2_java/AndroidManifest.xml
ests/gl2_java/res/values/strings.xml
ests/gl2_java/src/com/android/gl2java/GL2JavaActivity.java
ests/gl2_java/src/com/android/gl2java/GL2JavaView.java
ools/glgen/gen
ools/glgen/specs/gles11/GLES20.spec
ools/glgen/src/CType.java
ools/glgen/src/GenerateGLES.java
ools/glgen/src/JType.java
ools/glgen/src/JniCodeEmitter.java
ools/glgen/stubs/gles11/GLES20Header.java-if
ools/glgen/stubs/gles11/GLES20cHeader.cpp
ools/glgen/stubs/gles11/glGetProgramInfoLog.cpp
ools/glgen/stubs/gles11/glGetProgramInfoLog.java
ools/glgen/stubs/gles11/glGetProgramInfoLog.nativeReg
ools/glgen/stubs/gles11/glGetShaderInfoLog.cpp
ools/glgen/stubs/gles11/glGetShaderInfoLog.java
ools/glgen/stubs/gles11/glGetShaderInfoLog.nativeReg
ools/glgen/stubs/gles11/glShaderSource.cpp
ools/glgen/stubs/gles11/glShaderSource.java
ools/glgen/stubs/gles11/glShaderSource.nativeReg
daeaa536fab8f9a71227578aab212fa5d4daaf00 15-Nov-2009 Jean-Baptiste Queru <jbq@google.com> merge from eclair
cc8c35cee5de7fdf2d79a1a3716120b64301cdfe 13-Nov-2009 Jean-Baptiste Queru <jbq@google.com> eclair snapshot
nclude/EGL/eglext.h
nclude/EGL/eglnatives.h
nclude/EGL/eglplatform.h
nclude/GLES/glplatform.h
nclude/GLES2/gl2.h
nclude/GLES2/gl2ext.h
nclude/GLES2/gl2platform.h
ibagl/Android.mk
ibagl/TextureObjectManager.cpp
ibagl/TextureObjectManager.h
ibagl/array.cpp
ibagl/copybit.cpp
ibagl/copybit.h
ibagl/egl.cpp
ibagl/light.cpp
ibagl/matrix.cpp
ibagl/primitives.cpp
ibagl/state.cpp
ibagl/texture.cpp
ibagl/texture.h
ibs/Android.mk
ibs/EGL/Loader.cpp
ibs/EGL/Loader.h
ibs/EGL/egl.cpp
ibs/EGL/egl_entries.in
ibs/EGL/gpu.cpp
ibs/EGL/hooks.cpp
ibs/GLES2/gl2.cpp
ibs/GLES2/gl2_api.in
ibs/GLES2/gl2ext_api.in
ibs/GLES_CM/gl.cpp
ibs/egl_entries.in
ibs/egl_impl.h
ibs/entries.in
ibs/gl_entries.in
ibs/gl_enums.in
ibs/glext_entries.in
ibs/hooks.h
ibs/tools/enumextract.sh
ibs/tools/genfiles
ibs/tools/glapigen
ibs/tools/glentrygen
ests/angeles/Android.mk
ests/angeles/app-linux.c
ests/angeles/app-linux.cpp
ests/fillrate/Android.mk
ests/fillrate/fillrate.cpp
ests/filter/Android.mk
ests/filter/filter.c
ests/filter/filter.cpp
ests/finish/Android.mk
ests/finish/finish.c
ests/finish/finish.cpp
ests/gl2_basic/Android.mk
ests/gl2_basic/gl2_basic.cpp
ests/gl2_jni/Android.mk
ests/gl2_jni/AndroidManifest.xml
ests/gl2_jni/jni/gl_code.cpp
ests/gl2_jni/res/values/strings.xml
ests/gl2_jni/src/com/android/gl2jni/GL2JNIActivity.java
ests/gl2_jni/src/com/android/gl2jni/GL2JNILib.java
ests/gl2_jni/src/com/android/gl2jni/GL2JNIView.java
ests/gl_basic/Android.mk
ests/gl_basic/gl_basic.cpp
ests/gl_jni/Android.mk
ests/gl_jni/AndroidManifest.xml
ests/gl_jni/jni/gl_code.cpp
ests/gl_jni/res/values/strings.xml
ests/gl_jni/src/com/android/gljni/GLJNIActivity.java
ests/gl_jni/src/com/android/gljni/GLJNILib.java
ests/gl_jni/src/com/android/gljni/GLJNIView.java
ests/gralloc/Android.mk
ests/gralloc/gralloc.cpp
ests/linetex/Android.mk
ests/linetex/linetex.cpp
ests/swapinterval/Android.mk
ests/swapinterval/swapinterval.cpp
ests/textures/Android.mk
ests/textures/textures.c
ests/textures/textures.cpp
ests/tritex/Android.mk
ests/tritex/tritex.c
ests/tritex/tritex.cpp
ools/glgen/specs/gles11/checks.spec
ools/glgen/specs/jsr239/glspec-checks
ools/glgen/src/JniCodeEmitter.java
385d991432be580b11c5cb8b9811af3a1be8ad00 13-Nov-2009 Mathias Agopian <mathias@google.com> am da5e90be: am 66b5d902: am 27407208: Merge change Icf335098 into eclair

Merge commit 'da5e90bee443129511e231e9078a134626b87541'

* commit 'da5e90bee443129511e231e9078a134626b87541':
fix [2236865] STOPSHIP: bump soft gl and egl minor version number
c656e03674b3a2b2bfcc427f9514424df9c39db4 13-Nov-2009 Mathias Agopian <mathias@google.com> am 66b5d902: am 27407208: Merge change Icf335098 into eclair

Merge commit '66b5d902a29e08237f16be53a84f9c2472df8493' into eclair-mr2-plus-aosp

* commit '66b5d902a29e08237f16be53a84f9c2472df8493':
fix [2236865] STOPSHIP: bump soft gl and egl minor version number
fb10b6f27805dabeba74c40b818c8d9fe800150a 13-Nov-2009 Mathias Agopian <mathias@google.com> am 27407208: Merge change Icf335098 into eclair

Merge commit '274072089ceff6eacb9ccfb59290a18f43739c87' into eclair-mr2

* commit '274072089ceff6eacb9ccfb59290a18f43739c87':
fix [2236865] STOPSHIP: bump soft gl and egl minor version number
ffd6583e150734ea1263e9bc114c23270bd80b36 13-Nov-2009 Mathias Agopian <mathias@google.com> am 27407208: Merge change Icf335098 into eclair

Merge commit '274072089ceff6eacb9ccfb59290a18f43739c87' into eclair-plus-aosp

* commit '274072089ceff6eacb9ccfb59290a18f43739c87':
fix [2236865] STOPSHIP: bump soft gl and egl minor version number
1eeffc68149c9602c05c8ab5cbbdd8027e9a6fdf 13-Nov-2009 Mathias Agopian <mathias@google.com> fix [2236865] STOPSHIP: bump soft gl and egl minor version number
ibagl/egl.cpp
ibagl/state.cpp
e3b6e045b56e6d8e249d07ce26af9c5ffc02efc9 10-Nov-2009 Mathias Agopian <mathias@google.com> am c6ed8100: am 0b9d3ba2: am c421fc2a: Merge change Id09376d1 into eclair

Merge commit 'c6ed8100c2385596117a033e999519e31c5c1c0e'

* commit 'c6ed8100c2385596117a033e999519e31c5c1c0e':
fix [2071412] work around mdp 32-bits fade limitation
51f7605e375d7d370dc8304bb500196c9c739913 10-Nov-2009 Mathias Agopian <mathias@google.com> am 0b9d3ba2: am c421fc2a: Merge change Id09376d1 into eclair

Merge commit '0b9d3ba2feab494e7bbd180b51a4311864d08e13' into eclair-mr2-plus-aosp

* commit '0b9d3ba2feab494e7bbd180b51a4311864d08e13':
fix [2071412] work around mdp 32-bits fade limitation
cf3289cd9c0a91095e6416ef9979b74789bc4e27 10-Nov-2009 Mathias Agopian <mathias@google.com> am c421fc2a: Merge change Id09376d1 into eclair

Merge commit 'c421fc2ada7c1bff104733b840bd640151bebbbb' into eclair-mr2

* commit 'c421fc2ada7c1bff104733b840bd640151bebbbb':
fix [2071412] work around mdp 32-bits fade limitation
60625acb24cbb05496eca7f41dacb6b8d82853a7 10-Nov-2009 Mathias Agopian <mathias@google.com> am c421fc2a: Merge change Id09376d1 into eclair

Merge commit 'c421fc2ada7c1bff104733b840bd640151bebbbb' into eclair-plus-aosp

* commit 'c421fc2ada7c1bff104733b840bd640151bebbbb':
fix [2071412] work around mdp 32-bits fade limitation
198340395d40a30117325968330d7ca4b1a8123e 10-Nov-2009 Mathias Agopian <mathias@google.com> fix [2071412] work around mdp 32-bits fade limitation

make sure to always specify blits *inside* the source bitmap.
ibagl/copybit.cpp
959a7af45ecc3fa52ba51c558c70c567084c3c29 09-Nov-2009 Jean-Baptiste Queru <jbq@google.com> am ac94fbd0: merge from open-source master

Merge commit 'ac94fbd081450ae7f208e4525b23b36d90d382e0'

* commit 'ac94fbd081450ae7f208e4525b23b36d90d382e0':
Capture failure of copybit->stretch()
Fix obvious typo bug in egl.cpp
LocationManagerService: Fix race when removing LocationListener
Don't return when blocking is true.
Fix of compatibility with multifunction extUSB adapters.
Fix documentation example, per issue 895 on android.googlecode.com
ff230a51f53a2c4878c4e126c1625df68af14089 09-Nov-2009 Jean-Baptiste Queru <jbq@google.com> merge from open-source master
143b2a789c4e4c3a4670eba7a1993d03b218f68e 09-Nov-2009 Jean-Baptiste Queru <jbq@google.com> merge from open-source master
cd220deff0ee90ae4244acfb05b6dc0773c50c53 05-Nov-2009 Mathias Agopian <mathias@google.com> am ba37ea55: am 6d9e0c7a: am 36fe3eea: part of fix [2186418] switch passion to 24-bits framebuffer

Merge commit 'ba37ea550d97b753fc74049d22f5e752d4b0185f'

* commit 'ba37ea550d97b753fc74049d22f5e752d4b0185f':
part of fix [2186418] switch passion to 24-bits framebuffer
d8fe3745a94274c4cb8b10a1563195d74403d01f 04-Nov-2009 Mathias Agopian <mathias@google.com> am 36fe3eea: part of fix [2186418] switch passion to 24-bits framebuffer

Merge commit '36fe3eeaa056ff13455c0df73b495b2bae8c1469' into eclair-mr2

* commit '36fe3eeaa056ff13455c0df73b495b2bae8c1469':
part of fix [2186418] switch passion to 24-bits framebuffer
8b6b95abaec4a7e3df80a648bed75aa5aa74e8fe 04-Nov-2009 Mathias Agopian <mathias@google.com> part of fix [2186418] switch passion to 24-bits framebuffer

add support for RGBX_8888 EGLConfigs in the software renderer
(since that's what we're using in the MDP case)
ibagl/egl.cpp
bd514158317c578194147963ba4ccbd53c19f8c8 04-Nov-2009 Mathias Agopian <mathias@google.com> am 43606242: am 8e5e44e9: am 9a54d7dd: Merge change Ibbf945f3 into eclair

Merge commit '4360624241251035534a46449e23be38d9e6b03c'

* commit '4360624241251035534a46449e23be38d9e6b03c':
fix [2236832] software OpenGL ES driver doesn't work on sholes
7617b91eb8800b2482a0f09cc2165e9365620850 04-Nov-2009 Mathias Agopian <mathias@google.com> am 9a54d7dd: Merge change Ibbf945f3 into eclair

Merge commit '9a54d7dddcbc982d644c627693dc39fb2cb5c0fb' into eclair-mr2

* commit '9a54d7dddcbc982d644c627693dc39fb2cb5c0fb':
fix [2236832] software OpenGL ES driver doesn't work on sholes
bc4929117d0b07fec2f0986f38641eecc9f20d55 04-Nov-2009 Mathias Agopian <mathias@google.com> fix [2236832] software OpenGL ES driver doesn't work on sholes

make sure to not pass our fake handles to the real gralloc
ibagl/egl.cpp
333bbc6e596119e592915d8758e40632a9320a6d 04-Nov-2009 Mathias Agopian <mathias@google.com> am 4e90c907: am 65ab88c7: am 21977eb0: Merge change I56981989 into eclair

Merge commit '4e90c907f4fb222901f9db07a1f603c01211868d'

* commit '4e90c907f4fb222901f9db07a1f603c01211868d':
fix [2231527] Compatibility with SpaceJunk game (OpenGL)
291483b1ebd19882df64b992360db19379ba63af 04-Nov-2009 Mathias Agopian <mathias@google.com> am 21977eb0: Merge change I56981989 into eclair

Merge commit '21977eb0f1d22497d0beed0492e579f953a56552' into eclair-mr2

* commit '21977eb0f1d22497d0beed0492e579f953a56552':
fix [2231527] Compatibility with SpaceJunk game (OpenGL)
33e18e4ec7fc0083fc00a183e4f01418db263420 04-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I56981989 into eclair

* changes:
fix [2231527] Compatibility with SpaceJunk game (OpenGL)
88e15346c98a781ca5c0462a02d1a9741d20c4a0 03-Nov-2009 Mathias Agopian <mathias@google.com> am d1d744cd: am 07d38c66: am 8637759a: Merge change I36d0184e into eclair

Merge commit 'd1d744cdf4b08c8ef969790bae305c82ae783f4e'

* commit 'd1d744cdf4b08c8ef969790bae305c82ae783f4e':
fix[2228133] pixelflinger ignores the "vertical stride" leading to artifacts when playing back video
f95646a7136d099fca2717419939117f5ce9f1c7 03-Nov-2009 Mathias Agopian <mathias@google.com> am 8637759a: Merge change I36d0184e into eclair

Merge commit '8637759a1d34a4adda292579d5f8790587659235' into eclair-mr2

* commit '8637759a1d34a4adda292579d5f8790587659235':
fix[2228133] pixelflinger ignores the "vertical stride" leading to artifacts when playing back video
b44efdc6ba8fc792d10ea7560c2f03292b253c7b 03-Nov-2009 Mathias Agopian <mathias@google.com> fix [2231527] Compatibility with SpaceJunk game (OpenGL)

we treated all lights as local lights when transforming their
position back to object space.
ibagl/matrix.cpp
6fee064809068fe1a7da63d55678d9a222b0be15 03-Nov-2009 Mathias Agopian <mathias@google.com> fix[2228133] pixelflinger ignores the "vertical stride" leading to artifacts when playing back video

we lost the concept of vertical stride when moving video playback to EGLImage.
Here we bring it back in a somewhat hacky-way that will work only for the
softgl/mdp backend.
ibagl/copybit.cpp
ibagl/egl.cpp
5593cdc2a99f6fad493863cf5875c8972ed761af 02-Nov-2009 Iliyan Malchev <malchev@google.com> am cb80b4f1: am 8385baea: am 05cb5610: Merge change I8c0eb9a6 into eclair

Merge commit 'cb80b4f18e63cd8ef065bd375c28d90c8356ae42'

* commit 'cb80b4f18e63cd8ef065bd375c28d90c8356ae42':
libagl: silence a LOGD
f90c83b3f1e954f2c5fbda27cfd1dbe465c8590e 02-Nov-2009 Mathias Agopian <mathias@google.com> am 78383abf: am cbf583d7: am 77bd91f8: Merge change Ie3e80456 into eclair

Merge commit '78383abf76e7daf8c1968d2e9a29a1ba354edb2e'

* commit '78383abf76e7daf8c1968d2e9a29a1ba354edb2e':
Turns out the SGX driver is correct and the bug was in this test.
f024252c15daa308f2d53ceb1df245dc1dec012a 02-Nov-2009 Mathias Agopian <mathias@google.com> am c64e9346: am d85545d0: am d01767f8: Merge change I56779290 into eclair

Merge commit 'c64e9346785a1a4fc95ec6cf27da8a5193a2dfbc'

* commit 'c64e9346785a1a4fc95ec6cf27da8a5193a2dfbc':
fix[2222341] Soft reset while going back from camcorder settings
bc55586e8847112b171d83fd6439ada181499d34 02-Nov-2009 Mathias Agopian <mathias@google.com> am 5acbf81a: am 74d4640c: am f989c114: Merge change If007a2fa into eclair

Merge commit '5acbf81a20f5cd121c1eee81de5f9350b1a8c16e'

* commit '5acbf81a20f5cd121c1eee81de5f9350b1a8c16e':
return proper error code from eglCreateImageKHR
e0c077d915f785404a518d8da988778bffbcc095 31-Oct-2009 Iliyan Malchev <malchev@google.com> am 05cb5610: Merge change I8c0eb9a6 into eclair

Merge commit '05cb5610fdfb7b69cf90a9230853e59b4ae5e219' into eclair-mr2

* commit '05cb5610fdfb7b69cf90a9230853e59b4ae5e219':
libagl: silence a LOGD
d95c322af3b0420853fe49ff6fab7b56ed16072f 31-Oct-2009 Iliyan Malchev <malchev@google.com> libagl: silence a LOGD

Signed-off-by: Iliyan Malchev <malchev@google.com>
ibagl/copybit.cpp
39e0df03554810e28a537e93760dc2521ce3e763 31-Oct-2009 Mathias Agopian <mathias@google.com> am 77bd91f8: Merge change Ie3e80456 into eclair

Merge commit '77bd91f8af44867935ea2df22f69fb244b009b94' into eclair-mr2

* commit '77bd91f8af44867935ea2df22f69fb244b009b94':
Turns out the SGX driver is correct and the bug was in this test.
964d94306b72d9f3f52bdad6fc8d65a191c82ee7 31-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Ie3e80456 into eclair

* changes:
Turns out the SGX driver is correct and the bug was in this test.
6c7d04b1d038318a9fe3ba59ce2a748bd00578eb 31-Oct-2009 Mathias Agopian <mathias@google.com> Turns out the SGX driver is correct and the bug was in this test.

make sure the 565 1-texel wide texture is specified with an alignment of 4
which is the OpenGL ES default.
ests/linetex/linetex.cpp
144fb0bbdfb3812e9cb0ef8d0c58f32e794793a8 30-Oct-2009 Mathias Agopian <mathias@google.com> am d01767f8: Merge change I56779290 into eclair

Merge commit 'd01767f8b7038108f9125cd2122b117db9919824' into eclair-mr2

* commit 'd01767f8b7038108f9125cd2122b117db9919824':
fix[2222341] Soft reset while going back from camcorder settings
5d0024b39bd7ce702a7a19476086195af1e63b41 30-Oct-2009 Mathias Agopian <mathias@google.com> am f989c114: Merge change If007a2fa into eclair

Merge commit 'f989c1140bbc84480498df38abec0fafff04e6ee' into eclair-mr2

* commit 'f989c1140bbc84480498df38abec0fafff04e6ee':
return proper error code from eglCreateImageKHR
bd5a0027f4fbffc8cada0d22e8ccebf680cdc749 30-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I56779290 into eclair

* changes:
fix[2222341] Soft reset while going back from camcorder settings
b4d8fbb1a72f77408db2bd2d89d987af504b0141 30-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change If007a2fa into eclair

* changes:
return proper error code from eglCreateImageKHR
863e5fdde858d732ac76320369b6304599f23b4c 30-Oct-2009 Mathias Agopian <mathias@google.com> fix[2222341] Soft reset while going back from camcorder settings

add a way to convert a mapped "pushbuffer" buffer to a gralloc handle
which then can be safely used by surfaceflinger, without including
gralloc_priv.h
ibs/EGL/egl.cpp
bfa22dfca54751df2f1173238975d9e3f5d922d5 30-Oct-2009 Mathias Agopian <mathias@google.com> am 894449ac: am af7d2dda: am 5dc7a21c: Merge change I4e036287 into eclair

Merge commit '894449ac461e69cd40f10e9d3644555357a5ed82'

* commit '894449ac461e69cd40f10e9d3644555357a5ed82':
update line test to expose some bug on SGX530 ed4
e1e9073eff7f39ad4d32c1a22262895d6b0d10f4 30-Oct-2009 Mathias Agopian <mathias@google.com> am 5dc7a21c: Merge change I4e036287 into eclair

Merge commit '5dc7a21cbbd4af908e39e55e5ca7ab14cda25d4a' into eclair-mr2

* commit '5dc7a21cbbd4af908e39e55e5ca7ab14cda25d4a':
update line test to expose some bug on SGX530 ed4
df2d92940550bc68c3c237937bce7ac16d9fa91b 29-Oct-2009 Mathias Agopian <mathias@google.com> return proper error code from eglCreateImageKHR
ibagl/copybit.cpp
ibs/EGL/egl.cpp
3810c2b6c6216211a67f6240a8c520b1de4e409d 29-Oct-2009 Mathias Agopian <mathias@google.com> update line test to expose some bug on SGX530 ed4
ests/linetex/linetex.cpp
645a6735a9e3c44b048d8ba1ec63c63c3a2fb102 29-Oct-2009 Mathias Agopian <mathias@google.com> am 09976caf: am 2b770bbe: am 85ade33e: fix [2071412] work around mdp 32-bits fade limitation

Merge commit '09976cafb14944f50ea4b3f7b5e8d5fc831f24ff'

* commit '09976cafb14944f50ea4b3f7b5e8d5fc831f24ff':
fix [2071412] work around mdp 32-bits fade limitation
f059ec8e7d88c2cdf2d393d179d991c675a69e07 29-Oct-2009 Mathias Agopian <mathias@google.com> am 85ade33e: fix [2071412] work around mdp 32-bits fade limitation

Merge commit '85ade33edcc7d9be462ad7b8455d27f6654aca5e' into eclair-mr2

* commit '85ade33edcc7d9be462ad7b8455d27f6654aca5e':
fix [2071412] work around mdp 32-bits fade limitation
9450fcd66123af4f06da47ae0d7fc9db51691da4 29-Oct-2009 Mathias Agopian <mathias@google.com> am 2eca23d6: am a2151b2b: am 7bde36e6: added GL test for textured lines

Merge commit '2eca23d690379911a102729eecd35412d0c8be63'

* commit '2eca23d690379911a102729eecd35412d0c8be63':
added GL test for textured lines
2e9a555c5da6b886b82b0b8e69d97356dbf28923 29-Oct-2009 Mathias Agopian <mathias@google.com> am 64d3f44c: am 893cb4da: am 73e17015: Merge change I8d2de438 into eclair

Merge commit '64d3f44c7bf5a6e80be419df5850ef60fec216b5'

* commit '64d3f44c7bf5a6e80be419df5850ef60fec216b5':
fix [2143798] Need to figure out how to do video
cab369082d7f78b845d4d791b9433a915308f6f9 29-Oct-2009 Mathias Agopian <mathias@google.com> am 7bde36e6: added GL test for textured lines

Merge commit '7bde36e64e66c81f0150d0372e1357a31f4ec704' into eclair-mr2

* commit '7bde36e64e66c81f0150d0372e1357a31f4ec704':
added GL test for textured lines
2cb90b3cc5c27ddfef48e82ee17a70278f25a9aa 29-Oct-2009 Mathias Agopian <mathias@google.com> am 73e17015: Merge change I8d2de438 into eclair

Merge commit '73e17015d3cd67c93ccad5d63d31c439ff6fa694' into eclair-mr2

* commit '73e17015d3cd67c93ccad5d63d31c439ff6fa694':
fix [2143798] Need to figure out how to do video
2ad8ec50a5aa91ad4881602467d41c8a54cbf6e4 28-Oct-2009 Mathias Agopian <mathias@google.com> fix [2071412] work around mdp 32-bits fade limitation

in the case where we fade a 32-bits surface (ie: GL_MODULATE w/ a,a,a,a + blending),
we first make a copy of the background into a RGB buffer, then we blend the 32-bits
surface as usual (without the alpha component), and finally blend the copy of
the background on top with 1-a. This uses a lot of bandwidth, but no CPU time.
ibagl/copybit.cpp
32216166f127d7d30765b08d219f2c4ffd754080 28-Oct-2009 Mathias Agopian <mathias@google.com> added GL test for textured lines
ests/linetex/Android.mk
ests/linetex/linetex.cpp
54ba51dff21de666c5ae3bf3abd4f0634ebb0676 27-Oct-2009 Mathias Agopian <mathias@google.com> fix [2143798] Need to figure out how to do video

Use EGLImageKHR instead of copybit directly.
We now have the basis to use streaming YUV textures (well, in fact
we already are). When/if we use the GPU instead of the MDP we'll
need to make sure it supports the appropriate YUV format.

Also make sure we compile if EGL_ANDROID_image_native_buffer is not supported
ibagl/Android.mk
ibagl/copybit.cpp
3901f6bd04fae2163330b01cc9d202dcf745db51 24-Oct-2009 Jack Palevich <jackpal@google.com> am a9046729: am a2ec1f4c: am 8f89a1a3: Merge change Ic620a52b into eclair

Merge commit 'a904672996c60c4ec50439a8d2be04fd9bd6444c'

* commit 'a904672996c60c4ec50439a8d2be04fd9bd6444c':
Add size checks for glBufferData and glBufferSubData
ef1839094d65ef898369dc14cfc7b9856048567e 24-Oct-2009 Jack Palevich <jackpal@google.com> am 8f89a1a3: Merge change Ic620a52b into eclair

Merge commit '8f89a1a360465e08e81ceca3cb3042606a98668b' into eclair-mr2

* commit '8f89a1a360465e08e81ceca3cb3042606a98668b':
Add size checks for glBufferData and glBufferSubData
5afdc87704f82cb6c3576695dd157b65ae6f3d33 21-Oct-2009 Jack Palevich <jackpal@google.com> Add size checks for glBufferData and glBufferSubData

Without the size checks it's possible for calls to glBufferData
and glBufferSubData to read off the end of the Buffer object's
data, which can cause page faults.

Fix end-of-line characters for the "spec" files. (That's why
every line of these files is changed.)

Enhance our code emitter to properly handle bounds checks for
possibly-null pointers.
ools/glgen/specs/gles11/checks.spec
ools/glgen/specs/jsr239/glspec-checks
ools/glgen/src/JniCodeEmitter.java
1594854d7ec8d54683361bd050fc100ba2fae878 20-Oct-2009 Mathias Agopian <mathias@google.com> am 18dc8826: am 992f4802: am b34d5d52: Use the TLS register if HAVE_ARM_TLS_REGISTER is defined

Merge commit '18dc8826a2c7244a7a61c9c53113516416db4714'

* commit '18dc8826a2c7244a7a61c9c53113516416db4714':
Use the TLS register if HAVE_ARM_TLS_REGISTER is defined
dcf9e8cf5df326b2fe8ad52a7cd374141e38541f 20-Oct-2009 Mathias Agopian <mathias@google.com> am b34d5d52: Use the TLS register if HAVE_ARM_TLS_REGISTER is defined

Merge commit 'b34d5d527596102ae7a040d787e4d8c336bf192b' into eclair-mr2

* commit 'b34d5d527596102ae7a040d787e4d8c336bf192b':
Use the TLS register if HAVE_ARM_TLS_REGISTER is defined
673d2dbaae647abc58b08de873fd364f0b2fa3f5 14-Oct-2009 Mathias Agopian <mathias@google.com> Use the TLS register if HAVE_ARM_TLS_REGISTER is defined

this will be needed for SMP, but would improve dispatching GL calls a bit
on armv6 and above.
ibs/Android.mk
ibs/GLES2/gl2.cpp
ibs/GLES_CM/gl.cpp
f39c13329b43e91e8004bd9c18a2b13719792d6d 20-Oct-2009 Mathias Agopian <mathias@google.com> am 5a4c7a61: am 60714539: am 62df88bc: Merge change I0953c1d5 into eclair

Merge commit '5a4c7a61da8f8586a535661c73ce4681cb9bf111'

* commit '5a4c7a61da8f8586a535661c73ce4681cb9bf111':
fix [2153873] EGL-1.4 software implementation misses surface attributes
feb09597426e5a40f2968021a3133e06c10ed281 20-Oct-2009 Mathias Agopian <mathias@google.com> am 62df88bc: Merge change I0953c1d5 into eclair

Merge commit '62df88bcc95a714c1d5035471dfe7fe0ddd9d50b' into eclair-mr2

* commit '62df88bcc95a714c1d5035471dfe7fe0ddd9d50b':
fix [2153873] EGL-1.4 software implementation misses surface attributes
898300890d140f3ee6ddb504a558d2bae5b05a2b 20-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I0953c1d5 into eclair

* changes:
fix [2153873] EGL-1.4 software implementation misses surface attributes
51f234aa2b3d13bb294a3bd0e98ee45f2e6df857 20-Oct-2009 Mathias Agopian <mathias@google.com> am a4aa677d: am b263450f: am 3662f9ee: Merge change Ide4c8cbc into eclair

Merge commit 'a4aa677db36651e806f38e8aa7e8532da4f06b0d'

* commit 'a4aa677db36651e806f38e8aa7e8532da4f06b0d':
fix [2151588] glTexSubImage2D() allows pixel format conversion
2058da44e95aa07a27850cc44178f36185da2f9f 20-Oct-2009 Mathias Agopian <mathias@google.com> am 220f052f: am cf4ff740: am 639d69fe: Merge change I88d11cfb into eclair

Merge commit '220f052f6103655e08cba6cfb1dc542b81ffab11'

* commit '220f052f6103655e08cba6cfb1dc542b81ffab11':
one step towards fixing [2071412] work around mdp 32-bits fade limitation
0985f6a4ea1c457d98b0169ba9caa6b3713b1c7e 19-Oct-2009 Mathias Agopian <mathias@google.com> fix [2153873] EGL-1.4 software implementation misses surface attributes
ibagl/egl.cpp
edd3ac3a889c3dfa91b41f987387128370b45e7c 19-Oct-2009 Mathias Agopian <mathias@google.com> am 3662f9ee: Merge change Ide4c8cbc into eclair

Merge commit '3662f9ee5be3113b57693e1495fd83a2f5c7200c' into eclair-mr2

* commit '3662f9ee5be3113b57693e1495fd83a2f5c7200c':
fix [2151588] glTexSubImage2D() allows pixel format conversion
980a23abb4b2aa6f4f90272c96922cc18c7587bb 19-Oct-2009 Mathias Agopian <mathias@google.com> am 639d69fe: Merge change I88d11cfb into eclair

Merge commit '639d69fe8799ac2fa0bbf7560229531377ccc0f4' into eclair-mr2

* commit '639d69fe8799ac2fa0bbf7560229531377ccc0f4':
one step towards fixing [2071412] work around mdp 32-bits fade limitation
e614aeaf322d1ca2882f06d79ef621b4abb8889f 19-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Ide4c8cbc into eclair

* changes:
fix [2151588] glTexSubImage2D() allows pixel format conversion
d13e46158afd6ff23178f015285535e5bf00dd2c 17-Oct-2009 Mathias Agopian <mathias@google.com> fix [2151588] glTexSubImage2D() allows pixel format conversion
ibagl/texture.cpp
6dbedd75199a8cf9cf2932025b63f90f503e7651 17-Oct-2009 Mathias Agopian <mathias@google.com> one step towards fixing [2071412] work around mdp 32-bits fade limitation

simplify the GL_MODULATE case and allow blending disabled with RGBA texture
ibagl/copybit.cpp
30c01a679d04f2147d77c02210696fa5adf999a7 17-Oct-2009 Mathias Agopian <mathias@google.com> am 1ed0e43d: am 93942a5b: am 69fba87a: Merge change I6fc56997 into eclair

Merge commit '1ed0e43dac155db048ccc9152dc9425506099957'

* commit '1ed0e43dac155db048ccc9152dc9425506099957':
fix [2187212] add support for GLESv2 dispatch based on TLS
537728fcd3d46f1aa6464ffcaae848d5e880a481 16-Oct-2009 Mathias Agopian <mathias@google.com> am 69fba87a: Merge change I6fc56997 into eclair

Merge commit '69fba87ac16d1c10da81fc3213ae169c755797f4' into eclair-mr2

* commit '69fba87ac16d1c10da81fc3213ae169c755797f4':
fix [2187212] add support for GLESv2 dispatch based on TLS
618fa10949c42eb83fa5fe105fe542bcff833dda 14-Oct-2009 Mathias Agopian <mathias@google.com> fix [2187212] add support for GLESv2 dispatch based on TLS

Instead of using a different function pointer table for ES 1.x and ES 2.x,
we use a single one that is the union (sort|uniq) of both tables. Two
instances of this table are initialized with pointers to GL ES 1.x and GL ES 2.x
entry-points.
When a context is created, we store its version number and when it is bound to a
thread we set the approruiate table based on the stored version.

This introduce no penalty while dispatching gl calls to the right API version.

[Pending Dr No approval for MR1]
ibs/EGL/Loader.cpp
ibs/EGL/Loader.h
ibs/EGL/egl.cpp
ibs/EGL/hooks.cpp
ibs/GLES2/gl2.cpp
ibs/GLES2/gl2_entries.in
ibs/GLES2/gl2ext_entries.in
ibs/GLES_CM/gl_entries.in
ibs/GLES_CM/glext_entries.in
ibs/egl_impl.h
ibs/entries.in
ibs/hooks.h
ibs/tools/genfiles
91d8ee34a7748d523c3312dab44321ef26bca572 14-Oct-2009 Jack Palevich <jackpal@google.com> am 09e7ef8a: am a5bfe52d: Merge change Ib3558f35 into eclair-mr2

Merge commit '09e7ef8aadb480349e9f63dcab155cb466296e92'

* commit '09e7ef8aadb480349e9f63dcab155cb466296e92':
Make our choice of surface explicit.
d594fe1740581031c527e1e6a098024abea90429 14-Oct-2009 Jack Palevich <jackpal@google.com> Make our choice of surface explicit.
ests/gldual/src/com/android/gldual/GLDualActivity.java
9f73b7a5e498c2003a12fb96f42d71047bd626d1 14-Oct-2009 Jack Palevich <jackpal@google.com> am 65cc9418: am 332c7934: Merge change I69e21f5f into eclair-mr2

Merge commit '65cc9418af489bd98f3417f165b6837656383a1c'

* commit '65cc9418af489bd98f3417f165b6837656383a1c':
GLDual test application.
1d8399bcd5475d4ae81f6add8f1fdeedd58a2de1 14-Oct-2009 Dima Zavin <dima@android.com> am 0b2dd95d: am 0c559a4b: am 98b3def2: Merge change I6261ab54 into eclair

Merge commit '0b2dd95d2ead61241688a121ae1c6a5092149ef6'

* commit '0b2dd95d2ead61241688a121ae1c6a5092149ef6':
Revert "egl: temporarily also include eglTerminate->eglInitialize hack for 8k"
9bd30f05e890b213e97b838e04024d8cd232dbc0 13-Oct-2009 Jack Palevich <jackpal@google.com> GLDual test application.

Draws two images at once, one GL based, one GL2 based.
ests/gldual/Android.mk
ests/gldual/AndroidManifest.xml
ests/gldual/jni/gl_code.cpp
ests/gldual/res/layout/gldual_activity.xml
ests/gldual/res/values/strings.xml
ests/gldual/src/com/android/gldual/GLDualActivity.java
ests/gldual/src/com/android/gldual/GLDualGL2View.java
ests/gldual/src/com/android/gldual/GLDualLib.java
ests/gldual/src/com/android/gldual/TriangleRenderer.java
1c03325f36cf54f1334d728f67cde783c08c7416 13-Oct-2009 Eric Fischer <enf@google.com> am 94f3a363: Merge branch \'eclair-plus-aosp\' of ssh://android-git.corp.google.com:29418/platform/frameworks/base into eclair-mr2-plus-aosp

Merge commit '94f3a36326ddecaa09787d795451b0a229fe111c'

* commit '94f3a36326ddecaa09787d795451b0a229fe111c':
Remove STOPSHIP BT logging.
BT API security audit: fix a couple of permission mistakes.
Fix issue #2175693: Add vmallocinfo to dumpstate
add a way to easily catch and log GL errors (compile time flag)
GPS: Fix problem with SUPL when SUPL APN is already active.
Import revised translations. DO NOT MERGE
Fix issue 2174002: After rejecting Call when device ringtone is mute and playing music, audio is not transfered to BT device.
Import revised translations. DO NOT MERGE
e66dfa02cc5e0af3b421a126f799cdeb8d205d9a 12-Oct-2009 android-build SharedAccount <android-build@sekiwake.mtv.corp.google.com> merged d7c18d7672f3ecbbcb2f5bec92fe54dd990cb8dd, w/conflict in opengl/tests/copybits/Android.mk
1533d8eabc2b32ac8045854320bddba58d3f1c38 12-Oct-2009 Dima Zavin <dima@android.com> am 98b3def2: Merge change I6261ab54 into eclair

Merge commit '98b3def2983e78409002cf406574bbc8eeef8bfd' into eclair-mr2

* commit '98b3def2983e78409002cf406574bbc8eeef8bfd':
Revert "egl: temporarily also include eglTerminate->eglInitialize hack for 8k"
360c033029930f62f19a0a8b1575438c5c90d591 12-Oct-2009 Mathias Agopian <mathias@google.com> am c5b09d8a: am 4ac45597: Merge change I15b0ebb9 into eclair

Merge commit 'c5b09d8a5f7bbf9545b1f2b2d69920fd115d3ecd'

* commit 'c5b09d8a5f7bbf9545b1f2b2d69920fd115d3ecd':
a simple test app for gralloc
791212da2b391eae9d1f323a2d6ef9d4c9e019d0 12-Oct-2009 Jack Palevich <jackpal@google.com> am 7d638292: Merge change Ib4285d22 into eclair-mr2

Merge commit '7d638292969687ed4557d36e741e1275d2052fb0'

* commit '7d638292969687ed4557d36e741e1275d2052fb0':
Change way we choose EGL surfaces to be compatible with the native
97640b9320eac5f5709f48550ff37e9f41297065 12-Oct-2009 Christoffer Gurell <chgur@tat.se> Fix obvious typo bug in egl.cpp

can (and does sometimes) lead to accessing array with -1 as index
ibagl/egl.cpp
4445712fd4444e156ce2b84468422bed0f6b78a6 10-Oct-2009 Dima Zavin <dima@android.com> Revert "egl: temporarily also include eglTerminate->eglInitialize hack for 8k"

This reverts commit ed5ecdba36648973be3033a045e2ece8bf039e4a.
ibs/Android.mk
c76f474549033d3dac6a0066ba179272173c093a 09-Oct-2009 Eric Fischer <enf@google.com> Merge branch 'eclair-plus-aosp' of ssh://android-git.corp.google.com:29418/platform/frameworks/base into eclair-mr2-plus-aosp
25194ea41049b5686d20bd0e780cc216d8299dab 09-Oct-2009 Mathias Agopian <mathias@google.com> am 846322a9: Merge change Ib96df854 into eclair

Merge commit '846322a9ae5ef8155cca0059d3f64d718516ca13' into eclair-mr2

* commit '846322a9ae5ef8155cca0059d3f64d718516ca13':
add a way to easily catch and log GL errors (compile time flag)
7d21a745ac7d272400af599c20e2043f22bce28d 09-Oct-2009 Mathias Agopian <mathias@google.com> add a way to easily catch and log GL errors (compile time flag)
ibs/GLES_CM/gl.cpp
661bda98e49ca394f906b4c4e4b8201e117e673e 07-Oct-2009 Mathias Agopian <mathias@google.com> am 9d6a685b: Merge changes I430cf57b,I51f02f67,I464f13f3 into eclair

Merge commit '9d6a685ba939f413a8d3e1e97627593aa1cdf6cb' into eclair-mr2

* commit '9d6a685ba939f413a8d3e1e97627593aa1cdf6cb':
fix [2168528] enable glTexImage2D code path in SF for software-only buffers
fix [2168531] have software-only gralloc buffer side-step the HAL
fix [2167050] glTexImage2D code path buggy in SurfaceFlinger
3330b203039dea366d4981db1408a460134b2d2c 06-Oct-2009 Mathias Agopian <mathias@google.com> fix [2167050] glTexImage2D code path buggy in SurfaceFlinger

When EGLImage extension is not available, SurfaceFlinger will fallback to using
glTexImage2D and glTexSubImage2D instead, which requires 50% more memory and an
extra copy. However this code path has never been exercised and had some bugs
which this patch fix.

Mainly the scale factor wasn't computed right when falling back on glDrawElements.
We also fallback to this mode of operation if a buffer doesn't have the adequate
usage bits for EGLImage usage.

This changes only code that is currently not executed. Some refactoring was needed to
keep the change clean. This doesn't change anything functionaly.
ests/copybits/Android.mk
ests/copybits/copybits.cpp
ests/gralloc/Android.mk
ests/gralloc/Buffer.cpp
ests/gralloc/Buffer.h
ests/gralloc/BufferAllocator.cpp
ests/gralloc/BufferAllocator.h
ests/gralloc/gralloc.cpp
4633c49daa780de58d406e37dae53de78fbcfb2d 05-Oct-2009 Doug Kwan <dougkwan@google.com> Add back missing shared libraries used in executables in link commands. These
executables have calls to some shared libraries without explicitly linking
them. Currently it works as linker links these libraries via dependencies of
other libraries. This is fragile and not the right thing to do.
ests/copybits/Android.mk
ests/fillrate/Android.mk
ests/finish/Android.mk
ests/swapinterval/Android.mk
d11f60ec4f1ecab5ea069eab7324c6aad24545ae 05-Oct-2009 Mathias Agopian <mathias@google.com> am 4ac45597: Merge change I15b0ebb9 into eclair

Merge commit '4ac45597fb70ca4f268cb1920fcb2de61aff4a3d' into eclair-mr2

* commit '4ac45597fb70ca4f268cb1920fcb2de61aff4a3d':
a simple test app for gralloc
99dd08fc36f9d04fc6bd154cc763c0c4e62e733d 02-Oct-2009 Jack Palevich <jackpal@google.com> Change way we choose EGL surfaces to be compatible with the native
window surface.
ests/gl2_jni/src/com/android/gl2jni/GL2JNIView.java
7460160b801b4230f20722efbafcac347312e702 02-Oct-2009 Mathias Agopian <mathias@google.com> a simple test app for gralloc
ests/gralloc/Android.mk
ests/gralloc/Buffer.cpp
ests/gralloc/Buffer.h
ests/gralloc/BufferAllocator.cpp
ests/gralloc/BufferAllocator.h
ests/gralloc/gralloc.cpp
f38bce2387deb10f5685f4a393138b12eec85623 30-Sep-2009 Jack Palevich <jackpal@google.com> Add a simple test of OpenGL ES 1.x.
ests/gl_basic/Android.mk
ests/gl_basic/gl_basic.cpp
e9321e3abbd48d5e50bd91b1251c66b413005016 30-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I8018f091 into eclair

* changes:
Add very simple input path. Fix end-of-line issues.
e5810d1f98557cbcf0f533215b1d76724b182e79 30-Sep-2009 Jack Palevich <jackpal@google.com> Add very simple input path. Fix end-of-line issues.
ests/gl_jni/jni/gl_code.cpp
ests/gl_jni/src/com/android/gljni/GLJNIActivity.java
ests/gl_jni/src/com/android/gljni/GLJNILib.java
ests/gl_jni/src/com/android/gljni/GLJNIView.java
38d3c2a850e986ed37126127fc2939fae9de76c6 29-Sep-2009 Jack Palevich <jackpal@google.com> Don't ask for pbuffer support, because we don't use any pbuffers.
ests/tritex/tritex.cpp
34329eed2ccc5fa0efe95bb4c87fbe38538978bc 29-Sep-2009 Jack Palevich <jackpal@google.com> Print out EGL configuration info for the config we've chosen.

Don't ask for PBuffer support, since we don't actually use pbuffers,
and some drivers might not support them.
ests/gl2_basic/gl2_basic.cpp
d9872bf424ad327861ab98390319566b25571f76 29-Sep-2009 Jack Palevich <jackpal@google.com> Print out all available EGL configurations.
ests/gl2_basic/gl2_basic.cpp
56fa27572a2bbdd84a4762968327dba670fedae0 28-Sep-2009 Mathias Agopian <mathias@google.com> fix [2147737] Pixel Flinger needs to set EGL_RENDERABLE_TYPE to EGL_OPENGL_ES_BIT

Also set max swap interval to 1, which is the only supported value currently.
ibagl/egl.cpp
7695a5865ee0f1496ae40ddb2e1845f4579747be 26-Sep-2009 Dima Zavin <dima@android.com> egl: temporarily also include eglTerminate->eglInitialize hack for 8k

Change-Id: Id5c51e54e733b24e5d5d5de0dcca84ac53afd3a9
Signed-off-by: Dima Zavin <dima@android.com>
ibs/Android.mk
f1006c23c686fe30d29b1883dae75b284547eb91 26-Sep-2009 Jack Palevich <jackpal@google.com> Fix build.
ests/gl2_jni/src/com/android/gl2jni/GL2JNIView.java
43123766f5fc3a73df77a03390679ec536ebe6e0 26-Sep-2009 Jack Palevich <jackpal@google.com> Tighten up sample code.

- Still fails to work; don't know why.
ests/gl2_jni/Android.mk
ests/gl2_jni/jni/gl_code.cpp
ests/gl2_jni/src/com/android/gl2jni/GL2JNIView.java
18e24f952506beebe1eea5672a7dbf60c1040556 26-Sep-2009 Jack Palevich <jackpal@google.com> Use EGLUtils to simplify choosing a configuration.

Doesn't actually select anything, possibly due to device driver errors.
ests/gl2_basic/gl2_basic.cpp
c5f0155d7f60b4eeb3194898c7772e18fd011402 24-Sep-2009 Mathias Agopian <mathias@google.com> OpenGL ES doesn't allow glColorPointer with a size parameter other than 4
ibagl/array.cpp
bc4a4177a34267ad0d039c8567bb9fe7549bb310 24-Sep-2009 Jack Palevich <jackpal@google.com> Make tritex test run with latest OpenGL driver.

Use EGLUtils::selectConfigForNativeWindow to select a legitimate
configuration. (Before now we had been selecting an incorrect
configuration, but the older drivers let us get away with it.)

Converted the source to C++ so we can call selectConfigForNativeWindow.
ests/tritex/Android.mk
ests/tritex/tritex.c
ests/tritex/tritex.cpp
919583553781f1e1885fa17f76d54008ebeca3c1 23-Sep-2009 Jack Palevich <jackpal@google.com> Create samples showing how to call OpenGL from JNI libraries.
ests/gl2_basic/gl2_basic.cpp
ests/gl2_jni/Android.mk
ests/gl2_jni/AndroidManifest.xml
ests/gl2_jni/jni/gl_code.cpp
ests/gl2_jni/res/values/strings.xml
ests/gl2_jni/src/com/android/gl2jni/GL2JNIActivity.java
ests/gl2_jni/src/com/android/gl2jni/GL2JNILib.java
ests/gl2_jni/src/com/android/gl2jni/GL2JNIView.java
ests/gl_jni/Android.mk
ests/gl_jni/AndroidManifest.xml
ests/gl_jni/jni/gl_code.cpp
ests/gl_jni/res/values/strings.xml
ests/gl_jni/src/com/android/gljni/GLJNIActivity.java
ests/gl_jni/src/com/android/gljni/GLJNILib.java
ests/gl_jni/src/com/android/gljni/GLJNIView.java
8c17384a5edd027376926b857af1fb170dbe9b43 21-Sep-2009 Mathias Agopian <mathias@google.com> log an error when loading an existing GL driver fails
ibs/EGL/Loader.cpp
9ec24af0e8fa1005e8b37073a27590d8f42149ce 19-Sep-2009 Jack Palevich <jackpal@google.com> Draw a green triangle using OpenGL 2.0 APIs.
ests/gl2_basic/gl2_basic.cpp
058777592dc784034cc19f6d358fe5ca4225d81d 17-Sep-2009 Jack Palevich <jackpal@google.com> Add additional error checking, exit early if errors occur.
ests/gl2_basic/gl2_basic.cpp
13e68424fb7d68b4b9a9dd443eb0e87721312834 16-Sep-2009 Jack Palevich <jackpal@google.com> Add EGL call error checking.
ests/gl2_basic/gl2_basic.cpp
cfa316b9e759ca0e9ee80fd275f441666532f9b1 11-Sep-2009 Jack Palevich <jackpal@google.com> AGL's glCompressedTexImage2D now checks the imageSize parameter.

This parameter indicates how many bytes of the image data are valid.

Previously this parameter was ignored.
ibagl/texture.cpp
493220dcb8d2f5d9633c157b41e1e27c6613b21d 02-Sep-2009 Jason Sams <rjsams@android.com> Simple app to create a gl2 context and dump the strings.
ests/gl2_basic/Android.mk
ests/gl2_basic/gl2_basic.cpp
e03eaa1551a644e9a13c327d16cc09bfd7649d78 11-Aug-2009 Martin Storsjo <martin@martin.st> Calculate specular lighting correctly

Since the lighting calculations are done in object space, the vector
from the object to the viewer also needs to be transformed to object
space.
ibagl/light.cpp
d914215edf600f811f7ad8cad2eab9049cf859a4 10-Aug-2009 Martin Storsjo <martin@martin.st> If FLAGS_2D_PROJECTION is set, the MVP matrices need updating when changing the viewport.
ibagl/matrix.cpp
7e05c0e8868fc2f1baa187da16654b7e6bcd2de2 25-Aug-2009 Android Code Review <code-review@android.com> Merge change 11093

* changes:
If FLAGS_2D_PROJECTION is set, the MVP matrices need updating when changing the viewport.
a69e0ed4a38ded9778d37da453899d527c4396b9 25-Aug-2009 Mathias Agopian <mathias@google.com> fix a bug recently introduced where EGL couldn't be initialized again after it had been terminated once
ibs/Android.mk
ibs/EGL/egl.cpp
9429e9c8ad8ae41104c693235a9376b3086da2e9 21-Aug-2009 Mathias Agopian <mathias@google.com> first step for fixing [2066786] EGL object lifetime management doesn't respect the EGL spec

this change fixes the lifetime mgt of EGLSurface, EGLContext and EGLImageKHR in the EGL wrapper.
EGLDisplay is still somewhat bogus and libagl's EGL is still incorrect.

The idea of the change is that EGL objects are put in a list when created and removed when destroyed.
Before each use, we first verify if the object is in the list and if so a reference is taken and kept
for the scope of the whole EGL API being called, if not, an error is returned.

Upon object destruction, the object is simply marked as "terminated" (this is not protected by a lock
because it doesn't really matter). This flag is only used to deny access to the object by other APIs
while it's still valid (for instance current or being used by another function in another thread).
A reference is also removed and the object can then actually be destroyed when going out of scope.
ibs/EGL/egl.cpp
baca89c06a40c6c19ae2294fb4263d893126320c 21-Aug-2009 Mathias Agopian <mathias@google.com> fix a bug in ComponentSizeChooser where it could pick a software EGLConfig instead of a better h/w one.

We now just try to honor the stencil / depth buffer "at least", while doing a "shortest distance" on the colors.
ibs/EGL/Loader.cpp
0696a572294bbaa977245afb630065de3278473b 20-Aug-2009 Mathias Agopian <mathias@google.com> better error handling in EGL
ibagl/egl.cpp
923c661a86c9e0737b3f16ceffd77e71e023ca54 18-Aug-2009 Mathias Agopian <mathias@google.com> fix bug [2021677] egl driver unloaded after eglTerminate() is called

refactored the code so that:
- EGL APIs that can be called before or after eglInitialize() will work by loading the drivers first
- make eglGetDisplay() a lot more efficient
- make sure that EGL drivers are loaded in a thread-safe way
- don't unload the drivers upon calling eglTerminate(), they're now never unloaded, since there is no safe way to do it (some thread could be running)
- updated our EGL version to 1.4
- return better error codes if errors happen during initialization
ibs/EGL/egl.cpp
ibs/egl_impl.h
ibs/hooks.h
24e5f5290195e1c02c18730d0639efda65d64914 13-Aug-2009 Mathias Agopian <mathias@google.com> Better error handling in EGL extensions
ibs/EGL/egl.cpp
5221271375f361b84a6eeec3d7086f223997fbb3 12-Aug-2009 Mathias Agopian <mathias@google.com> second take, hopefully this time it doesn't break one of the builds: "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."
ibagl/egl.cpp
d2a67888768b722bb9303854da3708b2e9104178 12-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 20893

* changes:
show that we need to glClear to be fast(er)
8717ff585ea7026b08060d6207947f5eadc27a93 12-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 20892

* changes:
Revert "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."
6c06ffc6d051b3418ca52f632a8497d1db6235c5 12-Aug-2009 Mathias Agopian <mathias@google.com> show that we need to glClear to be fast(er)
ests/filter/filter.cpp
b2fd4665e66fe81969f1f07fd724c6f68dd8f7f1 12-Aug-2009 Fred Quintana <fredq@google.com> Revert "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."

This reverts commit 8b76a0ac6fbf07254629ed1ea86af014d5abe050.
ibagl/egl.cpp
687bea235903fb7fd78b131487d189aba88f6d05 12-Aug-2009 Mathias Agopian <mathias@google.com> option to use drawtexture at compile time
ests/filter/filter.cpp
cba73d3210c18f0fbcac2e9b5b95a717d4a6d977 12-Aug-2009 Mathias Agopian <mathias@google.com> fix and extend the filter test a bit
ests/filter/filter.cpp
df37b62c62f8efd3b5a433f9b4d40d30cec13a31 11-Aug-2009 Mathias Agopian <mathias@google.com> 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.

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.
ibagl/egl.cpp
b94878cfb695296afb30456b5bdd5927951a66ed 11-Aug-2009 Martin Storsjo <martin@martin.st> Calculate specular lighting correctly

Since the lighting calculations are done in object space, the vector
from the object to the viewer also needs to be transformed to object
space.
ibagl/light.cpp
1d3bcd6e217e7ef177287d06f6fdf6149f453830 11-Aug-2009 Mathias Agopian <mathias@google.com> workaround a bug in the SGX driver that would prevent eglGetConfig to work properly
ests/angeles/app-linux.cpp
ests/copybits/copybits.cpp
ests/fillrate/fillrate.cpp
ests/filter/filter.cpp
ests/finish/finish.cpp
ests/swapinterval/swapinterval.cpp
ests/textures/textures.cpp
924cba8056a64b467e2719c302f4c3dc0920460d 10-Aug-2009 Martin Storsjo <martin@martin.st> If FLAGS_2D_PROJECTION is set, the MVP matrices need updating when changing the viewport.
ibagl/matrix.cpp
dfbec0e282636c9a6bfcc4a18c732911f24445b2 08-Aug-2009 Mathias Agopian <mathias@google.com> add support for RGBX_8888
ibagl/copybit.cpp
0928e31cc7a9ec7367a68796fcaa9c52959216a5 08-Aug-2009 Mathias Agopian <mathias@google.com> minor code clean-up
ests/swapinterval/swapinterval.cpp
653870d5e945ff94ff8136c97db0a016fc119683 07-Aug-2009 Mathias Agopian <mathias@google.com> update most gl tests to use EGLUtils
ests/angeles/Android.mk
ests/angeles/app-linux.c
ests/angeles/app-linux.cpp
ests/fillrate/fillrate.cpp
ests/filter/Android.mk
ests/filter/filter.c
ests/filter/filter.cpp
ests/finish/Android.mk
ests/finish/finish.c
ests/finish/finish.cpp
ests/textures/Android.mk
ests/textures/textures.c
ests/textures/textures.cpp
6cf50a770dabd13cf5b72bb0a6fb9dd002c88db6 07-Aug-2009 Mathias Agopian <mathias@google.com> added two EGL helpers for selecting a config matching a certain pixelformat or native window type
ests/swapinterval/swapinterval.cpp
1c3561e8d862d8fd27f8e843a18f251b9d9500b4 06-Aug-2009 Mathias Agopian <mathias@google.com> added a gl swapinterval test
ests/fillrate/fillrate.cpp
ests/swapinterval/Android.mk
ests/swapinterval/swapinterval.cpp
591018aaf9e95b9d2f6d9742194e940605b1bffa 04-Aug-2009 Mathias Agopian <mathias@google.com> opengl tests
ests/angeles/app-linux.c
ests/fillrate/Android.mk
ests/fillrate/fillrate.cpp
ests/textures/textures.c
d274eae545ded690846416d6bfe987d8405eeaba 01-Aug-2009 Mathias Agopian <mathias@google.com> log opengl-call-with-no-context only once per thread, instead of for each function call
ibs/EGL/egl.cpp
cf81c84e43eb33931b950fa2c9b4c6f51afe7197 31-Jul-2009 Mathias Agopian <mathias@google.com> be more robust when errors occur upon EGL surface creation (ie: don't crash)
ibagl/egl.cpp
cb6b9041647b4f080324742eee5ce709960ff610 31-Jul-2009 Mathias Agopian <mathias@google.com> fixed some issues with the software renderer when surfaces are made current.

there was several issues:
- when a surface was made non-current, the last frame wasn't shown and the buffer could stay locked
- when a surface was made current the 2nd time, it would not dequeue a new buffer

now, queue/dequeue are done when the surface is made current.

for this to work, a new query() hook had to be added on android_native_window_t, it allows to retrieve some attributes of a window (currently only width and height).
ibagl/egl.cpp
dee1b302ed9071c634131ae838d6a7de0d7b912e 29-Jul-2009 Jean-Baptiste Queru <jbq@google.com> merge from donut
02f54246f55f0ef4263f91062d350876ade5dd78 29-Jul-2009 Jean-Baptiste Queru <jbq@google.com> donut snapshot
ibagl/egl.cpp
ibs/EGL/egl.cpp
574c16f9f89ab18c7b54e9b262ef3d5359a2a709 29-Jul-2009 Mathias Agopian <mathias@google.com> GLESv2 couldn't be loaded due to wrong path specification
ibs/EGL/Loader.cpp
9261bae1d2a769cb7453d2cadb6040be38ec86e5 26-Jul-2009 Jean-Baptiste Queru <jbq@google.com> Merge korg/donut into korg/master
4d3b5c1e36f2a3746a1c87f8af97d4fe97e8f49e 21-Jul-2009 Jean-Baptiste Queru <jbq@google.com> donut snapshot
ibagl/array.cpp
ibagl/light.cpp
ibagl/matrix.cpp
ibagl/texture.cpp
ibs/Android.mk
ibs/EGL/egl.cpp
ibs/EGL/gpu.cpp
ests/angeles/Android.mk
ests/filter/Android.mk
ests/finish/Android.mk
ests/lighting1709/Android.mk
ests/lighting1709/AndroidManifest.xml
ests/lighting1709/src/com/android/lightingtest/ClearActivity.java
ests/textures/Android.mk
ests/tritex/Android.mk
ools/glgen/gen
ools/glgen/src/JniCodeEmitter.java
ools/glgen/stubs/gles11/GLES10cHeader.cpp
ools/glgen/stubs/jsr239/GLCHeader.cpp
ools/glgen/stubs/jsr239/GLImplHeader.java-impl
77de619c059ec87cb100dd1cd339f9ecbd5f43d2 16-Jul-2009 Jean-Baptiste Queru <jbq@google.com> Merge commit 'goog/readonly-korg-master' into merge_korg_master

* commit 'goog/readonly-korg-master':
Fixed Android issue #400, where the Intent documentation was inaccurate in a number of places, undoubtedly causing untold grief to innumerable masses.
Bug Fixed for libagl.
f13901eaa98241b52062a3ae3b016badce3dee0c 16-Jul-2009 Mathias Agopian <mathias@google.com> remove libagl's dependency on gralloc_priv.h
ibagl/Android.mk
ibagl/copybit.cpp
ibagl/egl.cpp
ibagl/texture.cpp
8e5fb52a1da59a9029b21fc97715dc37209969f7 14-Jul-2009 Mathias Agopian <mathias@google.com> this header file is not needed anymore
nclude/EGL/eglnatives.h
2521f47c4d45a4d02c3a9f608c73de744c8b44f6 10-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 46e28db8: Merge change 6713 into donut

Merge commit '46e28db8818332e3cda4cc410cc89a1ed7ce4db6'

* commit '46e28db8818332e3cda4cc410cc89a1ed7ce4db6':
fix for [1969185] valgrind errors in new gl stuff
dacd7a33c458240355c4b22dcc82809241447ab8 10-Jul-2009 Mathias Agopian <mathias@google.com> fix for [1969185] valgrind errors in new gl stuff
ibagl/egl.cpp
ibs/EGL/egl.cpp
fc865658b455de3bfbac609de391aaa44bea0748 08-Jul-2009 Marco Nelissen <marcone@google.com> Make opengl loader use an absolute path.
ibs/EGL/Loader.cpp
4cce5bd5ccc7c8468d0f8cc359525f82a45dedec 07-Jul-2009 Shin-ichiro KAWASAKI <shinichiro.kawasaki.mg@hitachi.com> Bug Fixed for libagl.
ibagl/primitives.cpp
295eff200867d58bbd1b21711c6ef0a7c10c9f95 30-Jun-2009 Mathias Agopian <mathias@google.com> fix a bug where gl didn't always fallback to software when copybit failed. minor optimizations to copybit codepath.
ibagl/copybit.cpp
240c9fe59e9db5807c88796f60889acc44ba845c 26-Jun-2009 Mathias Agopian <mathias@google.com> use copybit for eglSwapBuffers() copy-back operations
ibagl/egl.cpp
defcf8020df99c526278146ef560883d3d7f1afd 25-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 5352 into donut

* changes:
fix [1942438] eglGetCurrentSurface() returns bogus value
8d2e83b9f44c7f2207a312fcfda8eb3a4c26745f 25-Jun-2009 Mathias Agopian <mathias@google.com> Add eglGetRenderBufferANDROID() extension, which returns the current render buffer as an android_native_buffer_t*
nclude/EGL/eglext.h
nclude/EGL/eglplatform.h
ibagl/TextureObjectManager.h
ibagl/egl.cpp
ibs/EGL/egl.cpp
ibs/EGL/egl_entries.in
af74213546acc887b2b9e93459124cefd7f5e335 25-Jun-2009 Mathias Agopian <mathias@google.com> fix [1942438] eglGetCurrentSurface() returns bogus value
ibs/EGL/egl.cpp
f51f9c8af3a9974fa71be73a905aec70672aa0cb 25-Jun-2009 Mathias Agopian <mathias@google.com> fix [1942438] eglGetCurrentSurface() returns bogus value
ibs/EGL/egl.cpp
5911aa9510caad7c5d1dea849f9d2c8321fa9d7b 25-Jun-2009 Mathias Agopian <mathias@google.com> copybit now uses a native_handle_t* instead of a fd/offset
ibagl/copybit.cpp
4c4b387afb2e775fcac3b81a249bb7646515dffa 25-Jun-2009 Mathias Agopian <mathias@google.com> merge master in master_gl
e7829b8656ab4d179aa608e5715280819e5230b5 24-Jun-2009 Mathias Agopian <mathias@google.com> fix a bug where copybit would be rejected in landscape mode
ibagl/copybit.cpp
9f8b0c909760aa5b866255fe08042a3200b736cc 23-Jun-2009 Mathias Agopian <mathias@google.com> Android now has its own EGL extension block (yay) 0x3140-0x314F. EGL_NATIVE_BUFFER_ANDROID now maps to 0x3140 instead of using the staging range
nclude/EGL/eglplatform.h
60491bc2bfabee5b883a9ce66668a8082947c408 23-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 4fb69770: Merge change 5024 into donut

Merge commit '4fb69770e70352c987cc79414db7a03b52296ca7'

* commit '4fb69770e70352c987cc79414db7a03b52296ca7':
Remove opengl tests from tests build
952663ef57ffa8a69a220856eb1679c4e9eca254 23-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 5277103d: Merge change 5035 into donut

Merge commit '5277103db9033226814edc8fcba6f4ba4e846678'

* commit '5277103db9033226814edc8fcba6f4ba4e846678':
add glTexParameteri() and fix glTexParameteriv()
610f4dbe21f71d5c8e9d904e6f1bf7fabe6f84e6 23-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 5024 into donut

* changes:
Remove opengl tests from tests build
b12f99b31528a9ab9aa8f5c9fcfb57ad4c8b0517 23-Jun-2009 Mathias Agopian <mathias@google.com> add glTexParameteri() and fix glTexParameteriv()
ibagl/texture.cpp
8c1127fbe33fffc8bd7647a74b374068a9369b4a 23-Jun-2009 Sriram Raman <sriramkraman@google.com> Remove opengl tests from tests build
ests/angeles/Android.mk
ests/filter/Android.mk
ests/finish/Android.mk
ests/textures/Android.mk
ests/tritex/Android.mk
7272add7a5be7a8e1a0a3ba6066039037033f8cd 19-Jun-2009 Mathias Agopian <mathias@google.com> we were not fetching the texture coords in the copybit case, so we were using garbage
ibagl/copybit.cpp
aa6e88b80854dbcaa12678e77ffd440006faf828 18-Jun-2009 Mathias Agopian <mathias@google.com> fix/add some comments
ibagl/copybit.cpp
6d2cad2c6c5d4355ca362e45de85b5bfcd3337c3 18-Jun-2009 Mathias Agopian <mathias@google.com> s/w OpenGL no detects and handles all any combinations of triangle fans corresponding to a rectangle

this allows fallback to faster copybit code in almost all cases.
ibagl/array.cpp
ibagl/copybit.cpp
ibagl/copybit.h
cf251b9e3b54a08aa668437fe9cae08d07e333e7 17-Jun-2009 Mathias Agopian <mathias@google.com> fix a scissor bug in the GLES-on-top-of copybit code
ibagl/copybit.cpp
b6822d7a3ea86b729a8c716a5fc9ad7a02532bfe 16-Jun-2009 Mathias Agopian <mathias@google.com> Merge commit 'goog/master' into merge_master
168f3c520143352e1b5daf05ab01d8c87cecc184 16-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am b4f7592b: Merge change 4299 into donut

Merge commit 'b4f7592b03c8424302c10e61474b0e2d0a71a630'

* commit 'b4f7592b03c8424302c10e61474b0e2d0a71a630':
Allow pre-Donut apps to use indirect Buffers in GL11 Pointer methods.
Fix IntentFilter constructor to properly process the action parameter.
c96812cb27ca2fbfe4456c8297e2c77d23d790f1 16-Jun-2009 Jack Palevich <jackpal@google.com> Allow pre-Donut apps to use indirect Buffers in GL11 Pointer methods.

Apps targeting Donut and newer will throw an exception.

We use a heuristic to determine whether an app is pre-Donut or not:
We take the address space's __progname, and use that as the application's
package name. For simple applications this is correct.
ools/glgen/gen
ools/glgen/stubs/jsr239/GLCHeader.cpp
ools/glgen/stubs/jsr239/GLImplHeader.java-impl
0a3139a21e628093893bba8ca0bb0b4742e0522c 11-Jun-2009 Mathias Agopian <mathias@google.com> fix a bug where copybit only renders in the first buffer when used with s/w GL
ibagl/TextureObjectManager.cpp
ibagl/TextureObjectManager.h
ibagl/copybit.cpp
ibagl/copybit.h
ibagl/egl.cpp
ibagl/state.cpp
ibagl/texture.cpp
ests/copybits/copybits.cpp
7e2a937c4fa91e7c048fdbc37fe2a8dd85361df9 10-Jun-2009 Mathias Agopian <mathias@google.com> revive the copybit test.
ests/copybits/Android.mk
ests/copybits/copybits.cpp
1a0c4cd5d83facd9653c45db1d2b9725c2e060b0 06-Jun-2009 Mathias Agopian <mathias@google.com> Merge commit 'goog/master' into merge_master
9648c1a2b9b527bcef64bb9d96e8385a14949840 04-Jun-2009 Mathias Agopian <mathias@google.com> make sure clear the draw and read EGLSurface when eglMakeCurrent() is called for unbinding from the thread
ibagl/egl.cpp
f909cb6c69aa3ac8ffb6a2b9cd565b4b1e8b99c0 04-Jun-2009 Mathias Agopian <mathias@google.com> remove some spurious debuging LOGD
ibs/EGL/Loader.cpp
acdebe352dc7dadc1122a87d45137fd2441b329a 04-Jun-2009 Mathias Agopian <mathias@google.com> fix/clean these Android.mk following dbort and joeo's comments
ibagl/Android.mk
ibs/Android.mk
ibs/EGL/Loader.cpp
bee8b90e6ec457c8fd5e7cf74ad7ad911092e1f8 04-Jun-2009 Mathias Agopian <mathias@google.com> am cede1ed3: fix [1610840] Positional light doesn\'t work correctly on emulator

Merge commit 'cede1ed3e1721dc4a697a540388ef0f4b51c60eb'

* commit 'cede1ed3e1721dc4a697a540388ef0f4b51c60eb':
fix [1610840] Positional light doesn't work correctly on emulator
a35197e104189d4c9fb551beee4b430b55045055 04-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 5de674e1: Merge change 3013 into donut

Merge commit '5de674e1cbd6e43b6d7954ccacf5cd709b30265d'

* commit '5de674e1cbd6e43b6d7954ccacf5cd709b30265d':
Adding missing callback onJsConfirm to dismiss any confirmation dialogs
fix a bug in GL lighting where the specular component could be ommited when vertex material was disabled.
69ca17a12444ef619952b783ddaac121a0d438e5 03-Jun-2009 Mathias Agopian <mathias@google.com> fix [1610840] Positional light doesn't work correctly on emulator

This bug was introduced when lighting computations was changed from eye-space to object-space.
The light position need to be transformed back to object-space each time the modelview matrix changes which requires us to compute the inverse of the modelview matrix. This computation was done with the assumption that normals where transformed (which was the case when the computation was made in eye-space), however, normals only require the inverse of the upper 3x3 matrix while transforming positions requires the inverse of the whole matrix.
This caused the interesting behavior that lights were more-or-less transformed properly, but not translated at all, which caused improper lighting with directional lights in particular.

There was also another smaller bug affecting directional lights: when vertices are read, only the active component are read, the other ones are ignored, later, the transformation operations are set up to ignore the unset values, howver, in the case of lighting, we use the vertex in object space (that is, before it is transformed), and therefore were using uninitalized values; in particular w.
ibagl/array.cpp
ibagl/light.cpp
ibagl/matrix.cpp
2216b95610ef86b39935adfb2ecad51da54ba9c6 04-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 3013 into donut

* changes:
fix a bug in GL lighting where the specular component could be ommited when vertex material was disabled.
cddc40a4f3be3f4cbe6be1d717ff18bb049bec9d 03-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 5f784df5: Merge change 3011 into donut

Merge commit '5f784df5680e07f6cbc5d929560dfadc0e22db3b'

* commit '5f784df5680e07f6cbc5d929560dfadc0e22db3b':
simplify this test
50aba6d31d3ddd0c4dc13292822b7fabade2b6c3 03-Jun-2009 Mathias Agopian <mathias@google.com> fix a bug in GL lighting where the specular component could be ommited when vertex material was disabled.

the specular enable flag wasn't computed in that case.
ibagl/light.cpp
17836acabf2024b4d124db955811eed6e3604853 03-Jun-2009 Mathias Agopian <mathias@google.com> simplify this test
ests/lighting1709/src/com/android/lightingtest/ClearActivity.java
cb1ae92655cbf359cb2b5ab6e1fd17dbd73288b3 02-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 7728be03: Merge change 2896 into donut

Merge commit '7728be035f5b3b814ef4455d1742d069dbcffb61'

* commit '7728be035f5b3b814ef4455d1742d069dbcffb61':
added a test that exhibits some lighting issues in the software renderer. see external bug 1709
4d661eb62c0e52f0a6105f3898bafe68a2e82f54 02-Jun-2009 Mathias Agopian <mathias@google.com> added a test that exhibits some lighting issues in the software renderer. see external bug 1709
ests/lighting1709/Android.mk
ests/lighting1709/AndroidManifest.xml
ests/lighting1709/src/com/android/lightingtest/ClearActivity.java
de58697644a52a614ad9498aa087e95d4a223673 29-May-2009 Mathias Agopian <mathias@google.com> implement a real loader for EGL drivers

we now look for a config file in /system/lib/egl/egl.cfg that describes the association of a display to a driver.
these drivers are named: /system/lib/egl/lib{[EGL|GLESv1_CM|GLESv2] | GLES}_$TAG.so
ibagl/Android.mk
ibs/Android.mk
ibs/EGL/Loader.cpp
ibs/EGL/Loader.h
ibs/EGL/egl.cpp
ibs/EGL/hooks.cpp
ibs/egl_impl.h
ibs/hooks.h
b1a39d67be99fe6c4545b25e10ac82a5dd1df634 28-May-2009 Mathias Agopian <mathias@google.com> Added most of the support needed for GLES 2.x
nclude/GLES2/gl2platform.h
ibs/Android.mk
ibs/EGL/egl.cpp
ibs/EGL/egl_entries.in
ibs/GLES2/gl2.cpp
ibs/GLES2/gl2_api.in
ibs/GLES2/gl2_entries.in
ibs/GLES2/gl2ext_api.in
ibs/GLES2/gl2ext_entries.in
ibs/GLES_CM/gl_entries.in
ibs/GLES_CM/glext_entries.in
ibs/egl_entries.in
ibs/gl_entries.in
ibs/gl_enums.in
ibs/glext_entries.in
ibs/hooks.h
ibs/tools/enumextract.sh
ibs/tools/genfiles
ibs/tools/glapigen
ibs/tools/glentrygen
a3d66a834f7e6796003684652d8aef13fa6345cd 28-May-2009 Mathias Agopian <mathias@google.com> minor modifications to the official GLES 2.x headers

- changed glTexImage2D() declaration so it matches that of GLES 1.x; otherwise we can't include both headers (!!!)
- added parameter names to the declaration of some extensions (this is needed by glapigen and glentrygen)
nclude/GLES2/gl2.h
nclude/GLES2/gl2ext.h
48efd950151369a5c049c8a92f36663a88206b4e 28-May-2009 Mathias Agopian <mathias@google.com> add GLES 2.x headers
nclude/GLES2/gl2.h
nclude/GLES2/gl2ext.h
310f8da0c3122ed5419db8f12a6e98d3188325b2 22-May-2009 Mathias Agopian <mathias@google.com> merge master to master_gl
e6b922ab30059cfb6c6f0d1e938a4c0d56a16e7f 21-May-2009 Android (Google) Code Review <android-gerrit@google.com> am bb7b7b31: Merge change 2152 into donut

Merge commit 'bb7b7b316a6a15f4df6af3c62a293920c68c7b00'

* commit 'bb7b7b316a6a15f4df6af3c62a293920c68c7b00':
make sure to fail to software when the h/w renderer cannot be initialized
5c846bd6cfa2d8fd71c19f15f07c495cd397290b 21-May-2009 Mathias Agopian <mathias@google.com> make sure to fail to software when the h/w renderer cannot be initialized
ibs/EGL/gpu.cpp
c5b2c0bf8007562536b822eb060fc54a01f8e08b 20-May-2009 Mathias Agopian <mathias@google.com> move libbinder's header files under includes/binder
ibs/EGL/gpu.cpp
208059f67ed2dd9fa025e07fcb6954d3cb61c79e 19-May-2009 Mathias Agopian <mathias@google.com> checkpoint: split libutils into libutils + libbinder
ibs/Android.mk
9660d304ae51a69509e5506e1fc80178025dee7c 20-May-2009 Jean-Baptiste Queru <jbq@google.com> donut snapshot
nclude/GLES/glext.h
nclude/KHR/khrplatform.h
ibagl/Android.mk
ibagl/egl.cpp
ibs/Android.mk
ibs/EGL/egl.cpp
ibs/EGL/gpu.cpp
ibs/GLES_CM/gl.cpp
ibs/GLES_CM/gl_api.in
ibs/GLES_CM/gl_logger.cpp
ibs/GLES_CM/glext_api.in
ibs/egl_entries.in
ibs/egl_impl.h
ibs/gl_entries.in
ibs/gl_logger.h
ibs/glext_entries.in
ibs/hooks.h
ibs/tools/genfiles
ibs/tools/glapigen
ibs/tools/glentrygen
ools/glgen/.gitignore
ools/glgen/gen
ools/glgen/glspec-1.0
ools/glgen/glspec-1.0ext
ools/glgen/glspec-1.1
ools/glgen/glspec-1.1ext
ools/glgen/glspec-1.1extpack
ools/glgen/glspec-checks
ools/glgen/specs/gles11/GLES10.spec
ools/glgen/specs/gles11/GLES10Ext.spec
ools/glgen/specs/gles11/GLES11.spec
ools/glgen/specs/gles11/GLES11Ext.spec
ools/glgen/specs/gles11/checks.spec
ools/glgen/specs/jsr239/glspec-1.0
ools/glgen/specs/jsr239/glspec-1.0ext
ools/glgen/specs/jsr239/glspec-1.1
ools/glgen/specs/jsr239/glspec-1.1ext
ools/glgen/specs/jsr239/glspec-1.1extpack
ools/glgen/specs/jsr239/glspec-checks
ools/glgen/src/.gitignore
ools/glgen/src/CFunc.java
ools/glgen/src/CType.java
ools/glgen/src/CodeEmitter.java
ools/glgen/src/GLESCodeEmitter.java
ools/glgen/src/GenerateGL.java
ools/glgen/src/GenerateGLES.java
ools/glgen/src/JFunc.java
ools/glgen/src/JType.java
ools/glgen/src/JniCodeEmitter.java
ools/glgen/src/Jsr239CodeEmitter.java
ools/glgen/stubs/GL10ExtHeader.java-if
ools/glgen/stubs/GL10Header.java-if
ools/glgen/stubs/GL11ExtHeader.java-if
ools/glgen/stubs/GL11ExtensionPackHeader.java-if
ools/glgen/stubs/GL11Header.java-if
ools/glgen/stubs/GL11ImplHeader.java-impl
ools/glgen/stubs/GLCHeader.cpp
ools/glgen/stubs/GLHeader.java-if
ools/glgen/stubs/GLImplHeader.java-impl
ools/glgen/stubs/glGetString.cpp
ools/glgen/stubs/glGetString.java-10-if
ools/glgen/stubs/glGetString.java-if
ools/glgen/stubs/glGetString.java-impl
ools/glgen/stubs/glGetString.nativeReg
ools/glgen/stubs/gles11/GLES10ExtHeader.java-if
ools/glgen/stubs/gles11/GLES10ExtcHeader.cpp
ools/glgen/stubs/gles11/GLES10Header.java-if
ools/glgen/stubs/gles11/GLES10cHeader.cpp
ools/glgen/stubs/gles11/GLES11ExtHeader.java-if
ools/glgen/stubs/gles11/GLES11ExtcHeader.cpp
ools/glgen/stubs/gles11/GLES11Header.java-if
ools/glgen/stubs/gles11/GLES11cHeader.cpp
ools/glgen/stubs/gles11/glGetString.cpp
ools/glgen/stubs/gles11/glGetString.java
ools/glgen/stubs/gles11/glGetString.nativeReg
ools/glgen/stubs/jsr239/GL10ExtHeader.java-if
ools/glgen/stubs/jsr239/GL10Header.java-if
ools/glgen/stubs/jsr239/GL11ExtHeader.java-if
ools/glgen/stubs/jsr239/GL11ExtensionPackHeader.java-if
ools/glgen/stubs/jsr239/GL11Header.java-if
ools/glgen/stubs/jsr239/GL11ImplHeader.java-impl
ools/glgen/stubs/jsr239/GLCHeader.cpp
ools/glgen/stubs/jsr239/GLHeader.java-if
ools/glgen/stubs/jsr239/GLImplHeader.java-impl
ools/glgen/stubs/jsr239/glGetString.cpp
ools/glgen/stubs/jsr239/glGetString.java-10-if
ools/glgen/stubs/jsr239/glGetString.java-if
ools/glgen/stubs/jsr239/glGetString.java-impl
ools/glgen/stubs/jsr239/glGetString.nativeReg
614ecde4cb2720e23c83fd9b2a2bfb469b7bc174 18-May-2009 Mathias Agopian <mathias@google.com> libGLESv1_CM.so doesn't need to depend on libutils or libui
ibs/Android.mk
d8fb7b586f3cfac42694208547b58438d7f3b3ed 18-May-2009 Mathias Agopian <mathias@google.com> remove libEGL and libGLESv1_CM dependencies on libutils and libui
ibs/Android.mk
ibs/EGL/egl.cpp
ibs/EGL/gpu.cpp
6eedc8d3b598163f797a2f75d05fdc20809a4364 16-May-2009 Jack Palevich <jackpal@google.com> Fix bug 1856713 gl Pointer functions should use Buffer position

JSR239 and android.opengl gl Pointer functions (glColorPointer, etc.)
now respect the current setting of the Buffer position.

This fixes a regression introduced when we started requiring the
Buffers passed to the Pointer functions to be direct Buffers.
ools/glgen/src/JniCodeEmitter.java
ools/glgen/stubs/gles11/GLES10cHeader.cpp
ools/glgen/stubs/jsr239/GLCHeader.cpp
d717598616910b5454b56429dec3bfad2757bd52 15-May-2009 Mathias Agopian <mathias@google.com> Merge commit 'goog/master' into merge_master

Conflicts:
opengl/libagl/Android.mk
opengl/libs/Android.mk
opengl/libs/egl_impl.h
eccc8cfb2fc83e7f924016ef31e3a4a12e347e99 13-May-2009 Mathias Agopian <mathias@google.com> should help fix the Simulator build.
ibs/EGL/egl.cpp
d373c6348a91595dd4c0b83ad256dbf30870fa5d 09-May-2009 Mathias Agopian <mathias@google.com> remove the gl{Vertex|Color|TexCoord|Normal}PointerBounds() "extension" fro eglext.h
nclude/GLES/glext.h
ibs/GLES_CM/gl.cpp
ools/glgen/stubs/gles11/GLES10cHeader.cpp
ools/glgen/stubs/jsr239/GLCHeader.cpp
94aa09680a530353448bc9052cec9c6b205db8b4 09-May-2009 Mathias Agopian <mathias@google.com> should fix the build.
ibs/EGL/gpu.cpp
48685c45bb333c3564596158e2e67267110c9277 09-May-2009 Mathias Agopian <mathias@google.com> only export the GL entry-points, hide everything else.

Conflicts:

opengl/libagl/Android.mk
opengl/libs/Android.mk
opengl/libs/egl_impl.h
nclude/GLES/glext.h
nclude/KHR/khrplatform.h
ibagl/Android.mk
ibs/Android.mk
ibs/egl_impl.h
5958661507b39cd59e68e9bc2b54399af92847c4 08-May-2009 Mathias Agopian <mathias@google.com> Merge commit 'goog/master' into merge_master
46d25a371d58c63cbd72f5d08348e9b75c2ac22c 08-May-2009 Jack Palevich <jackpal@google.com> Require native-order direct buffers for glXXXPointer APIs.

This was always a documented restriction, but was not enforced by the runtime until now.

Until now, if you passed in some other kind of buffer, it would sometimes work, and
sometimes fail. The failures happened when the Java VM moved the buffer data while
OpenGL was still holding a pointer to it.

Now we throw an exception rather than leaving the system in a potentially bad state.
ools/glgen/src/JniCodeEmitter.java
e6bf8b32b616450f80b64d226ea673f4a2e0bf8d 07-May-2009 Mathias Agopian <mathias@google.com> fix EGL extension string names
ibagl/egl.cpp
ibs/EGL/egl.cpp
df3ca30bf663cb8eed88ee3f16fb5e9a65dc00fc 05-May-2009 Mathias Agopian <mathias@google.com> 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.
nclude/EGL/eglext.h
ibagl/egl.cpp
ibs/EGL/egl.cpp
ibs/egl_entries.in
593f203ba3df251b238409bb3fcc66b0a90b856d 07-May-2009 Jack Palevich <jackpal@google.com> Fix automatically generated code for glGet

Remove include of an internal agl header file. We should not depend on any implementation details
of our software renderer, since they may not be correct if another renderer is used.
Fix glGet number-of-elements logic for GL_FOG_COLOR GL_LIGHT_MODEL_AMBIENT,
and GL_COMPRESSED_TEXTURE_FORMATS.
ools/glgen/specs/gles11/checks.spec
ools/glgen/specs/jsr239/glspec-checks
ools/glgen/stubs/gles11/GLES10ExtcHeader.cpp
ools/glgen/stubs/gles11/GLES10cHeader.cpp
ools/glgen/stubs/gles11/GLES11ExtcHeader.cpp
ools/glgen/stubs/gles11/GLES11cHeader.cpp
ools/glgen/stubs/jsr239/GLCHeader.cpp
58a79f47457e9cae2f6880653b581fe3170b0b1f 06-May-2009 Mathias Agopian <mathias@google.com> move android_native_buffer_t declaration into its own private/ui/android_native_priv.h header, since user code should never have access to it.
ibagl/TextureObjectManager.cpp
ibagl/egl.cpp
ibagl/texture.cpp
7189c0054e29a66d945f5657c48d5ecf538ea511 06-May-2009 Mathias Agopian <mathias@google.com> move opengl/include/EGL/android_natives.h to include/ui/egl/android_natives.h and don't include it from egl.h

the android_native_ types are just forward declared in egl.h
nclude/EGL/android_natives.h
nclude/EGL/eglplatform.h
ibagl/TextureObjectManager.cpp
ibagl/TextureObjectManager.h
ibagl/egl.cpp
ibagl/texture.cpp
21c59d0070fe24a8e04e52ce04d511a924a9932f 05-May-2009 Mathias Agopian <mathias@google.com> get rid of android_native_buffer_t::getHandle() and replace it with an handle field

this abstraction was not necessary. things are easier now.
nclude/EGL/android_natives.h
ibagl/egl.cpp
ibagl/texture.cpp
e71212ba5397387100a578d23b15862518a7a859 05-May-2009 Mathias Agopian <mathias@google.com> removed the "bits" attribute from android_native_buffer_t.

"bits" can never be trusted now that we need to call lock() on the handle to get the virtual address of the buffer.
nclude/EGL/android_natives.h
ibagl/egl.cpp
ibagl/texture.cpp
0926f50664c739eaee60341f8e8c694dc9a4f3eb 04-May-2009 Mathias Agopian <mathias@google.com> 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
nclude/EGL/android_natives.h
ibagl/TextureObjectManager.cpp
ibagl/TextureObjectManager.h
ibagl/array.cpp
ibagl/egl.cpp
ibagl/texture.cpp
ibagl/texture.h
ests/copybits/Android.mk
7be3e5d2d8101a8f5e12bbdf650431a734f88eba 30-Apr-2009 Mathias Agopian <mathias@google.com> Merge commit 'goog/master' into merge_master

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
3d8817935b47ef67d86a872f64b1ba0e31ae6d0a 25-Apr-2009 Mathias Agopian <mathias@google.com> oops forgot to remove a LOGD when loading an opengl driver
ibs/EGL/egl.cpp
4e8bdce13fe34e4a61bcc91f05ee53d0cd3a6230 24-Apr-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 551 into donut

* changes:
Enable static Java APIs for OpenGL ES 1.1 extensions.
3327d6c5ac4b294aba7eb31291be4e7a91a6e4b1 24-Apr-2009 Jack Palevich <jackpal@google.com> Enable static Java APIs for OpenGL ES 1.1 extensions.

This is just plumbing. The Java APIs existed already, but there were no C APIs to hook the Java APIs
up to. Now there are C APIs, so we can call them.

Of course, whether or not the C APIs actually work when you call them depend upon the
capabilities of the active OpenGL driver, which must be checked at run time.

Also, while we're here, make the glGetString method static. It was always supposed to be static,
but was accidentally implemented as non-static, because the code was copied from the non-static
OpenGL ES classes.
ools/glgen/specs/gles11/checks.spec
ools/glgen/stubs/gles11/glGetString.java
ools/glgen/stubs/gles11/glGetString.nativeReg
1c2be6af86800875d57bb493fd6ce6b18d742dfe 24-Apr-2009 Mathias Agopian <mathias@google.com> Make sure to map undefined OES functions to their non-OES counterpart if it exists.
ibs/EGL/egl.cpp
b519abb606c819c446a408f422530268b21a100b 24-Apr-2009 Mathias Agopian <mathias@google.com> use gl.h to generate the *.in files. we are now supporting the full gl.h and glext.h apis.
ibs/EGL/egl.cpp
ibs/GLES_CM/gl.cpp
ibs/GLES_CM/gl_api.in
ibs/GLES_CM/glext_api.in
ibs/gl_entries.in
ibs/gl_logger.h
ibs/glext_entries.in
ibs/hooks.h
ibs/tools/genfiles
ibs/tools/glapigen
ibs/tools/glentrygen
53238bddeab7b4633bfdb59fac67b0af1211955a 23-Apr-2009 Mathias Agopian <mathias@google.com> integrate some OpenGL ES changes back from master_gl in preparation of opening GLES to the NDK.
ibagl/egl.cpp
ibs/Android.mk
ibs/EGL/egl.cpp
ibs/GLES_CM/gl.cpp
ibs/GLES_CM/gl_api.in
ibs/GLES_CM/gl_logger.cpp
ibs/egl_entries.in
ibs/gl_entries.in
ibs/hooks.h
ibs/tools/glapigen
34dd2d1c2d1333618a2acee27f890d84228f5fb9 17-Apr-2009 Mathias Agopian <mathias@google.com> Merge commit 'goog/master' into merge_master
412f38f270b71bbc3214362eb58687cbf26d6df2 14-Apr-2009 Jack Palevich <jackpal@google.com> Manually merge 129, 174, and 233 from donut

This adds a static OpenGL ES API.

Here are the three commit messages for the original changes:

Clean up trivial Eclipse warnings and fix whitespace.

Added @Override to overridden methods.
Removed unused imports.
Converted tabs to spaces.
Removed \r characters from end-of-lines.
Add .gitignore file to ignore the .class files that are
generated when the "gen" script is run.

This is the 2nd commit message:

Improve glgen

+ gen script is really a bash script rather than a sh script,
so declare that to be true. (For example, it uses pushd,
which is a part of bash, but not a part of sh. Not sure
how this worked until now. Possibly gen was only run in
environments where /bin/sh was really bash.

+ Check the results of the java compile of the code generator,
and abort the script if the compile fails.

+ Turn on the bash shell option that guards against using
uninitialized variables in the script.

+ Remove the generated class files.

Refactor JniCodeEmitter into two classes: a general-purpose
JniCodeEmitter and a specific Jsr239CodeEmitter. The hope is
to use JniCodeEmitter as a base for emitting static OpenGL ES
bindings.

This is the 3rd commit message:

Add an Android-specific static OpenGL ES 1.1 Java API.

This change adds four new public classes that expose a static OpenGL ES 1.1 API:

android.opengl.GLES10
android.opengl.GLES10Ext
android.opengl.GLES11
android.opengl.GLES11Ext

Benefits:

+ The static API is slightly faster (1% to 4%) than the existing Interface based JSR239 API.
+ The static API is similar to the C API, which should make it easier to import C-based
example code.
+ The static API provides a clear path for adding new OpenGL ES 1.1 extensions
and OpenGL ES 2.0 APIs, neither of which currently have a JSR standard.

Example:

import static android.opengl.GLES10.*;

...

glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

Note that it is possible to mix-and-match calls to both the static and JSR239 APIs.
This works because neither API maintains state. They both call through to the same underlying
C OpenGL ES APIs.

Implementation details:

This change enhances the "glgen" "gen" script to generate both the original JSR239 and
new static OpenGL ES APIs. The contents of the generated JSR239 classes remained the same as before,
so there is no need to check in new versions of the generated JSR239 classes.

As part of this work the gen script was updated to be somewhat more robust, and to
work with git instead of perforce. The script prints out commands to git add the generated files,
but leaves it up to the script runner to actually execute those commands.
ools/glgen/.gitignore
ools/glgen/gen
ools/glgen/glspec-1.0
ools/glgen/glspec-1.0ext
ools/glgen/glspec-1.1
ools/glgen/glspec-1.1ext
ools/glgen/glspec-1.1extpack
ools/glgen/glspec-checks
ools/glgen/specs/gles11/GLES10.spec
ools/glgen/specs/gles11/GLES10Ext.spec
ools/glgen/specs/gles11/GLES11.spec
ools/glgen/specs/gles11/GLES11Ext.spec
ools/glgen/specs/gles11/checks.spec
ools/glgen/specs/jsr239/glspec-1.0
ools/glgen/specs/jsr239/glspec-1.0ext
ools/glgen/specs/jsr239/glspec-1.1
ools/glgen/specs/jsr239/glspec-1.1ext
ools/glgen/specs/jsr239/glspec-1.1extpack
ools/glgen/specs/jsr239/glspec-checks
ools/glgen/src/.gitignore
ools/glgen/src/CFunc.java
ools/glgen/src/CType.java
ools/glgen/src/CodeEmitter.java
ools/glgen/src/GLESCodeEmitter.java
ools/glgen/src/GenerateGL.java
ools/glgen/src/GenerateGLES.java
ools/glgen/src/JFunc.java
ools/glgen/src/JType.java
ools/glgen/src/JniCodeEmitter.java
ools/glgen/src/Jsr239CodeEmitter.java
ools/glgen/stubs/GL10ExtHeader.java-if
ools/glgen/stubs/GL10Header.java-if
ools/glgen/stubs/GL11ExtHeader.java-if
ools/glgen/stubs/GL11ExtensionPackHeader.java-if
ools/glgen/stubs/GL11Header.java-if
ools/glgen/stubs/GL11ImplHeader.java-impl
ools/glgen/stubs/GLCHeader.cpp
ools/glgen/stubs/GLHeader.java-if
ools/glgen/stubs/GLImplHeader.java-impl
ools/glgen/stubs/glGetString.cpp
ools/glgen/stubs/glGetString.java-10-if
ools/glgen/stubs/glGetString.java-if
ools/glgen/stubs/glGetString.java-impl
ools/glgen/stubs/glGetString.nativeReg
ools/glgen/stubs/gles11/GLES10ExtHeader.java-if
ools/glgen/stubs/gles11/GLES10ExtcHeader.cpp
ools/glgen/stubs/gles11/GLES10Header.java-if
ools/glgen/stubs/gles11/GLES10cHeader.cpp
ools/glgen/stubs/gles11/GLES11ExtHeader.java-if
ools/glgen/stubs/gles11/GLES11ExtcHeader.cpp
ools/glgen/stubs/gles11/GLES11Header.java-if
ools/glgen/stubs/gles11/GLES11cHeader.cpp
ools/glgen/stubs/gles11/glGetString.cpp
ools/glgen/stubs/gles11/glGetString.java
ools/glgen/stubs/gles11/glGetString.nativeReg
ools/glgen/stubs/jsr239/GL10ExtHeader.java-if
ools/glgen/stubs/jsr239/GL10Header.java-if
ools/glgen/stubs/jsr239/GL11ExtHeader.java-if
ools/glgen/stubs/jsr239/GL11ExtensionPackHeader.java-if
ools/glgen/stubs/jsr239/GL11Header.java-if
ools/glgen/stubs/jsr239/GL11ImplHeader.java-impl
ools/glgen/stubs/jsr239/GLCHeader.cpp
ools/glgen/stubs/jsr239/GLHeader.java-if
ools/glgen/stubs/jsr239/GLImplHeader.java-impl
ools/glgen/stubs/jsr239/glGetString.cpp
ools/glgen/stubs/jsr239/glGetString.java-10-if
ools/glgen/stubs/jsr239/glGetString.java-if
ools/glgen/stubs/jsr239/glGetString.java-impl
ools/glgen/stubs/jsr239/glGetString.nativeReg
427f585f726af6e3bd1fb835f26b2af9f609c483 16-Apr-2009 Jack Palevich <jackpal@google.com> Add an Android-specific static OpenGL ES 1.1 Java API.

This change adds four new public classes that expose a static OpenGL ES 1.1 API:

android.opengl.GLES10
android.opengl.GLES10Ext
android.opengl.GLES11
android.opengl.GLES11Ext

Benefits:

+ The static API is slightly faster (1% to 4%) than the existing Interface based JSR239 API.
+ The static API is similar to the C API, which should make it easier to import C-based
example code.
+ The static API provides a clear path for adding new OpenGL ES 1.1 extensions
and OpenGL ES 2.0 APIs, neither of which currently have a JSR standard.

Example:

import static android.opengl.GLES10.*;

...

glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

Note that it is possible to mix-and-match calls to both the static and JSR239 APIs.
This works because neither API maintains state. They both call through to the same underlying
C OpenGL ES APIs.

Implementation details:

This change enhances the "glgen" "gen" script to generate both the original JSR239 and
new static OpenGL ES APIs. The contents of the generated JSR239 classes remained the same as before,
so there is no need to check in new versions of the generated JSR239 classes.

As part of this work the gen script was updated to be somewhat more robust, and to
work with git instead of perforce. The script prints out commands to git add the generated files,
but leaves it up to the script runner to actually execute those commands.
ools/glgen/.gitignore
ools/glgen/gen
ools/glgen/glspec-1.0
ools/glgen/glspec-1.0ext
ools/glgen/glspec-1.1
ools/glgen/glspec-1.1ext
ools/glgen/glspec-1.1extpack
ools/glgen/glspec-checks
ools/glgen/specs/gles11/GLES10.spec
ools/glgen/specs/gles11/GLES10Ext.spec
ools/glgen/specs/gles11/GLES11.spec
ools/glgen/specs/gles11/GLES11Ext.spec
ools/glgen/specs/gles11/checks.spec
ools/glgen/specs/jsr239/glspec-1.0
ools/glgen/specs/jsr239/glspec-1.0ext
ools/glgen/specs/jsr239/glspec-1.1
ools/glgen/specs/jsr239/glspec-1.1ext
ools/glgen/specs/jsr239/glspec-1.1extpack
ools/glgen/specs/jsr239/glspec-checks
ools/glgen/src/GLESCodeEmitter.java
ools/glgen/src/GenerateGL.java
ools/glgen/src/GenerateGLES.java
ools/glgen/src/JFunc.java
ools/glgen/src/JType.java
ools/glgen/src/JniCodeEmitter.java
ools/glgen/src/Jsr239CodeEmitter.java
ools/glgen/stubs/GL10ExtHeader.java-if
ools/glgen/stubs/GL10Header.java-if
ools/glgen/stubs/GL11ExtHeader.java-if
ools/glgen/stubs/GL11ExtensionPackHeader.java-if
ools/glgen/stubs/GL11Header.java-if
ools/glgen/stubs/GL11ImplHeader.java-impl
ools/glgen/stubs/GLCHeader.cpp
ools/glgen/stubs/GLHeader.java-if
ools/glgen/stubs/GLImplHeader.java-impl
ools/glgen/stubs/glGetString.cpp
ools/glgen/stubs/glGetString.java-10-if
ools/glgen/stubs/glGetString.java-if
ools/glgen/stubs/glGetString.java-impl
ools/glgen/stubs/glGetString.nativeReg
ools/glgen/stubs/gles11/GLES10ExtHeader.java-if
ools/glgen/stubs/gles11/GLES10ExtcHeader.cpp
ools/glgen/stubs/gles11/GLES10Header.java-if
ools/glgen/stubs/gles11/GLES10cHeader.cpp
ools/glgen/stubs/gles11/GLES11ExtHeader.java-if
ools/glgen/stubs/gles11/GLES11ExtcHeader.cpp
ools/glgen/stubs/gles11/GLES11Header.java-if
ools/glgen/stubs/gles11/GLES11cHeader.cpp
ools/glgen/stubs/gles11/glGetString.cpp
ools/glgen/stubs/gles11/glGetString.java
ools/glgen/stubs/gles11/glGetString.nativeReg
ools/glgen/stubs/jsr239/GL10ExtHeader.java-if
ools/glgen/stubs/jsr239/GL10Header.java-if
ools/glgen/stubs/jsr239/GL11ExtHeader.java-if
ools/glgen/stubs/jsr239/GL11ExtensionPackHeader.java-if
ools/glgen/stubs/jsr239/GL11Header.java-if
ools/glgen/stubs/jsr239/GL11ImplHeader.java-impl
ools/glgen/stubs/jsr239/GLCHeader.cpp
ools/glgen/stubs/jsr239/GLHeader.java-if
ools/glgen/stubs/jsr239/GLImplHeader.java-impl
ools/glgen/stubs/jsr239/glGetString.cpp
ools/glgen/stubs/jsr239/glGetString.java-10-if
ools/glgen/stubs/jsr239/glGetString.java-if
ools/glgen/stubs/jsr239/glGetString.java-impl
ools/glgen/stubs/jsr239/glGetString.nativeReg
ffac1eff58b59ffdaca1c4a296fa7dead51c487b 15-Apr-2009 Jack Palevich <jackpal@google.com> Improve glgen

+ gen script is really a bash script rather than a sh script,
so declare that to be true. (For example, it uses pushd,
which is a part of bash, but not a part of sh. Not sure
how this worked until now. Possibly gen was only run in
environments where /bin/sh was really bash.

+ Check the results of the java compile of the code generator,
and abort the script if the compile fails.

+ Turn on the bash shell option that guards against using
uninitialized variables in the script.

+ Remove the generated class files.

Refactor JniCodeEmitter into two classes: a general-purpose
JniCodeEmitter and a specific Jsr239CodeEmitter. The hope is
to use JniCodeEmitter as a base for emitting static OpenGL ES
bindings.
ools/glgen/gen
ools/glgen/src/GenerateGL.java
ools/glgen/src/JniCodeEmitter.java
ools/glgen/src/Jsr239CodeEmitter.java
8f75e091d9094fd2bb970b341f5e488e3fe8eff9 14-Apr-2009 Jack Palevich <jackpal@google.com> Add clarifying comment.

(Primarily as a test of the master_gl branch.)
ests/copybits/copybits.cpp
6cbca50b6a438151a6c5f4dbdccc7057c19b73fa 14-Apr-2009 Jack Palevich <jackpal@google.com> Clean up trivial Eclipse warnings and fix whitespace.

Added @Override to overridden methods.
Removed unused imports.
Converted tabs to spaces.
Removed \r characters from end-of-lines.
Add .gitignore file to ignore the .class files that are
generated when the "gen" script is run.
ools/glgen/src/.gitignore
ools/glgen/src/CFunc.java
ools/glgen/src/CType.java
ools/glgen/src/CodeEmitter.java
ools/glgen/src/GenerateGL.java
ools/glgen/src/JFunc.java
ools/glgen/src/JType.java
ools/glgen/src/JniCodeEmitter.java
8b765b7f5ea7f56963ea0e3141d043d20944dbcc 11-Apr-2009 Mathias Agopian <mathias@google.com> more debugging tools around BufferMapper
ibagl/egl.cpp
076b1cc3a9b90aa5b381a1ed268ca0b548444c9b 10-Apr-2009 Mathias Agopian <mathias@google.com> Integrate from //sandbox/mathias/donut/...@145728

SurfaceFlinger rework for new EGL driver model support.
nclude/EGL/android_natives.h
nclude/EGL/eglplatform.h
nclude/GLES/glplatform.h
ibagl/Android.mk
ibagl/TextureObjectManager.cpp
ibagl/TextureObjectManager.h
ibagl/array.cpp
ibagl/copybit.cpp
ibagl/copybit.h
ibagl/egl.cpp
ibagl/state.cpp
ibagl/texture.cpp
ibs/Android.mk
ibs/EGL/egl.cpp
ibs/GLES_CM/gl.cpp
ibs/GLES_CM/gl_api.in
ibs/egl_entries.in
ibs/egl_impl.h
ibs/gl_entries.in
ibs/hooks.h
ibs/tools/glapigen
ests/copybits/Android.mk
ests/copybits/copybits.cpp
4ec21527096d0dcaa99634e6058aca3a415461af 03-Apr-2009 Jack Palevich <> AI 144401: am: CL 144282 Tweak this tool to work with the current directory structure.
Also leave the "generated" directory around if it contains files that
need to be checked in.
Original author: jackpal

Automated import of CL 144401
ools/glgen/gen
c8938682271b09f8a07144c206de02383d67398c 02-Apr-2009 Jack Palevich <> AI 144282: Tweak this tool to work with the current directory structure.
Also leave the "generated" directory around if it contains files that
need to be checked in.

Automated import of CL 144282
ools/glgen/gen
749c63dbff0ab66223f30af1bad4ca56bd26d5d2 25-Mar-2009 Jack Palevich <> Automated import from //branches/master/...@142578,142578
ibagl/egl.cpp
ibs/EGL/egl.cpp
87d80228cc6b8904da036d51d41252f8301e41d2 25-Mar-2009 Jack Palevich <> Automated import from //branches/donutburger/...@142484,142484
ibagl/egl.cpp
ibs/EGL/egl.cpp
df351ba57378ee9e58cf0b0cd1ff6d4700052ec6 25-Mar-2009 Jack Palevich <> Automated import from //branches/cupcake/...@142481,142481
ibagl/egl.cpp
ibs/EGL/egl.cpp
edbf3b6af777b721cd2a1ef461947e51e88241e1 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
nclude/EGL/egl.h
nclude/EGL/eglext.h
nclude/EGL/eglnatives.h
nclude/EGL/eglplatform.h
nclude/GLES/egl.h
nclude/GLES/gl.h
nclude/GLES/glext.h
nclude/GLES/glplatform.h
nclude/KHR/khrplatform.h
ibagl/Android.mk
ibagl/BufferObjectManager.cpp
ibagl/BufferObjectManager.h
ibagl/TextureObjectManager.cpp
ibagl/TextureObjectManager.h
ibagl/TokenManager.cpp
ibagl/TokenManager.h
ibagl/Tokenizer.cpp
ibagl/Tokenizer.h
ibagl/array.cpp
ibagl/array.h
ibagl/context.h
ibagl/dxt.cpp
ibagl/dxt.h
ibagl/egl.cpp
ibagl/fixed_asm.S
ibagl/fp.cpp
ibagl/fp.h
ibagl/iterators.S
ibagl/light.cpp
ibagl/light.h
ibagl/matrix.cpp
ibagl/matrix.h
ibagl/mipmap.cpp
ibagl/primitives.cpp
ibagl/primitives.h
ibagl/state.cpp
ibagl/state.h
ibagl/texture.cpp
ibagl/texture.h
ibagl/vertex.cpp
ibagl/vertex.h
ibs/Android.mk
ibs/EGL/egl.cpp
ibs/EGL/gpu.cpp
ibs/GLES_CM/gl.cpp
ibs/GLES_CM/gl_api.in
ibs/GLES_CM/gl_logger.cpp
ibs/egl_entries.in
ibs/egl_impl.h
ibs/gl_entries.in
ibs/gl_enums.in
ibs/gl_logger.h
ibs/hooks.h
ibs/tools/enumextract.sh
ests/Android.mk
ests/angeles/Android.mk
ests/angeles/MODULE_LICENSE_BSD_OR_LGPL
ests/angeles/README.txt
ests/angeles/app-linux.c
ests/angeles/app.h
ests/angeles/cams.h
ests/angeles/demo.c
ests/angeles/gpustate.c
ests/angeles/include/GLES/egl.h
ests/angeles/include/GLES/egltypes.h
ests/angeles/include/GLES/gl.h
ests/angeles/license-BSD.txt
ests/angeles/license-LGPL.txt
ests/angeles/license.txt
ests/angeles/shapes.h
ests/filter/Android.mk
ests/filter/filter.c
ests/finish/Android.mk
ests/finish/finish.c
ests/textures/Android.mk
ests/textures/textures.c
ests/tritex/Android.mk
ests/tritex/tritex.c
ools/glgen/gen
ools/glgen/glspec-1.0
ools/glgen/glspec-1.0ext
ools/glgen/glspec-1.1
ools/glgen/glspec-1.1ext
ools/glgen/glspec-1.1extpack
ools/glgen/glspec-checks
ools/glgen/src/CFunc.java
ools/glgen/src/CType.java
ools/glgen/src/CodeEmitter.java
ools/glgen/src/GenerateGL.java
ools/glgen/src/JFunc.java
ools/glgen/src/JType.java
ools/glgen/src/JniCodeEmitter.java
ools/glgen/src/ParameterChecker.java
ools/glgen/stubs/GL10ExtHeader.java-if
ools/glgen/stubs/GL10Header.java-if
ools/glgen/stubs/GL11ExtHeader.java-if
ools/glgen/stubs/GL11ExtensionPackHeader.java-if
ools/glgen/stubs/GL11Header.java-if
ools/glgen/stubs/GL11ImplHeader.java-impl
ools/glgen/stubs/GLCHeader.cpp
ools/glgen/stubs/GLHeader.java-if
ools/glgen/stubs/GLImplHeader.java-impl
ools/glgen/stubs/glGetString.cpp
ools/glgen/stubs/glGetString.java-10-if
ools/glgen/stubs/glGetString.java-if
ools/glgen/stubs/glGetString.java-impl
ools/glgen/stubs/glGetString.nativeReg
d5193d9394c5e58176d7bcdf50ef017f8a3b9e1e 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
nclude/EGL/egl.h
nclude/EGL/eglext.h
nclude/EGL/eglnatives.h
nclude/EGL/eglplatform.h
nclude/GLES/egl.h
nclude/GLES/gl.h
nclude/GLES/glext.h
nclude/GLES/glplatform.h
nclude/KHR/khrplatform.h
ibagl/Android.mk
ibagl/BufferObjectManager.cpp
ibagl/BufferObjectManager.h
ibagl/TextureObjectManager.cpp
ibagl/TextureObjectManager.h
ibagl/TokenManager.cpp
ibagl/TokenManager.h
ibagl/Tokenizer.cpp
ibagl/Tokenizer.h
ibagl/array.cpp
ibagl/array.h
ibagl/context.h
ibagl/dxt.cpp
ibagl/dxt.h
ibagl/egl.cpp
ibagl/fixed_asm.S
ibagl/fp.cpp
ibagl/fp.h
ibagl/iterators.S
ibagl/light.cpp
ibagl/light.h
ibagl/matrix.cpp
ibagl/matrix.h
ibagl/mipmap.cpp
ibagl/primitives.cpp
ibagl/primitives.h
ibagl/state.cpp
ibagl/state.h
ibagl/texture.cpp
ibagl/texture.h
ibagl/vertex.cpp
ibagl/vertex.h
ibs/Android.mk
ibs/EGL/egl.cpp
ibs/EGL/gpu.cpp
ibs/GLES_CM/gl.cpp
ibs/GLES_CM/gl_api.in
ibs/GLES_CM/gl_logger.cpp
ibs/egl_entries.in
ibs/egl_impl.h
ibs/gl_entries.in
ibs/gl_enums.in
ibs/gl_logger.h
ibs/hooks.h
ibs/tools/enumextract.sh
ests/Android.mk
ests/angeles/Android.mk
ests/angeles/MODULE_LICENSE_BSD_OR_LGPL
ests/angeles/README.txt
ests/angeles/app-linux.c
ests/angeles/app.h
ests/angeles/cams.h
ests/angeles/demo.c
ests/angeles/gpustate.c
ests/angeles/include/GLES/egl.h
ests/angeles/include/GLES/egltypes.h
ests/angeles/include/GLES/gl.h
ests/angeles/license-BSD.txt
ests/angeles/license-LGPL.txt
ests/angeles/license.txt
ests/angeles/shapes.h
ests/filter/Android.mk
ests/filter/filter.c
ests/finish/Android.mk
ests/finish/finish.c
ests/textures/Android.mk
ests/textures/textures.c
ests/tritex/Android.mk
ests/tritex/tritex.c
ools/glgen/gen
ools/glgen/glspec-1.0
ools/glgen/glspec-1.0ext
ools/glgen/glspec-1.1
ools/glgen/glspec-1.1ext
ools/glgen/glspec-1.1extpack
ools/glgen/glspec-checks
ools/glgen/src/CFunc.java
ools/glgen/src/CType.java
ools/glgen/src/CodeEmitter.java
ools/glgen/src/GenerateGL.java
ools/glgen/src/JFunc.java
ools/glgen/src/JType.java
ools/glgen/src/JniCodeEmitter.java
ools/glgen/src/ParameterChecker.java
ools/glgen/stubs/GL10ExtHeader.java-if
ools/glgen/stubs/GL10Header.java-if
ools/glgen/stubs/GL11ExtHeader.java-if
ools/glgen/stubs/GL11ExtensionPackHeader.java-if
ools/glgen/stubs/GL11Header.java-if
ools/glgen/stubs/GL11ImplHeader.java-impl
ools/glgen/stubs/GLCHeader.cpp
ools/glgen/stubs/GLHeader.java-if
ools/glgen/stubs/GLImplHeader.java-impl
ools/glgen/stubs/glGetString.cpp
ools/glgen/stubs/glGetString.java-10-if
ools/glgen/stubs/glGetString.java-if
ools/glgen/stubs/glGetString.java-impl
ools/glgen/stubs/glGetString.nativeReg
43aa2b1cbf7a03e248e10f4d0fec0463257cd52d 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@132589
ibagl/egl.cpp
ibs/EGL/egl.cpp
0bb03408de8886e8d17013219967d42fb9c8cf8c 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@137055
ibagl/egl.cpp
ibs/EGL/egl.cpp
d2bd26d32612a1c7d5629202e3f41741b7936c60 19-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132276
ibs/EGL/egl.cpp
a6938bab1f6fa76ae98ebbe44f4e534e05fa0993 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
nclude/EGL/egl.h
nclude/EGL/eglext.h
nclude/EGL/eglnatives.h
nclude/EGL/eglplatform.h
nclude/GLES/egl.h
nclude/GLES/gl.h
nclude/GLES/glext.h
nclude/GLES/glplatform.h
nclude/KHR/khrplatform.h
ibGLES_CM/Android.mk
ibGLES_CM/egl_entries.cpp
ibGLES_CM/enumextract.sh
ibGLES_CM/gl_api.cpp
ibGLES_CM/gl_entries.cpp
ibGLES_CM/gl_enums.in
ibGLES_CM/gl_logger.cpp
ibGLES_CM/gl_logger.h
ibGLES_CM/gl_wrapper.cpp
ibagl/egl.cpp
ibagl/state.cpp
ibagl/texture.cpp
ibs/Android.mk
ibs/EGL/egl.cpp
ibs/EGL/gpu.cpp
ibs/GLES_CM/gl.cpp
ibs/GLES_CM/gl_api.in
ibs/GLES_CM/gl_logger.cpp
ibs/egl_entries.in
ibs/egl_impl.h
ibs/gl_entries.in
ibs/gl_enums.in
ibs/gl_logger.h
ibs/hooks.h
ibs/tools/enumextract.sh
ests/angeles/Android.mk
ests/angeles/app-linux.c
ests/filter/Android.mk
ests/filter/filter.c
ests/finish/Android.mk
ests/finish/finish.c
ests/sfsim/Android.mk
ests/sfsim/egl_surface.cpp
ests/sfsim/egl_surface.h
ests/sfsim/sfsim.c
ests/textures/Android.mk
ests/textures/textures.c
ests/tritex/Android.mk
ests/tritex/tritex.c
8a7a67538a9977c892389bfcde76a8372aa0b56c 16-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@126645
ibGLES_CM/Android.mk
ibGLES_CM/gl_wrapper.cpp
ibagl/Android.mk
e09fd9e819c23dc90bca68375645e15544861330 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
ibGLES_CM/gl_wrapper.cpp
ibagl/TextureObjectManager.cpp
ibagl/array.cpp
ibagl/egl.cpp
ibagl/light.cpp
ibagl/matrix.cpp
ibagl/primitives.cpp
ibagl/vertex.cpp
ests/Android.mk
ests/angeles/Android.mk
ests/angeles/MODULE_LICENSE_BSD_OR_LGPL
ests/angeles/README.txt
ests/angeles/app-linux.c
ests/angeles/app.h
ests/angeles/cams.h
ests/angeles/demo.c
ests/angeles/gpustate.c
ests/angeles/include/GLES/egl.h
ests/angeles/include/GLES/egltypes.h
ests/angeles/include/GLES/gl.h
ests/angeles/license-BSD.txt
ests/angeles/license-LGPL.txt
ests/angeles/license.txt
ests/angeles/shapes.h
ests/filter/Android.mk
ests/filter/filter.c
ests/finish/Android.mk
ests/finish/finish.c
ests/sfsim/Android.mk
ests/sfsim/egl_surface.cpp
ests/sfsim/egl_surface.h
ests/sfsim/sfsim.c
ests/textures/Android.mk
ests/textures/textures.c
ests/tritex/Android.mk
ests/tritex/tritex.c
ools/glgen/gen
ools/glgen/glspec-1.0
ools/glgen/glspec-1.0ext
ools/glgen/glspec-1.1
ools/glgen/glspec-1.1ext
ools/glgen/glspec-1.1extpack
ools/glgen/glspec-checks
ools/glgen/src/CFunc.java
ools/glgen/src/CType.java
ools/glgen/src/CodeEmitter.java
ools/glgen/src/GenerateGL.java
ools/glgen/src/JFunc.java
ools/glgen/src/JType.java
ools/glgen/src/JniCodeEmitter.java
ools/glgen/src/ParameterChecker.java
ools/glgen/stubs/GL10ExtHeader.java-if
ools/glgen/stubs/GL10Header.java-if
ools/glgen/stubs/GL11ExtHeader.java-if
ools/glgen/stubs/GL11ExtensionPackHeader.java-if
ools/glgen/stubs/GL11Header.java-if
ools/glgen/stubs/GL11ImplHeader.java-impl
ools/glgen/stubs/GLCHeader.cpp
ools/glgen/stubs/GLHeader.java-if
ools/glgen/stubs/GLImplHeader.java-impl
ools/glgen/stubs/glGetString.cpp
ools/glgen/stubs/glGetString.java-10-if
ools/glgen/stubs/glGetString.java-if
ools/glgen/stubs/glGetString.java-impl
ools/glgen/stubs/glGetString.nativeReg
7c1b96a165f970a09ed239bb4fb3f1b0d8f2a407 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
ibGLES_CM/Android.mk
ibGLES_CM/egl_entries.cpp
ibGLES_CM/enumextract.sh
ibGLES_CM/gl_api.cpp
ibGLES_CM/gl_entries.cpp
ibGLES_CM/gl_enums.in
ibGLES_CM/gl_logger.cpp
ibGLES_CM/gl_logger.h
ibGLES_CM/gl_wrapper.cpp
ibagl/Android.mk
ibagl/BufferObjectManager.cpp
ibagl/BufferObjectManager.h
ibagl/TextureObjectManager.cpp
ibagl/TextureObjectManager.h
ibagl/TokenManager.cpp
ibagl/TokenManager.h
ibagl/Tokenizer.cpp
ibagl/Tokenizer.h
ibagl/array.cpp
ibagl/array.h
ibagl/context.h
ibagl/dxt.cpp
ibagl/dxt.h
ibagl/egl.cpp
ibagl/fixed_asm.S
ibagl/fp.cpp
ibagl/fp.h
ibagl/iterators.S
ibagl/light.cpp
ibagl/light.h
ibagl/matrix.cpp
ibagl/matrix.h
ibagl/mipmap.cpp
ibagl/primitives.cpp
ibagl/primitives.h
ibagl/state.cpp
ibagl/state.h
ibagl/texture.cpp
ibagl/texture.h
ibagl/vertex.cpp
ibagl/vertex.h