Commit Graph

48966 Commits

Author SHA1 Message Date
Mathias Agopian
e7e37a97a1 am cf73e1fd: am f31510a2: Add a test that checks multi-texturing works with GL_TEXTURE_EXTERNAL_OES
* commit 'cf73e1fd8a0a3372ff91e0485b37680262f5df95':
  Add a test that checks multi-texturing works with GL_TEXTURE_EXTERNAL_OES
2013-04-16 23:40:05 -07:00
Mathias Agopian
cf73e1fd8a am f31510a2: Add a test that checks multi-texturing works with GL_TEXTURE_EXTERNAL_OES
* commit 'f31510a2ac0807cf3d4224a73fc3f8f691f42f5a':
  Add a test that checks multi-texturing works with GL_TEXTURE_EXTERNAL_OES
2013-04-16 23:36:58 -07:00
Mathias Agopian
f31510a2ac Add a test that checks multi-texturing works with GL_TEXTURE_EXTERNAL_OES
Bug: 8395618
Change-Id: I160d29699593b11058533ca753e275d5deeb3b54
2013-04-16 23:32:38 -07:00
Mathias Agopian
5d4513ed3d am eb3610e4: am ed6d08b7: fix "traceGpuCompletion" debug feature
* commit 'eb3610e4d0581e5b3a0bb6d4c4d02d24e453cc93':
  fix "traceGpuCompletion" debug feature
2013-04-16 17:06:46 -07:00
Mathias Agopian
eb3610e4d0 am ed6d08b7: fix "traceGpuCompletion" debug feature
* commit 'ed6d08b70d775852f4827471814c83eba3606aaa':
  fix "traceGpuCompletion" debug feature
2013-04-16 17:04:42 -07:00
Mathias Agopian
ed6d08b70d 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
2013-04-16 16:41:47 -07:00
Jesse Hall
33098d5643 am 29bdde08: am 2f67faeb: Merge changes I66085c30,Ic9b3be9f,Icc6b23ab,I359a9511,I11a7394e,Ic8bcd03e,I40834d6f,I02a1548a,I638a36b0,I814befe2,Iaaef7d53,I349575e5,I0b5acc78,I6fad8803 into jb-mr2-dev
* commit '29bdde08db2890f4197ae7f2b253f251468980ab':
  Subclass GLES30 from GLES20, @Deprecate GL_STENCIL_INDEX
  Special-case glGetActiveUniformBlockName
  Special-case glGetStringi
  Special-case glMapBufferRange
  Special-case glGetBufferPointerv
  Special-case glGetUniformIndices
  Special-case glGetTransformFeedbackVarying
  Special-case glTransformFeedbackVaryings
  Add buffer object versions of several functions
  Add *int64 and GLsync types and related functions
  Add ES3 functions and constants, difficult ones commented out
  Support "const GLChar*" and "const GLenum*" types
  Minor changes to ES3 functions inherited from ES2
  Generate GLES30 class, just a clone of GLES20 for now
2013-04-16 14:33:32 -07:00
Jesse Hall
29bdde08db am 2f67faeb: Merge changes I66085c30,Ic9b3be9f,Icc6b23ab,I359a9511,I11a7394e,Ic8bcd03e,I40834d6f,I02a1548a,I638a36b0,I814befe2,Iaaef7d53,I349575e5,I0b5acc78,I6fad8803 into jb-mr2-dev
* commit '2f67faeb801dd6eb8fff8f8aab3843f2532c941d':
  Subclass GLES30 from GLES20, @Deprecate GL_STENCIL_INDEX
  Special-case glGetActiveUniformBlockName
  Special-case glGetStringi
  Special-case glMapBufferRange
  Special-case glGetBufferPointerv
  Special-case glGetUniformIndices
  Special-case glGetTransformFeedbackVarying
  Special-case glTransformFeedbackVaryings
  Add buffer object versions of several functions
  Add *int64 and GLsync types and related functions
  Add ES3 functions and constants, difficult ones commented out
  Support "const GLChar*" and "const GLenum*" types
  Minor changes to ES3 functions inherited from ES2
  Generate GLES30 class, just a clone of GLES20 for now
2013-04-16 14:31:17 -07:00
Jesse Hall
2f67faeb80 Merge changes I66085c30,Ic9b3be9f,Icc6b23ab,I359a9511,I11a7394e,Ic8bcd03e,I40834d6f,I02a1548a,I638a36b0,I814befe2,Iaaef7d53,I349575e5,I0b5acc78,I6fad8803 into jb-mr2-dev
* changes:
  Subclass GLES30 from GLES20, @Deprecate GL_STENCIL_INDEX
  Special-case glGetActiveUniformBlockName
  Special-case glGetStringi
  Special-case glMapBufferRange
  Special-case glGetBufferPointerv
  Special-case glGetUniformIndices
  Special-case glGetTransformFeedbackVarying
  Special-case glTransformFeedbackVaryings
  Add buffer object versions of several functions
  Add *int64 and GLsync types and related functions
  Add ES3 functions and constants, difficult ones commented out
  Support "const GLChar*" and "const GLenum*" types
  Minor changes to ES3 functions inherited from ES2
  Generate GLES30 class, just a clone of GLES20 for now
