OSDN Git Service

android-x86/frameworks-native.git
9 years agoam 5a31f1ab: Merge "Disregard alleged binder entities beyond parcel bounds" into...
Christopher Tate [Tue, 2 Jun 2015 14:23:27 +0000 (14:23 +0000)]
am 5a31f1ab: Merge "Disregard alleged binder entities beyond parcel bounds" into mnc-dev

* commit '5a31f1abf69eaf4c25a84d53e318c0a716911786':
  Disregard alleged binder entities beyond parcel bounds

9 years agoam 6a04e5fc: libgui: Propagate error by clearing sp<GB>
Dan Stoza [Tue, 2 Jun 2015 14:21:15 +0000 (14:21 +0000)]
am 6a04e5fc: libgui: Propagate error by clearing sp<GB>

* commit '6a04e5fcf67e754b215301fe38a6401db567f4b5':
  libgui: Propagate error by clearing sp<GB>

9 years agoMerge "Disregard alleged binder entities beyond parcel bounds" into mnc-dev
Christopher Tate [Tue, 2 Jun 2015 01:05:46 +0000 (01:05 +0000)]
Merge "Disregard alleged binder entities beyond parcel bounds" into mnc-dev

9 years agoam ae892959: am 8980e0cc: Merge "libgui: Propagate error by clearing sp<GB>"
Dan Stoza [Mon, 1 Jun 2015 22:21:41 +0000 (22:21 +0000)]
am ae892959: am 8980e0cc: Merge "libgui: Propagate error by clearing sp<GB>"

* commit 'ae892959e45a93fea665cbb0ac01a99c95f44c10':
  libgui: Propagate error by clearing sp<GB>

9 years agoam 8980e0cc: Merge "libgui: Propagate error by clearing sp<GB>"
Dan Stoza [Mon, 1 Jun 2015 22:09:30 +0000 (22:09 +0000)]
am 8980e0cc: Merge "libgui: Propagate error by clearing sp<GB>"

* commit '8980e0ccd4608adbef0d7c80ead97cec995e269c':
  libgui: Propagate error by clearing sp<GB>

9 years agoMerge "libgui: Propagate error by clearing sp<GB>"
Dan Stoza [Mon, 1 Jun 2015 21:59:20 +0000 (21:59 +0000)]
Merge "libgui: Propagate error by clearing sp<GB>"

9 years agolibgui: Propagate error by clearing sp<GB>
Dan Stoza [Mon, 1 Jun 2015 20:59:15 +0000 (13:59 -0700)]
libgui: Propagate error by clearing sp<GB>

Clears the sp<GraphicBuffer> returned by createGraphicBuffer when there
is an error during unflattening.

Bug: 21498231
Change-Id: I886da4474fc06853cc59188d62044b7d7549126b
(cherry picked from commit 6a04e5fcf67e754b215301fe38a6401db567f4b5)

9 years agolibgui: Propagate error by clearing sp<GB>
Dan Stoza [Mon, 1 Jun 2015 20:59:15 +0000 (13:59 -0700)]
libgui: Propagate error by clearing sp<GB>

Clears the sp<GraphicBuffer> returned by createGraphicBuffer when there
is an error during unflattening.

Bug: 21498231
Change-Id: I886da4474fc06853cc59188d62044b7d7549126b

9 years agoam f6f221aa: Merge "SF: Reduce resync samples without present" into mnc-dev
Dan Stoza [Mon, 1 Jun 2015 18:50:32 +0000 (18:50 +0000)]
am f6f221aa: Merge "SF: Reduce resync samples without present" into mnc-dev

* commit 'f6f221aa98b195addbd512114e14a376dac276d3':
  SF: Reduce resync samples without present

9 years agoam da5a3f40: Merge "libui: Apply GRALLOC_USAGE_ALLOC_MASK during alloc" into mnc-dev
Dan Stoza [Mon, 1 Jun 2015 18:50:31 +0000 (18:50 +0000)]
am da5a3f40: Merge "libui: Apply GRALLOC_USAGE_ALLOC_MASK during alloc" into mnc-dev

* commit 'da5a3f40a7d64f685433b764f13c67d8ffd5d759':
  libui: Apply GRALLOC_USAGE_ALLOC_MASK during alloc

9 years agoMerge branch 'mnc-dev-plus-aosp' of https://googleplex-android.googlesource.com/_dire...
Joe Fernandez [Mon, 1 Jun 2015 18:50:31 +0000 (18:50 +0000)]
Merge branch 'mnc-dev-plus-aosp' of https://googleplex-android.googlesource.com/_direct/platform/frameworks/native into mnc-dev-plus-aosp

9 years agoam 04b00cea: Fix libgui crop matrix test.
Michael Lentine [Mon, 1 Jun 2015 18:49:59 +0000 (18:49 +0000)]
am 04b00cea: Fix libgui crop matrix test.

* commit '04b00cea67b406c4a971b24b9f91e95c754813ed':
  Fix libgui crop matrix test.

9 years agoam 67ff12d9: am cf1edb3f: Merge "Fix libgui crop matrix test."
Dan Stoza [Mon, 1 Jun 2015 18:49:58 +0000 (18:49 +0000)]
am 67ff12d9: am cf1edb3f: Merge "Fix libgui crop matrix test."

