summaryrefslogtreecommitdiffstats
path: root/graphics
Commit message (Collapse)AuthorAgeFilesLines
* Prevent the GC from destroying the underlying native objectRomain Guy2012-01-091-4/+5
| | | | Change-Id: I9aaba5d82828af83dad8e6a270d2ab8c92b42be5
* Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGESteve Block2012-01-081-3/+3
| | | | | | | See https://android-git.corp.google.com/g/#/c/157220 Bug: 5449033 Change-Id: Ic9c19d30693bd56755f55906127cd6bd7126096c
* am 201469f5: am bb7f590a: Merge "docs: Add developer guide cross-references, ↵Joe Fernandez2011-12-228-17/+54
|\ | | | | | | | | | | | | Project ACRE, round 4" into ics-mr1 * commit '201469f54522436be79d4d6665721049bfc74320': docs: Add developer guide cross-references, Project ACRE, round 4
| * docs: Add developer guide cross-references, Project ACRE, round 4Joe Fernandez2011-12-228-17/+54
| | | | | | | | Change-Id: I1b43414aaec8ea217b39a0d780c80a25409d0991
* | Fix AnimationDrawable double-start bugChet Haase2011-12-191-1/+3
| | | | | | | | | | | | | | | | | | | | | | AnimationDrawable.setVisible(true, true) was not correctly recording the fact that it had started the animation, so it was possible to call start(0 immediately afterwards and have two animations running on the drawable in parallel, resulting in incorrect frame ordering. Issue #5782773 Change-Id: Ifc328f755a51d10ab76b84006d1999df03d2dca1
* | am a962ef29: am 4c593010: Merge "Followup to a bug fix. Addtion of ↵Alex Sakhartchouk2011-11-171-10/+16
|\ \ | |/ | | | | | | | | | | synchronized to the methods triggers an API change. Per council advice, pushing synch block into the function body." into ics-mr1 * commit 'a962ef2993099e6c5db3809a7e829e43c8cf084a': Followup to a bug fix. Addtion of synchronized to the methods triggers an API change. Per council advice, pushing synch block into the function body.
| * Followup to a bug fix.Alex Sakhartchouk2011-11-151-10/+16
| | | | | | | | | | | | | | Addtion of synchronized to the methods triggers an API change. Per council advice, pushing synch block into the function body. Change-Id: Iaa395d9720bce499259ab750fe97149715e9f271
* | Merge "Expand RS vector3 types to vector4."Alex Sakhartchouk2011-11-162-12/+33
|\ \
| * | Expand RS vector3 types to vector4.Alex Sakhartchouk2011-11-152-12/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BUG=5609007 The underlying LLVM implementation for vector3 types does this implicitly. If RS does not adjust its implementation, we will always be misaligned for any subsequent data after a vector3 type. We previously inserted padding into the reflected layers from llvm-rs-cc (hence the skip padding part of this change). We can safely ignore the padding now that the Java/native code is updated to use the expanded size. The compiler will also need modification to ensure that we don't mistakenly skip over any end-of-struct padding. Fixing the 3 component vector padding problem. Change-Id: If68af42287deb8f4b28addcd19a9fa314656be44
* | | am 738d8cae: am c93a151f: Merge "Define, document, and test the behavior of ↵Mathias Agopian2011-11-141-2/+12
|\ \ \ | | |/ | |/| | | | | | | | | | | | | very large SurfaceTextures" into ics-mr1 * commit '738d8cae2239d194429676f2889cfae3c8f7ba08': Define, document, and test the behavior of very large SurfaceTextures
| * | Merge "Define, document, and test the behavior of very large ↵Mathias Agopian2011-11-141-2/+12
| |\ \ | | | | | | | | | | | | SurfaceTextures" into ics-mr1
| | * | Define, document, and test the behavior of very large SurfaceTexturesMathias Agopian2011-11-111-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | updateTexImage() now throws a runtime exception when its native counterpart fails Bug: 5506633 Change-Id: I151a6f685d465966e7df4df624412ab2da62e95f
* | | | am f579bb92: am cde433c5: Merge "Fixing a race condition in RSSurfaceView. ↵Alex Sakhartchouk2011-11-141-4/+4
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Bug 5601083 When destroy is called shortly after creation, RS tries to set a surface on a partially destroyed context." into ics-mr1 * commit 'f579bb92c2032cd27aef72a1654c006933b22bbd': Fixing a race condition in RSSurfaceView. Bug 5601083 When destroy is called shortly after creation, RS tries to set a surface on a partially destroyed context.
| * | | Merge "Fixing a race condition in RSSurfaceView. Bug 5601083 When destroy is ↵Alex Sakhartchouk2011-11-141-4/+4
| |\ \ \ | | |/ / | |/| | | | | | called shortly after creation, RS tries to set a surface on a partially destroyed context." into ics-mr1
| | * | Fixing a race condition in RSSurfaceView. Bug 5601083Alex Sakhartchouk2011-11-111-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | When destroy is called shortly after creation, RS tries to set a surface on a partially destroyed context. Change-Id: I7a382a701efde3264e5cd9b9a9b428ade5eb4a9a
* | | | am 9acae658: am 847fbbea: Merge "Localized optimizations in views and ↵Christopher Tate2011-11-111-2/+5
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | bitmaps" into ics-mr1 * commit '9acae658e179796beee91d673f9f70af49ae3c9b': Localized optimizations in views and bitmaps
| * | | Localized optimizations in views and bitmapsChristopher Tate2011-11-111-2/+5
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Don't call context.getResources() redundantly when unnecessary; similarly for Resources.getCompatibilityInfo() * During bitmap creation, don't bother clearing to 0: it's unnecessary because now that the raw bits are stored in a VM-side byte array, it was cleared at initialization time. Also, don't use the sanity- checking public entry point to erase to a color, because we know that we're by definition in a "legal" path to erase to the initial contents and don't need to incur the overhead of the (inappropriate) sanity checking. Change-Id: Idaca4d64fdecefd5d51337646ead32e1db510e02
* | | am 7e6c75f5: am d211b488: Merge "SurfaceTexture: unhide ↵Jamie Gennis2011-11-091-3/+10
|\ \ \ | |/ / | | / | |/ |/| | | | | setDefaultBufferSize" into ics-mr1 * commit '7e6c75f5a57b42edf22ce4e2cf144016252066c5': SurfaceTexture: unhide setDefaultBufferSize
| * Merge "SurfaceTexture: unhide setDefaultBufferSize" into ics-mr1Jamie Gennis2011-11-081-3/+10
| |\
| | * SurfaceTexture: unhide setDefaultBufferSizeJamie Gennis2011-11-041-3/+10
| | | | | | | | | | | | Change-Id: Ia4d3e1829339acaecaa7f10023945a432c581d72
* | | am e0ad4746: Merge "Some optimizations for view inflation." into ics-mr1Dianne Hackborn2011-11-031-0/+12
|\ \ \ | |/ / | | | | | | | | | * commit 'e0ad47465ededb16c6cd60524acd6941a8ce0bd8': Some optimizations for view inflation.
| * | Some optimizations for view inflation.Dianne Hackborn2011-11-021-0/+12
| |/ | | | | | | Change-Id: I8e5e6dda4d4c9776961d4a070549d5753588e582
* | am 74b2b954: am 09848bc8: Merge "docs: add developer guide cross references, ↵Joe Fernandez2011-10-314-8/+33
|\ \ | |/ | | | | | | | | | | Project ACRE, round 3" into ics-mr0 * commit '74b2b9547329a0b05e0bd5701057696007b854bb': docs: add developer guide cross references, Project ACRE, round 3
| * am 09848bc8: Merge "docs: add developer guide cross references, Project ↵Joe Fernandez2011-10-294-8/+33
| |\ | | | | | | | | | | | | | | | | | | ACRE, round 3" into ics-mr0 * commit '09848bc89de999416e2de82a7693b2deec6bf802': docs: add developer guide cross references, Project ACRE, round 3
| | * docs: add developer guide cross references, Project ACRE, round 3Joe Fernandez2011-10-284-8/+33
| | | | | | | | | | | | Change-Id: I6125315ecdf0f78dd947c514a9944729d723e95d
* | | Rename (IF_)LOGV(_IF) to (IF_)ALOGV(_IF) DO NOT MERGESteve Block2011-10-261-5/+5
|/ / | | | | | | | | | | | | See https://android-git.corp.google.com/g/#/c/143865 Bug: 5449033 Change-Id: I0122812ed6ff6f5b59fe4a43ab8bff0577adde0a
* | adding getters to Sampler ProgramRaster, ProgramStore, Element.Alex Sakhartchouk2011-10-186-20/+266
|/ | | | | | Element adds ability to get subelement info. Tests for new stuff. Change-Id: I4a77b91e4e0e73c95ab28b42c50732a64e71e7b9
* Don't call saveLayer() when it's not requiredRomain Guy2011-10-101-1/+1
| | | | | | | | | | Bug #5435653 saveLayer() can be extremely expensive on some GPU architectures. Avoiding this call greatly improve the rendering performance of drawables with strok + fill. Change-Id: Ib414174ba05d5bad56d942b8e67ab784e7d60b9e
* Simplify the way we get the version info.Jason Sams2011-10-061-7/+1
| | | | | | Reduces startup overhead. Change-Id: Id9556dfe553c23bf3f870a524ca5e687bb9fe777
* Remove unused fields in ProgramRasterJason Sams2011-09-233-18/+8
| | | | Change-Id: I70c9d47674c956ec850c178c7aaa9a5e3dd9dffb
* Merge "Fix wobbly spinners"Chet Haase2011-09-121-1/+1
|\
| * Fix wobbly spinnersChet Haase2011-09-121-1/+1
| | | | | | | | | | | | | | | | | | | | Some progress bars use AnimatedRotateDrawable, which suffered from the same bug as AnimationDrawable (until a recent fix). The code would not account for the left/top offset of the drawable in its view, so it would rotate the drawable around the wrong center, causing it to wobble and not get erased properly. Change-Id: I3f34f797e595973d9eb1d952d92026c769c7ec0a
* | Turn hinting back onRomain Guy2011-09-121-5/+8
|/ | | | | | | | The difference is not obvious when compared to no hinting, and turning off hinting has undesirable side effects because of the lack of sub- pixel positioning when rendering text. Change-Id: If2162ba079f68f33b33aed444e80036fdbf015bb
* Pull animation attributes out of main view class.Dianne Hackborn2011-09-091-0/+182
| | | | | | | These are now in a separate class that is only allocated when needed by the view. Change-Id: I9601bb43b3b4bfdabd982b02f7cd7534437b8ac3
* Hide RTL related APIsFabrice Di Meglio2011-09-071-0/+4
| | | | Change-Id: Idda458fcdebe7afeb9b95e328e552fcbc7939157
* Fix bug 5231904 - Fix wobbly progress spinnersAdam Powell2011-09-021-1/+1
| | | | | | | | Make ProgressBar maintain aspect ratio on indeterminate progress drawables. Make RotateDrawable tolerate left/top bounds != 0. Change-Id: Iee03030caa98f72a8745f1ae3fb0de108ff663d4
* Tweaks to NotificationPanel animationChet Haase2011-09-021-1/+4
| | | | | | | | | | | The animation that runs when the NotificationPanel appears used to start, then pause for a long time as the window/surface/layer was created, then by the time it started to be visible, the animation was over. This new approach delays starting the animation until the layer has been drawn, so the animation can actually run a few frames after that before finishing. Change-Id: I998f01fd48cb762178021ad99e2b919b58a1ef3f
* Merge "Code cleaning"Fabrice Di Meglio2011-09-011-2/+2
|\
| * Code cleaningFabrice Di Meglio2011-08-311-2/+2
| | | | | | | | | | | | | | - remove unused constant - fix spelling Change-Id: I0053129b33c2ee472db84e14d4b2ace5d97d20a8
* | Use floating point window positions.Dianne Hackborn2011-08-311-0/+31
| | | | | | | | | | | | Gets rid of gapps between windows during animations. Change-Id: I17d2ef0af214008f0eabd7eb19268f145fe83b39
* | Merge "Fix bug #5233207 android.graphics.cts.PaintTest#testBreakText fails ↵Fabrice Di Meglio2011-08-311-1/+1
|\ \ | | | | | | | | | on IRK56F trygon-userdebug"
| * | Fix bug #5233207 android.graphics.cts.PaintTest#testBreakText fails on ↵Fabrice Di Meglio2011-08-301-1/+1
| |/ | | | | | | | | | | | | | | IRK56F trygon-userdebug - Paint.breakText() API was regressing on the argument validation: a count < 0 is a valid one Change-Id: I6d09294ee9f21901ba00017ce0d73f757fc7b147
* | Accessors for frame count and duration.Jeff Sharkey2011-08-301-7/+18
| | | | | | | | | | Bug: 5233703 Change-Id: If6a758540248dc9bff56b64add04984ebd7b6833
* | Make Paint.set() copy shadow config.Jeff Sharkey2011-08-291-28/+28
|/ | | | | | Also unify all Java variable copying into single method. Change-Id: I8fefa615f6f164ae5662913d612b388b46890089
* SurfaceTexture: disable sync-mode SurfaceTexturesJamie Gennis2011-08-231-1/+3
| | | | | | | | This change removes the ability to create a SurfaceTexture that is capable of operating in synchronous-mode from the public APIs. Bug: 5167959 Change-Id: I09995832bb9a5f5063a67ddc3e0e1ab124d4e893
* Fix issue #5128639: SystemUI grows by 10MB after taking a screenshotDianne Hackborn2011-08-171-1/+10
| | | | | | | | | | | We now do the screenshot in a separate process. Also change the recents panel to not use hardware acceleration on lower-end devices. And improve how it gets shown to not load all data up-front which results in a long delay when you have lots of recents. Change-Id: Ia309a90f9939e5405758621b3f7114597bd0c02a
* Turn off hinting by default for higher density displays.Dianne Hackborn2011-08-121-0/+27
| | | | | | Also adds an API for apps to control whether hinting is used. Change-Id: I1a06b06255fbb8d0f02a8ce48c2cd60019088ed3
* Merge "Replacing sans serif system font with Roboto"Justin Ho2011-08-121-4/+4
|\
| * Replacing sans serif system font with RobotoChristian Robertson2011-08-111-4/+4
| | | | | | | | Change-Id: Ibe0aa11e2259898e65dc422c7794ab4065a0a90e
* | Remove ParcelSurfaceTexture and update MediaPlayerTed Bonkenburg2011-08-112-137/+0
| | | | | | | | | | | | | | | | | | This removes the ParcelSurfaceTexture class since that functionality has been folded into Surface.java. The change also updates the MediaPlayer to get rid of setParcelSurfaceTexture() and modifies setTexture() to use the new Surface functionality in order to simplify the code. Change-Id: Iafa75ea3188263928128325d8a726786971b4de4