Commit Graph

48624 Commits

Author SHA1 Message Date
Andy McFadden
12ff91b05a am 53dc9044: Merge "Updated comments" into jb-mr2-dev
* commit '53dc9044bfe17039592faf4660c5bf715e8120ad':
  Updated comments
2013-04-11 10:20:26 -07:00
Andy McFadden
53dc9044bf Merge "Updated comments" into jb-mr2-dev 2013-04-11 17:15:52 +00:00
The Android Open Source Project
4597de963f am 6a92b35e: Reconcile with jb-mr2-release - do not merge
* commit '6a92b35e3a64c90127fb87530c50e9a04a61c671':
2013-04-11 07:47:08 -07:00
The Android Open Source Project
6a92b35e3a Reconcile with jb-mr2-release - do not merge
Change-Id: If9501b8a4f0e4a1d6dc787c71457814360d11d2b
2013-04-11 07:45:13 -07:00
The Android Automerger
6bd8dee87e merge in jb-mr2-release history after reset to jb-mr2-dev 2013-04-11 05:55:37 -07:00
Jesse Hall
4f6693080c Special-case glGetActiveUniformBlockName
Bug: 8566953
Change-Id: Ic9b3be9fa0136495633ee3b1c38583cfa315942a
2013-04-10 22:00:39 -07:00
Jesse Hall
fa4c1170ac Special-case glGetStringi
Modeled on the existing glGetString special-case.

Bug: 8566953
Change-Id: Icc6b23ab53b00510368900ad99c92028253dc797
2013-04-10 22:00:33 -07:00
Jesse Hall
1c8b8e8b8e 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
2013-04-10 22:00:26 -07:00
Jesse Hall
610bbf2b6f Special-case glGetBufferPointerv
Bug: 8566953
Change-Id: I11a7394eb46f229fd3ae716e77487a45bac6ed53
2013-04-10 22:00:18 -07:00
Jesse Hall
27c86b9623 Special-case glGetUniformIndices
Bug: 8566953
Change-Id: Ic8bcd03e8d41a81f48d603f67ce2046a4afa1561
2013-04-10 22:00:18 -07:00
Jesse Hall
31f6edc21b 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
2013-04-10 22:00:18 -07:00
Jesse Hall
552a620482 Special-case glTransformFeedbackVaryings
Bug: 8566953
Change-Id: I02a1548aebc12bd3599903029bfd2e4ccea53211
2013-04-10 22:00:18 -07:00
Jesse Hall
071fc66059 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
2013-04-10 22:00:17 -07:00
Jesse Hall
68fc8bbced 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
2013-04-10 22:00:17 -07:00
Jesse Hall
2d9faafa23 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
2013-04-10 22:00:17 -07:00
Mathias Agopian
a53e665dac am f30501e1: am d19e519f: Merge "fix another bug where screenshots could end-up all black" into jb-mr2-dev
* commit 'f30501e1e280e8b5637430ac2be79235ee16d018':
  fix another bug where screenshots could end-up all black
2013-04-10 21:49:51 -07:00
Mathias Agopian
f30501e1e2 am d19e519f: Merge "fix another bug where screenshots could end-up all black" into jb-mr2-dev
* commit 'd19e519f673adcc5d12fcca549e577eea74f31aa':
  fix another bug where screenshots could end-up all black
