OSDN Git Service

android-x86/frameworks-native.git
11 years agoMerge "improve [un]marshalling of non-binder objects" into jb-mr1-dev
Mathias Agopian [Mon, 13 Aug 2012 21:28:24 +0000 (14:28 -0700)]
Merge "improve [un]marshalling of non-binder objects" into jb-mr1-dev

11 years agoAdd compile-time option to systrace GL-ES calls
Jesse Hall [Thu, 2 Aug 2012 00:10:25 +0000 (17:10 -0700)]
Add compile-time option to systrace GL-ES calls

Change-Id: Ibec103bbf159626ad9745d0e071192ad424bc0e9

11 years agoimprove [un]marshalling of non-binder objects
Mathias Agopian [Mon, 13 Aug 2012 02:37:16 +0000 (19:37 -0700)]
improve [un]marshalling of non-binder objects

this change introduces a new class LightFlattenable<> which is
a protocol to flatten simple objects that don't require
binders or file descriptors; the benefit of this protocol is that
it doesn't require the objects to have a virtual table and give us
a consitant way of doing this.

we also introduce an implementation of this protocol for
POD structures, LightFlattenablePod<>.

Parcel has been update to handle this protocol automatically.

Sensor, Rect, Point and Region now use this new protocol.

Change-Id: Icb3ce7fa1d785249eb666f39c2129f2fc143ea4a

11 years agomake multi-display more real
Mathias Agopian [Thu, 9 Aug 2012 23:29:12 +0000 (16:29 -0700)]
make multi-display more real

- displays are represented by a binder on the client side
- c++ clients can now create and modify displays

Change-Id: I203ea5b4beae0819d742ec5171c27568f4e8354b

11 years agoscreenshots could stop working after camera was used
Mathias Agopian [Fri, 10 Aug 2012 22:22:19 +0000 (15:22 -0700)]
screenshots could stop working after camera was used

once a secure window is put on screen the display
would retain its "secure" flag forever, preventing
screenshots from being taken.

Bug: 6933967
Change-Id: I5be8355145ca7d580d84552311642f8fa912fe6a

11 years agoavoid crashing when we don't have an h/w composer
Mathias Agopian [Fri, 10 Aug 2012 21:36:40 +0000 (14:36 -0700)]
avoid crashing when we don't have an h/w composer

should fix the emulator

Bug: 6956162
Change-Id: I38247b59d276b8db078c4dc2caba7d3fb545912c

11 years agolibgui includes refactoring
Mathias Agopian [Thu, 9 Aug 2012 02:42:09 +0000 (19:42 -0700)]
libgui includes refactoring

Change-Id: I1d24ec17f5003ec2abab5f7472daaff4cc4cc2d3

11 years agoAdd a display parameter to HWComposer where needed
Mathias Agopian [Thu, 9 Aug 2012 01:35:12 +0000 (18:35 -0700)]
Add a display parameter to HWComposer where needed

- also replace C casts with C++ casts
- only the interface is changed, HWComposer still doesn't
  fully handle multiple displays

Change-Id: I48eb89bff2edb76bf1d4d41f46802b9b2a7166a8

11 years agonow able to set the layer stack on a DisplayDevice
Mathias Agopian [Thu, 9 Aug 2012 01:51:15 +0000 (18:51 -0700)]
now able to set the layer stack on a DisplayDevice

Change-Id: Ia9691cf221b9444c243eb468d9e276a30e600b6b

11 years agoimprove Vector<> safety checks
Mathias Agopian [Fri, 10 Aug 2012 02:39:15 +0000 (19:39 -0700)]
improve Vector<> safety checks

- make errors that will always cause a memory corruption always fatal
  (for eg: KeyedVector<>::editValue{For|At}() failure)
- make other errors fatal in debug mode, those that can be caught by
  the caller.
- fix typos

Change-Id: I65cc7d81035c37ce2906fc4500c50e5d5b5c49eb

11 years agoMerge "SurfaceTexture: Fix a fence fd leak." into jb-mr1-dev
Jamie Gennis [Wed, 8 Aug 2012 23:13:20 +0000 (16:13 -0700)]
Merge "SurfaceTexture: Fix a fence fd leak." into jb-mr1-dev