2013-04-16 21:29:39 +00:00
Igor Murashkin
87d1e3427b BufferItemConsumer: add functions to set default buffer format/size
Bug: 8629088
Change-Id: I06f2e26a70d6dbcfcd70b08b4461e8e401f6e83f
2013-04-16 11:24:40 -07:00
Jesse Hall
c0d184b8c1 Subclass GLES30 from GLES20, @Deprecate GL_STENCIL_INDEX
Bug: 8566953
Change-Id: I66085c300a8658a4018796645257edb73be94719
2013-04-15 16:42:21 -07:00
The Android Open Source Project
c1c27655ee am 987f727d: Reconcile with jb-mr2-release - do not merge
* commit '987f727da2f90d428ae773a58cafc4ea67737aab':
  Improve screenshot performance on some devices (DO NOT MERGE)
2013-04-15 10:48:58 -07:00
The Android Open Source Project
987f727da2 Reconcile with jb-mr2-release - do not merge
Change-Id: I98befd6a263feb5235d4a8aa20abff47a2a8a097
2013-04-15 10:46:12 -07:00
The Android Automerger
cec19a1d4f merge in jb-mr2-release history after reset to jb-mr2-dev 2013-04-15 05:55:54 -07:00
Jesse Hall
df9ac0fc06 am 0c3b9112: am 883daf6e: Merge "Make gen more readable, use UNIX-style line endings" into jb-mr2-dev
* commit '0c3b91120788d2f09cf8e8617cfe7b9ee705ba44':
  Make gen more readable, use UNIX-style line endings
2013-04-13 14:23:04 -07:00
Jesse Hall
0c3b911207 am 883daf6e: Merge "Make gen more readable, use UNIX-style line endings" into jb-mr2-dev
* commit '883daf6eed36c11a7cb458f07a88e7a9cea29c27':
  Make gen more readable, use UNIX-style line endings
2013-04-13 14:21:01 -07:00
Jesse Hall
883daf6eed Merge "Make gen more readable, use UNIX-style line endings" into jb-mr2-dev 2013-04-13 21:18:25 +00:00
Mathias Agopian
9b1eda7efa am d7932a62: am 48be3232: Merge "make sure to update the "current state" when we "fake" the transaction" into jb-mr2-dev
* commit 'd7932a62d091df1559a47004670a951d8ab9c7f1':
  make sure to update the "current state" when we "fake" the transaction
2013-04-12 18:05:40 -07:00
Jaikumar Ganesh
e53f19610c am e4f0dc30: am 2ea0c67d: Merge "Sensor changes." into jb-mr2-dev
* commit 'e4f0dc300a22dbcd9081558d2844c6062b4cd380':
  Sensor changes.
2013-04-12 18:05:35 -07:00
Mathias Agopian
d7932a62d0 am 48be3232: Merge "make sure to update the "current state" when we "fake" the transaction" into jb-mr2-dev
* commit '48be323236f9fc41620a17e182eea800351812c5':
  make sure to update the "current state" when we "fake" the transaction
2013-04-12 17:32:30 -07:00
Mathias Agopian
48be323236 Merge "make sure to update the "current state" when we "fake" the transaction" into jb-mr2-dev 2013-04-13 00:27:32 +00:00
Jaikumar Ganesh
e4f0dc300a am 2ea0c67d: Merge "Sensor changes." into jb-mr2-dev
* commit '2ea0c67da6770a840d871a69c61bb52d73dadf2b':
  Sensor changes.
2013-04-12 17:25:38 -07:00
Jaikumar Ganesh
2ea0c67da6 Merge "Sensor changes." into jb-mr2-dev 2013-04-13 00:22:39 +00:00
Dianne Hackborn
55821ac6d3 am 0c71bb90: am 9380d78c: Add new resources trace.
* commit '0c71bb90f96f485940fd3b73c307fedee958042d':
  Add new resources trace.
2013-04-12 17:10:04 -07:00
Dianne Hackborn
0c71bb90f9 am 9380d78c: Add new resources trace.
* commit '9380d78c98d8b8fbce9ade5881fab7134fadc015':
  Add new resources trace.
2013-04-12 17:06:29 -07:00
Dianne Hackborn
9380d78c98 Add new resources trace.
Change-Id: Iab8c1ef51f491e818fb4bab0ba7a042f0d9bec9a
2013-04-12 16:58:24 -07:00
Mathias Agopian
6c67f0fe45 make sure to update the "current state" when we "fake" the transaction
this mimics the code we used for the size. basically we need to
also update the "current state" because it gets copied to the
"drawing state" when a transaction occurs, and it would
"undo" our change.

