OSDN Git Service

android-x86/frameworks-native.git
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 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 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 agoframework/native/docs: remove doc footer for jd output
Johan Euphrosine [Wed, 27 May 2015 17:13:35 +0000 (10:13 -0700)]
framework/native/docs: remove doc footer for jd output

Change-Id: Ib65a436f4846eb5c02e42c6f1cbda5eab58c68ab

9 years agoam 116e7aeb: Merge "frameworks/native/docs: add doxygen configuration"
Johan Euphrosine [Fri, 22 May 2015 22:37:05 +0000 (22:37 +0000)]
am 116e7aeb: Merge "frameworks/native/docs: add doxygen configuration"

* commit '116e7aebb68bb0394eb12092db8282981012784e':
  frameworks/native/docs: add doxygen configuration

9 years agoMerge "frameworks/native/docs: add doxygen configuration"
Johan Euphrosine [Fri, 22 May 2015 22:28:24 +0000 (22:28 +0000)]
Merge "frameworks/native/docs: add doxygen configuration"

9 years agoframeworks/native/docs: add doxygen configuration
Johan Euphrosine [Thu, 21 May 2015 08:15:34 +0000 (01:15 -0700)]
frameworks/native/docs: add doxygen configuration

Change-Id: I7803d9beceac46488869e4874f6f5f7a7925a796

9 years agoam e814b43c: Merge "Don\'t use TEMP_FAILURE_RETRY on close in frameworks/native."
Elliott Hughes [Sat, 16 May 2015 00:35:35 +0000 (00:35 +0000)]
am e814b43c: Merge "Don\'t use TEMP_FAILURE_RETRY on close in frameworks/native."

* commit 'e814b43c581b16e144328c405a003ffece9ebf4d':
  Don't use TEMP_FAILURE_RETRY on close in frameworks/native.

9 years agoMerge "Don't use TEMP_FAILURE_RETRY on close in frameworks/native."
Elliott Hughes [Sat, 16 May 2015 00:26:09 +0000 (00:26 +0000)]
Merge "Don't use TEMP_FAILURE_RETRY on close in frameworks/native."

9 years agoDon't use TEMP_FAILURE_RETRY on close in frameworks/native.
Elliott Hughes [Sat, 16 May 2015 00:05:40 +0000 (17:05 -0700)]
Don't use TEMP_FAILURE_RETRY on close in frameworks/native.

Bug: http://b/20501816
Change-Id: Id13a62f02243c6c4831e2f47944dc34fa822f5b6

9 years agoam 553cbb25: Merge "SurfaceFlinger: Handle EGL errors more cleanly"
Dan Stoza [Thu, 14 May 2015 18:06:55 +0000 (18:06 +0000)]
am 553cbb25: Merge "SurfaceFlinger: Handle EGL errors more cleanly"

* commit '553cbb254478e7875aa3e4a95838b1811095e328':
  SurfaceFlinger: Handle EGL errors more cleanly

9 years agoMerge "SurfaceFlinger: Handle EGL errors more cleanly"
Dan Stoza [Thu, 14 May 2015 17:56:27 +0000 (17:56 +0000)]
Merge "SurfaceFlinger: Handle EGL errors more cleanly"

9 years agoSurfaceFlinger: Handle EGL errors more cleanly
Dan Stoza [Thu, 14 May 2015 16:27:25 +0000 (09:27 -0700)]
SurfaceFlinger: Handle EGL errors more cleanly

Adds some more safety checking for cases where we get an error while
trying to create the EGLImage. The checking puts the Layer into a
failed state after detecting an error, since the shadow queue may no
longer be synchronized.

Bug: 20957332
Change-Id: I68b4c40eab3e58731b875ed5752f2c7d17f14bcb
(cherry picked from commit 65476f3332641066a99e22338bf5cf49ce4af642)

9 years agoam 9188b4bb: Merge "Replace JNI primitive array critical calls with non-critical...
Hiroshi Yamauchi [Wed, 13 May 2015 22:59:45 +0000 (22:59 +0000)]
am 9188b4bb: Merge "Replace JNI primitive array critical calls with non-critical ones."

* commit '9188b4bb5d44c219face5a4c1c681700cc838294':
  Replace JNI primitive array critical calls with non-critical ones.

9 years agoMerge "Replace JNI primitive array critical calls with non-critical ones."
Hiroshi Yamauchi [Wed, 13 May 2015 22:47:42 +0000 (22:47 +0000)]
Merge "Replace JNI primitive array critical calls with non-critical ones."