* commit '67ff12d9522168120be2bb58eee20e5f39f84d76':
  Fix libgui crop matrix test.

9 years agoam 958e9bbd: am 75145aa2: Merge "SF: Reduce resync samples without present"
Dan Stoza [Mon, 1 Jun 2015 18:43:57 +0000 (18:43 +0000)]
am 958e9bbd: am 75145aa2: Merge "SF: Reduce resync samples without present"

* commit '958e9bbdc6a048da386c62a71adcde5ec8a78cdd':
  SF: Reduce resync samples without present

9 years agoam 2daeb124: am edcfe7c5: Merge "libui: Apply GRALLOC_USAGE_ALLOC_MASK during alloc"
Dan Stoza [Mon, 1 Jun 2015 18:43:56 +0000 (18:43 +0000)]
am 2daeb124: am edcfe7c5: Merge "libui: Apply GRALLOC_USAGE_ALLOC_MASK during alloc"

* commit '2daeb124818ade7b83deaa9decd1592473ec19f3':
  libui: Apply GRALLOC_USAGE_ALLOC_MASK during alloc

9 years agoam 04bb7a9a: am c76683f5: Merge "Check that width and height parameters are small."
Dan Stoza [Mon, 1 Jun 2015 18:43:55 +0000 (18:43 +0000)]
am 04bb7a9a: am c76683f5: Merge "Check that width and height parameters are small."

* commit '04bb7a9a4195de14e11e2ea9a9439b9e43e9f660':
  Check that width and height parameters are small.

9 years agoam cf1edb3f: Merge "Fix libgui crop matrix test."
Dan Stoza [Mon, 1 Jun 2015 18:42:31 +0000 (18:42 +0000)]
am cf1edb3f: Merge "Fix libgui crop matrix test."

* commit 'cf1edb3f3ece597dcf9c3f4ae018374550e8b561':
  Fix libgui crop matrix test.

9 years agoam 75145aa2: Merge "SF: Reduce resync samples without present"
Dan Stoza [Mon, 1 Jun 2015 18:31:20 +0000 (18:31 +0000)]
am 75145aa2: Merge "SF: Reduce resync samples without present"

* commit '75145aa2b77c348bce43c432c17b70f6dcb31c91':
  SF: Reduce resync samples without present

9 years agoMerge "Fix libgui crop matrix test."
Dan Stoza [Mon, 1 Jun 2015 18:31:19 +0000 (18:31 +0000)]
Merge "Fix libgui crop matrix test."

9 years agoam edcfe7c5: Merge "libui: Apply GRALLOC_USAGE_ALLOC_MASK during alloc"
Dan Stoza [Mon, 1 Jun 2015 18:31:19 +0000 (18:31 +0000)]
am edcfe7c5: Merge "libui: Apply GRALLOC_USAGE_ALLOC_MASK during alloc"

* commit 'edcfe7c513a111890b7bd245cf10fa105e910277':
  libui: Apply GRALLOC_USAGE_ALLOC_MASK during alloc

9 years agoam c76683f5: Merge "Check that width and height parameters are small."
Dan Stoza [Mon, 1 Jun 2015 18:31:17 +0000 (18:31 +0000)]
am c76683f5: Merge "Check that width and height parameters are small."

* commit 'c76683f51f6ad1f5493d9af43bf868601f474060':
  Check that width and height parameters are small.

9 years agoFix libgui crop matrix test.
Michael Lentine [Fri, 29 May 2015 23:05:36 +0000 (16:05 -0700)]
Fix libgui crop matrix test.

On devices that have the crop image extension the crop is not applied to the
transform matrix so we have to expect different results in this case.

Change-Id: If62dec1111fb77c9fa2c4332d121665960ce0216
(cherry picked from commit 04b00cea67b406c4a971b24b9f91e95c754813ed)

9 years agoMerge "SF: Reduce resync samples without present"
Dan Stoza [Mon, 1 Jun 2015 18:27:35 +0000 (18:27 +0000)]
Merge "SF: Reduce resync samples without present"

9 years agoSF: Reduce resync samples without present
Dan Stoza [Fri, 29 May 2015 20:00:23 +0000 (13:00 -0700)]
SF: Reduce resync samples without present

Reduces the number of resync samples that DispSync will attempt to
collect without an intervening present from 12 to 4. The former value
was causing excessive power draw for some vendors' implementations, and
reducing it doesn't seem to harm anything.

Bug: 20724456
Change-Id: Ifd6e0490be67756ed001d509a38e8a36953b4618
(cherry picked from commit 9c64757f6530a0510f15f8bd75b1925a3001f83a)

9 years agoMerge "libui: Apply GRALLOC_USAGE_ALLOC_MASK during alloc"
Dan Stoza [Mon, 1 Jun 2015 18:25:50 +0000 (18:25 +0000)]
Merge "libui: Apply GRALLOC_USAGE_ALLOC_MASK during alloc"

9 years agolibui: Apply GRALLOC_USAGE_ALLOC_MASK during alloc
Dan Stoza [Fri, 29 May 2015 19:48:04 +0000 (12:48 -0700)]
libui: Apply GRALLOC_USAGE_ALLOC_MASK during alloc