11 years agoSurfaceTexture: Fix a fence fd leak.
Jamie Gennis [Wed, 8 Aug 2012 22:39:55 +0000 (15:39 -0700)]
SurfaceTexture: Fix a fence fd leak.

Bug: 6949010
Change-Id: I289992c964504b4fe5458dbd19b248a841ef043f

11 years agoadd /d/sync to dumpstate
Mathias Agopian [Wed, 8 Aug 2012 22:32:02 +0000 (15:32 -0700)]
add /d/sync to dumpstate

Change-Id: I24f8f3e0420c2198ae3981fc067fb660898655e8

11 years agoMerge "enable java/jni build in PDK if supported" into jb-mr1-dev
Keun young Park [Wed, 8 Aug 2012 19:25:15 +0000 (12:25 -0700)]
Merge "enable java/jni build in PDK if supported" into jb-mr1-dev

11 years agoenable java/jni build in PDK if supported
Keun young Park [Wed, 8 Aug 2012 00:09:19 +0000 (17:09 -0700)]
enable java/jni build in PDK if supported

- testFramerate requires platform java API
  while all other tests only need SDK support

Change-Id: Iaefe23c41b3ace87522b5deefd6db2f5d80ed872

11 years agoChanges to support multi-display HWC
Jesse Hall [Tue, 31 Jul 2012 21:32:56 +0000 (14:32 -0700)]
Changes to support multi-display HWC

Change-Id: I07efff54f2980dcb013935747b03e099b8f1181b

11 years agoMerge changes Ic3d35a93,I46ec942d into jb-mr1-dev
Jamie Gennis [Tue, 7 Aug 2012 02:15:51 +0000 (19:15 -0700)]
Merge changes Ic3d35a93,I46ec942d into jb-mr1-dev

* changes:
  SurfaceTexture: fix an out of bounds array access
  surfaceflinger: refactor FrambufferSurface

11 years agoSurfaceTexture: fix an out of bounds array access
Jamie Gennis [Tue, 7 Aug 2012 00:10:57 +0000 (17:10 -0700)]
SurfaceTexture: fix an out of bounds array access

Bug: 6879028
Change-Id: Ic3d35a9384c0a6dfa4000e7743a6f6859608b0bf

11 years agosurfaceflinger: refactor FrambufferSurface
Jamie Gennis [Fri, 3 Aug 2012 03:11:05 +0000 (20:11 -0700)]
surfaceflinger: refactor FrambufferSurface

This change refactors the FramebufferSurface class to inherit from the new
ConsumerBase class.

Bug: 6620200
Change-Id: I46ec942ddb019658e3c5e79465548b171b2261f2

11 years agofix pdk build
Greg Hackmann [Mon, 6 Aug 2012 20:55:56 +0000 (13:55 -0700)]
fix pdk build

Change-Id: Ia4db8e1e8ee18ac112bf13a5ab2a75edb08fc70f
Signed-off-by: Greg Hackmann <ghackmann@google.com>
11 years agolibutils cleanup: remove unused or seldom used code from misc.{cpp|h}
Mathias Agopian [Sun, 5 Aug 2012 19:41:16 +0000 (12:41 -0700)]
libutils cleanup: remove unused or seldom used code from misc.{cpp|h}

Change-Id: I72206f16619d81887e3b85603494563faab3b445

11 years agoDisplayDevice doesn't need weak pointers or polymorphism
Mathias Agopian [Sun, 5 Aug 2012 08:23:51 +0000 (01:23 -0700)]
DisplayDevice doesn't need weak pointers or polymorphism

let's use a LightRefBase for now.

Change-Id: Ida068fa902343a8f89ffb6d34c2cd4627ab43c6c

11 years agoturn DisplayDevice into a reference-counted object
Mathias Agopian [Sun, 5 Aug 2012 07:40:46 +0000 (00:40 -0700)]
turn DisplayDevice into a reference-counted object

it's safer this way because this object owns an
EGLSurface which cannot be easily reference-counted.

it also gives us the ability to sub-class it, which
we might want to do soon.

Change-Id: I07358bb052dc5a13b4f2196b2c2b6e6e94c4bb4f

11 years agoDisplayDevice only needs ANativeWindow not SurfaceTextureClient
Mathias Agopian [Sun, 5 Aug 2012 04:39:11 +0000 (21:39 -0700)]
DisplayDevice only needs ANativeWindow not SurfaceTextureClient

