OSDN Git Service

android-x86/frameworks-native.git
12 years agoMerge "minor Rect.h cleanup" into jb-dev
Mathias Agopian [Mon, 14 May 2012 23:09:32 +0000 (16:09 -0700)]
Merge "minor Rect.h cleanup" into jb-dev

12 years agoMerge "Ignore SIGPIPE is some of the tools used via bugreport" into jb-dev
JP Abgrall [Mon, 14 May 2012 17:49:07 +0000 (10:49 -0700)]
Merge "Ignore SIGPIPE is some of the tools used via bugreport" into jb-dev

12 years agominor Rect.h cleanup
Mathias Agopian [Mon, 14 May 2012 03:02:04 +0000 (20:02 -0700)]
minor Rect.h cleanup

add getBounds(), getWidth(), getHeight(), width() and height()
are kept for backward compatibility.

Change-Id: I83837abf17dc2f8bded1beff73430e8c7d9bbdb3

12 years agoIgnore SIGPIPE is some of the tools used via bugreport
JP Abgrall [Fri, 11 May 2012 21:14:09 +0000 (14:14 -0700)]
Ignore SIGPIPE is some of the tools used via bugreport

 adb bugreport > b & sleep 5; kill $?
will show that a bunch of tools will SIGPIPE when trying to output data
which is normal.
We don't have a way on linux (bsd yes), to set NOSIGPIPE on the file desc
passed down via fork/exec.

Bug: 6447319
Change-Id: I25b30a823addcff89d252f162d0a07035d4fdd3f

12 years agolibutils: add a tracing tag for video
Jamie Gennis [Fri, 11 May 2012 11:42:59 +0000 (04:42 -0700)]
libutils: add a tracing tag for video

Change-Id: Icbecc7184844e95ee81a558b0a54d5513d5cf59f

12 years agoSurfaceFlinger: add a crop to the layer state
Jamie Gennis [Fri, 11 May 2012 03:43:55 +0000 (20:43 -0700)]
SurfaceFlinger: add a crop to the layer state

This change adds a crop rectangle specified in window coordinates to the layer
state.  The all window pixels outside this crop rectangle are treated as though
they were fully transparent.  This change also adds the plumbing necessary for
WindowManager to set that crop.

Change-Id: I582bc445dc8c97d4c943d4db8d582a6ef5a66081

12 years agoMerge "Workaround for add_tid_to_cgroup failed to write" into jb-dev
Glenn Kasten [Fri, 11 May 2012 00:38:34 +0000 (17:38 -0700)]
Merge "Workaround for add_tid_to_cgroup failed to write" into jb-dev

12 years agoWorkaround for add_tid_to_cgroup failed to write
Glenn Kasten [Thu, 10 May 2012 22:50:19 +0000 (15:50 -0700)]
Workaround for add_tid_to_cgroup failed to write

Bug: 6467109
Change-Id: I6dff8e608d83c7a7c453c25c94ad100f113769b9

12 years agoSurfaceFlinger: recompute visible regions more
Jamie Gennis [Thu, 10 May 2012 21:37:14 +0000 (14:37 -0700)]
SurfaceFlinger: recompute visible regions more

This change makes a change in the crop, scaling mode, transform, or buffer
dimensions trigger a recomputation of the visible regions of a window.  With
the new cropping behavior for SCALING_MODE_FREEZE all of these can now affect
the visible region.

Bug: 6470541
Change-Id: I1904e47efbd708e28bf189f637d24dbef65cd41e

12 years agolibgui: improve some logging and dumping
Jamie Gennis [Thu, 10 May 2012 09:22:33 +0000 (02:22 -0700)]
libgui: improve some logging and dumping

This change updates some of the SurfaceTextureClient and BufferQueue logging
and dumping to include the crop, transform and scaling mode.  It also removes
the uses of the NO_SCALE_CROP scaling mode enum, which was added by accident in
a previous change.

Change-Id: I62912716a1e48885fb22f12b92678aa13f10fcd9
Bug: 6470541

12 years agoMerge "OMX IL header additions for FLAC" into jb-dev
Jean-Michel Trivi [Thu, 10 May 2012 16:53:44 +0000 (09:53 -0700)]
Merge "OMX IL header additions for FLAC" into jb-dev

12 years agoOMX IL header additions for FLAC
Jean-Michel Trivi [Mon, 30 Apr 2012 17:27:25 +0000 (10:27 -0700)]
OMX IL header additions for FLAC