9 years agoReplace JNI primitive array critical calls with non-critical ones.
Hiroshi Yamauchi [Wed, 13 May 2015 20:11:30 +0000 (13:11 -0700)]
Replace JNI primitive array critical calls with non-critical ones.

The glgen part.

(cherry pick commit 4e7de461c18278a31be83e7c9074a02fbb6e9475)

Bug: 19235243
Change-Id: I0d1e78acf39feb37a67e857216a6d52f4cede180

9 years agoam f984bad9: Merge "Fix PTS handling for buffer replacement"
Dan Stoza [Wed, 13 May 2015 18:04:10 +0000 (18:04 +0000)]
am f984bad9: Merge "Fix PTS handling for buffer replacement"

* commit 'f984bad94aa98f49a3959f3119114e94a547b9bf':
  Fix PTS handling for buffer replacement

9 years agoam bbb010b7: Merge "binder: add uint64 support to Parcel."
Dan Stoza [Wed, 13 May 2015 18:04:08 +0000 (18:04 +0000)]
am bbb010b7: Merge "binder: add uint64 support to Parcel."

* commit 'bbb010b79cf824611cc6dfc5984333ac8f2177bd':
  binder: add uint64 support to Parcel.

9 years agoMerge "Fix PTS handling for buffer replacement"
Dan Stoza [Wed, 13 May 2015 17:53:22 +0000 (17:53 +0000)]
Merge "Fix PTS handling for buffer replacement"

9 years agoMerge "binder: add uint64 support to Parcel."
Dan Stoza [Wed, 13 May 2015 17:52:46 +0000 (17:52 +0000)]
Merge "binder: add uint64 support to Parcel."

9 years agoFix PTS handling for buffer replacement
Dan Stoza [Tue, 12 May 2015 19:56:16 +0000 (12:56 -0700)]
Fix PTS handling for buffer replacement

This changes the way that SurfaceFlinger's shadow buffer management
works such that instead of tracking the size of the shadow queue in the
BufferQueue, SF tracks the last frame number it has seen, and passes
that into the acquireBuffer call. BufferQueueConsumer then ensures that
it never returns a buffer newer than that frame number, even if that
means that it must return PRESENT_LATER for an otherwise valid buffer.

Change-Id: I3fcb45f683ed660c3f18a8b85ae1f8a962ba6f0e
(cherry picked from commit a4650a50a0b35e9e4342d6600b6eb24fd94bb8e5)

9 years agobinder: add uint64 support to Parcel.
Ronghua Wu [Mon, 16 Mar 2015 18:11:07 +0000 (11:11 -0700)]
binder: add uint64 support to Parcel.

Bug: 19620911
Change-Id: Ifce5319e4e35afd344dead67ab7ba1cd399476a3
(cherry picked from commit 2d13afdfa1f43973bf3cb917c7d6496a38baa446)

9 years agoam bfe211f0: Merge "libgui: Always allow allocation on connect"
Dan Stoza [Tue, 12 May 2015 22:40:47 +0000 (22:40 +0000)]
am bfe211f0: Merge "libgui: Always allow allocation on connect"

* commit 'bfe211f00a2b9032ddf04f549db0c9b82666b3be':
  libgui: Always allow allocation on connect

9 years agoMerge "libgui: Always allow allocation on connect"
Dan Stoza [Tue, 12 May 2015 22:33:38 +0000 (22:33 +0000)]
Merge "libgui: Always allow allocation on connect"

9 years agoam b9009863: Merge "frameworks/native: document native types and enums"
Johan Euphrosine [Tue, 12 May 2015 22:15:51 +0000 (22:15 +0000)]
am b9009863: Merge "frameworks/native: document native types and enums"

* commit 'b9009863cb45acd7455c0ac873fb8e6a3e7a4f99':
  frameworks/native: document native types and enums

9 years agoMerge "frameworks/native: document native types and enums"
Johan Euphrosine [Tue, 12 May 2015 22:05:21 +0000 (22:05 +0000)]
Merge "frameworks/native: document native types and enums"

9 years agolibgui: Always allow allocation on connect
Dan Stoza [Tue, 12 May 2015 21:55:15 +0000 (14:55 -0700)]
libgui: Always allow allocation on connect

This change places BufferQueue into a predictable state where
allocation is allowed whenever a producer connects. This allows clients
to disconnect and reconnect without having to worry about being locked
out of allocation.

Bug: 20554276
Change-Id: Ic0f920a3d4204f2cafdfa69e46f3bb4204571d7e
(cherry picked from commit 2b83cc920ac98498bee161e2b0e7befdfc82ca2b)