Applies GRALLOC_USAGE_ALLOC_MASK to the incoming usage bits before
calling alloc on the gralloc module. This filters out the new flag
GRALLOC_USAGE_FOREIGN_BUFFERS, which is used to send a hint to the
producer, but which does not affect the allocation of buffers.

Bug: 19801661
Change-Id: Ia37a3eddba2e97598e50ac3e10877430adfa9247
(cherry picked from commit b8efdc40039e4900ae2c64fbdfa03906c867ec84)

9 years agoMerge "Check that width and height parameters are small."
Dan Stoza [Mon, 1 Jun 2015 18:18:42 +0000 (18:18 +0000)]
Merge "Check that width and height parameters are small."

9 years agoCheck that width and height parameters are small.
Michael Lentine [Fri, 29 May 2015 00:43:06 +0000 (17:43 -0700)]
Check that width and height parameters are small.

The product of width and height should be less than UINT32_MAX (in practice
smaller). Adding the checks prevents overflows when allocating buffers.

Bug: 20726612
Change-Id: I9769edf0688a9bfe69906d49fa0540cadf4c49b0
(cherry picked from commit 1c4537e2e80aa776a61517be8b1605e36432287a)

9 years agoMerge "SF: Reduce resync samples without present" into mnc-dev
Dan Stoza [Mon, 1 Jun 2015 16:30:46 +0000 (16:30 +0000)]
Merge "SF: Reduce resync samples without present" into mnc-dev

9 years agoMerge "libui: Apply GRALLOC_USAGE_ALLOC_MASK during alloc" into mnc-dev
Dan Stoza [Mon, 1 Jun 2015 16:30:31 +0000 (16:30 +0000)]
Merge "libui: Apply GRALLOC_USAGE_ALLOC_MASK during alloc" into mnc-dev

9 years agoFix libgui crop matrix test.
Michael Lentine [Fri, 29 May 2015 23:05:36 +0000 (16:05 -0700)]
Fix libgui crop matrix test.

On devices that have the crop image extension the crop is not applied to the
transform matrix so we have to expect different results in this case.

Change-Id: If62dec1111fb77c9fa2c4332d121665960ce0216

9 years agoam 1c4537e2: Check that width and height parameters are small.
Michael Lentine [Fri, 29 May 2015 20:51:32 +0000 (20:51 +0000)]
am 1c4537e2: Check that width and height parameters are small.

* commit '1c4537e2e80aa776a61517be8b1605e36432287a':
  Check that width and height parameters are small.

9 years agoam 6e1a2fea: Revert "Modify EGL to disconnect the window when the surface gets destro...
Michael Lentine [Fri, 29 May 2015 20:51:31 +0000 (20:51 +0000)]
am 6e1a2fea: Revert "Modify EGL to disconnect the window when the surface gets destroyed."

* commit '6e1a2fea67006b58e83ebbcc72f7b12f18c49d15':
  Revert "Modify EGL to disconnect the window when the surface gets destroyed."

9 years agoSF: Reduce resync samples without present
Dan Stoza [Fri, 29 May 2015 20:00:23 +0000 (13:00 -0700)]
SF: Reduce resync samples without present

Reduces the number of resync samples that DispSync will attempt to
collect without an intervening present from 12 to 4. The former value
was causing excessive power draw for some vendors' implementations, and
reducing it doesn't seem to harm anything.

Bug: 20724456
Change-Id: Ifd6e0490be67756ed001d509a38e8a36953b4618

9 years agolibui: Apply GRALLOC_USAGE_ALLOC_MASK during alloc
Dan Stoza [Fri, 29 May 2015 19:48:04 +0000 (12:48 -0700)]
libui: Apply GRALLOC_USAGE_ALLOC_MASK during alloc

Applies GRALLOC_USAGE_ALLOC_MASK to the incoming usage bits before
calling alloc on the gralloc module. This filters out the new flag
GRALLOC_USAGE_FOREIGN_BUFFERS, which is used to send a hint to the
producer, but which does not affect the allocation of buffers.

Bug: 19801661
Change-Id: Ia37a3eddba2e97598e50ac3e10877430adfa9247

9 years agoCheck that width and height parameters are small.
Michael Lentine [Fri, 29 May 2015 00:43:06 +0000 (17:43 -0700)]
Check that width and height parameters are small.

The product of width and height should be less than UINT32_MAX (in practice
smaller). Adding the checks prevents overflows when allocating buffers.

Bug: 20726612
Change-Id: I9769edf0688a9bfe69906d49fa0540cadf4c49b0

9 years agoRevert "Modify EGL to disconnect the window when the surface gets destroyed."
Michael Lentine [Thu, 28 May 2015 23:48:08 +0000 (16:48 -0700)]
Revert "Modify EGL to disconnect the window when the surface gets destroyed."

This reverts commit 00699fa64197cc72a160d69e1f0003cdd43dc136.

9 years agoam 89301eaf: Fix EGL shim extension injection for GL ES 3 drivers.
Alistair Strachan [Thu, 28 May 2015 23:29:23 +0000 (23:29 +0000)]
am 89301eaf: Fix EGL shim extension injection for GL ES 3 drivers.

