Commit Graph

48219 Commits

Author SHA1 Message Date
Mathias Agopian
9f13b4f694 am e491ec7c: am 7589b2a7: add two libgui tests
* commit 'e491ec7c93adb9ec9cfab0f6c7604383aa58d08c':
  add two libgui tests
2013-03-08 22:50:24 +00:00
Mathias Agopian
e491ec7c93 am 7589b2a7: add two libgui tests
* commit '7589b2a7975cc3bc2a0659ab6503ceb3e4d94048':
  add two libgui tests
2013-03-08 22:46:54 +00:00
Mathias Agopian
7589b2a797 add two libgui tests
we check that the order in which we destroy GLConsumer wrt.
releasing the corresponding EGLSurface via eglMake(Un)Current
doesn't leak a buffer.

On at least 2 devices this test doesn't pass.

Change-Id: I63ab83951b4b0a977f38571158f948cbd9dc7cec
2013-03-08 13:22:03 -08:00
Mathias Agopian
336dda6b93 am 3f27f950: am 6b2b7009: Merge changes Ibb3b6ff0,I2341e20c into jb-mr2-dev
* commit '3f27f9503356f8f60246dd188c4dd899e8999150':
  rename binder services main thread to Binder_*
  limit number of extra binder threads in SF to 4
2013-03-08 20:31:57 +00:00
Mathias Agopian
3f27f95033 am 6b2b7009: Merge changes Ibb3b6ff0,I2341e20c into jb-mr2-dev
* commit '6b2b7009560964ed25cde06602872dff763b09f4':
  rename binder services main thread to Binder_*
  limit number of extra binder threads in SF to 4
2013-03-08 20:29:52 +00:00
Mathias Agopian
6b2b700956 Merge changes Ibb3b6ff0,I2341e20c into jb-mr2-dev
* changes:
  rename binder services main thread to Binder_*
  limit number of extra binder threads in SF to 4
2013-03-08 20:28:43 +00:00
Jesse Hall
96a63c6843 am 1fd01cec: am 49385ec7: Merge "When disconnecting a surface, cancel don\'t queue the buffer" into jb-mr2-dev
* commit '1fd01cecf5af5a616f814a154ba2c217eac14bd1':
  When disconnecting a surface, cancel don't queue the buffer
2013-03-07 23:49:13 +00:00
Jesse Hall
1fd01cecf5 am 49385ec7: Merge "When disconnecting a surface, cancel don\'t queue the buffer" into jb-mr2-dev
* commit '49385ec7c361347a69245c8a0838f6d03343a1de':
  When disconnecting a surface, cancel don't queue the buffer
2013-03-07 23:47:04 +00:00
Jesse Hall
c325043694 am 12b528f8: am 86306b58: Merge "Defer destroying surfaces until not current" into jb-mr2-dev
* commit '12b528f8ab017cd60a856166895e9cf6f8a4a404':
  Defer destroying surfaces until not current
2013-03-07 23:45:44 +00:00
Jesse Hall
49385ec7c3 Merge "When disconnecting a surface, cancel don't queue the buffer" into jb-mr2-dev 2013-03-07 23:43:56 +00:00
Jesse Hall
12b528f8ab am 86306b58: Merge "Defer destroying surfaces until not current" into jb-mr2-dev
* commit '86306b587644e939c5b6d4a53d67c9b74ce24ba5':
  Defer destroying surfaces until not current
2013-03-07 23:43:35 +00:00
Jesse Hall
86306b5876 Merge "Defer destroying surfaces until not current" into jb-mr2-dev 2013-03-07 23:41:45 +00:00
Mathias Agopian
e3e43b384e rename binder services main thread to Binder_*
When a binder service's main thread joins the thread pool
it retains its name (whatever the exec name was), which is
very confusing in systrace.

we now rename that thread just like its friends in the
thread pool.

Change-Id: Ibb3b6ff07304b247cfc6fb1694e72350c579513e
2013-03-07 15:34:28 -08:00
Mathias Agopian
649b976a00 limit number of extra binder threads in SF to 4
it should be enough and it makes debugging easier.

Bug: 6609290
Change-Id: I2341e20cfcfde184fe1ed9b925215f8fa3481ced
2013-03-07 15:32:47 -08:00
Jesse Hall
5f555569e7 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
2013-03-07 15:21:26 -08:00
Jesse Hall
78141e3acc Defer destroying surfaces until not current
Bug: 8320762
Change-Id: I1320cf87923bcc5b795a86a13193363a49e29653
2013-03-07 15:10:59 -08:00
Jean-Baptiste Queru
bfef13e9d5 am f092d118: am 6c337e7a: resolved conflicts for merge of bfb2aa46 to jb-mr2-dev
* commit 'f092d1188ee150cc3a1427a1ac57e0b5aa0d8b6b':
  Tweaks for forward compatibility
