OSDN Git Service

android-x86/frameworks-native.git
11 years agoam 19733a32: minor clean-up of the GLESRenderer
Mathias Agopian [Thu, 29 Aug 2013 01:40:14 +0000 (18:40 -0700)]
am 19733a32: minor clean-up of the GLESRenderer

* commit '19733a32799f792125913e746e8644d16f8dc223':
  minor clean-up of the GLESRenderer

11 years agoam 931bda1c: reset the gl viewport at each frame for each display
Mathias Agopian [Thu, 29 Aug 2013 01:17:28 +0000 (18:17 -0700)]
am 931bda1c: reset the gl viewport at each frame for each display

* commit '931bda1c472ba8c8e965bdba6757ff94154df903':
  reset the gl viewport at each frame for each display

11 years agominor clean-up of the GLESRenderer
Mathias Agopian [Thu, 29 Aug 2013 01:13:56 +0000 (18:13 -0700)]
minor clean-up of the GLESRenderer

Change-Id: I978dea25b7687fbbbb283f09c24e115d9bad49a2

11 years agoreset the gl viewport at each frame for each display
Mathias Agopian [Thu, 29 Aug 2013 01:11:46 +0000 (18:11 -0700)]
reset the gl viewport at each frame for each display

Bug: 100971289506003
Change-Id: Ie0403a631e339a9134216224f3366f46ece58b53

11 years agoam 672ddf2b: remove adreno 130 workaround support
Mathias Agopian [Wed, 28 Aug 2013 22:49:37 +0000 (15:49 -0700)]
am 672ddf2b: remove adreno 130 workaround support

* commit '672ddf2b58b6c6ddef4fc4f296e5fa53910d8e3b':
  remove adreno 130 workaround support

11 years agoam f4486c6e: try to keep omap4 alive
Mathias Agopian [Wed, 28 Aug 2013 22:49:36 +0000 (15:49 -0700)]
am f4486c6e: try to keep omap4 alive

* commit 'f4486c6ea4bcb728ee0f38df7a8ec75c389d9d2e':
  try to keep omap4 alive

11 years agoremove adreno 130 workaround support
Mathias Agopian [Wed, 28 Aug 2013 22:27:30 +0000 (15:27 -0700)]
remove adreno 130 workaround support

Change-Id: I8ea5ee65d405114b30cfaa44e1a0c971d1ef2a61

11 years agotry to keep omap4 alive
Mathias Agopian [Wed, 28 Aug 2013 22:22:29 +0000 (15:22 -0700)]
try to keep omap4 alive

Bug: 10527646
Change-Id: Iec572a910e932115cf4f2e1215142b10cd91bd6f

11 years agoam 05f0a81a: Merge "Add libpng include path"
John Reck [Tue, 27 Aug 2013 16:54:06 +0000 (09:54 -0700)]
am 05f0a81a: Merge "Add libpng include path"

* commit '05f0a81a93f0d41fa4115c752e617849d145fe5b':
  Add libpng include path

11 years agoMerge "Add libpng include path"
John Reck [Tue, 27 Aug 2013 16:49:46 +0000 (16:49 +0000)]
Merge "Add libpng include path"

11 years agoAdd libpng include path
John Reck [Mon, 26 Aug 2013 23:48:46 +0000 (16:48 -0700)]
Add libpng include path

 Forward compatibility change

Change-Id: Iae792715d9a9aea34f53cd6383981371835c4a31

11 years agoam f2e4fcd9: Merge changes I34935d21,If423cd29 into klp-dev
Mathias Agopian [Mon, 26 Aug 2013 22:03:24 +0000 (15:03 -0700)]
am f2e4fcd9: Merge changes I34935d21,If423cd29 into klp-dev

* commit 'f2e4fcd96c11861bd0af1a9525344c1b691c9de9':
  handle several vsync signal correctly
  only use format compatible with CPU consumers

11 years agoam ed127ea3: Merge "make sure SF initialization is ran at target priority and correct...
Mathias Agopian [Mon, 26 Aug 2013 22:03:23 +0000 (15:03 -0700)]
am ed127ea3: Merge "make sure SF initialization is ran at target priority and correct thread group" into klp-dev

* commit 'ed127ea3834045597a072dcf31877ff3084582ff':
  make sure SF initialization is ran at target priority and correct thread group

11 years agoam bcab7b17: fix DimLayer in GLES2.0 SF
Mathias Agopian [Mon, 26 Aug 2013 22:03:19 +0000 (15:03 -0700)]
am bcab7b17: fix DimLayer in GLES2.0 SF