2013-04-10 21:46:12 -07:00
Mathias Agopian
d19e519f67 Merge "fix another bug where screenshots could end-up all black" into jb-mr2-dev 2013-04-11 04:43:49 +00:00
Mathias Agopian
9eb1f0558b fix another bug where screenshots could end-up all black
SF transactions were always handled on VSYNC which allowed
the screenshot to sneak-in between closing the transaction
and vsync (before it's latched), resulting in a screenshot
with the previous state.

we now always force transactions to happen immediately
before screenhots.

Bug: 7552304
Change-Id: I0afc86b7e8366173daff5b9988bbb4d2a0f43860
2013-04-10 16:27:17 -07:00
The Android Open Source Project
f446b1af27 am e1b8a7fc: Reconcile with jb-mr2-release - do not merge
* commit 'e1b8a7fcee9a193bf01f0842b0aca35b27bf0c16':
2013-04-10 10:08:24 -07:00
The Android Open Source Project
e1b8a7fcee Reconcile with jb-mr2-release - do not merge
Change-Id: I968ec2bb02006948c3f24c449d2a79a0e2f799f9
2013-04-10 10:05:42 -07:00
Jesse Hall
a3b641e89c Make gen more readable, use UNIX-style line endings
Change-Id: I6f4a1afa19f84d89278e9447f14a124476106fef
2013-04-10 08:34:54 -07:00
Jesse Hall
0eb6ad5638 Support "const GLChar*" and "const GLenum*" types
Bug: 8566953
Change-Id: I349575e592e8b0d93d14237230b69bec4e04cf3e
2013-04-10 08:34:54 -07:00
Jesse Hall
439bc1614d 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
2013-04-10 08:34:54 -07:00
Jesse Hall
63ed38dc52 Generate GLES30 class, just a clone of GLES20 for now
Bug: 8566953
Change-Id: I6fad880344b9c247de4018711ea7cb6eb1a609d6
2013-04-10 08:34:54 -07:00
The Android Automerger
6152fd2c0e merge in jb-mr2-release history after reset to jb-mr2-dev 2013-04-10 05:56:11 -07:00
Ying Wang
63e13c8545 am 46f19772: resolved conflicts for merge of c76e8a20 to jb-mr2-dev-plus-aosp
* commit '46f19772ae5659c1659a0ac8f1f72389e94a85d4':
  Add liblog
2013-04-09 22:33:16 -07:00
Ying Wang
46f19772ae resolved conflicts for merge of c76e8a20 to jb-mr2-dev-plus-aosp
Change-Id: I895a8ad8c936a80c70aaac739c6441d3c7c55834
2013-04-09 22:27:50 -07:00
Ying Wang
c76e8a20e2 Merge "Add liblog" into jb-mr2-dev 2013-04-10 05:17:07 +00:00
Ying Wang
8a0cb4ee0b Add liblog
Bug: 8580410
Change-Id: I2ca4fa00dde0b574df3619134836bcb9315bd506
2013-04-09 21:55:39 -07:00
Jamie Gennis
e3808ed677 am 13c9a949: am 8758a3e3: Merge changes I82e361a6,I83694682 into jb-mr2-dev
* commit '13c9a949b5d74f36edbdbfda764fe554cdbaefa9':
  libgui_test: increase the tolerance for a YUV test
  libgui: fix an EGLImage leak
2013-04-09 14:49:54 -07:00
Jamie Gennis
13c9a949b5 am 8758a3e3: Merge changes I82e361a6,I83694682 into jb-mr2-dev
* commit '8758a3e3941bae9ef11948506950521c4682acf1':
  libgui_test: increase the tolerance for a YUV test
  libgui: fix an EGLImage leak
2013-04-09 14:46:21 -07:00
Jamie Gennis
8758a3e394 Merge changes I82e361a6,I83694682 into jb-mr2-dev
* changes:
  libgui_test: increase the tolerance for a YUV test
  libgui: fix an EGLImage leak
2013-04-09 21:43:20 +00:00
Jamie Gennis
e6a0f5028b libgui_test: increase the tolerance for a YUV test
This change increases the pixel difference tolerance of the
SurfaceTextureGLTest.TexturingFromCpuFilledYV12BufferNpot test from 2 to 3.

Bug: 8349135
Change-Id: I82e361a689335f49065cacd8a3fc145d67b125f1
2013-04-08 14:42:22 -07:00
Jamie Gennis
ad669b04f4 libgui: fix an EGLImage leak
This moves the call to ConsumerBase::abandon from the ConsumerBase dtor to
ConsumerBase::onLastStrongRef.  The abandon call relies on virtual methods to
perform the clean-up, so calling it from the ConsumerBase dtor after the
derived classes dtors ran was skipping some of the clean-up.  The
onLastStrongRef method should get called just before the most derived class's
dtor gets called.

Bug: 8349135
Change-Id: I836946826927cc1ed69c049049f525f92b17a269
2013-04-08 14:42:22 -07:00
The Android Open Source Project
a776b9906e am ecef1c1a: Reconcile with jb-mr2-release - do not merge
* commit 'ecef1c1a31619782737230b5fd45718f20760ca9':
2013-04-08 13:40:32 -07:00
The Android Open Source Project
ecef1c1a31 Reconcile with jb-mr2-release - do not merge
Change-Id: I2e2b858b5fee36a390f92f657a171d2898ae9810
2013-04-08 13:36:03 -07:00
The Android Automerger
e675893cf1 merge in jb-mr2-release history after reset to jb-mr2-dev 2013-04-08 05:56:23 -07:00
Jesse Hall
528681d760 am ff080169: am 1df59c93: Merge "Tell HWComposer the dimensions of virtual displays" into jb-mr2-dev
* commit 'ff08016919e2c0508501faede26fda6dca833094':
  Tell HWComposer the dimensions of virtual displays
2013-04-05 20:40:22 -07:00
Jesse Hall
4f7acbd522 am 46ab373f: am d5e345b0: Merge "Actually set the virtual display output buffer." into jb-mr2-dev
* commit '46ab373f1f394ec50e38381cb98d3976fe87a9bb':
  Actually set the virtual display output buffer.
2013-04-05 20:40:21 -07:00
Jesse Hall
ff08016919 am 1df59c93: Merge "Tell HWComposer the dimensions of virtual displays" into jb-mr2-dev
* commit '1df59c93fea8bec21b8084c34aface086f1e0896':
  Tell HWComposer the dimensions of virtual displays
2013-04-05 20:37:13 -07:00
Jesse Hall
46ab373f1f am d5e345b0: Merge "Actually set the virtual display output buffer." into jb-mr2-dev
* commit 'd5e345b0cf5c1c5aaa5c10a1a4c759e74d77fb37':
  Actually set the virtual display output buffer.
2013-04-05 20:37:13 -07:00
Jesse Hall
1df59c93fe Merge "Tell HWComposer the dimensions of virtual displays" into jb-mr2-dev 2013-04-06 03:32:19 +00:00
Jesse Hall
d5e345b0cf Merge "Actually set the virtual display output buffer." into jb-mr2-dev 2013-04-06 03:31:49 +00:00
Jesse Hall
1c569c4d45 Tell HWComposer the dimensions of virtual displays
HWComposer queries the HWC for dimensions of physical displays, but
can't do that for virtual displays. The dimensions are used to set the
display frame of the framebuffer target layer passed to HWC, and
implicitly the dimensions of the virtual display.

Bug: 8316155
Change-Id: I9cbd2530d2fa878f86128a1472def520b5d694a5
2013-04-05 14:38:52 -07:00
Andy McFadden
753e3415cd Updated comments
Updated many comments.  Added one minor error check.

Change-Id: Ib935dd99d417bada91d2e198008a50dd94269316
2013-04-05 10:44:23 -07:00
Geremy Condra
783ffdda1d am e167d889: am a3d3e137: Merge "dumpstate: Add SELinux restorecon call."
* commit 'e167d889e4917e6b4f569026a1492b9e9818b08e':
  dumpstate: Add SELinux restorecon call.
2013-04-04 23:46:51 -07:00
Geremy Condra
e167d889e4 am a3d3e137: Merge "dumpstate: Add SELinux restorecon call."
* commit 'a3d3e137f473a965fefced9670e3b0c6b5f7f791':
  dumpstate: Add SELinux restorecon call.
2013-04-04 23:42:15 -07:00
Mathias Agopian
eb26471c24 am dff2f699: am 39c24a20: fix local include paths
* commit 'dff2f699e16635c44472b0e4f2a3176e4f061367':
  fix local include paths
2013-04-04 23:35:37 -07:00
Mathias Agopian
dff2f699e1 am 39c24a20: fix local include paths
* commit '39c24a20bbc697630d2b92c251b70c04d6f9d00c':
  fix local include paths
2013-04-04 23:34:04 -07:00