* commit '89301eaf214f0da74c5266e7a548899d5f491b50':
  Fix EGL shim extension injection for GL ES 3 drivers.

9 years agoFix EGL shim extension injection for GL ES 3 drivers.
Alistair Strachan [Fri, 22 May 2015 21:10:09 +0000 (14:10 -0700)]
Fix EGL shim extension injection for GL ES 3 drivers.

The Android EGL shim injects GL_EXT_debug_marker into the ES driver
EXTENSIONS string for the OpenGL ES 1.x and 2.0/3.0/3.1 drivers if
the extension is not already provided. This feature is used by
GLES_trace.

In Open GL ES 3.0 it became possible to query an indexed version of
the EXTENSIONS string via GetStringi(). NUM_EXTENSIONS Gets were
also added to the specification (taken from Open GL).

If the shim does not have to inject the extension, then there is no
problem, as glGetString() and glGetStringi() / NUM_EXTENSIONS will
be consistent. However, if the Android EGL shim injects the
extension, NUM_EXTENSIONS and GetStringi() will report one less
extension than is really available.

Consistency between these methods is tested by the dEQP framework
with the dEQP-GLES3.functional.state_query.string.extensions test.
If the driver does not provide GL_EXT_debug_marker, this test
fails.

This change wraps all of the affected entry points so that the
wrapped driver extensions are never visible directly to dEQP,
eliminating the inconsistency.

9 years agoam 2a185c24: am a8702c47: Merge "SurfaceFlinger: Tweak whitespace in DdmConnection"
Dan Stoza [Thu, 28 May 2015 21:56:07 +0000 (21:56 +0000)]
am 2a185c24: am a8702c47: Merge "SurfaceFlinger: Tweak whitespace in DdmConnection"

* commit '2a185c24767c34681f7537a000d533caac5d77a5':
  SurfaceFlinger: Tweak whitespace in DdmConnection

9 years agoam adb3aff0: am 5566d9db: Merge "Bypass surface flinger permission check for calls...
Dan Stoza [Thu, 28 May 2015 21:56:06 +0000 (21:56 +0000)]
am adb3aff0: am 5566d9db: Merge "Bypass surface flinger permission check for calls from system."

* commit 'adb3aff05c8203b483b2469515b54e86ec2f8758':
  Bypass surface flinger permission check for calls from system.

9 years agoam 84a507ae: am 13c04c27: Merge "surfaceflinger: Fix range check for getFormat"
Dan Stoza [Thu, 28 May 2015 21:56:05 +0000 (21:56 +0000)]
am 84a507ae: am 13c04c27: Merge "surfaceflinger: Fix range check for getFormat"

* commit '84a507aeea37753090ce8a34845fef5befca7060':
  surfaceflinger: Fix range check for getFormat

9 years agoam a8702c47: Merge "SurfaceFlinger: Tweak whitespace in DdmConnection"
Dan Stoza [Thu, 28 May 2015 21:40:29 +0000 (21:40 +0000)]
am a8702c47: Merge "SurfaceFlinger: Tweak whitespace in DdmConnection"

* commit 'a8702c4765993f31a70243e4f89c251fe9911cde':
  SurfaceFlinger: Tweak whitespace in DdmConnection

9 years agoam 5566d9db: Merge "Bypass surface flinger permission check for calls from system."
Dan Stoza [Thu, 28 May 2015 21:40:28 +0000 (21:40 +0000)]
am 5566d9db: Merge "Bypass surface flinger permission check for calls from system."

* commit '5566d9db26e656a53ee9a5e87c0af997bb1a10d5':
  Bypass surface flinger permission check for calls from system.

9 years agoam 13c04c27: Merge "surfaceflinger: Fix range check for getFormat"
Dan Stoza [Thu, 28 May 2015 21:40:27 +0000 (21:40 +0000)]
am 13c04c27: Merge "surfaceflinger: Fix range check for getFormat"

* commit '13c04c27622c7be474e9368211795bcec052dedb':
  surfaceflinger: Fix range check for getFormat

9 years agoam 967482f6: am 20f7a6f0: Merge "Modify EGL to disconnect the window when the surface...
Dan Stoza [Thu, 28 May 2015 21:36:15 +0000 (21:36 +0000)]
am 967482f6: am 20f7a6f0: Merge "Modify EGL to disconnect the window when the surface gets destroyed."

* commit '967482f6a70d49b6a8ff58474d203f31e6d6295f':
  Modify EGL to disconnect the window when the surface gets destroyed.

9 years agoMerge "SurfaceFlinger: Tweak whitespace in DdmConnection"
Dan Stoza [Thu, 28 May 2015 21:25:10 +0000 (21:25 +0000)]
Merge "SurfaceFlinger: Tweak whitespace in DdmConnection"

9 years agoSurfaceFlinger: Tweak whitespace in DdmConnection
Dan Stoza [Thu, 28 May 2015 21:23:54 +0000 (14:23 -0700)]
SurfaceFlinger: Tweak whitespace in DdmConnection

Change-Id: I99e7b09e4bc3611ffb790eddfbb9b3c8b9bc5d4c