2013-03-07 20:16:52 +00:00
Jean-Baptiste Queru
f092d1188e am 6c337e7a: resolved conflicts for merge of bfb2aa46 to jb-mr2-dev
* commit '6c337e7a663c1049e58e0051bd7bfba61614ef37':
  Tweaks for forward compatibility
2013-03-07 20:14:05 +00:00
Jean-Baptiste Queru
6c337e7a66 resolved conflicts for merge of bfb2aa46 to jb-mr2-dev 2013-03-07 11:35:19 -08:00
Jean-Baptiste Queru
bfb2aa4652 Merge "Tweaks for forward compatibility" 2013-03-07 19:08:08 +00:00
Mathias Agopian
8e70480c2e am d56f8eff: am 3cd153a0: another attempt to fix the build
* commit 'd56f8effd65a0aefcca2f7f685b85b3deeed7090':
  another attempt to fix the build
2013-03-07 17:34:34 +00:00
Mathias Agopian
221dced754 am 2e830128: am 84b470d7: attempt to fix build
* commit '2e8301282296d20d03b0f149a3351ef38a04fba9':
  attempt to fix build
2013-03-07 17:34:34 +00:00
Mathias Agopian
e8e7c46ae5 am 483fbb3b: am 1f758231: Merge changes I7f696e42,I51c6df3c into jb-mr2-dev
* commit '483fbb3befcfc5d113cf5931cbf32e59a99c21c6':
  Make GraphicBuffer a RefBase
  Fix RefBase debugging. O_CREAT must specify the mode.
2013-03-07 17:34:33 +00:00
Mathias Agopian
2b6e0a84ed am 494db35f: am 2be4e8ff: workaround to fix screenshot leak on N4
* commit '494db35f9cdb079face7767e004c479048f57673':
  workaround to fix screenshot leak on N4
2013-03-07 17:34:33 +00:00
Mathias Agopian
d56f8effd6 am 3cd153a0: another attempt to fix the build
* commit '3cd153a0330d4234a536fc5f4e4346413bde5a44':
  another attempt to fix the build
2013-03-07 17:31:05 +00:00
Mathias Agopian
2e83012822 am 84b470d7: attempt to fix build
* commit '84b470d78f10b6fbfbf84edba749e5f7f315fc3a':
  attempt to fix build
2013-03-07 17:31:04 +00:00
Mathias Agopian
483fbb3bef am 1f758231: Merge changes I7f696e42,I51c6df3c into jb-mr2-dev
* commit '1f758231c26261bd6ef3ec869ce230c06ed5b596':
  Make GraphicBuffer a RefBase
  Fix RefBase debugging. O_CREAT must specify the mode.
2013-03-07 17:30:57 +00:00
Mathias Agopian
494db35f9c am 2be4e8ff: workaround to fix screenshot leak on N4
* commit '2be4e8ff23f24285f4c195ba5537c7a51c13be4d':
  workaround to fix screenshot leak on N4
2013-03-07 17:30:55 +00:00
Mathias Agopian
3cd153a033 another attempt to fix the build
Change-Id: Ie0245db97170cca9a2cd8783b0fd512daf0d30a6
2013-03-06 22:37:33 -08:00
Mathias Agopian
84b470d78f attempt to fix build
Change-Id: Ifb186d2f157ad02f593bf9b681aab53575f183ce
2013-03-06 21:34:39 -08:00
Mathias Agopian
1f758231c2 Merge changes I7f696e42,I51c6df3c into jb-mr2-dev
* changes:
  Make GraphicBuffer a RefBase
  Fix RefBase debugging. O_CREAT must specify the mode.
2013-03-07 04:52:24 +00:00
Mathias Agopian
2be4e8ff23 workaround to fix screenshot leak on N4
Bug: 8322020

Change-Id: Ie60af0eb431866b8d64b2674ae7bd8b5ee05f5d6
2013-03-06 20:44:16 -08:00
Mathias Agopian
e041716ba1 Make GraphicBuffer a RefBase
- this gives us access to RefBase's refcounting debugging
- it doesn't cost much because GraphicBuffer already has a vtable

Change-Id: I7f696e421fea14b14bfaeb83880689b83e96af4d
2013-03-06 18:50:52 -08:00
Mathias Agopian
dbf146f1d6 Fix RefBase debugging. O_CREAT must specify the mode.
Change-Id: I51c6df3cfd59b20ca73c3edee86bc2f74dbde1b1
2013-03-06 17:52:34 -08:00
Mathias Agopian
eb6d9e4133 am dad8bd33: am 438ca07b: Merge changes I66511c08,Ia051949f,Ic7451365,I5b571a4c into jb-mr2-dev
* commit 'dad8bd33d264ecee533a3768075d8a13655e20b6':
  Get rid of LayerBase.
  Make LayerDim a regular Layer instead of a LayerBase
  fold LayerBaseClient into LayerBase
  Remove support for ScreenshotLayer