Bug 5525503

Change-Id: I8d305d5351d3780f8ca933b8e602f2bf88e9ac78

12 years agoAdd callback hack to find out when to reload system properties.
Dianne Hackborn [Wed, 9 May 2012 01:54:22 +0000 (18:54 -0700)]
Add callback hack to find out when to reload system properties.

Every IBinder object can accept a new transaction to tell it that
it might want to reload system properties, and in the process
anyone can register a callback to be executed when this happens.

Use this to reload the trace property.

This is very much ONLY for debugging.

Change-Id: I55c67c46f8f3fa9073bef0dfaab4577ed1d47eb4

12 years agoSurfaceFlinger: SCALING_MODE_FREEZE cropping support
Jamie Gennis [Mon, 7 May 2012 20:51:53 +0000 (13:51 -0700)]
SurfaceFlinger: SCALING_MODE_FREEZE cropping support

This change adss support for applying a buffer crop to layers with the
SCALING_MODE_FREEZE scaling mode.  These layers do not scale the image, but
rather treat all pixels outside the crop rectangle as fully transparent.

Change-Id: I762518e56a37aef7747f9b581df2f2589b232c49
Bug: 6299171

12 years agoSurfaceFlinger: tell SurfaceTex about filtering
Jamie Gennis [Wed, 9 May 2012 00:05:52 +0000 (17:05 -0700)]
SurfaceFlinger: tell SurfaceTex about filtering

This change makes SurfaceFlinger set the filtering-enable on each layer's
SurfaceTexture before querying the texture matrix to use for GLES composition.

Change-Id: I40c3defd73ebf96e3cabb3bfdb1fc97f2036753a

12 years agoMerge "SurfaceTexture: improve texture matrix computation" into jb-dev
Jamie Gennis [Wed, 9 May 2012 19:52:25 +0000 (12:52 -0700)]
Merge "SurfaceTexture: improve texture matrix computation" into jb-dev

12 years agoMerge "libgui: Add support for post-xform crops." into jb-dev
Jamie Gennis [Wed, 9 May 2012 19:51:57 +0000 (12:51 -0700)]
Merge "libgui: Add support for post-xform crops." into jb-dev

12 years agoMerge "libui: add the Rect::transform method" into jb-dev
Jamie Gennis [Wed, 9 May 2012 19:51:39 +0000 (12:51 -0700)]
Merge "libui: add the Rect::transform method" into jb-dev

12 years agoSurfaceTexture: improve texture matrix computation
Jamie Gennis [Tue, 8 May 2012 23:56:34 +0000 (16:56 -0700)]
SurfaceTexture: improve texture matrix computation

This change reduces the shrinking of the crop rectangle in some cases.  It adds
a way to inform the SurfaceTexture that its texture will be used without
bilinear interpolation, and uses knowledge of the pixel format to avoid
shrinking unecessarily.

Change-Id: I72365f39f74ecb7fcc51b4cf42f2d0fa97727212

12 years agolibgui: Add support for post-xform crops.
Jamie Gennis [Mon, 7 May 2012 20:50:11 +0000 (13:50 -0700)]
libgui: Add support for post-xform crops.

This change adds support for specifying a crop rectangle to a
SurfaceTextureClient that is in post-transformed coordinate space.

Change-Id: I247901de343e71b32850f7ae3bac62dfa612ad3d
Bug: 6299171

12 years agoChange name of system property for traces.
Dianne Hackborn [Tue, 8 May 2012 21:54:24 +0000 (14:54 -0700)]
Change name of system property for traces.

This allows the property to be changed from the settings UI.

Change-Id: Ife7424b3549e5bbe51b6ad2fb8e5edde3a9fd608

12 years agoMerge "return errors properly in BitTube and SensorEventQueue" into jb-dev
Mathias Agopian [Tue, 8 May 2012 03:09:20 +0000 (20:09 -0700)]
Merge "return errors properly in BitTube and SensorEventQueue" into jb-dev

12 years agoreturn errors properly in BitTube and SensorEventQueue
Mathias Agopian [Mon, 7 May 2012 22:20:15 +0000 (15:20 -0700)]
return errors properly in BitTube and SensorEventQueue

Change-Id: Idf31179f9fcc666e287c7b01b2007431cb60127d