9 years agoMerge "Bypass surface flinger permission check for calls from system."
Dan Stoza [Thu, 28 May 2015 21:21:27 +0000 (21:21 +0000)]
Merge "Bypass surface flinger permission check for calls from system."

9 years agoMerge "surfaceflinger: Fix range check for getFormat"
Dan Stoza [Thu, 28 May 2015 21:20:59 +0000 (21:20 +0000)]
Merge "surfaceflinger: Fix range check for getFormat"

9 years agoam 20f7a6f0: Merge "Modify EGL to disconnect the window when the surface gets destroyed."
Dan Stoza [Thu, 28 May 2015 21:20:55 +0000 (21:20 +0000)]
am 20f7a6f0: Merge "Modify EGL to disconnect the window when the surface gets destroyed."

* commit '20f7a6f004511486a2130030a4694ec2d2983c96':
  Modify EGL to disconnect the window when the surface gets destroyed.

9 years agoBypass surface flinger permission check for calls from system.
Jeff Brown [Sat, 11 Apr 2015 03:20:13 +0000 (20:20 -0700)]
Bypass surface flinger permission check for calls from system.

Early during the boot, before activity manager is ready to handle
permission checks, the system needs to be able to change the display
state.  Added a hardcoded exemption for AID_SYSTEM (which already
has permission to talk to surface flinger anyhow).

Bug: 19029490
Change-Id: I6222edcab8e394e5fb6adf7a982be446e4505a1e
(cherry picked from commit 3bfe51d7901e99e7f122f76ed2708e2b67b71cf9)

9 years agosurfaceflinger: Fix range check for getFormat
Ajay Dudani [Sun, 3 May 2015 18:44:55 +0000 (11:44 -0700)]
surfaceflinger: Fix range check for getFormat

Fix potential buffer overflow error in getFormat with indices
greater than MAX_HWC_DISPLAYS.

Change-Id: I5e5b69d8d043e900f5e33ca9a62e94ae5f857b68
(cherry picked from commit 4e3e30c2d5a2a6f7dc4ee8696b1ac2a52dffd5dc)

9 years agoam 07246a92: am c2bdfb86: Merge "SF: Skip render-to-texture for color transforms"
Dan Stoza [Thu, 28 May 2015 21:12:46 +0000 (21:12 +0000)]
am 07246a92: am c2bdfb86: Merge "SF: Skip render-to-texture for color transforms"

* commit '07246a92dcd9f1cac389aa4958918e57fb83b23a':
  SF: Skip render-to-texture for color transforms

9 years agoam 5ae340f7: am 0af1e0fe: Merge "Add hotplug support for primary display."
Dan Stoza [Thu, 28 May 2015 21:12:46 +0000 (21:12 +0000)]
am 5ae340f7: am 0af1e0fe: Merge "Add hotplug support for primary display."

* commit '5ae340f7d21afb198db3b2288321f775da28ea6f':
  Add hotplug support for primary display.

9 years agoam 38f09a6e: am 35283482: Merge "libgui: Fix surface damage on rotated buffers"
Dan Stoza [Thu, 28 May 2015 21:12:45 +0000 (21:12 +0000)]
am 38f09a6e: am 35283482: Merge "libgui: Fix surface damage on rotated buffers"

* commit '38f09a6e6e146ec0a44f0863652ddc557f5c3b0f':
  libgui: Fix surface damage on rotated buffers

9 years agoam 8191944f: am 0a70ed99: Merge "Fix surfaceflinger tests."
Dan Stoza [Thu, 28 May 2015 21:12:44 +0000 (21:12 +0000)]
am 8191944f: am 0a70ed99: Merge "Fix surfaceflinger tests."

* commit '8191944fd2828ea3b848fcf378a39f146af7f38c':
  Fix surfaceflinger tests.

9 years agoam aac9729f: am 4ebb44e8: Merge "Fix libgui tests."
Dan Stoza [Thu, 28 May 2015 21:12:43 +0000 (21:12 +0000)]
am aac9729f: am 4ebb44e8: Merge "Fix libgui tests."

* commit 'aac9729fbe52a84166a8963927a3edb3a6c051bd':
  Fix libgui tests.

9 years agoam fd9017e8: am 10cb68fb: Merge "fix BufferItem flatten/unflatten alignment"
Dan Stoza [Thu, 28 May 2015 21:12:42 +0000 (21:12 +0000)]
am fd9017e8: am 10cb68fb: Merge "fix BufferItem flatten/unflatten alignment"

* commit 'fd9017e8db29f2d87b70034bbb57ef1c424fa2b6':
  fix BufferItem flatten/unflatten alignment

9 years agoam d68c5f9c: am 1bdeb9d8: Merge "Refactor ConsumerBase and it\'s derived classes."
Dan Stoza [Thu, 28 May 2015 21:12:41 +0000 (21:12 +0000)]
am d68c5f9c: am 1bdeb9d8: Merge "Refactor ConsumerBase and it\'s derived classes."

* commit 'd68c5f9cfa865c5f735d902b3999ff8209fca617':
  Refactor ConsumerBase and it's derived classes.

9 years agoam 1d0a3e50: am 5a606c3a: Merge "Fix EGL shim extension injection for GL ES 3 drivers."
Jesse Hall [Thu, 28 May 2015 21:12:40 +0000 (21:12 +0000)]
am 1d0a3e50: am 5a606c3a: Merge "Fix EGL shim extension injection for GL ES 3 drivers."