9 years agoframeworks/native: document native types and enums
Johan Euphrosine [Sat, 28 Mar 2015 00:15:43 +0000 (17:15 -0700)]
frameworks/native: document native types and enums

Change-Id: Id94b610f27b87426abb30e13484cbd16990aa995

9 years agoam 38d7f755: Merge "libgui: Hook up onFrameReplaced"
Dan Stoza [Tue, 12 May 2015 17:25:00 +0000 (17:25 +0000)]
am 38d7f755: Merge "libgui: Hook up onFrameReplaced"

* commit '38d7f7550f5848b33b2e0a2048687fc22f708fda':
  libgui: Hook up onFrameReplaced

9 years agoMerge "libgui: Hook up onFrameReplaced"
Dan Stoza [Tue, 12 May 2015 17:18:11 +0000 (17:18 +0000)]
Merge "libgui: Hook up onFrameReplaced"

9 years agolibgui: Hook up onFrameReplaced
Dan Stoza [Mon, 11 May 2015 22:33:01 +0000 (15:33 -0700)]
libgui: Hook up onFrameReplaced

This completes the plumbing from ConsumerListener::onFrameReplaced into
SurfaceFlinger (and other consumers that may care).

Change-Id: I376e78ace95d6748e8662e6b4d47c0dfa697a300
(cherry picked from commit dc13c5b85b099050c73297a19f1ef89308f7620b)

9 years agoam 364ed954: Merge "libEGL: whitelist the EGL_KHR_create_context_no_error extension"
Jesse Hall [Mon, 11 May 2015 21:42:24 +0000 (21:42 +0000)]
am 364ed954: Merge "libEGL: whitelist the EGL_KHR_create_context_no_error extension"

* commit '364ed9545382539ab9875555947bc18ec94bb82b':
  libEGL: whitelist the EGL_KHR_create_context_no_error extension

9 years agoMerge "libEGL: whitelist the EGL_KHR_create_context_no_error extension"
Jesse Hall [Mon, 11 May 2015 21:31:44 +0000 (21:31 +0000)]
Merge "libEGL: whitelist the EGL_KHR_create_context_no_error extension"

9 years agolibEGL: whitelist the EGL_KHR_create_context_no_error extension
Jesse Hall [Fri, 24 Apr 2015 08:40:42 +0000 (01:40 -0700)]
libEGL: whitelist the EGL_KHR_create_context_no_error extension

Allow EGL implementations to expose the
EGL_KHR_create_context_no_error extension if they wish.

https://www.khronos.org/registry/egl/extensions/KHR/EGL_KHR_create_context_no_error.txt

Change-Id: I3290ccc2a69a1fa0b00ec3f1aa4f876906c64bfb

9 years agoam 05815996: Merge "Added Voltage and Current regulator ftrace events to atrace"
Chris Craik [Thu, 7 May 2015 16:34:00 +0000 (16:34 +0000)]
am 05815996: Merge "Added Voltage and Current regulator ftrace events to atrace"

* commit '05815996c965b99c4cc4ea96f6b6c4a9123cdf1c':
  Added Voltage and Current regulator ftrace events to atrace

9 years agoMerge "Added Voltage and Current regulator ftrace events to atrace"
Chris Craik [Thu, 7 May 2015 16:20:52 +0000 (16:20 +0000)]
Merge "Added Voltage and Current regulator ftrace events to atrace"

9 years agoam c4e98c40: Merge "SF: Apply pending transactions to new sidebands"
Dan Stoza [Wed, 6 May 2015 17:01:06 +0000 (17:01 +0000)]
am c4e98c40: Merge "SF: Apply pending transactions to new sidebands"

* commit 'c4e98c40deacb54ad7288337927506cb5798dfa5':
  SF: Apply pending transactions to new sidebands

9 years agoMerge "SF: Apply pending transactions to new sidebands"
Dan Stoza [Wed, 6 May 2015 16:50:38 +0000 (16:50 +0000)]
Merge "SF: Apply pending transactions to new sidebands"

9 years agoSF: Apply pending transactions to new sidebands
Dan Stoza [Tue, 5 May 2015 21:00:52 +0000 (14:00 -0700)]
SF: Apply pending transactions to new sidebands

When a Layer's sideband stream is set, apply any pending transactions.
Otherwise they would never be applied since sideband streams don't
trigger updates by pushing new buffers.

Bug: 20125898
Change-Id: I0c7a91cdf84e6205801f4ab64eee0b09e4c0b3e0
(cherry picked from commit 3b04e1383eca6cb1d43ebe23a421c427007690c7)