Change-Id: Ib5be5af8bede435c8d5d9fabf586d28d0e74c2cb

11 years agoremove a dependency of DisplayDevice on the refresh rate
Mathias Agopian [Sun, 5 Aug 2012 04:10:38 +0000 (21:10 -0700)]
remove a dependency of DisplayDevice on the refresh rate

this remove a dependency (not all) on FramebufferSurface

Change-Id: Ie07ce70760cdcedfb41b5b41bea8da45637bf474

11 years agoremove unneeded dependencies in libhardware
Mathias Agopian [Sun, 5 Aug 2012 03:22:32 +0000 (20:22 -0700)]
remove unneeded dependencies in libhardware

Change-Id: Ibb8d698d594216d0746b0e7270cf87d7e5acab2b

11 years agobreak SF dependencies on libdvm and libandroid_runtime
Mathias Agopian [Sun, 5 Aug 2012 03:09:03 +0000 (20:09 -0700)]
break SF dependencies on libdvm and libandroid_runtime

these libraries are only needed for debugging and are now
linked at runtime if needed.

Change-Id: I03f138523c6de166a1e2700d4454d4a854aee145

11 years agoscreen-off animation won't be handled by SF anymore
Mathias Agopian [Fri, 3 Aug 2012 04:27:56 +0000 (21:27 -0700)]
screen-off animation won't be handled by SF anymore

Change-Id: Idc41386804ae7d7eb981c36e1bc55c270870c8d0

11 years agoWe now have a real list of displays.
Mathias Agopian [Fri, 3 Aug 2012 01:32:23 +0000 (18:32 -0700)]
We now have a real list of displays.

displays can be dynamically added or removed, and the
list is part of the SF's transaction.

Change-Id: I4186ea39f1317c0e7c044f869004017738968fab

11 years agodon't filter when capturing a screenshot unless needed
Mathias Agopian [Thu, 2 Aug 2012 23:01:34 +0000 (16:01 -0700)]
don't filter when capturing a screenshot unless needed

bug: 6919952
Change-Id: Ia6fbe9bc7e533a64cfdd6ef7f0cd6b9f11feb947

11 years agocleanups in preparation of bigger changes
Mathias Agopian [Thu, 2 Aug 2012 21:01:42 +0000 (14:01 -0700)]
cleanups in preparation of bigger changes

- fix typo drawForSreenshot misspelled
- get rid of DisplayDeviceBase
- removed unused or unneeded code
- always pass a DisplayDevice to Layer methods that are called
  on a per-display basis (to make it clear that this could be
  called more than once per composition).

Change-Id: Id948b7e09fe5c06db0e42d40d6ed75dd095c7f44

11 years agorename DisplayHardware to DisplayDevice
Mathias Agopian [Wed, 1 Aug 2012 06:09:07 +0000 (23:09 -0700)]
rename DisplayHardware to DisplayDevice

Change-Id: I3f7250cd914e0da4f9ec2c9403587bbe12f3cc62

11 years agoLayers are now sorted by layer-stack first, then by z-order
Mathias Agopian [Wed, 1 Aug 2012 05:59:38 +0000 (22:59 -0700)]
Layers are now sorted by layer-stack first, then by z-order

Change-Id: I7a82929df5ba87b9d88cc5be87e1a233bc4628e9

11 years agogetting closer to final main composition loop
Mathias Agopian [Wed, 1 Aug 2012 02:01:53 +0000 (19:01 -0700)]
getting closer to final main composition loop

Change-Id: Icd63782366ffd11d9ea00c925ae5783ed7440cdb

11 years agoget rid of global regions that should be tracked per display
Mathias Agopian [Tue, 31 Jul 2012 19:38:26 +0000 (12:38 -0700)]
get rid of global regions that should be tracked per display

Change-Id: I3b871860cc29f1b2fdcc22b0c577a6eae65d9296

11 years agoMerge "Add missing break in switch statement" into jb-mr1-dev
Romain Guy [Thu, 2 Aug 2012 02:18:10 +0000 (19:18 -0700)]
Merge "Add missing break in switch statement" into jb-mr1-dev

11 years agoAdd missing break in switch statement
Romain Guy [Thu, 2 Aug 2012 02:16:59 +0000 (19:16 -0700)]
Add missing break in switch statement