12 years agolibui: add the Rect::transform method
Jamie Gennis [Mon, 7 May 2012 20:49:17 +0000 (13:49 -0700)]
libui: add the Rect::transform method

This change adds a method to Rect to transform a rectangle by a graphics HAL
transform.

Change-Id: Ic0d0988e731bdb5662faee41a5927b1242891658
Bug: 6299171

12 years agoAdd audio tag to systrace
Glenn Kasten [Mon, 7 May 2012 18:08:31 +0000 (11:08 -0700)]
Add audio tag to systrace

Change-Id: I4a558c43e4ccd81a4ed94684c5fad6b3c486bd14

12 years agoMerge "Disable EGL hibernation due to jank" into jb-dev
Jesse Hall [Sat, 5 May 2012 00:14:57 +0000 (17:14 -0700)]
Merge "Disable EGL hibernation due to jank" into jb-dev

12 years agoMerge "set a Sensor's version properly" into jb-dev
Mathias Agopian [Fri, 4 May 2012 23:30:27 +0000 (16:30 -0700)]
Merge "set a Sensor's version properly" into jb-dev

12 years agoset a Sensor's version properly
Mathias Agopian [Fri, 4 May 2012 22:47:13 +0000 (15:47 -0700)]
set a Sensor's version properly

Bug: 6447433
Change-Id: Iaa5d074a8137d9543ea78c2c6f63a750774b3057

12 years agoDisable EGL hibernation due to jank
Jesse Hall [Fri, 4 May 2012 21:52:40 +0000 (14:52 -0700)]
Disable EGL hibernation due to jank

Hibernating EGL takes a long time (>100 ms) and blocks all other
rendering. During window animations, the outgoing activity begins
hibernation before the animation stops, causing visible stutter.
Hibernation is still available by setting 'BOARD_ALLOW_EGL_HIBERNATION
:= true' in the devices BoardConfig.mk

Change-Id: Iab4e00723a1adcd97481e81b2efdc821b3e9712f

12 years agoAdd System Tracing capability to Sync Manager
Andy Stadler [Thu, 3 May 2012 22:04:37 +0000 (15:04 -0700)]
Add System Tracing capability to Sync Manager

See also: Change-Id: Ia8bc01adbba345a568405b0ac8ade96e56b40cc1

Change-Id: I2678974cf85464fbc09072b06f647a0787e6e23f

12 years agoSurfaceTexture: fix a memory leak
Jamie Gennis [Wed, 2 May 2012 20:10:56 +0000 (13:10 -0700)]
SurfaceTexture: fix a memory leak

This change fixes a memory leak.

Bug: 6414806
Change-Id: I43536689b4219a042749aec2096a1d5c4e664ae3

12 years agodon't actuate vsync hint when not needed
Mathias Agopian [Fri, 27 Apr 2012 20:55:05 +0000 (13:55 -0700)]
don't actuate vsync hint when not needed

Change-Id: I61c43dd76041816ab8cbe9aeaa55c11c1479ed03

12 years agoset vsync power hint
Mathias Agopian [Thu, 26 Apr 2012 23:11:59 +0000 (16:11 -0700)]
set vsync power hint

Change-Id: I28c2faf9ff584df3e74392712971cbcf75eb9e98

12 years agoMerge "Add traces for window manager and activity manager." into jb-dev
Dianne Hackborn [Thu, 26 Apr 2012 22:24:00 +0000 (15:24 -0700)]
Merge "Add traces for window manager and activity manager." into jb-dev

12 years agoAdd traces for window manager and activity manager.
Dianne Hackborn [Thu, 26 Apr 2012 21:15:10 +0000 (14:15 -0700)]
Add traces for window manager and activity manager.

Change-Id: I6677ca64164f234efc7856ddd173ad6989b4f59e

12 years agoMerge "gldebugger: Allow connections from root user" into jb-dev
Siva Velusamy [Thu, 26 Apr 2012 20:37:43 +0000 (13:37 -0700)]
Merge "gldebugger: Allow connections from root user" into jb-dev

12 years agogldebugger: Allow connections from root user
Siva Velusamy [Thu, 26 Apr 2012 16:05:35 +0000 (09:05 -0700)]
gldebugger: Allow connections from root user

Change-Id: I26ce670ae93c43bd36843576e824a9d7acea644d