* commit '1d0a3e50fc17091ee1cb395f79aef3a56fcb9190':
  Fix EGL shim extension injection for GL ES 3 drivers.

9 years agoam 8ab465d0: am d19ad6fb: Merge "Add ConsumerBase::isAbandoned"
Dan Stoza [Thu, 28 May 2015 21:12:39 +0000 (21:12 +0000)]
am 8ab465d0: am d19ad6fb: Merge "Add ConsumerBase::isAbandoned"

* commit '8ab465d04ebe280e782c24a4c229402cfe60e9dd':
  Add ConsumerBase::isAbandoned

9 years agoMerge "Modify EGL to disconnect the window when the surface gets destroyed."
Dan Stoza [Thu, 28 May 2015 21:10:35 +0000 (21:10 +0000)]
Merge "Modify EGL to disconnect the window when the surface gets destroyed."

9 years agoModify EGL to disconnect the window when the surface gets destroyed.
Michael Lentine [Wed, 23 Jul 2014 17:19:41 +0000 (10:19 -0700)]
Modify EGL to disconnect the window when the surface gets destroyed.

Bug: 14445579

Change-Id: I1d263ff6cffcb6e448761fca7ca4b06466ad65aa
(cherry picked from commit 00699fa64197cc72a160d69e1f0003cdd43dc136)

9 years agoam c2bdfb86: Merge "SF: Skip render-to-texture for color transforms"
Dan Stoza [Thu, 28 May 2015 21:08:24 +0000 (21:08 +0000)]
am c2bdfb86: Merge "SF: Skip render-to-texture for color transforms"

* commit 'c2bdfb869427f840c37a977ca91c87ca75b89b0f':
  SF: Skip render-to-texture for color transforms

9 years agoam 0af1e0fe: Merge "Add hotplug support for primary display."
Dan Stoza [Thu, 28 May 2015 21:08:23 +0000 (21:08 +0000)]
am 0af1e0fe: Merge "Add hotplug support for primary display."

* commit '0af1e0feb6c3c693707fe5b970518713d0149741':
  Add hotplug support for primary display.

9 years agoam 35283482: Merge "libgui: Fix surface damage on rotated buffers"
Dan Stoza [Thu, 28 May 2015 21:08:20 +0000 (21:08 +0000)]
am 35283482: Merge "libgui: Fix surface damage on rotated buffers"

* commit '35283482d0d82f7d264b77941aabe41dacfe3155':
  libgui: Fix surface damage on rotated buffers

9 years agoam 0a70ed99: Merge "Fix surfaceflinger tests."
Dan Stoza [Thu, 28 May 2015 21:08:17 +0000 (21:08 +0000)]
am 0a70ed99: Merge "Fix surfaceflinger tests."

* commit '0a70ed998cad67bf1c82e82d4229291c9dcc22ac':
  Fix surfaceflinger tests.

9 years agoam 4ebb44e8: Merge "Fix libgui tests."
Dan Stoza [Thu, 28 May 2015 21:08:15 +0000 (21:08 +0000)]
am 4ebb44e8: Merge "Fix libgui tests."

* commit '4ebb44e8cc42231bc9c4588ec3432eae9770483a':
  Fix libgui tests.

9 years agoMerge "SF: Skip render-to-texture for color transforms"
Dan Stoza [Thu, 28 May 2015 21:02:22 +0000 (21:02 +0000)]
Merge "SF: Skip render-to-texture for color transforms"

9 years agoMerge "Add hotplug support for primary display."
Dan Stoza [Thu, 28 May 2015 20:59:43 +0000 (20:59 +0000)]
Merge "Add hotplug support for primary display."

9 years agoMerge "libgui: Fix surface damage on rotated buffers"
Dan Stoza [Thu, 28 May 2015 20:57:47 +0000 (20:57 +0000)]
Merge "libgui: Fix surface damage on rotated buffers"

9 years agoMerge "Fix surfaceflinger tests."
Dan Stoza [Thu, 28 May 2015 20:55:43 +0000 (20:55 +0000)]
Merge "Fix surfaceflinger tests."

9 years agoam 10cb68fb: Merge "fix BufferItem flatten/unflatten alignment"
Dan Stoza [Thu, 28 May 2015 20:55:20 +0000 (20:55 +0000)]
am 10cb68fb: Merge "fix BufferItem flatten/unflatten alignment"

* commit '10cb68fb971c899d7d1eb6c131ecf59761af6ddf':
  fix BufferItem flatten/unflatten alignment

9 years agoam 1bdeb9d8: Merge "Refactor ConsumerBase and it\'s derived classes."
Dan Stoza [Thu, 28 May 2015 20:55:19 +0000 (20:55 +0000)]
am 1bdeb9d8: Merge "Refactor ConsumerBase and it\'s derived classes."

* commit '1bdeb9d84f4c63a0fb6be2517aebe5de88a3bb45':
  Refactor ConsumerBase and it's derived classes.