Change-Id: I6206cc9ca46c4e2f125d3d820256280586ad66a1

11 years agoDalvik heap size for a 10" xhdpi tablet.
Dianne Hackborn [Thu, 2 Aug 2012 01:14:45 +0000 (18:14 -0700)]
Dalvik heap size for a 10" xhdpi tablet.

Change-Id: Ie47702cda764817e023464944cd6dc5352fc439e

11 years agoMerge "libgui: enable EGL_fence_sync usage for exynos5" into jb-mr1-dev
Jamie Gennis [Wed, 1 Aug 2012 00:13:31 +0000 (17:13 -0700)]
Merge "libgui: enable EGL_fence_sync usage for exynos5" into jb-mr1-dev

11 years agolibgui: enable EGL_fence_sync usage for exynos5
Jamie Gennis [Tue, 31 Jul 2012 21:01:57 +0000 (14:01 -0700)]
libgui: enable EGL_fence_sync usage for exynos5

Bug: 6876502
Change-Id: I2ec2800881dcba9e4f6ff32ffa1341a2de01f0a2

11 years agoMerge "Move eglSwapBuffers out of HWComposer" into jb-mr1-dev
Jesse Hall [Tue, 31 Jul 2012 23:17:52 +0000 (16:17 -0700)]
Merge "Move eglSwapBuffers out of HWComposer" into jb-mr1-dev

11 years agoMerge "Revert "Minimal changes to support multi-display HWC"" into jb-mr1-dev
Jesse Hall [Tue, 31 Jul 2012 19:24:16 +0000 (12:24 -0700)]
Merge "Revert "Minimal changes to support multi-display HWC"" into jb-mr1-dev

11 years agoRevert "Minimal changes to support multi-display HWC"
Jesse Hall [Tue, 31 Jul 2012 19:16:31 +0000 (12:16 -0700)]
Revert "Minimal changes to support multi-display HWC"

This reverts commit bddd724b178b1263c16e41b564165fcd0e93ff83

Change-Id: Ib7db20b5b3de4779b6e173473a33976ae398abd4

11 years agoMerge "Minimal changes to support multi-display HWC" into jb-mr1-dev
Jesse Hall [Tue, 31 Jul 2012 04:20:04 +0000 (21:20 -0700)]
Merge "Minimal changes to support multi-display HWC" into jb-mr1-dev

11 years agoMove eglSwapBuffers out of HWComposer
Jesse Hall [Mon, 30 Jul 2012 05:35:34 +0000 (22:35 -0700)]
Move eglSwapBuffers out of HWComposer

Commit 8630320 moved the eglSwapBuffers fallback (for devices with no
HWC implementation) from DisplayHardware to HWComposer. But HWComposer
only knows about the framebuffer EGL display and surface handles if
there is a HWC, so it was always passing bogus handles.

This change moves the eglSwapBuffers fallback up to SurfaceFlinger,
which has access to the framebuffer EGL handles.

Bug: 6886613
Change-Id: Iad3f5ff7c90ee48d7053999e6a4548d6794b6ebd

11 years agoMerge "log more info on fence sync_merge error" into jb-mr1-dev
Mathias Agopian [Mon, 30 Jul 2012 22:21:59 +0000 (15:21 -0700)]
Merge "log more info on fence sync_merge error" into jb-mr1-dev

11 years agolog more info on fence sync_merge error
Mathias Agopian [Mon, 30 Jul 2012 22:10:35 +0000 (15:10 -0700)]
log more info on fence sync_merge error

also fix a typo where the wrong value was passed to sterror.

Change-Id: I4df2abe582e14c8f816b65818f4593a6bd3c23ea

11 years agoMerge remote-tracking branch 'goog/jb-dev-mako' into jb-mr1-dev
Ed Heyl [Sat, 28 Jul 2012 16:55:54 +0000 (09:55 -0700)]
Merge remote-tracking branch 'goog/jb-dev-mako' into jb-mr1-dev

Conflicts:
include/media/hardware/CryptoAPI.h

Change-Id: I84bf34edbef000558f088bbf1d1e5b55d6217d2e

11 years agoam 5e966ef6: Reconcile with jb-release
The Android Open Source Project [Fri, 27 Jul 2012 22:45:33 +0000 (15:45 -0700)]
am 5e966ef6: Reconcile with jb-release