12 years agoDefine OMX_AUDIO_AACObjectELD
Dave Burke [Tue, 24 Apr 2012 23:06:50 +0000 (16:06 -0700)]
Define OMX_AUDIO_AACObjectELD

Change-Id: Icfbcbddb46fc0bf185e00b193462bc9e035c222b

12 years agoPixelFormat.UNKNOWN should return an error when queried
Mathias Agopian [Wed, 25 Apr 2012 06:27:31 +0000 (23:27 -0700)]
PixelFormat.UNKNOWN should return an error when queried

Bug: 6294260
Change-Id: Iad6f7bcbdda0a684abca6d9584da611a8b28f7ab

12 years agolibgui: Add plumbing for active rectangle
Jamie Gennis [Wed, 18 Apr 2012 02:36:18 +0000 (19:36 -0700)]
libgui: Add plumbing for active rectangle

This change adds the plumbing to SurfaceTextureClient, BufferQueue, and
SurfaceTexture to get the active rectangle passed to the ANativeWindow to
the buffer consumer.

Change-Id: I35da0889b266327ebb079b6a7136fa3e2e8b00e6

12 years agoSurfaceTexture: detachFromContext fixed
Daniel Lam [Thu, 19 Apr 2012 04:29:19 +0000 (21:29 -0700)]
SurfaceTexture: detachFromContext fixed

Fixed AttachToContextSucceeds test SurfaceTexture test by
not deleting the current texture when cleaning up memory.

Bug: 6363186
Change-Id: Ib886bfe6bb86e25ea4825d18b5008afba6b33eae

12 years agoadd a way to query whether an ANativeWindow consumer is running ahead of the producer
Mathias Agopian [Sat, 21 Apr 2012 00:19:28 +0000 (17:19 -0700)]
add a way to query whether an ANativeWindow consumer is running ahead of the producer

Change-Id: Ibccfa1feb56db2ab11f0c0934ce2d570a2b65ae2

12 years agoupdate the binder protocol for connect to match that of queueBuffer
Mathias Agopian [Mon, 23 Apr 2012 21:28:58 +0000 (14:28 -0700)]
update the binder protocol for connect to match that of queueBuffer

indeed, connect and queueBuffer return the same data, so it's
easier to have them use the same protocol.

Change-Id: I4f9fa3be0a80c9ab0a7a4039b282ae843aab02e1

12 years agoremove SurfaceTexture::connect()
Mathias Agopian [Mon, 23 Apr 2012 20:59:36 +0000 (13:59 -0700)]
remove SurfaceTexture::connect()

use BufferQueue::connect() instead

Change-Id: I04aab7cf11304bf962cde38470747f3b19ddba42

12 years agoMerge "triple buffering is now controled by BoardConfig and enabled by default"
Mathias Agopian [Tue, 24 Apr 2012 03:04:17 +0000 (20:04 -0700)]
Merge "triple buffering is now controled by BoardConfig and enabled by default"

12 years agotriple buffering is now controled by BoardConfig and enabled by default
Mathias Agopian [Tue, 24 Apr 2012 03:00:16 +0000 (20:00 -0700)]
triple buffering is now controled by BoardConfig and enabled by default

use TARGET_DISABLE_TRIPLE_BUFFERING := true to disable
triple buffering.

Change-Id: I9875d6ddefd23c1af9e51e7ee7dec1bacd1e6799

12 years agoMerge "Scheduling group cleanup"
Glenn Kasten [Tue, 24 Apr 2012 00:11:51 +0000 (17:11 -0700)]
Merge "Scheduling group cleanup"

12 years agoSF doesn't need more than a few binder threads
Mathias Agopian [Fri, 20 Apr 2012 00:31:53 +0000 (17:31 -0700)]
SF doesn't need more than a few binder threads

Change-Id: Ic4659fb81f9990cc7caf84a496a8ae659a1d16a9

12 years agoMerge "Added an EGLTest for eglTerminate"
Mathias Agopian [Fri, 20 Apr 2012 00:22:47 +0000 (17:22 -0700)]
Merge "Added an EGLTest for eglTerminate"

12 years agoAllow the crypto plugin to specify error detail if it returns an error
Andreas Huber [Thu, 19 Apr 2012 19:55:36 +0000 (12:55 -0700)]
Allow the crypto plugin to specify error detail if it returns an error

in the range ERROR_DRM_VENDOR_MIN..ERROR_DRM_VENDOR_MAX.

