Mathias Agopian
e5ba231b55
am 9bce8737: more surfaceflinger cleanups
2010-04-21 22:40:21 -07:00
Mathias Agopian
fb3c87f2f4
am 33c8e2b8: Merge "better fix for [2420565] Surface.lockCanvas() updates the dirty region too often" into kraken
2010-04-21 22:33:18 -07:00
Mathias Agopian
9bce8737f2
more surfaceflinger cleanups
...
get rid of the "fake rtti" code, and use polymorphism instead.
also simplify how we log SF's state (using polymorphism)
Change-Id: I2bae7c98de4dd207a3e2b00083fa3fde7c467922
2010-04-21 22:28:20 -07:00
Mathias Agopian
a8a0aa8b92
better fix for [2420565] Surface.lockCanvas() updates the dirty region too often
...
Change-Id: I83438b40effd21538f1c74396dc665254b9d5ab6
2010-04-21 22:25:35 -07:00
Mathias Agopian
345dd8ef83
am b834b38a: Merge "added setCrop() to android_native_window_t" into kraken
2010-04-20 16:37:29 -07:00
Mathias Agopian
2ff1ef2c8e
am 827cda45: Merge "add support for up to 16 buffers per surface" into kraken
2010-04-20 16:37:25 -07:00
Mathias Agopian
b834b38a28
Merge "added setCrop() to android_native_window_t" into kraken
2010-04-20 16:28:24 -07:00
Mathias Agopian
827cda456a
Merge "add support for up to 16 buffers per surface" into kraken
2010-04-20 16:28:14 -07:00
Mathias Agopian
62788470df
am 360865e2: Merge "clean-up surfaceflinger a bit" into kraken
2010-04-20 16:08:06 -07:00
Mathias Agopian
360865e26c
Merge "clean-up surfaceflinger a bit" into kraken
2010-04-20 15:59:57 -07:00
Mathias Agopian
e5c0a7b781
clean-up surfaceflinger a bit
...
get rid of the glDrawTexi path and use floating points instead of fixed point maths
Change-Id: I3aa9ce2dc082f702160e605a16ba5fe987cdf087
2010-04-20 15:58:36 -07:00
Jean-Michel Trivi
73db44151f
am bb331f73: am 0fabf2e8: am 8ccbd4ba: Merge "Fix bug 2604132 40s skip after undocking In case of A2DP write errors, there is an overflow in the calculation of the sleep duration to simulate the timing of a successful write." into froyo
2010-04-20 14:56:51 -07:00
Jean-Michel Trivi
bb331f7333
am 0fabf2e8: am 8ccbd4ba: Merge "Fix bug 2604132 40s skip after undocking In case of A2DP write errors, there is an overflow in the calculation of the sleep duration to simulate the timing of a successful write." into froyo
...
Merge commit '0fabf2e81559106cb4aaf9e8ba45b0bed37d5eb8' into kraken
* commit '0fabf2e81559106cb4aaf9e8ba45b0bed37d5eb8':
Fix bug 2604132 40s skip after undocking
2010-04-20 14:48:15 -07:00
Mathias Agopian
16a86ee30b
added setCrop() to android_native_window_t
...
hooked up the new method up to Surface.cpp
the actual crop is not implemented in SF yet
Change-Id: Ic6e313c98fd880f127a051a0ccc71808bd689751
2010-04-20 13:36:29 -07:00
Mathias Agopian
6bb5ebaa03
add support for up to 16 buffers per surface
...
also increase the dirtyregion size from 1 to 6 rectangles.
Overall we now need 27KiB process instead of 4KiB
Change-Id: Iebda5565015158f49d9ca8dbcf55e6ad04855be3
2010-04-20 13:36:29 -07:00
Jean-Michel Trivi
2f22d35936
Fix bug 2604132 40s skip after undocking
...
In case of A2DP write errors, there is an overflow in the calculation
of the sleep duration to simulate the timing of a successful write.
Change-Id: Ic4e570aebf07fac69735aab1bbc2fc73512ee795
2010-04-20 12:12:13 -07:00
Mathias Agopian
20f5a2fa88
am 732c73e1: am 26f61635: am 0a4ab1b9: Merge "fix [2599939] "cannot play video" after open/close a video player a dozen of times" into froyo
2010-04-19 19:39:04 -07:00
Mathias Agopian
732c73e1e7
am 26f61635: am 0a4ab1b9: Merge "fix [2599939] "cannot play video" after open/close a video player a dozen of times" into froyo
...
Merge commit '26f6163557980062dbb203388b3d0794ee0d06f7' into kraken
* commit '26f6163557980062dbb203388b3d0794ee0d06f7':
fix [2599939] "cannot play video" after open/close a video player a dozen of times
2010-04-19 19:29:22 -07:00
Mathias Agopian
92c3b39327
fix [2599939] "cannot play video" after open/close a video player a dozen of times
...
get rid off the MAP_ONCE flag is MemoryHeapBase (as well as it's functionality),
this feature should not be used anymore.
the software renderer was incorrectly using the default ctor which set MAP_ONCE,
causing the leak. the software renderer itself is incorrectly used while coming
back from sleep.
Change-Id: I123621f8d140550b864f352bbcd8a5729db12b57
2010-04-19 19:09:03 -07:00
android-build SharedAccount
120c457672
manual merge
...
Change-Id: I235ae925559b5db6d64cc8f8b188704a84d7b6a2
2010-04-15 16:36:34 -07:00
Mathias Agopian
67bbac844d
when a zero dimension buffer is allocated, turn the allocation into
...
a 1x1 buffer instead of Nx1 (or 1xN)
Change-Id: I27eeb15e83e13002dd9405f4e52b54f7dffc0fe7
2010-04-15 15:23:25 -07:00
Mathias Agopian
141264fabb
am 24af70e8: am e7d5a2f9: am 45423465: Merge "fix [2594950] Flash: Zooming in on some content crashes the Nexus One and causes it to reboot (runtime restart)" into froyo
2010-04-15 12:34:56 -07:00
Mathias Agopian
24af70e8bc
am e7d5a2f9: am 45423465: Merge "fix [2594950] Flash: Zooming in on some content crashes the Nexus One and causes it to reboot (runtime restart)" into froyo
...
Merge commit 'e7d5a2f9ae47d8ea8face3f1e451314ed36f4026' into kraken
* commit 'e7d5a2f9ae47d8ea8face3f1e451314ed36f4026':
fix [2594950] Flash: Zooming in on some content crashes the Nexus One and causes it to reboot (runtime restart)
2010-04-14 18:25:21 -07:00
Mathias Agopian
967dce3062
fix [2594950] Flash: Zooming in on some content crashes the Nexus One and causes it to reboot (runtime restart)
...
We now limit the size of the surface to the maximum size supported by the GPU.
On Nexus One this will 2048 -- it could be different on other devices.
Surface creation fails if the limit is exceeded.
Change-Id: I9ecfc2e9c58c9e283782b61ebfc6b590f71df785
2010-04-14 16:43:44 -07:00
Wu-cheng Li
62331ea9f1
am 76fc56fb: am 926d9a89: am 08caa704: am c58b4232: Add SCENE_MODE_BARCODE and FOCUS_MODE_EDOF.
2010-04-10 11:59:48 -07:00
Wu-cheng Li
926d9a89ed
am 08caa704: am c58b4232: Add SCENE_MODE_BARCODE and FOCUS_MODE_EDOF.
...
Merge commit '08caa704ae6c1dd8434186fa2dc22b1d7f8a5f9c' into kraken
* commit '08caa704ae6c1dd8434186fa2dc22b1d7f8a5f9c':
Add SCENE_MODE_BARCODE and FOCUS_MODE_EDOF.
2010-04-10 11:48:24 -07:00
Wu-cheng Li
c58b42327d
Add SCENE_MODE_BARCODE and FOCUS_MODE_EDOF.
...
bug:2544367
Change-Id: If122a7745e080f9e4bffb15dc4930d71f0421867
2010-04-10 09:33:15 +08:00
Eric Laurent
8e35fad15e
am 6bde88b9: am 2dc3da60: am 1921527c: am 9da7730d: Merge "Additional fix for isssue 2548710: Native AudioTrack resources never freed." into froyo
2010-04-09 09:06:51 -07:00
Eric Laurent
2dc3da60c4
am 1921527c: am 9da7730d: Merge "Additional fix for isssue 2548710: Native AudioTrack resources never freed." into froyo
...
Merge commit '1921527c8dbcb9f10683e43bca12648cb2c6e5b7' into kraken
* commit '1921527c8dbcb9f10683e43bca12648cb2c6e5b7':
Additional fix for isssue 2548710: Native AudioTrack resources never freed.
2010-04-09 08:58:30 -07:00
Mathias Agopian
270d49a246
am 88235a5e: am 672ea584: Merge "fix [2420565] Surface.lockCanvas() updates the dirty region too often" into kraken
2010-04-09 08:51:46 -07:00
Eric Laurent
380558bc5d
Additional fix for isssue 2548710: Native AudioTrack resources never freed.
...
This changes fixes the issue for the direct output thread that was not
addressed by commit 71f37cd8a175ee00635cb91506d6810fd02b5b51.
Change-Id: I1bbe26be5f444415dd97270e49257650f5d2858f
2010-04-09 06:11:48 -07:00
Mathias Agopian
db3647ff4f
fix [2420565] Surface.lockCanvas() updates the dirty region too often
...
There was a bug where we were we could be reallocating buffers for no reason.
Change-Id: Ieb8a81a289da9339ab7faf987cd3a73428943c1a
2010-04-08 19:09:04 -07:00
Mathias Agopian
325d32711f
am 01bd2a2f: Merge "Make pixels prettier." into kraken
2010-04-05 18:29:54 -07:00
Mathias Agopian
59962ce3b0
Make pixels prettier.
...
Change-Id: If3b0774b70cbe943894c15ffa1da111ad887010f
2010-04-05 18:12:27 -07:00
Eric Laurent
7605fe9276
am 673e6720: am 110c432e: am 3fe1708d: Merge "Fix isssue 2548710: Native AudioTrack resources never freed." into froyo
2010-03-31 23:45:27 -07:00
Eric Laurent
71f37cd8a1
Fix isssue 2548710: Native AudioTrack resources never freed.
...
The problem is a bug in AudioFlinger::MixerThread::prepareTracks_l() that makes that even if the TrackHandle
is destroyed, the corresponding Track will remain active as long as frames are ready for mixing.
If the track uses shared memory (static mode) and the sound is looped, this track will play for ever.
The fix consists in removing the track from active list immediately if the track is terminated.
Change-Id: I4582aa1d981079ab79be442fb6185f5afaed5cf3
2010-03-31 12:36:34 -07:00
Dianne Hackborn
656f26a9a6
am 2e41ffe7: am b19b6fec: am 966fcb81: Revert "fix [2542425] memory leak during video recording"
2010-03-30 21:19:03 -07:00
Dianne Hackborn
966fcb81ee
Revert "fix [2542425] memory leak during video recording"
...
This reverts commit 544592e14f8d7643238e40ba9879727497900f35.
2010-03-30 21:04:17 -07:00
Mathias Agopian
958a8762ff
am 9bb4473f: am 65bfca37: am 544592e1: fix [2542425] memory leak during video recording
2010-03-30 19:16:41 -07:00
Mathias Agopian
544592e14f
fix [2542425] memory leak during video recording
...
[Sorted|Keyed]Vector<TYPE> would leak their whole storage when resized
from the end and TYPE had trivial dtor and copy operators.
Change-Id: I8555bb1aa0863df72de27d67ae50e20706e90cf5
2010-03-30 19:02:59 -07:00
Mathias Agopian
6f1765b3a1
am 22db6f53: am 6874362a: am 04fdd180: Merge "fix [2542425] memory leak during video recording" into froyo
2010-03-29 16:07:39 -07:00
Mathias Agopian
04fdd180cc
Merge "fix [2542425] memory leak during video recording" into froyo
2010-03-29 15:44:33 -07:00
Mathias Agopian
d741452853
fix [2542425] memory leak during video recording
...
Vector::sort() is using _do_copy() incorrectly; _do_copy() calls the
copy constructor, not the assignment operator, so we need to destroy
the "destination" before copying the item.
Change-Id: Iaeeac808fa5341a7d219edeba4aa63d44f31473c
2010-03-29 13:45:18 -07:00
Wu-cheng Li
a369ad0302
am 4d47e1b1: am 0ca25191: Add some comments for zoom methods.
2010-03-29 10:25:46 -07:00
Wu-cheng Li
0ca25191c6
Add some comments for zoom methods.
...
Also change RuntimeException to IllegalArgumentException.
bug:2458926
Change-Id: I87af31f5f3f10244131a1117bd1725c2d292b587
2010-03-29 16:21:12 +08:00
Jason Sams
2d71bc7b4c
Update Script java classes and llvm samples.
...
Change-Id: I05c8d63fcca095d4fea6abb1ff5736ab9d78a3e6
2010-03-26 16:08:09 -07:00
Jason Sams
a70f416c9c
Checkin new types for RS.
...
Change-Id: I3d7a1a91c45cc1c97c60f3615f32e54e98e12f91
2010-03-26 15:34:30 -07:00
Jason Sams
c1d726c2d6
Seperate out Mutex and Signal code into reusable classes.
...
Change-Id: I381d09d89b567d433a10a91e0d7e59c24d3444d8
2010-03-26 14:20:26 -07:00
Jason Sams
3cfae1bbf4
Merge "checkpoint animations"
2010-03-26 12:21:14 -07:00
Mathias Agopian
dc5ce9c548
fix [2545826] calling into gralloc with external lock held
...
Change-Id: I2d0e017382404c684c768a0dd0423d574213f10a
2010-03-25 14:34:49 -07:00