9 years agoam 5a606c3a: Merge "Fix EGL shim extension injection for GL ES 3 drivers."
Jesse Hall [Thu, 28 May 2015 20:55:18 +0000 (20:55 +0000)]
am 5a606c3a: Merge "Fix EGL shim extension injection for GL ES 3 drivers."

* commit '5a606c3ab9ead418709c0f63940b60347d11e925':
  Fix EGL shim extension injection for GL ES 3 drivers.

9 years agoam d19ad6fb: Merge "Add ConsumerBase::isAbandoned"
Dan Stoza [Thu, 28 May 2015 20:55:17 +0000 (20:55 +0000)]
am d19ad6fb: Merge "Add ConsumerBase::isAbandoned"

* commit 'd19ad6fb676f6934bf9208a47d33738234570145':
  Add ConsumerBase::isAbandoned

9 years agoMerge "Fix libgui tests."
Dan Stoza [Thu, 28 May 2015 20:54:05 +0000 (20:54 +0000)]
Merge "Fix libgui tests."

9 years agoMerge "fix BufferItem flatten/unflatten alignment"
Dan Stoza [Thu, 28 May 2015 20:51:55 +0000 (20:51 +0000)]
Merge "fix BufferItem flatten/unflatten alignment"

9 years agoMerge "Refactor ConsumerBase and it's derived classes."
Dan Stoza [Thu, 28 May 2015 20:48:47 +0000 (20:48 +0000)]
Merge "Refactor ConsumerBase and it's derived classes."

9 years agoMerge "Fix EGL shim extension injection for GL ES 3 drivers."
Jesse Hall [Thu, 28 May 2015 20:46:44 +0000 (20:46 +0000)]
Merge "Fix EGL shim extension injection for GL ES 3 drivers."

9 years agoMerge "Add ConsumerBase::isAbandoned"
Dan Stoza [Thu, 28 May 2015 20:39:59 +0000 (20:39 +0000)]
Merge "Add ConsumerBase::isAbandoned"

9 years agoSF: Skip render-to-texture for color transforms
Dan Stoza [Mon, 20 Oct 2014 22:46:09 +0000 (15:46 -0700)]
SF: Skip render-to-texture for color transforms

In cases where SurfaceFlinger is applying a color matrix (usually for
accessibility features), we previously would perform a render-to-
texture for the initial composition, and then apply the matrix during
a copy to the framebuffer. This changes that behavior to just apply the
matrix during composition without a render-to-texture pass.

This may result in a perceived change of the image in cases with alpha
blending, since the blending is performed at a different stage of the
pipeline and the system effectively performs non-linear blends.
However, neither this nor the prior render-to-texture pass is strictly
correct in that regard, and this approach is less error-prone and
likely faster.

Change-Id: I2110ff0374f61d76df7b087dde8a1ed98990440c
(cherry picked from commit f008799d3753e52c10849824ff8146985ea66284)

9 years agoAdd hotplug support for primary display.
Michael Lentine [Wed, 13 May 2015 01:04:26 +0000 (18:04 -0700)]
Add hotplug support for primary display.

When the primary is connected/disconnected on tv devices HWComposer updates
it's display parameters but doesn't destroy or recreate the display.

Bug: 18698244

Change-Id: I759c8f75d3e3a7462b85eb51973fb5072b71a702
(cherry picked from commit 10613dc3b565e95d3d5f459ec70fd2f6a77f807a)

9 years agolibgui: Fix surface damage on rotated buffers
Dan Stoza [Tue, 26 May 2015 20:22:27 +0000 (13:22 -0700)]
libgui: Fix surface damage on rotated buffers

Flips the width and height when the buffer comes in with a 90 degree
rotation so that performing the Y-flip from GL works correctly.

Bug: 20761426
Change-Id: I41c9edc8549c6cbdb534277b996ff20c59034582
(cherry picked from commit 0e65e6c283c96d514c5ecefbb46a976939cfa64a)

9 years agoFix surfaceflinger tests.
Michael Lentine [Thu, 21 May 2015 20:48:24 +0000 (13:48 -0700)]
Fix surfaceflinger tests.

Update the screenshot code and add correct return values to surface flinger's
capturescreenshot function.

Buf: 18138368

Change-Id: Ieb42d289088589f941502fbd69da7aa939265e07
(cherry picked from commit 5a16a62950de06d48769e29f0c68a154ed7a7a89)

9 years agoFix libgui tests.
Michael Lentine [Tue, 19 May 2015 22:23:43 +0000 (15:23 -0700)]
Fix libgui tests.

Update IGraphicsBufferProducerTest to the new maximum enum value which is now
NATIVE_WINDOW_BUFFER_AGE. Update SurfaceTextureGLToGL_test to use the correct
counts for GraphicsBuffer refs.

Buf: 18138368

Change-Id: Ie2f7e00b414d63100b16944e3ab36b1ffceecd57
(cherry picked from commit d8ead0ccd4b700e43a78efe9b140d4a069dc343d)

9 years agofix BufferItem flatten/unflatten alignment
Chong Zhang [Fri, 22 May 2015 17:54:25 +0000 (10:54 -0700)]
fix BufferItem flatten/unflatten alignment

bug: 21370100
Change-Id: Ia3991dc591c176bdbd1d78d1804aa22777525b62
(cherry picked from commit 47f674dfeca31b29810ecb90f1277918b67c4cf8)