9 years agoam e357f649: Merge "libgui: Clear frame number while freeing slot"
Dan Stoza [Mon, 4 May 2015 17:06:30 +0000 (17:06 +0000)]
am e357f649: Merge "libgui: Clear frame number while freeing slot"

* commit 'e357f6494539cf40a87f77a85e9c0a694c331b86':
  libgui: Clear frame number while freeing slot

9 years agoMerge "libgui: Clear frame number while freeing slot"
Dan Stoza [Mon, 4 May 2015 16:57:53 +0000 (16:57 +0000)]
Merge "libgui: Clear frame number while freeing slot"

9 years agolibgui: Clear frame number while freeing slot
Dan Stoza [Fri, 1 May 2015 23:42:55 +0000 (16:42 -0700)]
libgui: Clear frame number while freeing slot

Clears the frame number of a slot when it is freed, since it is used
to determine if a released buffer is stale.

Bug: 20445852
Change-Id: I02415e7b25a1eafe7414d6eb1cedf62ac5543cd9
(cherry picked from commit 52937cd9a543fe66696c38ae50ec141aa70ec1e4)

9 years agoam dfe7e7e6: Merge "dumpstate: report per-partition MMC performance"
Mark Salyzyn [Fri, 1 May 2015 22:02:12 +0000 (22:02 +0000)]
am dfe7e7e6: Merge "dumpstate: report per-partition MMC performance"

* commit 'dfe7e7e63fa80a8a9050ea47f69a340e2f7e342d':
  dumpstate: report per-partition MMC performance

9 years agoMerge "dumpstate: report per-partition MMC performance"
Mark Salyzyn [Fri, 1 May 2015 21:48:51 +0000 (21:48 +0000)]
Merge "dumpstate: report per-partition MMC performance"

9 years agoam bb58111c: Merge "SurfaceFlinger: Fix PTS on stale buffers"
Dan Stoza [Fri, 1 May 2015 20:40:26 +0000 (20:40 +0000)]
am bb58111c: Merge "SurfaceFlinger: Fix PTS on stale buffers"

* commit 'bb58111c22b41f605a8edb6599fd3df42f6d8e4e':
  SurfaceFlinger: Fix PTS on stale buffers

9 years agoMerge "SurfaceFlinger: Fix PTS on stale buffers"
Dan Stoza [Fri, 1 May 2015 20:28:47 +0000 (20:28 +0000)]
Merge "SurfaceFlinger: Fix PTS on stale buffers"

9 years agoSurfaceFlinger: Fix PTS on stale buffers
Dan Stoza [Tue, 28 Apr 2015 21:42:06 +0000 (14:42 -0700)]
SurfaceFlinger: Fix PTS on stale buffers

SurfaceFlinger's (Layer's) shadow copy of the BufferQueue queue was
getting out of sync for a few reasons. This change fixes these by
doing the following:

- Adds a check to re-synchronize the shadow copy every time we
  successfully acquire a buffer by first dropping stale buffers before
  removing the current buffer.
- Avoids trying to perform updates for buffers which have been rejected
  (for incorrect dimensions) by SurfaceFlinger.
- Adds IGraphicBufferConsumer::setShadowQueueSize, which allows the
  consumer to notify the BufferQueue that it is maintaining a shadow
  copy of the queue and prevents it from dropping so many buffers
  during acquireBuffer that it ends up returning a buffer for which the
  consumer has not yet received an onFrameAvailable call.

Bug: 20096136
Change-Id: I78d0738428005fc19b3be85cc8f1db498043612f

9 years agoam 32d4b6c8: Merge "SurfaceFlinger: Limit to 4k Layers"
Dan Stoza [Thu, 30 Apr 2015 22:21:02 +0000 (22:21 +0000)]
am 32d4b6c8: Merge "SurfaceFlinger: Limit to 4k Layers"

* commit '32d4b6c8e122308a7ae296406f87a1df1b611a44':
  SurfaceFlinger: Limit to 4k Layers

9 years agoMerge "SurfaceFlinger: Limit to 4k Layers"
Dan Stoza [Thu, 30 Apr 2015 22:09:37 +0000 (22:09 +0000)]
Merge "SurfaceFlinger: Limit to 4k Layers"

9 years agoam 676d10b2: Merge "SurfaceFlinger: Fix integer overflow in Mesh ctor"
Dan Stoza [Thu, 30 Apr 2015 22:08:00 +0000 (22:08 +0000)]
am 676d10b2: Merge "SurfaceFlinger: Fix integer overflow in Mesh ctor"

* commit '676d10b2709059079823698cb6b16e71a97d6d8b':
  SurfaceFlinger: Fix integer overflow in Mesh ctor