Change-Id: Ic5d53e98cf6d98d92ad305d51f848e03d0bf3a84
related-to-bug: 6365261

12 years agoScheduling group cleanup
Glenn Kasten [Fri, 16 Mar 2012 14:15:23 +0000 (07:15 -0700)]
Scheduling group cleanup

Remove C++ APIs androidSetThreadSchedulingGroup and
androidGetThreadSchedulingGroup, and the ANDROID_TGROUP_* constants.

Former callers of these should now use the C APIs set_sched_policy and
get_sched_policy, and the SP_* constants.

Note: debug.sys.noschedgroups is not supported by the C APIs,
this needs to be discussed.

Change-Id: I32bbfc539ef4090faf9ef0320380e8cca9eae07c

12 years agoSF needs to render even if we don't have a h/w composer
Mathias Agopian [Thu, 19 Apr 2012 01:33:19 +0000 (18:33 -0700)]
SF needs to render even if we don't have a h/w composer

Bug: 63505746361055
Change-Id: Iab92cc31bab4771fca63619c8e3105c759535f72

12 years agoMerge "add set thread count"
Mathias Agopian [Thu, 19 Apr 2012 01:36:16 +0000 (18:36 -0700)]
Merge "add set thread count"

12 years agoadd set thread count
Mathias Agopian [Tue, 17 Apr 2012 23:11:08 +0000 (16:11 -0700)]
add set thread count

Change-Id: I70f02908d8362a465eb8a2a24356f6989847f7ba

12 years agoFix BufferQueue verbose log
Eino-Ville Talvala [Wed, 18 Apr 2012 21:46:24 +0000 (14:46 -0700)]
Fix BufferQueue verbose log

Change-Id: Id80742b5c1fd2960cc2eda3a9ba2db1078df5320

12 years agoRemove fixed USAGE_HW_TEXTURE flag from BufferQueue.
Eino-Ville Talvala [Fri, 13 Apr 2012 22:16:31 +0000 (15:16 -0700)]
Remove fixed USAGE_HW_TEXTURE flag from BufferQueue.

USAGE_HW_TEXTURE applies to SurfaceTexture, not to all uses of
BufferQueue. Refactor accordingly.

Change-Id: Ic7add5e1f2bbec3d3e796ba7f15eaa0633945d8f

12 years agoMerge "Fix deadlock when cleaning objects in eglTerminate"
Jesse Hall [Wed, 18 Apr 2012 16:04:35 +0000 (09:04 -0700)]
Merge "Fix deadlock when cleaning objects in eglTerminate"

12 years agomake sure to clear the framebuffer when using overlays
Mathias Agopian [Wed, 18 Apr 2012 09:28:45 +0000 (02:28 -0700)]
make sure to clear the framebuffer when using overlays

Bug: 63547616353719
Change-Id: I0739de3fee7c54c14b294ffd768b70ee1f541d9e

12 years agoMerge "Support tokenizing arbitrary content."
Jeff Brown [Wed, 18 Apr 2012 01:20:55 +0000 (18:20 -0700)]
Merge "Support tokenizing arbitrary content."

12 years agoSupport tokenizing arbitrary content.
Jeff Brown [Wed, 18 Apr 2012 01:19:50 +0000 (18:19 -0700)]
Support tokenizing arbitrary content.

Bug: 6110399
Change-Id: I37be63b68934fd451e6dffbf7d6079553619c0a3

12 years agoSurfaceTexture: fix a memory leak
Jamie Gennis [Tue, 17 Apr 2012 20:07:45 +0000 (13:07 -0700)]
SurfaceTexture: fix a memory leak

This change fixes an issue where we were sometimes setting the SurfaceTexture's
EGLDisplay to EGL_NO_DISPLAY in detachFromContext, and then subsequently
abandoning the texture.  Abandoning while in the detached state would result in
the eglDestroyImageKHR calls failing, which resulted in a memory leak.

Bug: 6302694
Change-Id: I24c1de0dac029a83c7508075fb8aaeaed96a14ea

12 years agoMerge changes Id79430f9,I541d3046
Jamie Gennis [Tue, 17 Apr 2012 22:52:49 +0000 (15:52 -0700)]
Merge changes Id79430f9,I541d3046

* changes:
  BufferQueue: check before tracing buffer index
  SurfaceTexture: shrink all sides when cropping