* commit 'bcab7b17b1c5476935a6f2f916922b4eb57991a4':
  fix DimLayer in GLES2.0 SF

11 years agoMerge changes I34935d21,If423cd29 into klp-dev
Mathias Agopian [Sat, 24 Aug 2013 00:12:41 +0000 (00:12 +0000)]
Merge changes I34935d21,If423cd29 into klp-dev

* changes:
  handle several vsync signal correctly
  only use format compatible with CPU consumers

11 years agoMerge "make sure SF initialization is ran at target priority and correct thread group...
Mathias Agopian [Sat, 24 Aug 2013 00:12:05 +0000 (00:12 +0000)]
Merge "make sure SF initialization is ran at target priority and correct thread group" into klp-dev

11 years agomake sure SF initialization is ran at target priority and correct thread group
Mathias Agopian [Fri, 23 Aug 2013 22:56:38 +0000 (15:56 -0700)]
make sure SF initialization is ran at target priority and correct thread group

SF can spawn threads (indirectly) during initialization
and we want those to be spawned at URGENT_DISPLAY_PRIORITY
(in theory they should set their own, but some code lives
in vendor libraries and doesn't).

Bug: 10430209
Change-Id: I5b3a8f979297de287614c8eafd8267bef1176e4b

11 years agofix DimLayer in GLES2.0 SF
Mathias Agopian [Fri, 23 Aug 2013 23:12:34 +0000 (16:12 -0700)]
fix DimLayer in GLES2.0 SF

DimLayer state wasn't initialized properly.

Bug: 10442967
Change-Id: I384c1d85c58c96ae29d5daa1fabee9f4ce003501

11 years agoam 464febc4: Remove input flinger stubs. (DO NOT MERGE)
Jeff Brown [Fri, 23 Aug 2013 02:34:04 +0000 (19:34 -0700)]
am 464febc4: Remove input flinger stubs.  (DO NOT MERGE)

* commit '464febc44908fb4a8fca9e513ba8469750dde838':
  Remove input flinger stubs.  (DO NOT MERGE)

11 years agoRemove input flinger stubs. (DO NOT MERGE)
Jeff Brown [Fri, 23 Aug 2013 01:34:33 +0000 (18:34 -0700)]
Remove input flinger stubs.  (DO NOT MERGE)

Bug: 10446930
Change-Id: I4dd46f539cd2a2e324dfc83b45ba2787f7404a4a

11 years agoam 39bfc698: Merge "Add ability to test supported content types to MediaDrm" into...
Jeff Tinker [Thu, 22 Aug 2013 23:13:15 +0000 (16:13 -0700)]
am 39bfc698: Merge "Add ability to test supported content types to MediaDrm" into klp-dev

* commit '39bfc6989259c5d24fd43f3d7fa7e967a4b17aac':
  Add ability to test supported content types to MediaDrm

11 years agoMerge "Add ability to test supported content types to MediaDrm" into klp-dev
Jeff Tinker [Thu, 22 Aug 2013 23:08:09 +0000 (23:08 +0000)]
Merge "Add ability to test supported content types to MediaDrm" into klp-dev

11 years agoam b6aea00c: Merge "Surface: Fix controlledByApp parameter" into klp-dev
Eino-Ville Talvala [Thu, 22 Aug 2013 19:26:51 +0000 (12:26 -0700)]
am b6aea00c: Merge "Surface: Fix controlledByApp parameter" into klp-dev

* commit 'b6aea00c7843705fdc6d265d7e15b3df52e86009':
  Surface: Fix controlledByApp parameter

11 years agoMerge "Surface: Fix controlledByApp parameter" into klp-dev
Eino-Ville Talvala [Thu, 22 Aug 2013 19:23:27 +0000 (19:23 +0000)]
Merge "Surface: Fix controlledByApp parameter" into klp-dev

11 years agohandle several vsync signal correctly
Mathias Agopian [Thu, 22 Aug 2013 00:45:46 +0000 (17:45 -0700)]
handle several vsync signal correctly

Change-Id: I34935d2197ce8e914fef2f110896e47b44225ad2

11 years agoonly use format compatible with CPU consumers
Mathias Agopian [Wed, 21 Aug 2013 23:36:34 +0000 (16:36 -0700)]
only use format compatible with CPU consumers

EGL now picks the buffer format out of a small set
of formats compatible with CPU consumers instead of
using the EGL_NATIVE_VISUAL_ID.

Bug: 10194508
Change-Id: If423cd29601b7a3ace8670f4c73004132cfc4b31

11 years agoAdd ability to test supported content types to MediaDrm
Jeff Tinker [Wed, 21 Aug 2013 18:57:40 +0000 (11:57 -0700)]
Add ability to test supported content types to MediaDrm

bug: 10244066
Change-Id: I6666d0dbfdc6e791deb9a82c918255af4fa19816

11 years agoam 4ceff3d5: screenshot layers wouldn\'t work in some cases
Mathias Agopian [Wed, 21 Aug 2013 22:59:20 +0000 (15:59 -0700)]
am 4ceff3d5: screenshot layers wouldn\'t work in some cases

* commit '4ceff3d5efd27c164788bb2b3f0fd17c691a0204':
  screenshot layers wouldn't work in some cases

11 years agoscreenshot layers wouldn't work in some cases
Mathias Agopian [Wed, 21 Aug 2013 22:23:15 +0000 (15:23 -0700)]
screenshot layers wouldn't work in some cases

specifically when the display size and the screenshot window
size didn't match, the buffer would be rejected.
We simply fix this by setting the scalling mode to
"SCALE_TO_WINDOW".

Bug: 9992306
Change-Id: Ib821767899af330bb70d3cbbfa7d41b02794a075

11 years agoam 56968ec0: Merge "dumpstate: Fix wifi list of networks dump" into klp-dev
Dmitry Shmidt [Wed, 21 Aug 2013 19:38:25 +0000 (12:38 -0700)]
am 56968ec0: Merge "dumpstate: Fix wifi list of networks dump" into klp-dev

* commit '56968ec0bfbe70b76193a2614a23beacfc9cf9dc':
  dumpstate: Fix wifi list of networks dump

11 years agoMerge "dumpstate: Fix wifi list of networks dump" into klp-dev
Dmitry Shmidt [Wed, 21 Aug 2013 19:35:25 +0000 (19:35 +0000)]
Merge "dumpstate: Fix wifi list of networks dump" into klp-dev

11 years agoSurface: Fix controlledByApp parameter
Eino-Ville Talvala [Wed, 21 Aug 2013 18:53:37 +0000 (11:53 -0700)]
Surface: Fix controlledByApp parameter

Bug: 10425641
Change-Id: I1a47e2ce4ecbdb8e67030a5d9ddf6604c5e2497d

11 years agoam a525483d: Merge "Fix a bug where non-cropped layer could be scaled incorrectly...
Mathias Agopian [Wed, 21 Aug 2013 18:56:48 +0000 (11:56 -0700)]
am a525483d: Merge "Fix a bug where non-cropped layer could be scaled incorrectly" into klp-dev

* commit 'a525483dc73df39a72c9b4865102a86704b3622c':
  Fix a bug where non-cropped layer could be scaled incorrectly

11 years agoMerge "Fix a bug where non-cropped layer could be scaled incorrectly" into klp-dev
Mathias Agopian [Wed, 21 Aug 2013 18:55:19 +0000 (18:55 +0000)]
Merge "Fix a bug where non-cropped layer could be scaled incorrectly" into klp-dev

11 years agodumpstate: Fix wifi list of networks dump
Dmitry Shmidt [Wed, 21 Aug 2013 17:58:29 +0000 (10:58 -0700)]
dumpstate: Fix wifi list of networks dump

Bug: 9056601

Change-Id: Ia0adb67afdf3d478033d0ee34bbb95e621e2fe51
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
11 years agoam d2cf8c2f: Merge "Provide HWC prepare with a valid output buffer" into klp-dev
Jesse Hall [Wed, 21 Aug 2013 14:41:23 +0000 (07:41 -0700)]
am d2cf8c2f: Merge "Provide HWC prepare with a valid output buffer" into klp-dev

* commit 'd2cf8c2f07b4285a224acd262e6f052c37dbc0b0':
  Provide HWC prepare with a valid output buffer

11 years agoam 7127d17d: Merge "Fix HWComposer dumping of float source crops" into klp-dev
Jesse Hall [Wed, 21 Aug 2013 14:41:23 +0000 (07:41 -0700)]
am 7127d17d: Merge "Fix HWComposer dumping of float source crops" into klp-dev

* commit '7127d17db148ad388a4eb3c152d4c257c6015476':
  Fix HWComposer dumping of float source crops

11 years agoMerge "Provide HWC prepare with a valid output buffer" into klp-dev
Jesse Hall [Wed, 21 Aug 2013 14:38:51 +0000 (14:38 +0000)]
Merge "Provide HWC prepare with a valid output buffer" into klp-dev

11 years agoMerge "Fix HWComposer dumping of float source crops" into klp-dev
Jesse Hall [Wed, 21 Aug 2013 14:37:50 +0000 (14:37 +0000)]
Merge "Fix HWComposer dumping of float source crops" into klp-dev

11 years agoam 32551478: Merge "Fix virtual displays for HWC 1.0" into klp-dev
Andy McFadden [Wed, 21 Aug 2013 14:33:46 +0000 (07:33 -0700)]
am 32551478: Merge "Fix virtual displays for HWC 1.0" into klp-dev

* commit '32551478fc5417d3b7b5e33a202eb6ca66061f7d':
  Fix virtual displays for HWC 1.0

11 years agoMerge "Fix virtual displays for HWC 1.0" into klp-dev
Andy McFadden [Wed, 21 Aug 2013 14:31:34 +0000 (14:31 +0000)]
Merge "Fix virtual displays for HWC 1.0" into klp-dev

11 years agoFix a bug where non-cropped layer could be scaled incorrectly
Mathias Agopian [Wed, 21 Aug 2013 04:41:07 +0000 (21:41 -0700)]
Fix a bug where non-cropped layer could be scaled incorrectly

If a layer is not cropped but its bounds are outside of the
viewport (i.e.: clipped), the crop rectangle passed to
hw composer would be invalid because it started invalid
in the first place (to indicate "no crop").

Bug: 10410944
Change-Id: I4ae4d49a1adef0be7fa4304ecf84b1a5b7d03fe0

11 years agoProvide HWC prepare with a valid output buffer
Jesse Hall [Tue, 20 Aug 2013 23:35:32 +0000 (16:35 -0700)]
Provide HWC prepare with a valid output buffer

We weren't dequeing and setting the output buffer until just before
set(). This didn't allow HWC to make decisions in prepare() based on
the output buffer format, dimensions, etc.

Now we dequeue the output buffer at the beginning of the composition
loop and provide it to HWC in prepare. In GLES-only rendering, we may
have to cancel the buffer and acquire a new one if GLES requests a
buffer with properties different than the one we already dequeued.

Bug: 10365313
Change-Id: I96b4b0a851920e4334ef05080d58097d46467ab8

11 years agoFix HWComposer dumping of float source crops
Jesse Hall [Tue, 20 Aug 2013 23:11:50 +0000 (16:11 -0700)]
Fix HWComposer dumping of float source crops

Change-Id: I45a9344b5fab17ccb54bebd01382d738a03860e6

11 years agoFix virtual displays for HWC 1.0
Andy McFadden [Tue, 20 Aug 2013 23:04:47 +0000 (16:04 -0700)]
Fix virtual displays for HWC 1.0

We weren't swapping the buffers.

Bug 10366404

Change-Id: I43eb7648231bedf24899da6fc0d9acc09e0b047e

11 years agoam 4f4f0943: SurfaceFlinger now runs in the process\'s main thread
Mathias Agopian [Tue, 20 Aug 2013 21:36:37 +0000 (14:36 -0700)]
am 4f4f0943: SurfaceFlinger now runs in the process\'s main thread

* commit '4f4f0943489d9113c66ac22b58cfba8c21dfa879':
  SurfaceFlinger now runs in the process's main thread

11 years agoSurfaceFlinger now runs in the process's main thread
Mathias Agopian [Tue, 20 Aug 2013 00:26:18 +0000 (17:26 -0700)]
SurfaceFlinger now runs in the process's main thread

it used to spawn its own thread and return the main thread
to the binder thread pool -- this was confusing the naming
of things in the kernel.

Bug: 10331839

Change-Id: I2d13a6d73409a38109300fcbe6a04b4c41cb5d00

11 years agoam 8b308ed7: Fix build
Andy McFadden [Mon, 19 Aug 2013 16:51:16 +0000 (09:51 -0700)]
am 8b308ed7: Fix build

* commit '8b308ed70ed782f68c8075aac2a6b66bbfcdb9af':
  Fix build

11 years agoFix build
Andy McFadden [Mon, 19 Aug 2013 15:56:07 +0000 (08:56 -0700)]
Fix build

Neglected the "checkbuild"-built tests.

Change-Id: I202692f1a6d1e306c88e820c959d07d16e7c6a00

11 years agoam 90f59bf9: Merge "Re-enable frame dropping for non-auto timestamps" into klp-dev
Andy McFadden [Mon, 19 Aug 2013 14:29:11 +0000 (07:29 -0700)]
am 90f59bf9: Merge "Re-enable frame dropping for non-auto timestamps" into klp-dev

* commit '90f59bf9eba79b27629505bc2709d84e7c811c8b':
  Re-enable frame dropping for non-auto timestamps

11 years agoMerge "Re-enable frame dropping for non-auto timestamps" into klp-dev
Andy McFadden [Mon, 19 Aug 2013 14:27:28 +0000 (14:27 +0000)]
Merge "Re-enable frame dropping for non-auto timestamps" into klp-dev

11 years agoam 7c6278de: Merge "Use new HWC display type/count constants." into klp-dev
Jesse Hall [Sun, 18 Aug 2013 04:34:03 +0000 (21:34 -0700)]
am 7c6278de: Merge "Use new HWC display type/count constants." into klp-dev

* commit '7c6278de6e2aed171362012d578d8bd093c8f280':
  Use new HWC display type/count constants.

11 years agoMerge "Use new HWC display type/count constants." into klp-dev
Jesse Hall [Sun, 18 Aug 2013 04:31:24 +0000 (04:31 +0000)]
Merge "Use new HWC display type/count constants." into klp-dev

11 years agoam 0f05a926: Merge "Encapsulate textures into their own Texture class" into klp-dev
Mathias Agopian [Sat, 17 Aug 2013 00:43:31 +0000 (17:43 -0700)]
am 0f05a926: Merge "Encapsulate textures into their own Texture class" into klp-dev

* commit '0f05a926647389551aba6b8cfac37aaf73e8bad8':
  Encapsulate textures into their own Texture class

11 years agoMerge "Encapsulate textures into their own Texture class" into klp-dev
Mathias Agopian [Sat, 17 Aug 2013 00:40:19 +0000 (00:40 +0000)]
Merge "Encapsulate textures into their own Texture class" into klp-dev

11 years agoEncapsulate textures into their own Texture class
Mathias Agopian [Thu, 15 Aug 2013 01:20:17 +0000 (18:20 -0700)]
Encapsulate textures into their own Texture class

the main reason for doing this is so that we can have
access to informations about a texture (like its dimension)
close to where we generate and use shaders in ES 2.0.
Previously, there wasn't any way to get to a texture's size
from a RenderEngine implementation.

Bug: 8679321

Change-Id: I388b338a70d07e3e8177dde248710ea1e4c82dff

11 years agoRe-enable frame dropping for non-auto timestamps
Andy McFadden [Fri, 16 Aug 2013 21:55:39 +0000 (14:55 -0700)]
Re-enable frame dropping for non-auto timestamps

This change adds an entire field to note whether the timestamp was
auto-generated by Surface or supplied by the application.

The value is used when deciding whether or not to drop frames based
on buffer presentation timestamps.  If a desired presentation time
was set explicitly, BufferQueue will use that value to decide if a
frame should be dropped.  If the timestamp was generated by Surface
at the time the buffer was queued, the timestamp is ignored.

Bug 10151804

Change-Id: Ibd571a7578351063b813cbdad2ddbeed70655ba5

11 years agoam a33b62cc: Merge "Replace sRGB_888 with sRGB_X_8888" into klp-dev
Jesse Hall [Fri, 16 Aug 2013 21:53:51 +0000 (14:53 -0700)]
am a33b62cc: Merge "Replace sRGB_888 with sRGB_X_8888" into klp-dev

* commit 'a33b62cc4700c68a3481d415a55e1a7b688981e1':
  Replace sRGB_888 with sRGB_X_8888

11 years agoMerge "Replace sRGB_888 with sRGB_X_8888" into klp-dev
Jesse Hall [Fri, 16 Aug 2013 21:50:22 +0000 (21:50 +0000)]
Merge "Replace sRGB_888 with sRGB_X_8888" into klp-dev

11 years agoUse new HWC display type/count constants.
Jesse Hall [Fri, 16 Aug 2013 21:28:37 +0000 (14:28 -0700)]
Use new HWC display type/count constants.

Change-Id: I774d0c68906ac6dc69268f708c30a6b0868b8816

11 years agoam e60a0b1e: Merge "gui: CpuConsumer::lockNextBuffer change return code when too...
Igor Murashkin [Fri, 16 Aug 2013 21:07:10 +0000 (14:07 -0700)]
am e60a0b1e: Merge "gui: CpuConsumer::lockNextBuffer change return code when too many bufs acquired" into klp-dev

* commit 'e60a0b1e6a29d79b4d0ec0374446cb829bcadee4':
  gui: CpuConsumer::lockNextBuffer change return code when too many bufs acquired

11 years agoMerge "gui: CpuConsumer::lockNextBuffer change return code when too many bufs acquire...
Igor Murashkin [Fri, 16 Aug 2013 21:02:01 +0000 (21:02 +0000)]
Merge "gui: CpuConsumer::lockNextBuffer change return code when too many bufs acquired" into klp-dev

11 years agoReplace sRGB_888 with sRGB_X_8888
Jesse Hall [Fri, 16 Aug 2013 14:50:11 +0000 (07:50 -0700)]
Replace sRGB_888 with sRGB_X_8888

Bug: 10357459
Change-Id: I3a1d92cce2c9d3e930408129fb20887276fffddc

11 years agoam e048a437: Merge "Add support for EGL_KHR_gl_colorspace" into klp-dev
Jesse Hall [Thu, 15 Aug 2013 23:59:27 +0000 (16:59 -0700)]
am e048a437: Merge "Add support for EGL_KHR_gl_colorspace" into klp-dev

* commit 'e048a4374c4e355c361f5eec0482ac85df0c73fe':
  Add support for EGL_KHR_gl_colorspace

11 years agoam e0ec2a95: Merge "Fix ES2 composition on some devices" into klp-dev
Mathias Agopian [Thu, 15 Aug 2013 23:59:25 +0000 (16:59 -0700)]
am e0ec2a95: Merge "Fix ES2 composition on some devices" into klp-dev

* commit 'e0ec2a956840fa70387883f422b6020c1dfc6bad':
  Fix ES2 composition on some devices

11 years agoam 2eaefe19: Simplify handling of opaque layers in shader generation
Mathias Agopian [Thu, 15 Aug 2013 23:59:24 +0000 (16:59 -0700)]
am 2eaefe19: Simplify handling of opaque layers in shader generation

* commit '2eaefe198a0cae1ee0b6366797a6b074c76df9ef':
  Simplify handling of opaque layers in shader generation

11 years agoMerge "Add support for EGL_KHR_gl_colorspace" into klp-dev
Jesse Hall [Thu, 15 Aug 2013 23:17:49 +0000 (23:17 +0000)]
Merge "Add support for EGL_KHR_gl_colorspace" into klp-dev

11 years agoMerge "Fix ES2 composition on some devices" into klp-dev
Mathias Agopian [Thu, 15 Aug 2013 23:12:26 +0000 (23:12 +0000)]
Merge "Fix ES2 composition on some devices" into klp-dev

11 years agoSimplify handling of opaque layers in shader generation
Mathias Agopian [Wed, 14 Aug 2013 23:33:27 +0000 (16:33 -0700)]
Simplify handling of opaque layers in shader generation

just ensure the alpha value is 1.0 in the opaque case
when reading the color from the texture or the
global color.

Bug: 8679321

Change-Id: Ia38b30e97c3bce5a2d534a40c0d66e0bfc3ea40d

11 years agoFix ES2 composition on some devices
Mathias Agopian [Thu, 15 Aug 2013 21:56:51 +0000 (14:56 -0700)]
Fix ES2 composition on some devices

- turns out fragment shaders don't have default precision by default
- GLES 1.x extensions that became core in GLES 2.0 don't always work
  as extensions in GLES 2.0 (!)

Bug: 8679321
Change-Id: I5a4a93e158247910399325a965af5d2e3bbece9b

11 years agoam 6db4ff62: Disable GLES 2.x rendering
Andy McFadden [Thu, 15 Aug 2013 17:45:04 +0000 (10:45 -0700)]
am 6db4ff62: Disable GLES 2.x rendering

* commit '6db4ff621898573b41abf570271a04a13bd36a69':
  Disable GLES 2.x rendering

11 years agoDisable GLES 2.x rendering
Andy McFadden [Thu, 15 Aug 2013 17:39:11 +0000 (10:39 -0700)]
Disable GLES 2.x rendering

Bug 10340705

Change-Id: I91f3baf0d79655d8d031c100d0b116f745c2fbef

11 years agoam 892f22dc: Initialize mIndent
Andy McFadden [Thu, 15 Aug 2013 17:15:45 +0000 (10:15 -0700)]
am 892f22dc: Initialize mIndent

* commit '892f22dcb96927b4a4f9ab7badd6f2c9f4f37c1f':
  Initialize mIndent

11 years agoInitialize mIndent
Andy McFadden [Thu, 15 Aug 2013 17:05:01 +0000 (10:05 -0700)]
Initialize mIndent

Bug 10334731

Change-Id: Ia3aa118a1516cc480b0d85179b78c4447f982dd6

11 years agogui: CpuConsumer::lockNextBuffer change return code when too many bufs acquired
Igor Murashkin [Thu, 15 Aug 2013 01:49:12 +0000 (18:49 -0700)]
gui: CpuConsumer::lockNextBuffer change return code when too many bufs acquired

- Return NOT_ENOUGH_DATA instead of INVALID_OPERATION when too many
  buffers have already been locked.
- INVALID_OPERATION is nominally used when something irrecoverable happens,
  but in this case the client just needs to call unlockBuffer to go back into a
  good state.

Bug: 10333400
Change-Id: I3a034d77de85741429f832a90eedd670afa1dc94

11 years agoam 5bbe0ab6: fix build. optional test broke.
Mathias Agopian [Thu, 15 Aug 2013 01:28:48 +0000 (18:28 -0700)]
am 5bbe0ab6: fix build. optional test broke.

* commit '5bbe0ab655713849fbfe750d4d09690106f95d7f':
  fix build. optional test broke.

11 years agofix build. optional test broke.
Mathias Agopian [Thu, 15 Aug 2013 01:22:02 +0000 (18:22 -0700)]
fix build. optional test broke.

Change-Id: I0ed5e2cd4c8945ee95673ed0eec5820d9def5097

11 years agoam c6bae007: Fix build. optional tests were broken.
Mathias Agopian [Wed, 14 Aug 2013 23:33:04 +0000 (16:33 -0700)]
am c6bae007: Fix build. optional tests were broken.

* commit 'c6bae007e6e29b585fc1207f84b378a480006173':
  Fix build. optional tests were broken.

11 years agoFix build. optional tests were broken.
Mathias Agopian [Wed, 14 Aug 2013 23:26:43 +0000 (16:26 -0700)]
Fix build. optional tests were broken.

Change-Id: Iba9f5cb57f134559e1f9c55e293578d9f5d8cb96

11 years agoam b2620900: Merge "don\'t reallocate the mesh each time we use it" into klp-dev
Mathias Agopian [Wed, 14 Aug 2013 22:45:22 +0000 (15:45 -0700)]
am b2620900: Merge "don\'t reallocate the mesh each time we use it" into klp-dev

* commit 'b2620900a8be578dd3358606b26048a72bb2eb2d':
  don't reallocate the mesh each time we use it

11 years agoam 56f825e7: Merge "SurfaceFlinger now uses GLES 2.x when available" into klp-dev
Mathias Agopian [Wed, 14 Aug 2013 22:45:21 +0000 (15:45 -0700)]
am 56f825e7: Merge "SurfaceFlinger now uses GLES 2.x when available" into klp-dev

* commit '56f825e7ab9f83706a74dcd4825c7bc839e49ae4':
  SurfaceFlinger now uses GLES 2.x when available

11 years agoMerge "don't reallocate the mesh each time we use it" into klp-dev
Mathias Agopian [Wed, 14 Aug 2013 22:43:25 +0000 (22:43 +0000)]
Merge "don't reallocate the mesh each time we use it" into klp-dev

11 years agoMerge "SurfaceFlinger now uses GLES 2.x when available" into klp-dev
Mathias Agopian [Wed, 14 Aug 2013 22:42:51 +0000 (22:42 +0000)]
Merge "SurfaceFlinger now uses GLES 2.x when available" into klp-dev

11 years agoReconcile with klp-release - do not merge
The Android Open Source Project [Wed, 14 Aug 2013 22:10:28 +0000 (15:10 -0700)]
Reconcile with klp-release - do not merge

Change-Id: I104b4a186af085b6a7a5f7d64f4dbb3dfd5aeb01

11 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Wed, 14 Aug 2013 13:06:17 +0000 (06:06 -0700)]
merge in klp-release history after reset to klp-dev