9 years agoRefactor ConsumerBase and it's derived classes.
Michael Lentine [Mon, 18 May 2015 20:41:23 +0000 (13:41 -0700)]
Refactor ConsumerBase and it's derived classes.

Move setDefaultBufferSize, setDefaultBufferFormat, and
setDefaultBufferDataSpace into ConsumerBase and remove them from
CpuConsumer and BufferItemConsumer.

Bug: 19977701

Change-Id: Ic68992464c5da6da7a41c4063a53029a69efcd1b
(cherry picked from commit 847f11e215e86b107ab50c1359fc7bc3cd7a3a11)

9 years agoAdd ConsumerBase::isAbandoned
John Reck [Thu, 14 May 2015 22:55:11 +0000 (15:55 -0700)]
Add ConsumerBase::isAbandoned

Bug: 20105644
Change-Id: I21526b5397ea51a15500c44a99daa9d75fc4ea67
(cherry picked from commit e478305181bb8dc8706361bc702256fe73f958de)

9 years agoam 867dc18e: am 9405746d: Merge "Rename --include-cfi to --generate-debug-info."
David Srbecky [Thu, 28 May 2015 20:16:49 +0000 (20:16 +0000)]
am 867dc18e: am 9405746d: Merge "Rename --include-cfi to --generate-debug-info."

* commit '867dc18e6f48c56cb7fd545c3d2e96c6abb9895b':
  Rename --include-cfi to --generate-debug-info.

9 years agoam 9405746d: Merge "Rename --include-cfi to --generate-debug-info."
David Srbecky [Thu, 28 May 2015 18:53:21 +0000 (18:53 +0000)]
am 9405746d: Merge "Rename --include-cfi to --generate-debug-info."

* commit '9405746db73609d8c7bd30ceafbed2ebe468e4d3':
  Rename --include-cfi to --generate-debug-info.

9 years agoMerge "Rename --include-cfi to --generate-debug-info."
David Srbecky [Thu, 28 May 2015 18:37:35 +0000 (18:37 +0000)]
Merge "Rename --include-cfi to --generate-debug-info."

9 years agoam f008799d: SF: Skip render-to-texture for color transforms
Dan Stoza [Thu, 28 May 2015 18:26:40 +0000 (18:26 +0000)]
am f008799d: SF: Skip render-to-texture for color transforms

* commit 'f008799d3753e52c10849824ff8146985ea66284':
  SF: Skip render-to-texture for color transforms

9 years agoRename --include-cfi to --generate-debug-info.
David Srbecky [Thu, 28 May 2015 15:55:50 +0000 (16:55 +0100)]
Rename --include-cfi to --generate-debug-info.

This follows a change in dex2oat.

Change-Id: I6b2df1668fdd09d82cfe86e6e51360b954b6c8a9

9 years agoDisregard alleged binder entities beyond parcel bounds
Christopher Tate [Thu, 28 May 2015 00:53:02 +0000 (17:53 -0700)]
Disregard alleged binder entities beyond parcel bounds

When appending one parcel's contents to another, ignore binder
objects within the source Parcel that appear to lie beyond the
formal bounds of that Parcel's data buffer.

Bug 17312693

Change-Id: If592a260f3fcd9a56fc160e7feb2c8b44c73f514

9 years agoam e35e6080: am 738fc3a7: Merge "framework/native/docs: remove doc footer for jd...
Johan Euphrosine [Wed, 27 May 2015 23:14:38 +0000 (23:14 +0000)]
am e35e6080: am 738fc3a7: Merge "framework/native/docs: remove doc footer for jd output"

* commit 'e35e60801560a757deb708e6ca47b962202dcc0b':
  framework/native/docs: remove doc footer for jd output

9 years agoam 738fc3a7: Merge "framework/native/docs: remove doc footer for jd output"
Johan Euphrosine [Wed, 27 May 2015 21:41:20 +0000 (21:41 +0000)]
am 738fc3a7: Merge "framework/native/docs: remove doc footer for jd output"

* commit '738fc3a722cc2c753b591298e70b0f86c481bba2':
  framework/native/docs: remove doc footer for jd output

9 years agoMerge "framework/native/docs: remove doc footer for jd output"
Johan Euphrosine [Wed, 27 May 2015 21:30:37 +0000 (21:30 +0000)]
Merge "framework/native/docs: remove doc footer for jd output"

9 years agoSF: Skip render-to-texture for color transforms
Dan Stoza [Mon, 20 Oct 2014 22:46:09 +0000 (15:46 -0700)]
SF: Skip render-to-texture for color transforms

In cases where SurfaceFlinger is applying a color matrix (usually for
accessibility features), we previously would perform a render-to-
texture for the initial composition, and then apply the matrix during
a copy to the framebuffer. This changes that behavior to just apply the
matrix during composition without a render-to-texture pass.

This may result in a perceived change of the image in cases with alpha
blending, since the blending is performed at a different stage of the
pipeline and the system effectively performs non-linear blends.
However, neither this nor the prior render-to-texture pass is strictly
correct in that regard, and this approach is less error-prone and
likely faster.

Change-Id: I2110ff0374f61d76df7b087dde8a1ed98990440c