summaryrefslogtreecommitdiffstats
path: root/graphics
Commit message (Collapse)AuthorAgeFilesLines
* 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
| | | * | docs: lots of additions to the resources docsScott Main2010-06-2113-18/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | new drawable resources add <merge> and <include> to layout resource update drawable class descriptioons to point to resources guide add ID resource type Change-Id: I733eec50bb2671f28c9e6dd7dec14eb6586f5193
* | | | | am 98704f14: am 38eea8bf: Merge "Remove the YV16 format for simplicity\'s ↵Mathias Agopian2010-07-141-49/+72
|\ \ \ \ \ | |/ / / / | | | | / | |_|_|/ |/| | | | | | | | | | | | | | | | | | | sake." into gingerbread Merge commit '98704f14eaeef6c9bcb73fea162f4941dd9bbd87' * commit '98704f14eaeef6c9bcb73fea162f4941dd9bbd87': Remove the YV16 format for simplicity's sake.
| * | | am 38eea8bf: Merge "Remove the YV16 format for simplicity\'s sake." into ↵Mathias Agopian2010-07-141-49/+72
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | gingerbread Merge commit '38eea8bf990540360b45b963195a7766c30b55d2' into gingerbread-plus-aosp * commit '38eea8bf990540360b45b963195a7766c30b55d2': Remove the YV16 format for simplicity's sake.
| | * | Remove the YV16 format for simplicity's sake.Mathias Agopian2010-07-141-49/+72
| | | | | | | | | | | | | | | | Change-Id: Iee03d100933ba0c67b13d51e0435be3b4cd953cf
* | | | Merge "Enable 32-bits only assets."Romain Guy2010-07-131-1/+4
|\ \ \ \
| * | | | Enable 32-bits only assets.Romain Guy2010-07-131-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Go away dithering! Change-Id: Iee5ee2e9430606e732d9b0abb3adc9f68275bd6d
* | | | | Merge "Support bidi/shaping for getTextPath"Kenny Root2010-07-131-4/+6
|\ \ \ \ \
| * | | | | Support bidi/shaping for getTextPathDoug Felt2010-07-121-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move layout-related code into separate class since it's needed by both canvas and paint. Change-Id: Iba89a1d94d7cca650255ffa3cbc952b988a51b54
* | | | | | Merge "Work on synchronizing a3d created files and java layer. Adding ↵Alex Sakhartchouk2010-07-136-38/+171
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | culling to ProgramRaster"
| * | | | | Work on synchronizing a3d created files and java layer.Alex Sakhartchouk2010-07-126-38/+171
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding culling to ProgramRaster Change-Id: I58ccc82d37edc9539289d5eba44ea0e720874af5
* | | | | | Correctly support pre-multiplied alpha, optimizations, more stuff.Romain Guy2010-07-121-9/+23
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for the following drawing functions: - drawBitmap(int[]...) - drawPaint() Optimizes shader state changes by enabling/disabling attribute arrays only when needed. Adds quick rejects when drawing trivial shapes to avoid unnecessary OpenGL operations. Change-Id: Ic2c6c2ed1523d08a63a8c95601a1ec40b6c7fbc9
* | | | | Merge "New cursor controller in TextViews."Gilles Debunne2010-07-092-4/+11
|\ \ \ \ \
| * | | | | New cursor controller in TextViews.Gilles Debunne2010-07-092-4/+11
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Editable TextView now display a cursor controller under the insertion point so that it can be precisely moved. Change-Id: Ia2e6ddc57d249647ff6683e10e4226db3df27223
* | | | | Remove points from fixed function.Jason Sams2010-07-093-18/+0
|/ / / / | | | | | | | | | | | | | | | | | | | | Add basic GL performance test. Change-Id: I421a41b6683b2c5f70045cdd0f610a6939105fee
* | | | Merge "Add boolean support for setVar."Jason Sams2010-07-071-0/+4
|\ \ \ \
| * | | | Add boolean support for setVar.Jason Sams2010-07-071-0/+4
| | | | | | | | | | | | | | | | | | | | Change-Id: Id64f3b2e43e19fc2a2d5fd81bb98d9ca67aae843
* | | | | Add support to draw 9patches in OpenGL.Romain Guy2010-07-073-23/+46
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | This change only adds the necessary API and stubs. The implementation will be added in another change. Change-Id: Ie50b8aff5868e78796cee331df15bdbf990d2ea1
* | | | Support bidi layout for drawTextOnPath.Doug Felt2010-07-071-5/+8
| | | | | | | | | | | | | | | | Change-Id: Ie5867fdb66fe15336774e20d65fa63e0d05bf6fe
* | | | Cleanup pass on the mesh api change.Alex Sakhartchouk2010-07-023-393/+0
| | | | | | | | | | | | | | | | | | | | | | | | Removed all the simple mesh related calls and temporary objects. Change-Id: Ic64a72a894e0314f216f10e1cfc0d45b17e2e182
* | | | Start of mesh API cleanup.Alex Sakhartchouk2010-07-014-9/+487
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Switched all native code to go through Mesh class. Removed SimpleMesh Added java Mesh class Will need to port all existing code to use java Mesh, then remove java SimpleMesh. Change-Id: Idb9c03d0b06b4ef87db28dffcffa1881d39120e5
* | | | Add hooks for drawBitmap().Romain Guy2010-06-302-8/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I58e962c3a8b2bc75c2605fe369ad3002579d86e0 Add texture cache. Change-Id: I1c0e5581d228869e114438258a1014e33e024ad7
* | | | Implement quickReject() and drawRect().Romain Guy2010-06-252-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The OpenGL ES 2.0 renderer can now draw colored rectangles. At least there's something on screen now. Change-Id: I80a13ccc1dd56784edf74f2670a364f30700234a
* | | | Adding freetype font rendering to renderscript.Alex Sakhartchouk2010-06-244-5/+95
| | | | | | | | | | | | | | | | Change-Id: I3a10ffe27092a41df156341c9cb3f7aa19c49f19
* | | | Merge "Add matrix ops to RSH headers."Jason Sams2010-06-241-1/+1
|\ \ \ \
| * | | | Add matrix ops to RSH headers.Jason Sams2010-06-241-1/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: I7e2843983a12e0155114b4a18813799e4341d26f
* | | | | Add support for transformations.Romain Guy2010-06-231-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds partial support for the following transforms: - scale() - translate() - rotate() - setMatrix() - getMatrix() The transform is stored in a snapshot and saved/restored as needed. The transform is currently not applied to the clip rect and is not mapped to the vertex shader. Change-Id: Id48993453311200804149917d0c126a4d0471226
* | | | | New XmlDocumentProvider class.Gilles Debunne2010-06-231-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Minor changes in the Adapters.java helper class. Extracts data out of a XML document using an XPath-like syntax. Change-Id: I0617b0783f11c86118b42cd8485d54440810c805
* | | | | Fix the simulator build.Romain Guy2010-06-221-1/+5
|/ / / / | | | | | | | | | | | | Change-Id: Ie404f7c2c308f0657f273af19a56e8c039b61898
* | | | Fix build error.Jason Sams2010-06-211-1/+1
| | | | | | | | | | | | | | | | Change-Id: Ife0ec056c33654a56f270a5673f614820cfc2e29
* | | | Move ImageProcessing and ModelViewer to reflected files.Jason Sams2010-06-213-14/+28
| | | | | | | | | | | | | | | | | | | | | | | | Implement boolean support. Change-Id: Iac2dc28067ac430b3e413fc651dfaa0b96214e2e
* | | | Add skip to field packer.Jason Sams2010-06-171-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | remove hsb functions from env headers. add RS_PACKED define for packed structures. Change-Id: Idc661edff85c0047baa201f43e0839ac82c74593
* | | | Merge "Add new API to check whether a Bitmap was modified."Romain Guy2010-06-151-0/+14
|\ \ \ \
| * | | | Add new API to check whether a Bitmap was modified.Romain Guy2010-06-151-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bitmap.getGenerationId() can be used by caches to find out if a Bitmap has been modified. This simply exposes an existing Skia API. This change also adds a small test app for Canvas hardware acceleration. The new Bitmap API is required to implement a texture cache. Change-Id: I8547b146cd14c8afe1a2327fcd6d71b1b1cb68fc
* | | | | Remove InvokeData and add ContextFinish to generate a sync point.Jason Sams2010-06-153-17/+20
|/ / / / | | | | | | | | | | | | Change-Id: I27da8bf5fba2c8a428964cb6a5e66dd7a94958d8
* | | | Move shaping to native.Doug Felt2010-06-102-30/+382
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add internal API (getTextRunAdvances) to Paint, use when measuring. Add internal API (getTextRunCursor) to Paint, use when determining valid cursor positions. Remove java-level shaping code. Remove 'prep' code in TextLine (except for replacement text) since shaping now is done on the fly as needed in native. Provide explicit shaping context bounds to internal text measuring, cursor movement, and rendering APIs. Update for to changes in external API in ushape.h. Change-Id: I146958b624802ce8553125e5c3c6c03031bc9608
* | | | Move OpenGL support out of ViewRoot into a new HardwareRenderer class.Romain Guy2010-06-091-4/+25
| | | | | | | | | | | | | | | | Change-Id: Iffaed924a5defc3c4df26223c390dc27eee115b1