12 years agoFix deadlock when cleaning objects in eglTerminate
Jesse Hall [Tue, 17 Apr 2012 19:02:26 +0000 (12:02 -0700)]
Fix deadlock when cleaning objects in eglTerminate

When eglTerminate() is called with a window surface still exists, a
deadlock would occur since egl_display_t::terminate() holds a lock
while destroying the window surface, which calls
onWindowSurfaceDestroyed() which attempts to take the same lock.

This change refactors the hibernation code and data into a separate
object with its own lock, separate from the egl_display_t lock. This
avoids the deadlock and better encapsulates the hibernation logic.

The change also fixes a bug discovered incidentally while debugging:
hibernating after calling eglTerminate() succeeds, but will cause
awakens from subsequent eglInitialize() to fail. We will no longer
hibernate a terminated display.

Change-Id: If55e5bb603d4f8953babc439ffc8d8a60af103d9

12 years agoMerge "double checked locking pattern is not safe on SMP"
Mathias Agopian [Tue, 17 Apr 2012 21:22:45 +0000 (14:22 -0700)]
Merge "double checked locking pattern is not safe on SMP"

12 years agoMerge "Add webview tracing bit"
Chris Craik [Tue, 17 Apr 2012 17:04:42 +0000 (10:04 -0700)]
Merge "Add webview tracing bit"

12 years agoAdded an EGLTest for eglTerminate
Daniel Lam [Tue, 17 Apr 2012 05:21:02 +0000 (22:21 -0700)]
Added an EGLTest for eglTerminate

This tests if eglTerminate can succeed while objects
are leaked.  Currently the test fails because of a deadlock.

Change-Id: Ibe26edfda28691284d0674e803e8d3114f3ce4c6

12 years agoBufferQueue: check before tracing buffer index
Jamie Gennis [Tue, 17 Apr 2012 03:34:58 +0000 (20:34 -0700)]
BufferQueue: check before tracing buffer index

This change adds a check on ATRACE_ENABLED before calling snprintf to trace the
buffer index.

Change-Id: Id79430f9c69706393efd3d10780a4cc97055e9e0

12 years agoSurfaceTexture: shrink all sides when cropping
Jamie Gennis [Mon, 16 Apr 2012 20:41:05 +0000 (13:41 -0700)]
SurfaceTexture: shrink all sides when cropping

This change makes SurfaceTexture include an offset for all sides of the crop
region when cropping.  This keeps the image centered, to minimize the visual
changes when switching between the texture transform matrix-based cropping and
something that does proper cropping (e.g. HWComposer).

Change-Id: I541d3046fd92e49221b488444df36d490924d1c5

12 years agodouble checked locking pattern is not safe on SMP
Mathias Agopian [Tue, 17 Apr 2012 02:30:56 +0000 (19:30 -0700)]
double checked locking pattern is not safe on SMP

Change-Id: Ie6dd564bdcd45647cb4d62ab259462e3db112576

12 years agofix Region const_iterator.
Mathias Agopian [Tue, 17 Apr 2012 01:40:30 +0000 (18:40 -0700)]
fix Region const_iterator.

- it returned an empty rect when the region was empty, instead
of returning an empty list of rect.

- also fixed an infinite loop when boolean_operation was given
an empty list of rects

Change-Id: I62225c7dcd2832025bb8f12e6cb3762f2a7b36cb

12 years agoAdd webview tracing bit
Chris Craik [Mon, 16 Apr 2012 23:09:16 +0000 (16:09 -0700)]
Add webview tracing bit

Change-Id: I82e54f5eeb2666a255e372fd3bfcc54c1b3d76a0

12 years agoMerge "don't attempt to clip layers anymore using glScissor"
Mathias Agopian [Mon, 16 Apr 2012 23:00:11 +0000 (16:00 -0700)]
Merge "don't attempt to clip layers anymore using glScissor"

12 years agoMerge "get rid off preserve backbuffer optimization in SF"
Mathias Agopian [Mon, 16 Apr 2012 22:59:59 +0000 (15:59 -0700)]
Merge "get rid off preserve backbuffer optimization in SF"

12 years agoMerge "s/w rendered apps can now use n-buffering (n>2)"
Mathias Agopian [Mon, 16 Apr 2012 22:59:39 +0000 (15:59 -0700)]
Merge "s/w rendered apps can now use n-buffering (n>2)"