9 years agoam ed6e907b: Merge "Close Fence FDs in error cases of Surface and GraphicBufferMapper"
Dan Stoza [Thu, 30 Apr 2015 21:57:16 +0000 (21:57 +0000)]
am ed6e907b: Merge "Close Fence FDs in error cases of Surface and GraphicBufferMapper"

* commit 'ed6e907bc7a259d85c6a6c141a06a06e5c0b224c':
  Close Fence FDs in error cases of Surface and GraphicBufferMapper

9 years agoMerge "SurfaceFlinger: Fix integer overflow in Mesh ctor"
Dan Stoza [Thu, 30 Apr 2015 21:57:15 +0000 (21:57 +0000)]
Merge "SurfaceFlinger: Fix integer overflow in Mesh ctor"

9 years agoMerge "Close Fence FDs in error cases of Surface and GraphicBufferMapper"
Dan Stoza [Thu, 30 Apr 2015 21:49:39 +0000 (21:49 +0000)]
Merge "Close Fence FDs in error cases of Surface and GraphicBufferMapper"

9 years agoSurfaceFlinger: Limit to 4k Layers
Dan Stoza [Thu, 30 Apr 2015 20:29:25 +0000 (13:29 -0700)]
SurfaceFlinger: Limit to 4k Layers

Sets a limit of 4k Layers which SurfaceFlinger will allow to be in
existence at any given time. An attempt to create Layers in excess of
this limit will fail with NO_MEMORY.

Bug: 20674586
Change-Id: I2dfaf59643d826f982b2fa44e8a9ed643176d972

9 years agodumpstate: report per-partition MMC performance
Mark Salyzyn [Thu, 30 Apr 2015 16:49:41 +0000 (09:49 -0700)]
dumpstate: report per-partition MMC performance

Change-Id: If5cabe186d8377056effa1c0672a90e277cd7221

9 years agoSurfaceFlinger: Fix integer overflow in Mesh ctor
Dan Stoza [Wed, 29 Apr 2015 20:30:31 +0000 (13:30 -0700)]
SurfaceFlinger: Fix integer overflow in Mesh ctor

Performs range checking on the inputs to Mesh::Mesh() before allocating
the storage array.

Bug: 20674682
Change-Id: I4fc918a8c312d967dd6d9f91a098b2e0a7081027

9 years agoam 08a7c792: Merge "Remove gamma correction from color correction shader"
Dan Stoza [Thu, 30 Apr 2015 19:43:24 +0000 (19:43 +0000)]
am 08a7c792: Merge "Remove gamma correction from color correction shader"

* commit '08a7c79284dd1cda095b79e5081fea0b0b4ec151':
  Remove gamma correction from color correction shader

9 years agoMerge "Remove gamma correction from color correction shader"
Dan Stoza [Thu, 30 Apr 2015 19:36:24 +0000 (19:36 +0000)]
Merge "Remove gamma correction from color correction shader"

9 years agoam f0c17b08: Merge "Avoid closing invalid FD in Surface and GraphicBufferMapper"
Dan Stoza [Thu, 30 Apr 2015 16:46:46 +0000 (16:46 +0000)]
am f0c17b08: Merge "Avoid closing invalid FD in Surface and GraphicBufferMapper"

* commit 'f0c17b0831512cc700414d12dee1e84fb174bbbe':
  Avoid closing invalid FD in Surface and GraphicBufferMapper

9 years agoMerge "Avoid closing invalid FD in Surface and GraphicBufferMapper"
Dan Stoza [Thu, 30 Apr 2015 16:34:11 +0000 (16:34 +0000)]
Merge "Avoid closing invalid FD in Surface and GraphicBufferMapper"

9 years agoAvoid closing invalid FD in Surface and GraphicBufferMapper
Taiju Tsuiki [Thu, 30 Apr 2015 13:13:14 +0000 (22:13 +0900)]
Avoid closing invalid FD in Surface and GraphicBufferMapper

GraphicBufferMapper::lockAsync{,YCbCr} close the fence FD even when the FD
is invalid.

Change-Id: Ia2b4dae3b2c06426e34f623f19ba92435f486ab7

9 years agoClose Fence FDs in error cases of Surface and GraphicBufferMapper
Taiju Tsuiki [Thu, 30 Apr 2015 13:15:33 +0000 (22:15 +0900)]
Close Fence FDs in error cases of Surface and GraphicBufferMapper

Surface::{cancel,queue}Buffer and GraphicBufferMapper::lockAsyncYCbCr take the
ownership of |fenceFd|s. Though they don't close it on error cases.

Change-Id: I49a7ce8837d5c510c4ac4ad4649f310d18610e80