11 years agodon't reallocate the mesh each time we use it
Mathias Agopian [Wed, 14 Aug 2013 03:51:23 +0000 (20:51 -0700)]
don't reallocate the mesh each time we use it

the Mesh object can be part of each Layer (at least currently).
also reworked the Mesh code a bit to make it easier to access
the vertex data.

Change-Id: I0490851ba898f0aa2e55b62958dcd8bdb535e98b

11 years agoam 5025593d: Merge "dumpstate: switch to HAL static libraries" into klp-dev
Todd Poynor [Wed, 14 Aug 2013 00:26:40 +0000 (17:26 -0700)]
am 5025593d: Merge "dumpstate: switch to HAL static libraries" into klp-dev

* commit '5025593d0ee6bf6d03121d9c42623bae0f131c9d':
  dumpstate: switch to HAL static libraries

11 years agoMerge "dumpstate: switch to HAL static libraries" into klp-dev
Todd Poynor [Wed, 14 Aug 2013 00:22:41 +0000 (00:22 +0000)]
Merge "dumpstate: switch to HAL static libraries" into klp-dev

11 years agodumpstate: switch to HAL static libraries
Todd Poynor [Tue, 13 Aug 2013 23:30:01 +0000 (16:30 -0700)]
dumpstate: switch to HAL static libraries