Bug: 8511430
Bug: 8581533
Change-Id: I08c02abbf21b7f168f7124cd14ee717d7d3d502c
2013-04-12 16:58:11 -07:00
Jaikumar Ganesh
4342fdf14f Sensor changes.
1. Some sensors can wake up the AP. Add wakelocks.
2. Handle backward compatibility for rotation vector
   heading accuracy.
3. Cleanup auto disabled sensors.
4. Fix race condition between enable and dispatch.

Change-Id: I39dddf12e208d83cd288201986ee994312555820
2013-04-12 09:34:44 -07:00
Chet Haase
46c0909782 am 27ff54db: am 5e5bed60: Merge "DO NOT MERGE Make sure surfaces always have latest orientation info" into jb-mr2-dev
* commit '27ff54dbb4089626f694339ee0f54c38b8688537':
  DO NOT MERGE Make sure surfaces always have latest orientation info
2013-04-12 07:16:28 -07:00
Chet Haase
27ff54dbb4 am 5e5bed60: Merge "DO NOT MERGE Make sure surfaces always have latest orientation info" into jb-mr2-dev
* commit '5e5bed60d03b5556ada351b010ed14ae8f1515ae':
  DO NOT MERGE Make sure surfaces always have latest orientation info
2013-04-12 07:13:55 -07:00
Chet Haase
5e5bed60d0 Merge "DO NOT MERGE Make sure surfaces always have latest orientation info" into jb-mr2-dev 2013-04-12 14:11:54 +00:00
Mathias Agopian
b90d8dc527 Improve screenshot performance on some devices (DO NOT MERGE)
this affects devices that need a glReadPixels(). We use
a FBO instead of a GlConsumer as an intermediate render target, this
saves 2 calls to eglMakeCurrent().

On Galaxy Nexus this allows us to go from ~135ms to ~35ms for
recent's screenshots.

Bug: 8582615
Change-Id: I6b25291ecc235f1927579bbb2db3c731e985c6e8
2013-04-11 23:28:25 -07:00
Mathias Agopian
e3b90bbd82 am 5297a0a2: am 453cfe0b: Merge "Improve screenshot performance on some devices (DO NOT MERGE)" into jb-mr2-dev
* commit '5297a0a2093c7908488b172855619bc6763526e3':
  Improve screenshot performance on some devices (DO NOT MERGE)
2013-04-11 20:25:53 -07:00
Mathias Agopian
5297a0a209 am 453cfe0b: Merge "Improve screenshot performance on some devices (DO NOT MERGE)" into jb-mr2-dev
* commit '453cfe0bfe06f3cbd87c8c42fa641756ab466b06':
  Improve screenshot performance on some devices (DO NOT MERGE)
2013-04-11 20:22:23 -07:00
Mathias Agopian
453cfe0bfe Merge "Improve screenshot performance on some devices (DO NOT MERGE)" into jb-mr2-dev 2013-04-12 03:18:17 +00:00
Mathias Agopian
180f10de6f Improve screenshot performance on some devices (DO NOT MERGE)
this affects devices that need a glReadPixels(). We use
a FBO instead of a GlConsumer as an intermediate render target, this
saves 2 calls to eglMakeCurrent().

On Galaxy Nexus this allows us to go from ~135ms to ~35ms for
recent's screenshots.

Bug: 8582615
Change-Id: I6b25291ecc235f1927579bbb2db3c731e985c6e8
2013-04-11 17:35:24 -07:00
Chet Haase
91d25932b6 DO NOT MERGE Make sure surfaces always have latest orientation info
When the screen is turned off, the current stack is set to -1. This causes
logic in iSurfaceFlinger's handleTransactionLocked() function to fail to
match the current stack, and the latest orientation is not set into the
layer. This causes BufferQueue, later, to potentially set an obsolete
transformHint on a created surface (such as in the case with ImageWallpaper's
Egl surface, in the bug below).

The fix is to note this situation and use a default value for the DisplayDevice,
which should have the current orientation information.

Issue #8508397 ImageWallpaper sometimes rendered in wrong orientation causing a ~30-40% drop in graphics performance

Change-Id: Ibae15d73b289a8343c67f4f6bb77fdf11dd95ee7
2013-04-11 17:06:38 -07:00
Rom Lemarchand
1bc7e2f6dd Add support for OMX_QCOM_COLOR_FormatYUV420PackedSemiPlanar32m color format
Change-Id: I9392eb961ec92d4d778573b7a142344e552c80d6
2013-04-11 10:30:27 -07:00
Andy McFadden
91f056e4a9 am 12ff91b0: am 53dc9044: Merge "Updated comments" into jb-mr2-dev
* commit '12ff91b05a055e6adffaad9bf7661a5d251c5b6c':
  Updated comments
2013-04-11 10:23:27 -07:00
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