Mathias Agopian
455e360149
assert -eng builds when calling a GL function without a context
...
Bug: 7241626
Change-Id: I0f1f9361e75e9186af8cff8d98a7d2224b266765
2012-09-26 17:37:53 -07:00
Andy McFadden
f10272b12b
am 9030333a
: am e206549c
: Merge "Recompute visible regions more vigorously" into jb-mr1-dev
...
* commit '9030333a4ec170baf90a7c62cc7c19970f12a5f5':
Recompute visible regions more vigorously
2012-09-26 17:31:22 -07:00
Andy McFadden
9030333a4e
am e206549c
: Merge "Recompute visible regions more vigorously" into jb-mr1-dev
...
* commit 'e206549ccf23ec5ba95062f944674e58569c8065':
Recompute visible regions more vigorously
2012-09-26 17:28:51 -07:00
Andy McFadden
e206549ccf
Merge "Recompute visible regions more vigorously" into jb-mr1-dev
2012-09-26 17:27:43 -07:00
Andy McFadden
ab10c5804c
Recompute visible regions more vigorously
...
Some of the code in latchBuffer was calling invalidateHwcGeometry,
but that didn't cause the SurfaceFlinger visible region code to
re-evaluate the layer's visibility. Set the recomputeVisibleRegions
"out" parameter instead.
Bug 7235797
Change-Id: If6ba33fbd1a594cd64cc5253aebf752d6ceda1c9
2012-09-26 16:19:12 -07:00
Jesse Hall
6bb791274b
am 975424a7
: am a8026d21
: Stop using transparent region for computing visible regions
...
* commit '975424a767912a2291113d6ae774873eaf3ebf55':
Stop using transparent region for computing visible regions
2012-09-26 14:49:49 -07:00
Jesse Hall
975424a767
am a8026d21
: Stop using transparent region for computing visible regions
...
* commit 'a8026d21f3f2f09e3416cbd33c277fbd15d8cf4e':
Stop using transparent region for computing visible regions
2012-09-26 14:48:22 -07:00
Jesse Hall
a8026d21f3
Stop using transparent region for computing visible regions
...
The transparent region hint is computed only from view layout
locations, ignoring post-layout translation. If a SurfaceView is layed
out with no other views above it, but a view is moved above it
post-layout, that view's layout bounds would be subtracted from the
window's transparent region instead of its drawing bounds. Prior to
this change, the view would not be visible (except where its layout
bounds and drawing bounds overlap).
With this change, composition uses visible regions computed without
regard to the transparent regions. However, if all of a layer's
visible region is transparent, it will be removed from the list of
layers to composite. This doesn't fix the root problem of incorrect
transparent regions, and doesn't prevent bad composition in all cases.
But it does avoid it for some existing apps, whiel still allowing the
transparent region hint to save power in the important
fullscreen-video-in-a-SurfaceView case.
Bug: 7179570
Change-Id: I47cf939e12129b167afa344b8b036e8827103ac8
2012-09-26 14:41:51 -07:00
The Android Open Source Project
ded29dea7d
am 4152d3f4
: (-s ours) Reconcile with jb-mr1-release - do not merge
...
* commit '4152d3f4c8332bbac3284283656b49661ad21b04':
only abort when errors happen on the main display
2012-09-26 10:07:53 -07:00
The Android Open Source Project
4152d3f4c8
Reconcile with jb-mr1-release - do not merge
...
Change-Id: I2b5dfee2bfbe21b2d7f5a313c5c5e89bcb5379c1
2012-09-26 09:07:02 -07:00
The Android Automerger
08351c8f82
merge in jb-mr1-release history after reset to jb-mr1-dev
2012-09-26 06:59:39 -07:00
Mathias Agopian
008cc14e90
am abee8d40
: am c4a8daaa
: Merge "add support for EGL_FRAMEBUFFER_TARGET_ANDROID" into jb-mr1-dev
...
* commit 'abee8d40c430eb8137240f2635db32148a05f3fc':
add support for EGL_FRAMEBUFFER_TARGET_ANDROID
2012-09-25 23:00:08 -07:00
Mathias Agopian
abee8d40c4
am c4a8daaa
: Merge "add support for EGL_FRAMEBUFFER_TARGET_ANDROID" into jb-mr1-dev
...
* commit 'c4a8daaa998ea524c9aaa9817021ff7c4467c3dd':
add support for EGL_FRAMEBUFFER_TARGET_ANDROID
2012-09-25 22:58:43 -07:00
Mathias Agopian
c4a8daaa99
Merge "add support for EGL_FRAMEBUFFER_TARGET_ANDROID" into jb-mr1-dev
2012-09-25 22:56:30 -07:00
Mathias Agopian
e272b25aa9
only abort when errors happen on the main display
...
Bug: 7232690
Change-Id: I2c4b35a82f131da26deea738ef294e100e536d15
2012-09-25 20:47:29 -07:00
Mathias Agopian
29911c8b1a
am b06fbffb
: am 32341381
: only abort when errors happen on the main display
...
* commit 'b06fbffbded32050e91e1c65b452856a1a264d22':
only abort when errors happen on the main display
2012-09-25 19:24:03 -07:00
Mathias Agopian
b06fbffbde
am 32341381
: only abort when errors happen on the main display
...
* commit '32341381c9493d7953e40f7f79653cfc52868863':
only abort when errors happen on the main display
2012-09-25 19:22:01 -07:00
Mathias Agopian
32341381c9
only abort when errors happen on the main display
...
Bug: 7232690
Change-Id: I2c4b35a82f131da26deea738ef294e100e536d15
2012-09-25 19:16:28 -07:00
Mathias Agopian
722b98f9df
add support for EGL_FRAMEBUFFER_TARGET_ANDROID
...
we now try first with EGL_FRAMEBUFFER_TARGET_ANDROID, and
pick the first config we find. Otherwise, we revert to
the old algorithm.
Bug: 7232584
Change-Id: I8d5c5a4ce48420832c2e2828718a8f53325effb0
2012-09-25 18:38:09 -07:00
Mathias Agopian
54d2f94651
am 57fcc92e
: am 7b190511
: fix a crasher when running out of memory
...
* commit '57fcc92e2cb1d86bfba5d0444cbf58195059b168':
fix a crasher when running out of memory
2012-09-25 15:57:27 -07:00
Mathias Agopian
57fcc92e2c
am 7b190511
: fix a crasher when running out of memory
...
* commit '7b1905113712281c777b230648d3fbb69ae4f42c':
fix a crasher when running out of memory
2012-09-25 15:55:24 -07:00
Mathias Agopian
fdb62d7374
am 40e627c5
: am bb53b0e4
: When "show visible regions" is enabled we were missing a call to HWC
...
* commit '40e627c5b0952b8b342b9589d162b60319e1bbce':
When "show visible regions" is enabled we were missing a call to HWC
2012-09-25 15:34:15 -07:00
Andy McFadden
95fa818b27
am e43bc405
: am f68c825c
: Merge "Show build config in dumpsys SurfaceFlinger" into jb-mr1-dev
...
* commit 'e43bc405b7dc7d36293bd87321fc061a2631f544':
Show build config in dumpsys SurfaceFlinger
2012-09-25 15:33:47 -07:00
Mathias Agopian
7b19051137
fix a crasher when running out of memory
...
MemoryHeapBase::getBase() returns MAP_FAILED in case or
OOM, not null which is what SF was checking against.
This addresses one of the issues of bug 7230543.
Bug: 7230543
Change-Id: I763a88f64a2f9ff75eb139cfbaf9a1a9746c5577
2012-09-25 15:30:38 -07:00
Mathias Agopian
40e627c5b0
am bb53b0e4
: When "show visible regions" is enabled we were missing a call to HWC
...
* commit 'bb53b0e4b97634bc31808965f81b3ab4193d0e84':
When "show visible regions" is enabled we were missing a call to HWC
2012-09-25 14:42:07 -07:00
Mathias Agopian
bb53b0e4b9
When "show visible regions" is enabled we were missing a call to HWC
...
Bug: 7204034
Change-Id: I64dd78362fa75149513a7d9ff92dde175e9b4958
2012-09-25 14:40:22 -07:00
Andy McFadden
e43bc405b7
am f68c825c
: Merge "Show build config in dumpsys SurfaceFlinger" into jb-mr1-dev
...
* commit 'f68c825c75198e7b3296532db9352631f18983b7':
Show build config in dumpsys SurfaceFlinger
2012-09-25 13:49:47 -07:00
Andy McFadden
f68c825c75
Merge "Show build config in dumpsys SurfaceFlinger" into jb-mr1-dev
2012-09-25 13:48:16 -07:00
Ian Rogers
8de69b3ed5
am de64dc25
: am ad901448
: Merge "Configure GC free to be 8MB for devices with >512MB RAM." into jb-mr1-dev
...
* commit 'de64dc25739ca423ab26305bc7b97463e347ac18':
Configure GC free to be 8MB for devices with >512MB RAM.
2012-09-25 13:30:09 -07:00
Ian Rogers
de64dc2573
am ad901448
: Merge "Configure GC free to be 8MB for devices with >512MB RAM." into jb-mr1-dev
...
* commit 'ad901448d7b92cd0a6493ae9d043110e41522291':
Configure GC free to be 8MB for devices with >512MB RAM.
2012-09-25 12:32:04 -07:00
Ian Rogers
ad901448d7
Merge "Configure GC free to be 8MB for devices with >512MB RAM." into jb-mr1-dev
2012-09-25 11:36:23 -07:00
Andy McFadden
4803b74e2a
Show build config in dumpsys SurfaceFlinger
...
This adds a line to the "dumpsys SurfaceFlinger" output that shows
build-time configuration values.
Example:
Build configuration: [sf HAS_CONTEXT_PRIORITY] [libui] \
[libgui USE_FENCE_SYNC]
Bug 7206633
Change-Id: Ibe1856b459d34a4be6ee83a4ebfd2807e6cc68a0
2012-09-25 11:31:46 -07:00
The Android Automerger
52d3d4de88
merge in jb-mr1-release history after reset to jb-mr1-dev
2012-09-25 06:59:51 -07:00
Mathias Agopian
cd2055e229
am 2d038bda
: am a046dd97
: fix Layer croping in SurfaceFlinger
...
* commit '2d038bda206cfc9005e2cc80367035aa2442c5e4':
fix Layer croping in SurfaceFlinger
2012-09-24 22:19:59 -07:00
Mathias Agopian
2d038bda20
am a046dd97
: fix Layer croping in SurfaceFlinger
...
* commit 'a046dd9772cd8da4ead9edc7a89d9992ff0d38cf':
fix Layer croping in SurfaceFlinger
2012-09-24 22:18:18 -07:00
Mathias Agopian
a046dd9772
fix Layer croping in SurfaceFlinger
...
Bug: 7224628
Change-Id: I9421f0a06b9a27fe00eefaa1dfab8c4309c380c9
2012-09-24 22:15:47 -07:00
Mathias Agopian
505084bc86
am 2c0a5e68
: am e96e9e10
: fix a crasher in SurfaceTexture\'s setFilteringEnabled
...
* commit '2c0a5e68aabb4130152e358f50c005126aa489b0':
fix a crasher in SurfaceTexture's setFilteringEnabled
2012-09-24 20:57:48 -07:00
Mathias Agopian
2c0a5e68aa
am e96e9e10
: fix a crasher in SurfaceTexture\'s setFilteringEnabled
...
* commit 'e96e9e1093b5700e9f403a6e2479da7dc36d3b71':
fix a crasher in SurfaceTexture's setFilteringEnabled
2012-09-24 20:56:05 -07:00
Mathias Agopian
e96e9e1093
fix a crasher in SurfaceTexture's setFilteringEnabled
...
bug: 7211067
Change-Id: Id8658a8df429d76c20ab9112858b38e52343dc9c
2012-09-24 19:26:11 -07:00
Mathias Agopian
c05d52fdd8
am e41c2e17
: am 13de3699
: Merge changes I47cd25c9,I7638ffe8 into jb-mr1-dev
...
* commit 'e41c2e17146423b6e11110f7d03caf5464283893':
don't call eglMakeCurrent() before calling HWC commit() on HWC 1.1
handle EGL errors
2012-09-24 18:34:56 -07:00
Mathias Agopian
e41c2e1714
am 13de3699
: Merge changes I47cd25c9,I7638ffe8 into jb-mr1-dev
...
* commit '13de3699807f3260cfbabd196a08191d6a80a99a':
don't call eglMakeCurrent() before calling HWC commit() on HWC 1.1
handle EGL errors
2012-09-24 18:33:54 -07:00
Mathias Agopian
13de369980
Merge changes I47cd25c9,I7638ffe8 into jb-mr1-dev
...
* changes:
don't call eglMakeCurrent() before calling HWC commit() on HWC 1.1
handle EGL errors
2012-09-24 18:31:48 -07:00
Jamie Gennis
651d23e6f7
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
2012-09-24 18:25:05 -07:00
Jamie Gennis
f48bec48ea
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
2012-09-24 18:25:04 -07:00
Jamie Gennis
483ab74243
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
2012-09-24 18:23:05 -07:00
Jamie Gennis
ca5f79c2bb
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
2012-09-24 18:23:04 -07:00
Jamie Gennis
2f45d7464a
Merge "EGL: add the EGL_ANDROID_framebuffer_target enum" into jb-mr1-dev
2012-09-24 18:21:14 -07:00
Jamie Gennis
363847d498
Merge "EGL: expose the EXT_create_context_robustness ext" into jb-mr1-dev
2012-09-24 18:20:51 -07:00
Mathias Agopian
2a23184e41
don't call eglMakeCurrent() before calling HWC commit() on HWC 1.1
...
this call is not needed and misleading on HWC 1.1; it can also have
a negative performance impact when multiple displays are used.
Bug: 7124069
Change-Id: I47cd25c9d6e69abcc9333b9ecd5044e8fb1919ec
2012-09-24 18:12:35 -07:00
Mathias Agopian
73d2a39400
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
2012-09-24 18:11:07 -07:00