9 years agoRemove gamma correction from color correction shader
Alan Viverette [Wed, 29 Apr 2015 00:15:57 +0000 (17:15 -0700)]
Remove gamma correction from color correction shader

Gamma correction was incorrectly skewing both color inversion and
Daltonization, which resulted in washed-out colors.

Bug: 20346301
Change-Id: I34d879f902c3be115b2d23f09c3ed3902799759e
(cherry picked from commit 3acd9f1d8fdffc0ed0837ebbabcac0c4014015b3)

9 years agoam 8de71a24: Merge "BufferQueue: Add NATIVE_WINDOW_BUFFER_AGE query"
Dan Stoza [Wed, 29 Apr 2015 17:30:48 +0000 (17:30 +0000)]
am 8de71a24: Merge "BufferQueue: Add NATIVE_WINDOW_BUFFER_AGE query"

* commit '8de71a2408f632407c25942a39c31f78c7f64ffd':
  BufferQueue: Add NATIVE_WINDOW_BUFFER_AGE query

9 years agoam ca8c5695: Merge "libgui: Implement onTransact for sideband streams"
Dan Stoza [Wed, 29 Apr 2015 17:30:45 +0000 (17:30 +0000)]
am ca8c5695: Merge "libgui: Implement onTransact for sideband streams"

* commit 'ca8c569598d79b4bbe4fc08a4ea97619df3b7262':
  libgui: Implement onTransact for sideband streams

9 years agoMerge "BufferQueue: Add NATIVE_WINDOW_BUFFER_AGE query"
Dan Stoza [Wed, 29 Apr 2015 17:21:49 +0000 (17:21 +0000)]
Merge "BufferQueue: Add NATIVE_WINDOW_BUFFER_AGE query"

9 years agoMerge "libgui: Implement onTransact for sideband streams"
Dan Stoza [Wed, 29 Apr 2015 17:17:52 +0000 (17:17 +0000)]
Merge "libgui: Implement onTransact for sideband streams"

9 years agoam becd89d1: Merge "Parcel.cpp: use calloc instead of malloc"
Nick Kralevich [Wed, 29 Apr 2015 04:24:47 +0000 (04:24 +0000)]
am becd89d1: Merge "Parcel.cpp: use calloc instead of malloc"

* commit 'becd89d185e53eb9ba3ddc24342e0f229dde6175':
  Parcel.cpp: use calloc instead of malloc

9 years agoMerge "Parcel.cpp: use calloc instead of malloc"
Nick Kralevich [Wed, 29 Apr 2015 04:16:23 +0000 (04:16 +0000)]
Merge "Parcel.cpp: use calloc instead of malloc"

9 years agoParcel.cpp: use calloc instead of malloc
Nick Kralevich [Tue, 28 Apr 2015 23:21:30 +0000 (16:21 -0700)]
Parcel.cpp: use calloc instead of malloc

Bug: 20669363
Change-Id: Ia4c8d8ca9d8b4b87954d7267e8b1c94cf4e570e1

9 years agoBufferQueue: Add NATIVE_WINDOW_BUFFER_AGE query
Dan Stoza [Thu, 26 Feb 2015 00:49:08 +0000 (16:49 -0800)]
BufferQueue: Add NATIVE_WINDOW_BUFFER_AGE query

Adds a NATIVE_WINDOW_BUFFER_AGE query, which returns the age of the
contents of the most recently dequeued buffer as the number of frames
that have elapsed since it was last queued.

Change-Id: Ib6fd62945cb62d1e60133a65beee510363218a23

9 years agolibgui: Implement onTransact for sideband streams
Dan Stoza [Tue, 28 Apr 2015 20:18:07 +0000 (13:18 -0700)]
libgui: Implement onTransact for sideband streams

Implements the GET_SIDEBAND_STREAM case of
IGraphicBufferConsumer::onTransact

Change-Id: I46138b87ce2d70dde48b3561dcd378ce5fd8f383

9 years agoam b5c7ccfd: Merge "libgui: Change detachNextBuffer to return sp<GB>"
Dan Stoza [Tue, 28 Apr 2015 17:46:44 +0000 (17:46 +0000)]
am b5c7ccfd: Merge "libgui: Change detachNextBuffer to return sp<GB>"

* commit 'b5c7ccfdc7eb5b0ab8d22084000e9c39092ccd0e':
  libgui: Change detachNextBuffer to return sp<GB>

9 years agoMerge "libgui: Change detachNextBuffer to return sp<GB>"
Dan Stoza [Tue, 28 Apr 2015 17:36:54 +0000 (17:36 +0000)]
Merge "libgui: Change detachNextBuffer to return sp<GB>"

