summaryrefslogtreecommitdiffstats
path: root/tests/HwAccelerationTest/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix bitmap meshes to work in display lists.Romain Guy2011-01-231-11/+23
| | | | Change-Id: Ie226d049840942d9ad9cf58e0c19132f49d62a75
* Add support for arcs.Romain Guy2011-01-231-1/+25
| | | | Change-Id: I96c057ff4eb1b464b03f132da0b85333777bee4f
* Add support for ovals and stroked rectangles.Romain Guy2011-01-231-0/+25
| | | | Change-Id: I1292e241386763c82e6622c8f7ed90b0f5b7bd4f
* Add support for drawBitmapMesh().Romain Guy2011-01-201-0/+67
| | | | Change-Id: Ic77f9c534bb90dc7b9458299544bd50b8b6ae6a5
* Add rounded rects and circles support to OpenGLRenderer.Romain Guy2011-01-191-0/+92
| | | | Change-Id: I6cedf2b495d58de7c0437096809fa9e4518a1b8c
* Make embedded hardware layers work.Romain Guy2011-01-191-0/+108
| | | | | | Bug #3369474 Change-Id: Ib6d7fb44eedda9dc2933b5e1b176f307968af91d
* Add support for Paint::setTextSkewX in OpenGLRenderer.Romain Guy2011-01-181-2/+14
| | | | | | Bug #3360888 Change-Id: I42e81a1f10bf7b9ae1c63ca8add1878fd59a1e8a
* Add support for skew()Romain Guy2011-01-181-0/+56
| | | | Change-Id: Ia3a9a867f74fd78b61f75179e3788fdc2f0cacd0
* Improve hardware layers rendering speed when setting a View's alpha.Romain Guy2011-01-171-0/+2
| | | | Change-Id: Ib1275677f531c60d9919978c5538c663fdb823b5
* Add BitmapFactory.Options.inMutable to load mutable bitmaps.Romain Guy2011-01-171-0/+9
| | | | Change-Id: Iaa222127520f3aa55072d44af12ee3477908b876
* Fix 9patch rendering in ExpandableListView.Romain Guy2011-01-161-0/+56
| | | | Change-Id: I60843d61a40b0cb7dd09923cb4489a5a76f20486
* Better backend for hardware layers.Romain Guy2011-01-112-1/+110
| | | | | | | | With this new backend, a hardware layer is only recreated when its associated view is udpated. This offers fast composition in GL and fast update of the layer in GL as well. Change-Id: I97c43a612f5955c6bf1c192c8ca4af10fdf1d076
* Composite layers as regions.Romain Guy2011-01-101-2/+3
| | | | | | | | | | This change detects what area of a layer was drawn into and generates a mesh to match this area exactly. This can be used to avoid blending empty pixels when the layer is composited. This change also adds proper layers support to lines rendering and implements layers composition in a more readable way. Change-Id: I4a5588b98b19bd66891ebdc39631b193c5e31999
* New layers API for Views.Romain Guy2011-01-061-0/+158
| | | | | | | | | This API can be used to back a view and its children with either a software layer (bitmap) or hardware layer (FBO). Layers have various usages, including color filtering and performance improvements during animations. Change-Id: Ifc3bea847918042730fc5a8c2d4206dd6c9420a3
* LayoutLib: support for layers.Xavier Ducrohet2010-12-222-15/+15
| | | | | | | | | | | | | | | | | | | | | | | Layers require that drawing methods potentially draw in more than one bitmaps. To handle this this patch offers the following: - move all drawing methods to use Drawable - Drawables are now handled by GcSnapshot since its the one handling the layers - moved Canvas_Delegate.createCustomGraphics to GcSnapshot which does not expose the Graphics2D objects anymore so its draw() methods are the only way to draw. - handles creating layers in GcSnapshot.save() and blitting them in restore() Other changes: - Clean up the create/save API in GcSnapshot - Fixed drawing bitmaps with alpha and other composite modes. Change-Id: I1e230087493d044a10de71f4b6d29083e3f3bf64
* LayoutLib: Misc rendering fixes.Xavier Ducrohet2010-12-212-20/+23
| | | | | | | | | | | | | | | | | | | | | | - always set up the stroke. Paint may not have the proper style when drawing lines. stroke should still be setup. - Fixed vertical linear gradient. Old code generated a gradient ratio of NaN - Fixed alpha rendering when using shaders. In that case the alpha channel from the paint color should be used in conjunction with the shader. - Fixed miter limit. Java expects the value to be multiplied by the stroke width - Fixed support for drawing ALPHA_8 bitmaps. Java2D doesn't have bitmaps with only alpha channels, so we keep using ARGB bitmaps but when drawing them into a bitmap we erase the color information. Change-Id: I4f04341fc843e3f7dadd1fdbf709b11a4f1e24b9
* LayoutLib: support for Path and BitmapShader using delegates.Xavier Ducrohet2010-12-212-14/+14
| | | | | | | | | | Also created delegates for all missing shader, xfermode and patheffect classes. Moved the logic of the xfermode, and patheffects that was in Canvas_Delegate into the xfermode/patheffect classes, and added support (in all 3 clases) for knowing if the shader/xfermode/patheffect is actually supported or not. Make use of fidelityWarning in LayoutLog if they are not.
* Fix text shadow rendering issue.Romain Guy2010-12-151-0/+8
| | | | Change-Id: Ic9eb0d38ad684d2f2c95a4f586f865db911cb872
* Create some layout files for HwAccelerationTestXavier Ducrohet2010-12-144-26/+22
| | | | | | | | The goal is use the app to test layout lib, so layout files are needed, and custom views must be instantiable (ie public) Change-Id: I46bb3d8af6e4d7973d041aa618f1c7762efd93d0
* New, better line drawing implementation.Romain Guy2010-12-081-5/+19
| | | | | | | Bug #3207544 Bug #3225875 Change-Id: Ibdd1dfc64e01625d5c441f39eb0aa3ee647f6ff5
* Don't change textures wrap modes on every draw.Romain Guy2010-10-251-6/+8
| | | | Change-Id: If6d3f313778cc7f3e803a063338539c8b3e165e3
* Fix clipping issue in StackView.Romain Guy2010-10-152-0/+132
| | | | Change-Id: I7ec28f25c3993a2bd7ef6399ba1923839d239905
* Add 3D transforms support to all gradients.Romain Guy2010-10-071-1/+102
| | | | Change-Id: I61409edd00dab3a11684a3f5e4f7df0afc734758
* Apply 3D transformations to gradient shaders.Romain Guy2010-10-061-1/+56
| | | | | | | This fixes only linear gradients. Sweep and radial gradients, as well as bitmap shaders, will be fixed in a future commit. Change-Id: I4eee4ff62e9bbf3b9339fc111a780167449ecfef
* Code cleanup and disable display lists for now.Romain Guy2010-10-051-0/+2
| | | | Change-Id: I681213036b5279339cb96a016d1dfb15d74dafc8
* Apply bilinear filtering to text.Romain Guy2010-10-011-0/+29
| | | | Change-Id: I2c81ad657ee2a11a2139e0b11ae3749db54c0749
* Fix INVALID_OPERATION error with layers rendering.Romain Guy2010-10-013-1/+115
| | | | | | | | This change is a workaround for a driver bug that causes an INVALID_OPERATION to be thrown on every glCopyTexSubImage() call. This change also adds a new test for gradients local matrices. Change-Id: I41b7437481026702d0a3a9677f099b4557c0a84e
* Add support for circular gradients to the GL renderer.Romain Guy2010-09-211-11/+29
| | | | | | | This change also adds full support for local transformation matrices on sweep and radial gradients. Change-Id: Id8773bc0766575190e3f3d51984fc5e57b266c3f
* Add support for SweepGradient in the GL renderer.Romain Guy2010-09-201-0/+96
| | | | Change-Id: I7aa397ed4e34655ead9ba1f5b4ce087665e0f022
* Add support for drawLines(), with anti-aliasingRomain Guy2010-09-161-0/+4
| | | | Change-Id: I16c0593c5671490909dec13a85df601e1428a1a6
* Fix 9patch rendering.Romain Guy2010-09-151-4/+10
| | | | Change-Id: Ic4c18ff483cca95fbabcb10843f7714efe488adb
* Fix rendering issue with layers intersecting the clip rect.Romain Guy2010-09-132-17/+76
| | | | Change-Id: Icbe35194fa219ef13ce639d33631235f8d7df3d7
* Optimize calls to glCopyTexImage2D().Romain Guy2010-09-121-1/+1
| | | | Change-Id: I34ee87bd4472864f440916e03a2894fae24bbe4a
* Correct implementation of saveLayer().Romain Guy2010-09-1225-23/+225
| | | | Change-Id: I5375126636913e0a84f2d6bbd0ebe40d2e4f2763
* Add support for advanced blend modes with the framebuffer.Romain Guy2010-09-091-0/+111
| | | | | | | This adds the ability to blend with the framebuffer using Darken, Lighten, Add, Multiply, Overlay and Screen. Change-Id: Iae01a53797d4ad39c373cba6ff2a42293129da1a
* Correctly set the viewport on window resize.Romain Guy2010-09-071-0/+30
| | | | Change-Id: Idec325264d85feda76d4cda00fa511aaac82cf64
* Add test for gamma correction.Romain Guy2010-08-271-0/+102
| | | | Change-Id: Id2a311bc116438d3627a943cb5fb1ba8dc121bb0
* Use only one GL context per process, share chaches.Romain Guy2010-08-241-0/+12
| | | | Change-Id: Ieabaa25338d2f4b8d4fd90e7401ad6e7452eae11
* Test setTextScaleX()Romain Guy2010-08-201-1/+14
| | | | Change-Id: Iafa421def64a8f9a83b320b6cf3cc5286515c355
* Update OpenGLRenderer test to test opaque ARGB8888 bitmaps.Romain Guy2010-08-191-0/+82
| | | | Change-Id: I7159825f4b1d6f5a1cd09ec091994801b52b6bda
* Layers were using an extra Snapshot causing extra clipping.Romain Guy2010-08-181-0/+2
| | | | | | Bug #2919310 Change-Id: I72ccd44bba7a3f3db72f581aa96198b6226e4478
* Fix save()/restore() issues in the OpenGL renderer.Romain Guy2010-08-171-0/+27
| | | | | | The save stack now behaves exactly like in Skia. Change-Id: If7e642f41f2c8f693f6e8c26cba81507d466562e
* Correctly set the viewport in layers.Romain Guy2010-08-171-19/+13
| | | | | | Bug #2919295 Change-Id: I16ce79ab0d5747cb01c6c1abe531da3dfd93fb54
* Cleanup, better code reuse.Romain Guy2010-08-161-0/+65
| | | | Change-Id: Ib86a7309ae579cce3b7cf464782c34e70a74c616
* Add drop shadows.Romain Guy2010-08-131-1/+9
| | | | Change-Id: Ic6a72409d4785968d1fbdff229f17ee5c00b240b
* Add extra blending modes.Romain Guy2010-08-101-0/+138
| | | | | | | | | | | | This change adds the following blending modes for shaders and color filters: Add Multiply Screen Overlay Darken Lighten Change-Id: Iff22f5ce6041b43c71b1857d73013f5010ab3413
* Add support for text underline and strikethru.Romain Guy2010-08-101-0/+15
| | | | Change-Id: I3a0e6643d7cafbdd06d9a908c8cf9347dcaba146
* Fix tons of bugs and add new text rendering support.Romain Guy2010-08-101-0/+40
| | | | Change-Id: I326c66b10784006f6df2f12d38e120cef94cd0d7
* Add 3d transformation test.Romain Guy2010-08-051-0/+97
| | | | Change-Id: Ia163af802e5a320490196461a97d5f797b71abb4
* Add support for paths.Romain Guy2010-08-051-0/+144
| | | | | | | Rendering is implementing by rasterizing the paths into A8 textures. This cna be extremely inefficient if the path changes often. Change-Id: I609343f304ae38e0d319359403ee73b9b5b3c93a