summaryrefslogtreecommitdiffstats
path: root/graphics
Commit message (Collapse)AuthorAgeFilesLines
* Load assets in place instead of deferring until draw.Romain Guy2010-08-191-13/+11
| | | | | | | | | Before this change, all framework assets would be decoded at drawing time outside of zygote. This was forcing all apps to re-decode the assets and zygote to keep an in-memory copy of each asset. This behavior is now opt-in by setting the inPurgeable flag on BitmapFactory.Options. Change-Id: Ic703f57adb26b2a701ecff0a653d35a93e26d47c
* Load opaque assets in RGB-565 until Bitmap.hasAlpha() works properly.Romain Guy2010-08-191-4/+1
| | | | Change-Id: I1106855e9f2255c1b78fd76a3fe1c116b3c2fb87
* Merge "Remove OOB object destruction."Jason Sams2010-08-183-14/+1
|\
| * Remove OOB object destruction.Jason Sams2010-08-173-14/+1
| | | | | | | | Change-Id: Icaa06aca4a701ec663c124d3141d9dbb633d7dc1
* | New API and implementation of DB and memory-backed FDsBjorn Bringert2010-08-181-19/+0
| | | | | | | | | | | | | | | | | | This depends on a kernel patch that implements read(2) in the ashmem driver. Bug http://b/issue?id=2595601 Change-Id: Ie3b10aa471aada21812b35e63954c1b2f0a7b042
* | Merge "Make java entry points for native fifo synchronized."Jason Sams2010-08-173-617/+684
|\ \ | |/
| * Make java entry points for native fifo synchronized.Jason Sams2010-08-173-617/+684
| | | | | | | | Change-Id: I1baf2beb920016f0202042982075cbce1e67df42
* | am 81dcea60: am f1f48bc7: Do JPEG tile-based decoding.Joseph Wen2010-08-172-0/+271
|\ \ | |/ |/| | | | | | | | | Merge commit '81dcea6093dfcdadd52982505249a5eacf47a81b' * commit '81dcea6093dfcdadd52982505249a5eacf47a81b': Do JPEG tile-based decoding.
| * am f1f48bc7: Do JPEG tile-based decoding.Joseph Wen2010-08-172-0/+271
| |\ | | | | | | | | | | | | | | | | | | Merge commit 'f1f48bc7f200f54c76b22d845d8ba8419879b375' into gingerbread-plus-aosp * commit 'f1f48bc7f200f54c76b22d845d8ba8419879b375': Do JPEG tile-based decoding.
| | * Do JPEG tile-based decoding.Joseph Wen2010-08-172-0/+271
| | | | | | | | | | | | Change-Id: I5c1b4ac3c02eb4350ef0ba9a7877b22cfd730cfb
* | | Add drop shadows.Romain Guy2010-08-131-2/+34
| | | | | | | | | | | | Change-Id: Ic6a72409d4785968d1fbdff229f17ee5c00b240b
* | | Merge "Renderscript scenegraph prototype."Alex Sakhartchouk2010-08-133-0/+17
|\ \ \
| * | | Renderscript scenegraph prototype.Alex Sakhartchouk2010-08-133-0/+17
| | | | | | | | | | | | | | | | Change-Id: Ic4daaf6eca8850caf46bd766e148cf12eb6c6ca1
* | | | Merge "Fix GC issue, fix local shader transformations."Romain Guy2010-08-121-0/+7
|\ \ \ \ | |/ / / |/| | |
| * | | Fix GC issue, fix local shader transformations.Romain Guy2010-08-121-0/+7
| | | | | | | | | | | | | | | | Change-Id: I208bdf89815dcd18dcadd43df932a77362918435
* | | | Merge "Fix field packer bug for U32 data. Fix initial refcounts in ↵Jason Sams2010-08-121-1/+5
|\ \ \ \ | |/ / / |/| | | | | | | allocations. Support null references in allocations."
| * | | Fix field packer bug for U32 data.Jason Sams2010-08-121-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix initial refcounts in allocations. Support null references in allocations. Change-Id: Ifba6406ba750e69737bd77fa7df5d7fb8e27a5b4
* | | | Preparing renderscript java code for use with phanton references.Alex Sakhartchouk2010-08-1214-51/+50
| | | | | | | | | | | | | | | | | | | | | | | | Changing rs_quaternion to be float4 Change-Id: Ibf49f412be8979eaa04cb252b407467eacd9dbf0
* | | | Merge "Fix crash in Market."Romain Guy2010-08-111-1/+1
|\ \ \ \ | |/ / / |/| | |
| * | | Fix crash in Market.Romain Guy2010-08-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Bug #2911272 Change-Id: I065e21b9d005ad693e1af1ad82755b5c2ae7b722
* | | | Merge "Adding quaternion functions to math library."Alex Sakhartchouk2010-08-111-0/+70
|\ \ \ \ | |/ / / |/| | |
| * | | Adding quaternion functions to math library.Alex Sakhartchouk2010-08-101-0/+70
| | | | | | | | | | | | | | | | Change-Id: I692214648892120943ca7d3b00034e27d1c330cf
* | | | Support non-PorterDuff xfermodes with Xfermode.Romain Guy2010-08-103-3/+24
| | | | | | | | | | | | | | | | Change-Id: Icef17b72da2d047a24aaac1ddf5cdae77b40d5b4
* | | | Fast text selection drawing.Romain Guy2010-08-101-2/+50
| | | | | | | | | | | | | | | | Change-Id: I93fb1312b47bc05345defa9b6cfe47c0658bb329
* | | | Fix tons of bugs and add new text rendering support.Romain Guy2010-08-103-17/+25
|/ / / | | | | | | | | | Change-Id: I326c66b10784006f6df2f12d38e120cef94cd0d7
* | | Replace Bitmap's finalizers with PhantomReferences.Romain Guy2010-08-091-8/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change also removes the use of SoftReferences for View's drawing cache. A bitmap now creates a PhantomReference enqueued in a reference queue provided by the new Finalizers class. This queue is polled from a thread started after forking zygote. That thread is in charge of clearing the references after GC runs and of calling reclaim() on them. The reclaim() method is now how finalizers are run. Note that a PhantomReference cannot be kept in the instance it refers to, which is why they are kept in a separate List. Change-Id: If3c1a5e9dc23fa49e34857860d730f5cf5ad5926
* | | Make libhwui entirely optional.Romain Guy2010-08-081-59/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The makefile variable USE_OPENGL_RENDERER must be set to true to compile libhwui and the related code in the JNI layer. This change also removes obsolete APIs from Canvas that must not be used and would be confusing if left in. These APIs were remnants of our first attempt at an OpenGL renderer for the view hierarchy and had not been taken out before Android 1.0 was released. Change-Id: I2475ff1307212bab26c926724f3c508681c7dae1
* | | Prevent memory leak with ComposeShader.Romain Guy2010-08-071-0/+7
| | | | | | | | | | | | Change-Id: I926186c96b3c61085cdb6173d56d3a15a04ac95b
* | | Fix NPE in RoundRectShape.Romain Guy2010-08-061-9/+6
| | | | | | | | | | | | Change-Id: I3cef1b2723e5ebf3583f91b1bfe8121c0f6d253d
* | | Add support for paths.Romain Guy2010-08-051-1/+4
| | | | | | | | | | | | | | | | | | | | | Rendering is implementing by rasterizing the paths into A8 textures. This cna be extremely inefficient if the path changes often. Change-Id: I609343f304ae38e0d319359403ee73b9b5b3c93a
* | | Adding more matrix math functions.Alex Sakhartchouk2010-08-053-0/+23
| | | | | | | | | | | | | | | | | | Fixing build. Change-Id: Ie0f6724ba063ada94d1d44d99bbe56e21d9bd72f
* | | Support constant and varying colors in ProgramFragment.Jason Sams2010-08-051-1/+8
| | | | | | | | | | | | Change-Id: I16ce84ff427016f3a1923594efc718eca32dd7f2
* | | Added ability to set font color.Alex Sakhartchouk2010-08-044-0/+15
| | | | | | | | | | | | | | | | | | Propagating the name of meshes and allocations from native a3d to java Change-Id: If781f55340b5369459610e5e92ea69e240dcd24e
* | | Adding matrix class methods.Alex Sakhartchouk2010-08-042-0/+155
| | | | | | | | | | | | Change-Id: I597b1b3955e29921394909f302800034571e6a50
* | | Add support for ColorFilters.Romain Guy2010-08-024-9/+23
| | | | | | | | | | | | | | | | | | Color filters are fully supported and can be used with shaders. Change-Id: Id90ccf1c81cb462f2431f366f3f8f710d7971e04
* | | Refactor Skia shaders handling.Romain Guy2010-07-304-73/+37
| | | | | | | | | | | | | | | | | | | | | | | | With this change, Skia shaders can easily be applied to any mesh. This change also supports ComposeShader. For instance, this can be used to blend a gradient and a bitmap togehter and paint a string of text with the result. Change-Id: I701c2f9cf7f89b2ff58005e8a1d0d80ccf4a4aea
* | | Add text rendering.Romain Guy2010-07-211-6/+5
| | | | | | | | | | | | Change-Id: Ibe5a9fa844d531b31b55e43de403a98d49f659b9
* | | Add preliminary support for text rendering.Romain Guy2010-07-202-8/+13
| | | | | | | | | | | | Change-Id: I547eb631dbda24d13960d54b4144fb8908fd8a49
* | | Add program for linear gradient.Romain Guy2010-07-162-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | This change adds a new DrawLinearGradientProgram class to enable the drawing of linear gradients. Two new vertex and fragment shaders are introduced, based on DrawTextureProgram's shaders. Change-Id: I885afc076bb6cef8cd3962ae21a086fa6a03bf96
* | | Add plumbing to support gradients in OpenGL renderer.Romain Guy2010-07-161-6/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The LinearGradient class keeps a copy of the various parameters that define the gradient. The copies are native arrays to avoid copying Java arrays on every draw call. The gradient code path is implemented until OpenGLRenderer::drawRect() (see TODO.) The actual gradient implementation will be added in a latter change. Change-Id: I9300d250ef5e2e9c2e097c3116ee71dfc9d752d8
* | | Improve clip support (add intersect, union and replace.)Romain Guy2010-07-161-1/+5
| | | | | | | | | | | | | | | | | | | | | This change also modifies the way the clip is stored. The clip is now always stored in screen-space coordinates. Change-Id: I96375784d82dfe975bc6477a159e6866e7052487
* | | Merge "Populate java objects with native data from a3d file. Remove legacy ↵Alex Sakhartchouk2010-07-157-20/+169
|\ \ \ | | | | | | | | | | | | constructor from programraster Make a3d object creation synchronous"
| * | | Populate java objects with native data from a3d file.Alex Sakhartchouk2010-07-157-20/+169
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove legacy constructor from programraster Make a3d object creation synchronous Change-Id: Ic7d7547cf6eee6f9a7c6e3ee12cd104e80056a7b
* | | | Merge "Add support for BitmapShader."Romain Guy2010-07-151-4/+15
|\ \ \ \ | |/ / / |/| | |
| * | | Add support for BitmapShader.Romain Guy2010-07-151-4/+15
| | | | | | | | | | | | | | | | | | | | | | | | This change also fixes an issue with the clip and layers. Change-Id: I5fd9832098d8cf7ae8eb781ff9bffe7defaea279
* | | | Merge "Making Program*.Builder classes' setters return 'this'"Jim Shuma2010-07-155-13/+26
|\ \ \ \
| * | | | Making Program*.Builder classes' setters return 'this'Jim Shuma2010-07-155-13/+26
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | This is for better correspondence with the Builder pattern. See also: Effective Java, 2nd edition. Change-Id: Iecccd42be49dea2ed8e4b8cc38ce96379cf3c11c
* | | | am 4fd41688: am 5352d237: am 38137d7a: Merge "docs: lots of additions to the ↵Scott Main2010-07-1513-18/+46
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | resources docs new drawable resources add <merge> and <include> to layout resource update drawable class descriptioons to point to resources guide add ID resource type" into froyo Merge commit '4fd416880e53c172bac4a51b2eafea699b58badf' * commit '4fd416880e53c172bac4a51b2eafea699b58badf': docs: lots of additions to the resources docs
| * | | am 5352d237: am 38137d7a: Merge "docs: lots of additions to the resources ↵Scott Main2010-07-1513-18/+46
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | docs new drawable resources add <merge> and <include> to layout resource update drawable class descriptioons to point to resources guide add ID resource type" into froyo Merge commit '5352d2378d2f92ebe0657e4caedb4498492fc404' into gingerbread-plus-aosp * commit '5352d2378d2f92ebe0657e4caedb4498492fc404': docs: lots of additions to the resources docs
| | * | am 38137d7a: Merge "docs: lots of additions to the resources docs new ↵Scott Main2010-07-1513-18/+46
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | drawable resources add <merge> and <include> to layout resource update drawable class descriptioons to point to resources guide add ID resource type" into froyo Merge commit '38137d7a27b037611c70a9d900aa53b4c15563bf' into gingerbread * commit '38137d7a27b037611c70a9d900aa53b4c15563bf': docs: lots of additions to the resources docs