* commit '5e966ef64bda21a14b5f835040f515932c52e966':

11 years agoReconcile with jb-release
The Android Open Source Project [Fri, 27 Jul 2012 21:52:00 +0000 (14:52 -0700)]
Reconcile with jb-release

Change-Id: Ied4d1f919062ea2abeee45ce4ecbc92a105b8f3d

11 years agoMinimal changes to support multi-display HWC
Jesse Hall [Thu, 26 Jul 2012 05:15:40 +0000 (22:15 -0700)]
Minimal changes to support multi-display HWC

Change-Id: I5efea78ac381c3e3118e6e92b508f336233ac319

11 years agoget rid of the shared-memory control block
Mathias Agopian [Thu, 26 Jul 2012 01:56:13 +0000 (18:56 -0700)]
get rid of the shared-memory control block

Change-Id: If814060aca1d2ff2619d4adcd57296983d207f7f

11 years agohopefully fixe a race condition in sf initialization
Mathias Agopian [Thu, 26 Jul 2012 04:12:12 +0000 (21:12 -0700)]
hopefully fixe a race condition in sf initialization

if we received a vsync event during SF init, we could crash
as not all objects were ready to go.

Change-Id: Ie11b46e3eb1b37a709dd8757843d444f93dd0189

11 years agosplit HWComposer out of DisplayHardware
Mathias Agopian [Wed, 25 Jul 2012 05:46:10 +0000 (22:46 -0700)]
split HWComposer out of DisplayHardware

we will only ever have a single instance of HWComposer, so
it's now an attribute of SurfaceFlinger, instead of being part
of DisplayHardware.

DisplayHardware now just represents a "display" (it should be renamed).

Change-Id: Iec191e57686868e1df6daa8b880a286c9fefde56

11 years agoget rid of ro.sf.hwrotation, it's not used anymore
Mathias Agopian [Wed, 25 Jul 2012 04:08:59 +0000 (21:08 -0700)]
get rid of ro.sf.hwrotation, it's not used anymore

Change-Id: I2ee469ac89ecd65d7187be5cab08b5cc18f67cbe

11 years agoadd a layerStack attribute to Layers.
Mathias Agopian [Wed, 25 Jul 2012 04:41:09 +0000 (21:41 -0700)]
add a layerStack attribute to Layers.

this attribute can be set through a regular transaction using
SurfaceComposerClient (just like any other attribute, eg: position or size)

Change-Id: I701a47c677ea6442ca713728a93335328cd2b172

11 years agoupdate SF binder protocol to support setting display attributes
Mathias Agopian [Wed, 25 Jul 2012 03:43:54 +0000 (20:43 -0700)]
update SF binder protocol to support setting display attributes

no change of functionality -- the old behavior is implemented
on top of this new protocol.
this new protocol will allow, eventually, to pass informations
about displays and layer stacks.

Change-Id: Ic6c2295e61ec8ecbc8ce01ab7664e35d928202fc

11 years agomerge in jb-release history after reset to jb-dev
The Android Automerger [Wed, 25 Jul 2012 03:23:13 +0000 (20:23 -0700)]
merge in jb-release history after reset to jb-dev

11 years agoSurfaceFlinger cleanup
Mathias Agopian [Tue, 24 Jul 2012 06:11:29 +0000 (23:11 -0700)]
SurfaceFlinger cleanup

mostly refactored SurfaceFlinger.h, but also removed dead code.
cleaned-up a few includes as well.

Change-Id: Ib15f4ffe567912b61ee98aa076c6a283b72811b5

11 years agoFixed bug in opengl es binding generation
Thomas Tafertshofer [Mon, 23 Jul 2012 23:52:32 +0000 (16:52 -0700)]
Fixed bug in opengl es binding generation

This fixes the glgen code generation for methods
which have a buffer arg that can be NULL.

Bug: 6845189
Change-Id: I5fb745b806601e5665f97bfd15fd865cd9c241ed

11 years agoMerge "glgen stubs to fix bad methods in gles20 bindings"
Mathias Agopian [Mon, 23 Jul 2012 23:25:43 +0000 (16:25 -0700)]
Merge "glgen stubs to fix bad methods in gles20 bindings"

