Mathias Agopian
317a6280cc
Surface::GPU and Surface::HARDWARE are now deprecated; they will be set automatically if needed.
...
this also ripples into the window manager API by making some constant there deprecated as well.
2009-08-13 18:19:32 -07:00
Mathias Agopian
88e3e6bd04
Better error handling in EGL extensions
2009-08-12 21:18:15 -07:00
Mathias Agopian
5cec4742b3
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."
2009-08-11 23:32:29 -07:00
Android (Google) Code Review
a1e03d4d7f
Merge change 20893
...
* changes:
show that we need to glClear to be fast(er)
2009-08-11 20:51:07 -07:00
Android (Google) Code Review
efefd5efb9
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."
2009-08-11 20:50:32 -07:00
Mathias Agopian
a1d9388ea7
show that we need to glClear to be fast(er)
2009-08-11 20:50:20 -07:00
Fred Quintana
64e89a8aff
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.
2009-08-11 20:49:35 -07:00
Mathias Agopian
0d63f8163d
option to use drawtexture at compile time
2009-08-11 20:12:18 -07:00
Mathias Agopian
88caa97f9e
fix and extend the filter test a bit
2009-08-11 19:55:31 -07:00
Mathias Agopian
8b76a0ac6f
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.
2009-08-11 16:12:56 -07:00
Mathias Agopian
e6f0f5c8fb
workaround a bug in the SGX driver that would prevent eglGetConfig to work properly
2009-08-10 16:48:22 -07:00
Mathias Agopian
f1e5b0d4e5
add support for RGBX_8888
2009-08-07 20:55:14 -07:00
Mathias Agopian
9ca4dd6011
minor code clean-up
2009-08-07 16:38:10 -07:00
Mathias Agopian
a1f6eff297
update most gl tests to use EGLUtils
2009-08-06 16:26:15 -07:00
Mathias Agopian
265d9c076a
added two EGL helpers for selecting a config matching a certain pixelformat or native window type
2009-08-06 16:05:39 -07:00
Mathias Agopian
bb99ffb4db
added a gl swapinterval test
2009-08-05 17:38:49 -07:00
Mathias Agopian
429c521b15
opengl tests
2009-08-05 12:22:29 -07:00
Mathias Agopian
997d107078
log opengl-call-with-no-context only once per thread, instead of for each function call
2009-07-31 16:23:03 -07:00
Mathias Agopian
abac01052c
be more robust when errors occur upon EGL surface creation (ie: don't crash)
2009-07-31 14:47:00 -07:00
Mathias Agopian
5b5c914487
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).
2009-07-30 18:14:56 -07:00
Mathias Agopian
c902bf8f13
GLESv2 couldn't be loaded due to wrong path specification
2009-07-29 11:10:29 -07:00
Android (Google) Code Review
f021077c46
am 280436ac: Merge change 8261 into donut
...
Merge commit '280436accc45c1883766a98499148439fa044531'
* commit '280436accc45c1883766a98499148439fa044531':
Remove recently-added android.opengl.Version API
2009-07-22 17:34:28 -07:00
Jack Palevich
7e263332e0
Remove recently-added android.opengl.Version API
...
There's another already-existing way of obtaining this information,
the ConfigurationInfo.reqGlEsVersion field returned from
ActivityManager.getDeviceConfigurationInfo.
2009-07-22 15:22:59 -07:00
Android (Google) Code Review
68ce000ed8
am ef6b66cb: Merge change 8222 into donut
...
Merge commit 'ef6b66cbbbe7ae8ee0450cbbaae4194b069679a1'
* commit 'ef6b66cbbbe7ae8ee0450cbbaae4194b069679a1':
Add a public API that reports the supported OpenGLES API level.
2009-07-22 13:06:03 -07:00
Jack Palevich
1baf11b116
Add a public API that reports the supported OpenGLES API level.
2009-07-22 12:59:49 -07:00
Jean-Baptiste Queru
6a294263f7
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.
2009-07-16 14:54:11 -07:00
Mathias Agopian
a2fb72e08f
remove libagl's dependency on gralloc_priv.h
2009-07-15 18:53:32 -07:00
Mathias Agopian
7cd8ced298
this header file is not needed anymore
2009-07-14 14:50:44 -07:00
Android (Google) Code Review
2eedb2515b
am 46e28db8: Merge change 6713 into donut
...
Merge commit '46e28db8818332e3cda4cc410cc89a1ed7ce4db6'
* commit '46e28db8818332e3cda4cc410cc89a1ed7ce4db6':
fix for [1969185] valgrind errors in new gl stuff
2009-07-09 17:35:26 -07:00
Mathias Agopian
ab1cf3efd3
fix for [1969185] valgrind errors in new gl stuff
2009-07-09 17:33:15 -07:00
Marco Nelissen
92a3ed4364
Make opengl loader use an absolute path.
2009-07-07 16:18:18 -07:00
Shin-ichiro KAWASAKI
26f6a823ca
Bug Fixed for libagl.
2009-07-07 19:14:13 +09:00
Mathias Agopian
0f53af13b7
fix a bug where gl didn't always fallback to software when copybit failed. minor optimizations to copybit codepath.
2009-06-29 16:36:49 -07:00
Mathias Agopian
68eeb80a54
use copybit for eglSwapBuffers() copy-back operations
2009-06-25 15:39:25 -07:00
Android (Google) Code Review
c6f36ed547
Merge change 5352 into donut
...
* changes:
fix [1942438] eglGetCurrentSurface() returns bogus value
2009-06-25 13:22:55 -07:00
Mathias Agopian
c1e3ec555b
Add eglGetRenderBufferANDROID() extension, which returns the current render buffer as an android_native_buffer_t*
2009-06-25 00:02:44 -07:00
Mathias Agopian
3a7e1832ac
fix [1942438] eglGetCurrentSurface() returns bogus value
2009-06-25 00:01:11 -07:00
Mathias Agopian
a1254616d6
fix [1942438] eglGetCurrentSurface() returns bogus value
2009-06-24 23:59:16 -07:00
Mathias Agopian
2eab9d8d70
copybit now uses a native_handle_t* instead of a fd/offset
2009-06-24 20:39:16 -07:00
Mathias Agopian
f31868e59f
merge master in master_gl
2009-06-24 18:31:21 -07:00
Mathias Agopian
f6c2a1ae60
fix a bug where copybit would be rejected in landscape mode
2009-06-23 19:50:41 -07:00
Mathias Agopian
e8f7c682d2
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
2009-06-23 14:05:35 -07:00
Android (Google) Code Review
1b28d26ae9
am 4fb69770: Merge change 5024 into donut
...
Merge commit '4fb69770e70352c987cc79414db7a03b52296ca7'
* commit '4fb69770e70352c987cc79414db7a03b52296ca7':
Remove opengl tests from tests build
2009-06-22 22:04:57 -07:00
Android (Google) Code Review
ffa5a5a3db
am 5277103d: Merge change 5035 into donut
...
Merge commit '5277103db9033226814edc8fcba6f4ba4e846678'
* commit '5277103db9033226814edc8fcba6f4ba4e846678':
add glTexParameteri() and fix glTexParameteriv()
2009-06-22 22:04:12 -07:00
Android (Google) Code Review
4fb69770e7
Merge change 5024 into donut
...
* changes:
Remove opengl tests from tests build
2009-06-22 18:30:40 -07:00
Mathias Agopian
aaf4b6b331
add glTexParameteri() and fix glTexParameteriv()
2009-06-22 18:09:09 -07:00
Sriram Raman
1562f872a3
Remove opengl tests from tests build
2009-06-22 17:22:12 -07:00
Mathias Agopian
09cf0ac2e9
we were not fetching the texture coords in the copybit case, so we were using garbage
2009-06-18 19:31:07 -07:00
Mathias Agopian
42bf621e80
fix/add some comments
2009-06-17 21:58:18 -07:00
Mathias Agopian
03a1b0116b
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.
2009-06-17 21:18:56 -07:00