Change-Id: I865a0b4b4a84a2d54a239e7b09874287f0c1ad56

11 years agoSurfaceFlinger now uses GLES 2.x when available
Mathias Agopian [Thu, 8 Aug 2013 04:24:32 +0000 (21:24 -0700)]
SurfaceFlinger now uses GLES 2.x when available

Bug: 8679321

Change-Id: I2b152d01fb4e2de2ea9fe87f1ddbd6826d7520d7

11 years agoam 5ff5a84e: allow "system" screenshots even when the secure flag is set
Mathias Agopian [Tue, 13 Aug 2013 23:03:51 +0000 (16:03 -0700)]
am 5ff5a84e: allow "system" screenshots even when the secure flag is set

* commit '5ff5a84e4829bad9eb44cc9a32d8579ca089051b':
  allow "system" screenshots even when the secure flag is set

11 years agoallow "system" screenshots even when the secure flag is set
Mathias Agopian [Tue, 13 Aug 2013 22:55:43 +0000 (15:55 -0700)]
allow "system" screenshots even when the secure flag is set

we need too allow this case so that things like the rotation
animation can work.
with this change we only permit these screenshot if the
destination is SurfaceFlinger itself.

Bug: 10235036
Change-Id: I66fea5391e52b0d7f17f25827572b236f2d9eb71