11 years agoMerge "Update the EGL_ANDROID_fence_sync spec."
Jamie Gennis [Mon, 23 Jul 2012 23:21:58 +0000 (16:21 -0700)]
Merge "Update the EGL_ANDROID_fence_sync spec."

11 years agoUpdate the EGL_ANDROID_fence_sync spec.
Jamie Gennis [Fri, 20 Jul 2012 18:55:07 +0000 (11:55 -0700)]
Update the EGL_ANDROID_fence_sync spec.

Change-Id: I26589e51c2023aed4da8a25a098b01804200ddc2

11 years agoIncrement iterator on early-out too
Jesse Hall [Mon, 23 Jul 2012 20:11:19 +0000 (13:11 -0700)]
Increment iterator on early-out too

Bug: 6860046
Change-Id: I82f9e4062cb58d5479c9d8dc5f2f0770a1dcc605

11 years agoMerge "Handle empty HWC layer list when composing"
Jesse Hall [Sun, 22 Jul 2012 01:51:20 +0000 (18:51 -0700)]
Merge "Handle empty HWC layer list when composing"

11 years agoHandle empty HWC layer list when composing
Jesse Hall [Thu, 19 Jul 2012 23:44:38 +0000 (16:44 -0700)]
Handle empty HWC layer list when composing

Bug: 6777877
Change-Id: I71e9b948d04dda33d45cfa986d9c7e28328cf749

11 years agoMerge "Add elapsedRealtimeNano(), and use CLOCK_BOOTTIME where possible."
Nick Pelly [Fri, 20 Jul 2012 16:46:14 +0000 (09:46 -0700)]
Merge "Add elapsedRealtimeNano(), and use CLOCK_BOOTTIME where possible."

11 years agoglgen stubs to fix bad methods in gles20 bindings
Thomas Tafertshofer [Thu, 19 Jul 2012 23:50:08 +0000 (16:50 -0700)]
glgen stubs to fix bad methods in gles20 bindings

this adds correct versions of the broken GLES20 methods
glGetShaderSource, glGetActiveAttrib and glGetActiveUniform.
the old broken methods are still there and need to be @hide later.

Bug: 6006380
Change-Id: Ide74242ada54b85459b459ae4f20cd26a23c7610

11 years agoAdd elapsedRealtimeNano(), and use CLOCK_BOOTTIME where possible.
Nick Pelly [Thu, 19 Jul 2012 16:17:24 +0000 (09:17 -0700)]
Add elapsedRealtimeNano(), and use CLOCK_BOOTTIME where possible.

Change-Id: I4231c8ca32663e6e2cb5b7c126d091f837373807

11 years agofactor EGL/GL and surface creation out of DisplayHardware
Mathias Agopian [Thu, 12 Jul 2012 21:25:33 +0000 (14:25 -0700)]
factor EGL/GL and surface creation out of DisplayHardware

Change-Id: Icd85a6a4caad06f056578008af3e21666fa8b1f4

11 years agomVisibleLayersSortedByZ is now maintained per display
Mathias Agopian [Wed, 11 Jul 2012 20:48:17 +0000 (13:48 -0700)]
mVisibleLayersSortedByZ is now maintained per display

Change-Id: Idcdb77eba1a3f99b3e4b2150128a82acaffcd2a8

11 years agoMerge "OpenGL bindings fix for methods with iobuffer args"
Mathias Agopian [Thu, 19 Jul 2012 01:31:41 +0000 (18:31 -0700)]
Merge "OpenGL bindings fix for methods with iobuffer args"

11 years agoMerge "Remove @hide from the generated EGL 1.4 API"
Mathias Agopian [Thu, 19 Jul 2012 01:30:45 +0000 (18:30 -0700)]
Merge "Remove @hide from the generated EGL 1.4 API"

11 years agoam f455c9a2: merge in jb-release history after reset to jb-dev
The Android Automerger [Wed, 18 Jul 2012 01:12:12 +0000 (18:12 -0700)]
am f455c9a2: merge in jb-release history after reset to jb-dev

* commit 'f455c9a267332960334794428c2abc5f716ee6ea':
  SF could get stuck waiting for vsync when turning the screen off
  libgui: improve some logging and dumping
  libgui: improve some logging and dumping
  Workaround for add_tid_to_cgroup failed to write
  make sure to repaint the screen when screen turns on
  Add sdcard_r group to dumpstate.
  Ensure that /data/anr/traces.txt is world-writable
  displayhardware: fix not obeying ro.sf.lcd_density when specified