9 years agolibgui: Change detachNextBuffer to return sp<GB>
Dan Stoza [Mon, 27 Apr 2015 18:06:01 +0000 (11:06 -0700)]
libgui: Change detachNextBuffer to return sp<GB>

Changes Surface::detachNextBuffer to return an sp<GraphicBuffer>
instead of an ANativeWindowBuffer* to ensure that reference counting
works correctly.

Bug: 20092217
Change-Id: I3979ea6121aaf14845f0554477b778770413581e

9 years agoam bec3de4a: Merge "Installd: Add debug.gencfi to run_dex2oat"
Andreas Gampe [Mon, 27 Apr 2015 15:44:08 +0000 (15:44 +0000)]
am bec3de4a: Merge "Installd: Add debug.gencfi to run_dex2oat"

* commit 'bec3de4ac527f8df1b3fd1b3d0ee2feaa633646a':
  Installd: Add debug.gencfi to run_dex2oat

9 years agoMerge "Installd: Add debug.gencfi to run_dex2oat"
Andreas Gampe [Mon, 27 Apr 2015 15:14:42 +0000 (15:14 +0000)]
Merge "Installd: Add debug.gencfi to run_dex2oat"

9 years agoInstalld: Add debug.gencfi to run_dex2oat
Andreas Gampe [Fri, 24 Apr 2015 21:30:04 +0000 (14:30 -0700)]
Installd: Add debug.gencfi to run_dex2oat

Add the debug.gencfi system property that forces generation of
CFI data.

Change-Id: Ida66f8c1567634d05cfdbba1a982be3684e94369

9 years agoam 7ecc8952: Merge "Check orientation range has been initialized first"
Michael Wright [Mon, 27 Apr 2015 14:24:58 +0000 (14:24 +0000)]
am 7ecc8952: Merge "Check orientation range has been initialized first"

* commit '7ecc8952c47009bca8d286d374a978bd305247d5':
  Check orientation range has been initialized first

9 years agoMerge "Check orientation range has been initialized first"
Michael Wright [Mon, 27 Apr 2015 14:13:21 +0000 (14:13 +0000)]
Merge "Check orientation range has been initialized first"

9 years agoam 958f5011: Merge "libgui: Allow an IGBProducer to disable allocation"
Dan Stoza [Fri, 24 Apr 2015 16:00:22 +0000 (16:00 +0000)]
am 958f5011: Merge "libgui: Allow an IGBProducer to disable allocation"

* commit '958f501189a29e53767f41bc8172e4af8d1ce2bf':
  libgui: Allow an IGBProducer to disable allocation

9 years agoam fb6d43ff: Merge "libgui: Change BufferQueue to use free lists"
Dan Stoza [Fri, 24 Apr 2015 16:00:21 +0000 (16:00 +0000)]
am fb6d43ff: Merge "libgui: Change BufferQueue to use free lists"

* commit 'fb6d43ff44bb2b708494749a7f6037505ccd7bf6':
  libgui: Change BufferQueue to use free lists

9 years agoMerge "libgui: Allow an IGBProducer to disable allocation"
Dan Stoza [Fri, 24 Apr 2015 15:50:09 +0000 (15:50 +0000)]
Merge "libgui: Allow an IGBProducer to disable allocation"

9 years agoMerge "libgui: Change BufferQueue to use free lists"
Dan Stoza [Fri, 24 Apr 2015 15:48:37 +0000 (15:48 +0000)]
Merge "libgui: Change BufferQueue to use free lists"

9 years agoam 56f1f16c: Merge "libgui: Fix some bitrot/warnings in tests"
Dan Stoza [Thu, 23 Apr 2015 23:02:49 +0000 (23:02 +0000)]
am 56f1f16c: Merge "libgui: Fix some bitrot/warnings in tests"

* commit '56f1f16c7b01a53282d483259ae80d035cc6496b':
  libgui: Fix some bitrot/warnings in tests

9 years agoam 82e4d49b: Merge "libui/libgui: Fix errors in parceling"
Dan Stoza [Thu, 23 Apr 2015 23:02:48 +0000 (23:02 +0000)]
am 82e4d49b: Merge "libui/libgui: Fix errors in parceling"

* commit '82e4d49b0ecb205d49f02cc07496f7508c56443c':
  libui/libgui: Fix errors in parceling

9 years agoMerge "libgui: Fix some bitrot/warnings in tests"
Dan Stoza [Thu, 23 Apr 2015 22:53:36 +0000 (22:53 +0000)]
Merge "libgui: Fix some bitrot/warnings in tests"