12 years agodon't attempt to clip layers anymore using glScissor
Mathias Agopian [Mon, 16 Apr 2012 10:14:05 +0000 (03:14 -0700)]
don't attempt to clip layers anymore using glScissor

this seems to hurt performance on some GPU. this change
might negatively affect performance on other GPUs though, but
probably in less time-sensitive cases. If this becomes a
problem it might become necessary to pre-clip the geometry
(so that we don't have to use glScissor).

This improves the rotation animation quite a bit.

Change-Id: I5dbe1286f7ad858ef2c1e1ad9a07ee3f26c0b1f3

12 years agoget rid off preserve backbuffer optimization in SF
Mathias Agopian [Mon, 16 Apr 2012 06:34:59 +0000 (23:34 -0700)]
get rid off preserve backbuffer optimization in SF

this optimization didn't improve performance and in fact
seemed to hurt more than anything else. it also made
things a lot more complex as it introduced edges cases
when switching to/from h/w composer.

Change-Id: Iaafc235e175f5740cd98bff914d706e02ab88bb8

12 years agomake sure to pass the transform-hint on ANW.connect
Mathias Agopian [Mon, 16 Apr 2012 07:08:26 +0000 (00:08 -0700)]
make sure to pass the transform-hint on ANW.connect

this optimization was probably lost during ST refactoring.

Change-Id: I845978c4b718cb91941d15b30484837f19714abe

12 years agoMerge "make sure to repaint the screen when screen turns on"
Mathias Agopian [Fri, 13 Apr 2012 23:21:06 +0000 (16:21 -0700)]
Merge "make sure to repaint the screen when screen turns on"

12 years agomake sure to repaint the screen when screen turns on
Mathias Agopian [Fri, 13 Apr 2012 23:18:55 +0000 (16:18 -0700)]
make sure to repaint the screen when screen turns on

Bug: 6336168
Change-Id: Ic6f11b6bf6c3d849f5cb6ac95961d10d7f88e4ec

12 years agos/w rendered apps can now use n-buffering (n>2)
Mathias Agopian [Thu, 12 Apr 2012 23:32:37 +0000 (16:32 -0700)]
s/w rendered apps can now use n-buffering (n>2)

Bug: 6311881
Change-Id: I6e52e281e8d432430aad011f6d9dcf35d7b4ac7d

12 years agoMove com.nxp.mifare to frameworks/native.
Martijn Coenen [Fri, 13 Apr 2012 04:23:28 +0000 (21:23 -0700)]
Move com.nxp.mifare to frameworks/native.

Change-Id: I4dbec41cbf062334af8d66780859736f0ee5dab3

12 years agodon't wake-up eventthread every 16ms if there are no vsync requests
Mathias Agopian [Fri, 13 Apr 2012 03:43:16 +0000 (20:43 -0700)]
don't wake-up eventthread every 16ms if there are no vsync requests

Bug: 6332534
Change-Id: Idf79ad913770c6180969f6c95a9b125fff580231

12 years agofix a typo causing pre-rotation to never work
Mathias Agopian [Fri, 13 Apr 2012 02:36:42 +0000 (19:36 -0700)]
fix a typo causing pre-rotation to never work

Change-Id: I8d698ec52d53ef1a553b887c7329413e1f49cc72

12 years agoEnabled cropping support in SurfaceTexture
Daniel Lam [Tue, 3 Apr 2012 22:54:58 +0000 (15:54 -0700)]
Enabled cropping support in SurfaceTexture

SurfaceTexture will modify the crop rect so it matches
the desired output aspect ratio when the scaling
mode is NATIVE_WINDOW_SCALING_MODE_CROP.  Added a test
for this new scaling mode.

Change-Id: I60f24dcbc294b65cd10a393d9e27d40f07d27bb6

12 years agoadd com.android.nfc_extras to native/ for pdk.
Ramanan Rajeswaran [Thu, 12 Apr 2012 20:11:23 +0000 (13:11 -0700)]
add com.android.nfc_extras to native/ for pdk.

Change-Id: Ife40ac33241878814f5d9e027e43cd176c57fb56

12 years agoMerge "Revert "handle surfaces posts independently from composition""
Mathias Agopian [Thu, 12 Apr 2012 03:45:32 +0000 (20:45 -0700)]
Merge "Revert "handle surfaces posts independently from composition""

12 years agoRevert "handle surfaces posts independently from composition"
Mathias Agopian [Thu, 12 Apr 2012 03:43:19 +0000 (20:43 -0700)]
Revert "handle surfaces posts independently from composition"

This reverts commit 562f4b2c1e555b853997113bb54b21303d642bc6.

Change-Id: I96efe11c2f0494ed2d57fc580e49c598d913830e

12 years agoSurfaceTexture: work around a compiler bug
Jamie Gennis [Thu, 12 Apr 2012 00:27:12 +0000 (17:27 -0700)]
SurfaceTexture: work around a compiler bug

This change works around a compiler bug with the GCC 4.6 toolchain.

Bug: 6292211
Change-Id: I004c4750d92a29f193a37d8e605a28fdc3b7f076

12 years agoSurfaceTexture: add a test for user sizes & prerotation
Jamie Gennis [Thu, 12 Apr 2012 00:20:03 +0000 (17:20 -0700)]
SurfaceTexture: add a test for user sizes & prerotation

This change adds 3 tests for:
- User-overridden buffer size
- Transform hint
- User-overridden buffer size with transform hint

Change-Id: Ib15ea354685e436822c506099613b2bffa7b68c9

12 years agoSurfaceTextureClient: support for application buffer dimensions
Michael I. Gold [Tue, 10 Apr 2012 02:46:29 +0000 (19:46 -0700)]
SurfaceTextureClient: support for application buffer dimensions

Add a new API native_window_set_buffers_user_dimensions to allow native
applications to override the native window size for the default buffer size.
This has lower precedence than the existing
native_window_set_buffers_dimensions and allows the two to co-exist.

Change-Id: Ie73590e1c94ef0dadbce500bd0941dfabbcace3c

12 years agohandle surfaces posts independently from composition
Mathias Agopian [Sun, 25 Mar 2012 00:47:24 +0000 (17:47 -0700)]
handle surfaces posts independently from composition

surfaceflinger will now handle each surface post
as soon as possible and handle the composition
itself at VSYNC time as usual.

Change-Id: I6b1ae33fd56062d86e5419ebab8def0ca5803fbf

12 years agoMerge "make sure to disable VSYNC while screen is off"
Mathias Agopian [Thu, 12 Apr 2012 01:13:55 +0000 (18:13 -0700)]
Merge "make sure to disable VSYNC while screen is off"

12 years agoMerge "rework screen on/off code"
Mathias Agopian [Wed, 11 Apr 2012 22:35:21 +0000 (15:35 -0700)]
Merge "rework screen on/off code"

12 years agomake sure to disable VSYNC while screen is off
Mathias Agopian [Wed, 11 Apr 2012 04:04:02 +0000 (21:04 -0700)]
make sure to disable VSYNC while screen is off

Change-Id: If1894c43b0a39a2851e1280a35ae77bccd6d9abd

12 years agoMerge "Add sdcard_r group to dumpstate."
Jeff Sharkey [Wed, 11 Apr 2012 19:31:43 +0000 (12:31 -0700)]
Merge "Add sdcard_r group to dumpstate."

12 years agoAdd sdcard_r group to dumpstate.
Jeff Sharkey [Wed, 11 Apr 2012 19:25:47 +0000 (12:25 -0700)]
Add sdcard_r group to dumpstate.

Bug: 6321962
Change-Id: I318cd88493396f3d8adb5d4d0fc7a12ee40ba737

12 years agorework screen on/off code
Mathias Agopian [Wed, 11 Apr 2012 05:09:54 +0000 (22:09 -0700)]
rework screen on/off code

Change-Id: I13f71e850592a588bbd4805b1830c503bd4decb4

12 years agoAdded vsync debugging information in dumpsys log
Mathias Agopian [Wed, 11 Apr 2012 01:25:31 +0000 (18:25 -0700)]
Added vsync debugging information in dumpsys log

Change-Id: I20ef05a73d89caaf6a70dc9ca25ada6e6a1f6ff9

12 years agouse in/out structures for queueBuffer() IPC
Mathias Agopian [Mon, 9 Apr 2012 23:14:01 +0000 (16:14 -0700)]
use in/out structures for queueBuffer() IPC

Change-Id: Ie125df2444b62a9a2200586a717dca268852afc9

12 years agoMerge "BufferQueue returns proper code on acquire"
Mathias Agopian [Wed, 11 Apr 2012 01:53:50 +0000 (18:53 -0700)]
Merge "BufferQueue returns proper code on acquire"