11 years agoMerge from jb-dev for "sample video corruption in MediaCodec mode." DO NOT MERGE
Edwin Wong [Tue, 17 Jul 2012 21:38:28 +0000 (14:38 -0700)]
Merge from jb-dev for "sample video corruption in MediaCodec mode." DO NOT MERGE

jb-dev commit: fa2b8f243eb048fb2b8e5a14356190f69eb31a36

Change-Id: Ic2a28663d25e3007c95e15ecbb0d44b820045f85
related-to-bug: 6732061

11 years agoMerge "Remove unused layer flags."
Jeff Brown [Mon, 16 Jul 2012 23:18:23 +0000 (16:18 -0700)]
Merge "Remove unused layer flags."

11 years agoRemove unused layer flags.
Jeff Brown [Mon, 16 Jul 2012 23:05:50 +0000 (16:05 -0700)]
Remove unused layer flags.

Change-Id: Ia85365f18770a9a2c0a0e30ae56b6c2226d41be6

11 years agoMerge "surfaceflinger: call into hardware composer to blank screen"
Colin Cross [Mon, 16 Jul 2012 22:58:28 +0000 (15:58 -0700)]
Merge "surfaceflinger: call into hardware composer to blank screen"

11 years agoMerge "Remove freeze(), unfreeze() and setFreezeTint()."
Jeff Brown [Mon, 16 Jul 2012 22:53:12 +0000 (15:53 -0700)]
Merge "Remove freeze(), unfreeze() and setFreezeTint()."

11 years agoMerge "Remove freezeDisplay(), which is no-op."
Jeff Brown [Mon, 16 Jul 2012 22:53:07 +0000 (15:53 -0700)]
Merge "Remove freezeDisplay(), which is no-op."

11 years agoRemove freeze(), unfreeze() and setFreezeTint().
Jeff Brown [Mon, 16 Jul 2012 22:38:18 +0000 (15:38 -0700)]
Remove freeze(), unfreeze() and setFreezeTint().

This is all dead code.

Change-Id: I646673aac793a6ec45021c370a2450f0ea4fbcce

11 years agoRemove freezeDisplay(), which is no-op.
Jeff Brown [Mon, 16 Jul 2012 21:58:11 +0000 (14:58 -0700)]
Remove freezeDisplay(), which is no-op.

Change-Id: I2b70249a1545636fd6d98b58057b22f9529cad21

11 years agoam 647336c7: am e0daeb39: Fixed sample video corrupted in MediaCodec mode.
Edwin Wong [Sat, 14 Jul 2012 00:54:30 +0000 (17:54 -0700)]
am 647336c7: am e0daeb39: Fixed sample video corrupted in MediaCodec mode.

* commit '647336c76e8da68fb44ca52ec14a8a2c6d5735bb':
  Fixed sample video corrupted in MediaCodec mode.

11 years agoRemove @hide from the generated EGL 1.4 API
Thomas Tafertshofer [Thu, 12 Jul 2012 22:54:56 +0000 (15:54 -0700)]
Remove @hide from the generated EGL 1.4 API

Change-Id: Ia5707533fcf1186ef648b8a4e25987f5e7e7dea3

11 years agosurfaceflinger: call into hardware composer to blank screen
Colin Cross [Fri, 13 Jul 2012 00:56:34 +0000 (17:56 -0700)]
surfaceflinger: call into hardware composer to blank screen

Call into the new HWC blank operation to blank or unblank the screen.
Legacy systems may have already blanked the screen via early suspend,
and can choose to not implement the blank operation in their hardware
composer implementation.

Change-Id: Ib403c8c0e36367a2cfef3e1d124872fcfeb9e7cb

11 years agoam e0daeb39: Fixed sample video corrupted in MediaCodec mode.
Edwin Wong [Fri, 13 Jul 2012 22:12:23 +0000 (15:12 -0700)]
am e0daeb39: Fixed sample video corrupted in MediaCodec mode.

* commit 'e0daeb3933e034f037630715e4cd2ecb3880498b':
  Fixed sample video corrupted in MediaCodec mode.