11 years agoAdd support for EGL_KHR_gl_colorspace
Jesse Hall [Thu, 8 Aug 2013 20:40:22 +0000 (13:40 -0700)]
Add support for EGL_KHR_gl_colorspace

Change-Id: I684d0b8556cd6c84ee4b4d67e1bb95c3b96fccfb

11 years agoam fc43e16a: Merge "Graphics:Add error check when create GraphicBuffer"
Jesse Hall [Tue, 13 Aug 2013 19:06:31 +0000 (12:06 -0700)]
am fc43e16a: Merge "Graphics:Add error check when create GraphicBuffer"

* commit 'fc43e16a5693bca0edfc82c650fb606971e47138':
  Graphics:Add error check when create GraphicBuffer

11 years agoMerge "Graphics:Add error check when create GraphicBuffer"
Jesse Hall [Tue, 13 Aug 2013 19:02:56 +0000 (19:02 +0000)]
Merge "Graphics:Add error check when create GraphicBuffer"

11 years agoGraphics:Add error check when create GraphicBuffer
Lingyun Zhu [Tue, 20 Nov 2012 11:24:35 +0000 (19:24 +0800)]
Graphics:Add error check when create GraphicBuffer

Change-Id: Ib0ca59bf1dfe4ae0266c29c91c1dbe3d02c0904e
Author: Lingyun Zhu <lingyun.zhu@intel.com>
Signed-off-by: Lingyun Zhu <lingyun.zhu@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 50141

11 years agoMerge "Don't swallow eglCreateContext errors" into klp-dev
Jesse Hall [Tue, 13 Aug 2013 18:33:07 +0000 (18:33 +0000)]
Merge "Don't swallow eglCreateContext errors" into klp-dev

11 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Tue, 13 Aug 2013 13:02:27 +0000 (06:02 -0700)]
merge in klp-release history after reset to klp-dev

11 years agomake sure GLConsumer::releaseTexImage() works after detachFromContext()
Mathias Agopian [Fri, 9 Aug 2013 01:16:21 +0000 (18:16 -0700)]
make sure GLConsumer::releaseTexImage() works after detachFromContext()

Change-Id: I27e0bc57e927d47b2b98113ee37b5396bcc72019

11 years agoDon't swallow eglCreateContext errors
Jesse Hall [Mon, 12 Aug 2013 23:43:34 +0000 (16:43 -0700)]
Don't swallow eglCreateContext errors

If the implementation eglCreateContext failed, we called
eglGetError(), so we could check that it set the EGL error properly.
But since we'd already called this, when the app called eglGetError()
it would get EGL_SUCCESS!

Bug: 10181333
Change-Id: Ic45d3a8fcb8c4421e04844c6d2f52761790b5948