summaryrefslogtreecommitdiffstats
path: root/graphics
Commit message (Collapse)AuthorAgeFilesLines
* Merge "TextLayoutCache - add glyphs caching"Fabrice Di Meglio2011-04-081-23/+72
|\
| * TextLayoutCache - add glyphs cachingFabrice Di Meglio2011-04-081-23/+72
| | | | | | | | | | | | | | | | | | - cache glyphs after Harfbuzz shaping - use "m" prefix for member variables - add temporary API for drawing text with glyphs - update BiDiTest app Change-Id: I619b3f313b15f010018daad21b3e5e486619b4e4
* | Merge "Use jniThrowException for exception throwing from native code."Elliott Hughes2011-04-081-11/+5
|\ \
| * | Use jniThrowException for exception throwing from native code.Elliott Hughes2011-04-071-11/+5
| |/ | | | | | | | | | | | | | | I'll do media and the generated gl stuff separately. Otherwise, this cleans up all direct calls of ThrowNew/Throw except the one in the binder that needs to remain. Change-Id: I8f95a5f020f53b25926ad31ac0c9477ddf85d04b
* | Remove the deprecated things from Config.java. These haven't been working ↵Joe Onorato2011-04-0711-12/+1
|/ | | | | | since before 1.0. Change-Id: Ic2e8fa68797ea9d486f4117f3d82c98233cdab1e
* Cleanup character limits.Jason Sams2011-04-061-2/+4
| | | | Change-Id: Icb127248d6e3a0b662ed3b13c9a6646f4f81129a
* Seperate ProgramRaster.Jason Sams2011-04-064-154/+32
| | | | | | Cleanup ProgramRaster and ProgramStore creation. Change-Id: If25ea74355238d405340f0ccfb8117ad6e1307b7
* Merge "First draft of fbo in renderscript. Updating samples and benchmark"Alex Sakhartchouk2011-04-042-8/+29
|\
| * First draft of fbo in renderscript.Alex Sakhartchouk2011-04-012-8/+29
| | | | | | | | | | | | Updating samples and benchmark Change-Id: I469bf8b842fca72b59475c8fa024c12cf0e14954
* | Make BaseObj a public class.Stephen Hines2011-04-011-1/+1
| | | | | | | | | | | | BUG=4156151 Change-Id: Ia5d5ae08ab8e176ad3ca1f38c2c33ef4e9551213
* | Fix text redering issue where the text was sometimes truncatedFabrice Di Meglio2011-03-291-0/+122
| | | | | | | | | | | | | | | | - mostly was visible in Settings apps / Wi-Fi networks summary info for each network - correctly setup the local SkPaint for advances computation - improve test app for adding live resizing Change-Id: Ia031fe1b115b521ba55c7e68f2a26300f02e48ca
* | Merge "Move the drawable state to the correct class. Bug #4170455"Romain Guy2011-03-291-7/+7
|\ \ | |/ |/|
| * Move the drawable state to the correct class.Romain Guy2011-03-291-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | Bug #4170455 The state tracking whether the Paint's shader should be rebuilt was kept in the wrong class. This lead to the Drawable keeping track of the dirty status of the Paint stored in the ConstantState. This of course does not work properly when several drawables are inflated form the same ConstantState. This change fixes the issue by moving the dirty Paint state to the ConstantState class. This is allowed to work because of the single-thread rule enforced by the UI toolkit. Change-Id: I9bb31d8e7335d6bb418470b59ae25d9085d7bd23
* | am 8ef609ab: am a4206029: am 5d5a0ca5: Merge "Fixing the wrong link in ↵Brad Fitzpatrick2011-03-291-3/+3
|\ \ | |/ |/| | | | | | | | | YuvImage JavaDoc." * commit '8ef609abe56c9872c93fc304037d1e52d4475e5e': Fixing the wrong link in YuvImage JavaDoc.
| * am a4206029: am 5d5a0ca5: Merge "Fixing the wrong link in YuvImage JavaDoc."Brad Fitzpatrick2011-03-291-3/+3
| |\ | | | | | | | | | | | | * commit 'a4206029cbb8f6c02c47db52f84b7d52e154e35a': Fixing the wrong link in YuvImage JavaDoc.
| | * Merge "Fixing the wrong link in YuvImage JavaDoc."Brad Fitzpatrick2011-03-231-3/+3
| | |\
| | | * Fixing the wrong link in YuvImage JavaDoc.Keiji Ariyama2011-02-051-3/+3
| | | | | | | | | | | | | | | | Change-Id: Ie6334e16424e59b75274ef265f10d26ba484316a
| | * | am 7d234fab: Merge "Don\'t drop the drawable cache completely on ↵Dianne Hackborn2011-01-1412-12/+12
| | |\ \ | | | |/ | | | | | | | | | | | | | | | | | | | | configuration change" * commit '7d234fabe61cd5f034fe4ff4484209fbf5130c4d': Don't drop the drawable cache completely on configuration change
| | | * Don't drop the drawable cache completely on configuration changeChristopher Lais2011-01-1412-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There was a lot of fancy code just above the clear to ensure that drawables that aren't affected by the change are kept, then the entire array was cleared. This patch removes the clear, so that the drawables that haven't changed are really kept, matching the logs, comments and larger part of the code. This patch also fixes the various constant states to return correct ChangingConfigurations. Change-Id: Ic11f6179537318d3de16dc58286989eb62a07f15 Old-Change-Id: I22495e6ed232dfe056207ce5155405af1fa82428
| | * | am 61d9ffbf: Merge "Do not merge." into gingerbreadWei-Ta Chen2011-01-132-0/+273
| | |\ \ | | | | | | | | | | | | | | | | | | | | * commit '61d9ffbfd86dfe6bacce431b8ed9eebe1cfd8178': Do not merge.
| | | * | Do not merge.Wei-Ta Chen2011-01-112-0/+273
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backport changes related to BitmapRegionDecoder from HoneyComb to Gingerbread. Bug: 3309014 //////////////////////////////////////////////////// This is a combination of 7 commits. Revert "Do not merge." This reverts commit f7681f84918c27f6a626681ce37ed2a236c44e82. Change-Id: I46fd710600b1649773eaea2d9abc2b21a592f9a6 Fix a initialization bug in BitmapRegionDecoder. Change-Id: I6c1151fd34970a84d4de52d664d9a5dc464892c5 Fix segfault when tring to throw IOException. Change-Id: I530cc4409ba4ca17cec933afad077c5f60ba554f Fix 3122139, where previewing an attachment for the second time will fail. Use AutoFDSeek to mark and restore the position before we read data from the descriptor. Change-Id: I3d4f012dce486e19b113bc90a98b94031cfa8195 Add inPreferQualityOverSpeed into BitmapFactory.Options. The new field allows a developer to use a more accurate by slightly slower IDCT method in JPEG decode. This in turns improves the quality of the reconstructed image. The field by default is not set and thus does not affect existing applications. Bug: 3238925 Change-Id: I93d55b7226e47a43e639325cd1a677694d6f2ee4 Unhide inPreferQualityOverSpeed in BitmapFactory.Options. The new field allows a developer to use a more accurate by slightly slower IDCT method in JPEG decode. This in turns improves the quality of the reconstructed image. The field by default is not set and thus does not affect existing applications. Bug: 3238925 Related changes: https://android-git.corp.google.com/g/#change,83291 and https://android-git.corp.google.com/g/#change,83294 Change-Id: I969f5c413f9b2179454aeb90e18ae8222ee583b4 Correct the API comments. BitmapRegionDecoder supports PNG as well.
* | | | | merge libsurfaceflinger_client into libguiMathias Agopian2011-03-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this is the first step in unifying surfacetexture and surface. for this reason the header files were not moved, as most of them will eventually go away. NOTE: currently we keep libsurfaceflinger_client.so as an empty library to workaround prebuilt binaries wrongly linking against it. Change-Id: I130f0de2428e8579033dc41394d093f4e1431a00
* | | | | Merge "NEW_API: Add getTimestamp() to SurfaceTexture."Eino-Ville Talvala2011-03-241-1/+0
|\ \ \ \ \
| * | | | | NEW_API: Add getTimestamp() to SurfaceTexture.Eino-Ville Talvala2011-03-211-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Like getTransformMatrix, getTimestamp provides a timestamp for the OpenGL texture produced by the latest call to updateTexImage(). Timestamps are measured in nanoseconds, and are monotonically increasing. Other properties of the timestamps (zero point, comparability) depend on the source providing frames to the SurfaceTexture, and need to be documented by the source. bug:3300707 Change-Id: I380d94926d0e9f1c77bb5c1576b72d5ef4e2eba1
* | | | | | Always apply the tile mode.Romain Guy2011-03-241-10/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug #4170455 Change-Id: Id537a226a0b59bfa65b54bcea062aa5bf1a730b8
* | | | | | Merge "Use Harfbuzz instead of ICU4C for computing advances"Fabrice Di Meglio2011-03-232-1/+67
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | Use Harfbuzz instead of ICU4C for computing advancesFabrice Di Meglio2011-03-222-1/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - use Harfbuzz shaper for shaping and getting glyphs - add test app for showing result of drawText() and drawGlyphs() - add private API in Canvas and Paint for test app Change-Id: Ia15be216f8636d2d864066e9b7de2f53008c30f6
* | | | | | Start seperating out RS compute implementation. Create halJason Sams2011-03-173-53/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | layer to seperate from runtime. Change-Id: Idf5c1261be4131690d25c15948e98324e979b4f9
* | | | | | Merge "Add support for timestamps into SurfaceTexture."Eino-Ville Talvala2011-03-171-0/+16
|\ \ \ \ \ \
| * | | | | | Add support for timestamps into SurfaceTexture.Eino-Ville Talvala2011-03-171-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | API addition: The timestamps are represented as nanoseconds from some arbitrary time point. Like the SurfaceTexture transform matrix, the timestamp retrieved by getTimestamp is for the last frame sent to the GL texture using updateTexImage(). Camera HAL change: Expect vendors to set these timestamps using native_window_set_buffers_timestamp(). For now, they are autogenerated by SurfaceTextureClient if set_buffers_timestamp() is never called, but such timing is likely not accurate enough to pass a CTS test. bug:3300707 Change-Id: Ife131a0c2a826ac27342e11b8a6c42ff49e1bea7
* | | | | | | am 6ff211e0: am 8f6c5226: am 55a9be3d: Merge "Fix for bug 3434228" into ↵Alex Sakhartchouk2011-03-163-7/+9
|\ \ \ \ \ \ \ | | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | honeycomb-mr1 * commit '6ff211e08a7c5d51e3899d10be53878c05c244b5': Fix for bug 3434228
| * | | | | | Fix for bug 3434228Alex Sakhartchouk2011-03-163-7/+9
| |/ / / / / | | | | | | | | | | | | | | | | | | Change-Id: I57973faf782b487e7913a096f0ab6012dc1c9415
* | | | | | Merge "Check setName() for null string + typo fixes."Stephen Hines2011-03-161-4/+10
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | Check setName() for null string + typo fixes.Stephen Hines2011-03-151-4/+10
| |/ / / / | | | | | | | | | | | | | | | Change-Id: Ibf5fd3bcf908df8370eac2848e2b329328b9e8d3
| * | | | Merge "Fix typos in RenderScript docs."Stephen Hines2011-03-032-2/+2
| |\ \ \ \
| | * | | | Fix typos in RenderScript docs.Stephen Hines2011-03-012-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I4ff14b86551f99ffe984877a3f34b7140511c448
* | | | | | 2X2 matrix needs 4 float elements.Stephen Hines2011-03-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BUG=4104094 Change-Id: I175bde5839d6f1c56b2fd7499853be723e85120f
* | | | | | DO NOT MERGE: Fix typos in RenderScript docs.Stephen Hines2011-03-032-2/+2
|/ / / / / | | | | | | | | | | | | | | | Change-Id: Ie5f326c5c682ca7b604328ab25d7402cf01f7890
* | | | | Merge "Fixing element count bug in renderscript."Alex Sakhartchouk2011-03-021-1/+2
|\ \ \ \ \
| * | | | | Fixing element count bug in renderscript.Alex Sakhartchouk2011-03-021-1/+2
| |/ / / / | | | | | | | | | | | | | | | Change-Id: I0e795561db00e647d6dd5a9de7d25baf626d01a6
* | | | | Merge changes I9a202210,If26ef8beMathias Agopian2011-03-021-71/+81
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | * changes: fix YV12 documentation reformat file, which contained tabs instead of spaces
| * | | | fix YV12 documentationMathias Agopian2011-03-021-6/+16
| | | | | | | | | | | | | | | | | | | | Change-Id: I9a2022101930721a3b3bacc95b02ca21d05f21bb
| * | | | reformat file, which contained tabs instead of spacesMathias Agopian2011-03-011-71/+71
| | | | | | | | | | | | | | | | | | | | Change-Id: If26ef8be8c80a7894d256572cb3b9e60742dce57
* | | | | Discovered a matrix element bug while writing cts unit tests.Alex Sakhartchouk2011-02-281-3/+3
|/ / / / | | | | | | | | | | | | Change-Id: I56709df188a5085611efca804582470340369dc0
* | | | Expand on the SurfaceTexture API docs.Jamie Gennis2011-02-251-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds additional documentation explaining how a SurfaceTexture should be used in OpenGL ES. It describes some of the limitations of using the GL_TEXTURE_EXTERNAL_OES texture target. Change-Id: I7424c1b422e4f402e87372e8b361391fbec82c5c
* | | | Revert "Merge "Expand on the SurfaceTexture API docs.""Jamie Gennis2011-02-241-7/+1
| | | | | | | | | | | | | | | | | | | | This reverts commit 069d748da85559ffb2d09d181b186b1f71e350e7, reversing changes made to b607b884bd94d4f75fb4b2ead7457f2027ceb850.
* | | | Merge "Expand on the SurfaceTexture API docs."Jamie Gennis2011-02-241-1/+7
|\ \ \ \
| * | | | Expand on the SurfaceTexture API docs.Jamie Gennis2011-02-231-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds additional documentation explaining how a SurfaceTexture should be used in OpenGL ES. It describes some of the limitations of using the GL_TEXTURE_EXTERNAL_OES texture target. Change-Id: I9d3446a012376166b6c598b827a0aa0e9585d00f
* | | | | Merge "Bug 3438258 Add SurfaceTexture as MediaPlayer sink"Glenn Kasten2011-02-241-3/+6
|\ \ \ \ \
| * | | | | Bug 3438258 Add SurfaceTexture as MediaPlayer sinkGlenn Kasten2011-02-231-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change enables the use of a SurfaceTexture in place of a Surface as the video sink for an android.media.MediaPlayer. The new API MediaPlayer.setTexture is currently hidden. This includes: - New Java and C++ interfaces - C++ plumbing and implementation (JNI, Binder) - Stagefright AwesomePlayer and NuPlayer use ANativeWindow (either Surface or SurfaceTextureClient) Change-Id: I2b568bee143d9eaf3dfc6cc4533c1bebbd5afc51