11 years agoFixed sample video corrupted in MediaCodec mode.
Edwin Wong [Wed, 11 Jul 2012 02:57:26 +0000 (19:57 -0700)]
Fixed sample video corrupted in MediaCodec mode.

Change-Id: Ibe11a83199f3db1ba6266a1a9e11c7fc24ceb554
related-to-bug: 6732061

11 years agoOpenGL bindings fix for methods with iobuffer args
Thomas Tafertshofer [Thu, 12 Jul 2012 18:16:20 +0000 (11:16 -0700)]
OpenGL bindings fix for methods with iobuffer args

This changes generation of the OpenGL bindings to prevent
crashes of methods with more then one nio buffer argument.

Bug: 6772416
Change-Id: I4eff25c2f568dea78a6ffd3e95ff4620ab4b3b7d

11 years agoMerge "one more step towards multiple display support"
Mathias Agopian [Thu, 12 Jul 2012 00:19:00 +0000 (17:19 -0700)]
Merge "one more step towards multiple display support"

11 years agoMerge "improve glgen tool to support EGL1.4"
Mathias Agopian [Wed, 11 Jul 2012 23:07:39 +0000 (16:07 -0700)]
Merge "improve glgen tool to support EGL1.4"

11 years agoimprove glgen tool to support EGL1.4
Thomas Tafertshofer [Fri, 15 Jun 2012 23:22:43 +0000 (16:22 -0700)]
improve glgen tool to support EGL1.4

- added EGL1.4 bindings generation
- fixed bugs in GLES bindings

Bug: 6709865
Change-Id: I04ac63f652e1968a51eb833f47e00336ea449980

11 years agoone more step towards multiple display support
Mathias Agopian [Fri, 29 Jun 2012 21:12:52 +0000 (14:12 -0700)]
one more step towards multiple display support

- remove dependency on cached state in validateVisibility
- get rid of mVertices and mTransformedBounds
- get rid of validateVisibility
- get rid of unlockPageFlip
- handleTransaction now returns a dirty region
- computevisibileregion now uses window-manager space

11 years agolibs/ui: Add support for triple framebuffers
Naseer Ahmed [Fri, 29 Jun 2012 19:02:32 +0000 (12:02 -0700)]
libs/ui: Add support for triple framebuffers

Change-Id: I90dd38deeeda9a3785b87286cc7d252c6f948750

12 years agoFix check for fence merge success
Jesse Hall [Tue, 3 Jul 2012 20:41:54 +0000 (13:41 -0700)]
Fix check for fence merge success

Change-Id: I9b16526ebfe4ffabf7c4372cca9b192ce046aa21

12 years agoOnly set acquire fences on overlay layers
Jesse Hall [Mon, 2 Jul 2012 23:49:28 +0000 (16:49 -0700)]
Only set acquire fences on overlay layers

Change-Id: I08e8173f83580de5a4e43a0ba5ea03e5ec6e8782

12 years agoPass fence to HWC on first use of buffer
Jesse Hall [Fri, 29 Jun 2012 22:21:18 +0000 (15:21 -0700)]
Pass fence to HWC on first use of buffer

Also do a CPU-wait on the fence before using it for GL composition.

Change-Id: I0f645a42a44803276cae11b904e5a26d65871562

12 years agoReturn fence from acquireBuffer
Jesse Hall [Thu, 28 Jun 2012 21:27:53 +0000 (14:27 -0700)]
Return fence from acquireBuffer

Change-Id: Iab22054c1dc4fd84affab3cc5bbdcd5a1e689666

12 years agoPass fences with buffers from SurfaceTextureClient
Jesse Hall [Thu, 28 Jun 2012 19:52:05 +0000 (12:52 -0700)]
Pass fences with buffers from SurfaceTextureClient

Change-Id: I09b49433788d01e8b2b3684bb4d0112be29538d3

12 years agoMerge "Clarify aborted updateTexImage use of fences"
Jesse Hall [Fri, 29 Jun 2012 16:54:25 +0000 (09:54 -0700)]
Merge "Clarify aborted updateTexImage use of fences"

12 years agoMerge "Return fence to client in dequeuBuffer"
Jesse Hall [Fri, 29 Jun 2012 16:54:08 +0000 (09:54 -0700)]
Merge "Return fence to client in dequeuBuffer"