2013-03-07 01:51:36 +00:00
Mathias Agopian
dad8bd33d2 am 438ca07b: Merge changes I66511c08,Ia051949f,Ic7451365,I5b571a4c into jb-mr2-dev
* commit '438ca07b6ba74235e87bfbd78c94874d8bbde391':
  Get rid of LayerBase.
  Make LayerDim a regular Layer instead of a LayerBase
  fold LayerBaseClient into LayerBase
  Remove support for ScreenshotLayer
2013-03-07 01:49:25 +00:00
Mathias Agopian
438ca07b6b Merge changes I66511c08,Ia051949f,Ic7451365,I5b571a4c into jb-mr2-dev
* changes:
  Get rid of LayerBase.
  Make LayerDim a regular Layer instead of a LayerBase
  fold LayerBaseClient into LayerBase
  Remove support for ScreenshotLayer
2013-03-07 01:47:34 +00:00
Jean-Baptiste Queru
d82bea798e Tweaks for forward compatibility
Change-Id: I136fcbbc14072ee5f5281d09445f28d083ed3ce1
2013-03-06 15:26:54 -08:00
Jeff Sharkey
96e383cb10 am 50620113: am 175264b0: Return NO_MEMORY when glReadPixels() fails.
* commit '5062011324199293942613b0af96c88a650fcc31':
  Return NO_MEMORY when glReadPixels() fails.
2013-03-06 16:53:24 +00:00
Jeff Sharkey
5062011324 am 175264b0: Return NO_MEMORY when glReadPixels() fails.
* commit '175264b09c6080b29a23fc9f545d4b99445714bd':
  Return NO_MEMORY when glReadPixels() fails.
2013-03-06 16:47:57 +00:00
Mathias Agopian
13127d8921 Get rid of LayerBase.
The functionality of LayerBase and Layer is folded
into Layer. There wasn't a need for this abstraction
anymore.

Change-Id: I66511c08cc3d89009ba4deabf47e26cd4cfeaefb
2013-03-05 19:52:30 -08:00
Mathias Agopian
2f73af9212 Make LayerDim a regular Layer instead of a LayerBase
this is in preparation to get rid of LayerBase entirely

Change-Id: Ia051949fc5205fd87371331145356ee11598a597
2013-03-05 19:52:30 -08:00
Mathias Agopian
b79f61d41e fold LayerBaseClient into LayerBase
Change-Id: Ic745136522df59c42f0885fd969e75ea55d09f01
2013-03-05 19:52:30 -08:00
Mathias Agopian
089a15298e Remove support for ScreenshotLayer
Change-Id: I5b571a4cf3faa77d2c4aca916fa4bd00a1065bb9
2013-03-05 19:52:29 -08:00
Jeff Sharkey
175264b09c Return NO_MEMORY when glReadPixels() fails.
Change-Id: Ic66134ef457e8442ae9135e9ec50e3d02932a253
2013-03-05 18:00:01 -08:00
Glenn Kasten
03cacfd29b Merge "Continue removing property debug.sys.noschedgroups" 2013-03-05 23:37:49 +00:00
Igor Murashkin
72c1bff9de am 501ca36a: am f082323c: Merge "CpuConsumer_test: Extend test with new formats RGBA8888 and optional Y8/Y16" into jb-mr2-dev
* commit '501ca36a45e83b6fdddefd1cb365757003a713cd':
  CpuConsumer_test: Extend test with new formats RGBA8888 and optional Y8/Y16
2013-03-05 22:00:27 +00:00
Igor Murashkin
501ca36a45 am f082323c: Merge "CpuConsumer_test: Extend test with new formats RGBA8888 and optional Y8/Y16" into jb-mr2-dev
* commit 'f082323c0dbd915d2ad7b6f4d9c732e230fcda46':
  CpuConsumer_test: Extend test with new formats RGBA8888 and optional Y8/Y16
2013-03-05 21:59:03 +00:00
Igor Murashkin
f082323c0d Merge "CpuConsumer_test: Extend test with new formats RGBA8888 and optional Y8/Y16" into jb-mr2-dev 2013-03-05 21:58:00 +00:00
Igor Murashkin
29e2047cb4 CpuConsumer_test: Extend test with new formats RGBA8888 and optional Y8/Y16
Change-Id: I0a0f6ce73516883bf50c749a1759abbdb3748e08
2013-03-05 13:55:31 -08:00