9 years agoMerge "libui/libgui: Fix errors in parceling"
Dan Stoza [Thu, 23 Apr 2015 22:51:00 +0000 (22:51 +0000)]
Merge "libui/libgui: Fix errors in parceling"

9 years agolibgui: Allow an IGBProducer to disable allocation
Dan Stoza [Fri, 17 Apr 2015 00:28:43 +0000 (17:28 -0700)]
libgui: Allow an IGBProducer to disable allocation

Adds a new method IGBP::allowAllocation, which controls whether
dequeueBuffer is permitted to allocate a new buffer. If allocation is
disallowed, dequeueBuffer will block or return an error as it
normally would (as controlled by *ControlledByApp).

If there are free buffers, but they are not of the correct dimensions,
format, or usage, they may be freed if a more suitable buffer is not
found first.

Bug: 19801715
Change-Id: I0d604958b78b2fd775c2547690301423f9a52165

9 years agolibgui: Change BufferQueue to use free lists
Dan Stoza [Thu, 23 Apr 2015 20:20:51 +0000 (13:20 -0700)]
libgui: Change BufferQueue to use free lists

BufferQueue used to choose free buffers by scanning through its array
of slots and picking one based on timestamp. This changes that
mechanism to use a pair of free lists: one with buffers attached and
one without. This makes it easier to choose either type of free slot
depending on the needs of the current operation.

Fixes an issue with the first version of this change, found in bugs
2048295220443314, and 20464549.

Bug: 13175420
Change-Id: I9b6e83cfe8f9b4329a976025cb8e291d51fb6d4a

9 years agoam de5c15b8: Merge "SF: Always perform sideband transactions"
Dan Stoza [Thu, 23 Apr 2015 00:06:03 +0000 (00:06 +0000)]
am de5c15b8: Merge "SF: Always perform sideband transactions"

* commit 'de5c15b8bd12143829d043fa4ab457600e5682b3':
  SF: Always perform sideband transactions

9 years agoMerge "SF: Always perform sideband transactions"
Dan Stoza [Wed, 22 Apr 2015 23:57:28 +0000 (23:57 +0000)]
Merge "SF: Always perform sideband transactions"

9 years agoSF: Always perform sideband transactions
Dan Stoza [Wed, 22 Apr 2015 21:59:08 +0000 (14:59 -0700)]
SF: Always perform sideband transactions

On normal Layers, we defer applying resize transactions until a buffer
of the correct size arrives. This breaks with sideband streams, because
buffers are not seen by SurfaceFlinger. This change applies
transactions immediately for Layers which have a sideband stream
attached to avoid that problem.

Bug: 20428254
Change-Id: I379d8aaef460d467cdf8432764b4a504928fb65a
(cherry picked from commit c300b8b506536e1bf94ffd8a3b75d46e776923e0)

9 years agoam 7637e35d: Merge "Revert "libgui: Change BufferQueue to use free lists""
Dan Stoza [Wed, 22 Apr 2015 19:07:10 +0000 (19:07 +0000)]
am 7637e35d: Merge "Revert "libgui: Change BufferQueue to use free lists""

* commit '7637e35d17e06d532b0d2d11c0eef60594726209':
  Revert "libgui: Change BufferQueue to use free lists"

9 years agoMerge "Revert "libgui: Change BufferQueue to use free lists""
Dan Stoza [Wed, 22 Apr 2015 18:59:01 +0000 (18:59 +0000)]
Merge "Revert "libgui: Change BufferQueue to use free lists""

9 years agoRevert "libgui: Change BufferQueue to use free lists"
Dan Stoza [Wed, 22 Apr 2015 18:57:39 +0000 (18:57 +0000)]
Revert "libgui: Change BufferQueue to use free lists"

This reverts commit 8dddc990103b71137be2a6365a26b1ac36598e68.

Change-Id: I0b0fed9f1394c6f6ae812f6c562ead4473a8226e

9 years agoam e647ddde: Merge "libgui: Fix CPU rendering on Surface"
Dan Stoza [Wed, 22 Apr 2015 00:17:33 +0000 (00:17 +0000)]
am e647ddde: Merge "libgui: Fix CPU rendering on Surface"

* commit 'e647dddebb11a383c0d95b6dfd0cbe0998d9b644':
  libgui: Fix CPU rendering on Surface

9 years agoMerge "libgui: Fix CPU rendering on Surface"
Dan Stoza [Wed, 22 Apr 2015 00:07:51 +0000 (00:07 +0000)]
Merge "libgui: Fix CPU rendering on Surface"