summaryrefslogtreecommitdiffstats
path: root/tools/layoutlib/bridge/src/android/graphics/Canvas.java
Commit message (Collapse)AuthorAgeFilesLines
* Layoutlib Canvas and Paint implementation through native delegatesXavier Ducrohet2010-11-011-1247/+0
| | | | | | | Also fix native delegate generation to put "this" parameter even for methods that don't have any parameters. Change-Id: I5dd0c505871370ff7b4cda16de84a5b3ae438f73
* Implement the layoutlib Bitmap through a native delegate.Xavier Ducrohet2010-10-291-3/+3
| | | | | | | | | This does not implement all the native methods of the android.graphics.Bitmap class, only what's needed to draw an ImageView object. The rest will be implemented after Canvas and Paint have been moved to the native delegate. Change-Id: Ia0c3b2cafa03871c298deaef5817a25ac1c35521
* Reimplement the native matrix method using the new delegate way.Xavier Ducrohet2010-10-271-13/+4
| | | | | | | | | | | | Instead of renaming the old Matrix class into _Original_Matrix and have layoutlib provide a full new implementation of Matrix, we keep the old one by only modifying it to implement the native methods which calls out to a new Matrix_Delegate class. The goal is to not have to maintain the java portion in sync between the framework and the layoutlib version. Change-Id: I3e1aefffbae45e91b75331c0c6ff2260323deacd
* Make libhwui entirely optional.Romain Guy2010-08-081-23/+0
| | | | | | | | | | | | 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
* Remove empty finalize methods.Carl Shapiro2010-02-241-5/+0
|
* ADT/Layoutlib: Add dash support to stroke.Xavier Ducrohet2010-01-151-38/+37
| | | | Change-Id: I09a7e84948be013cbb11f6d9774ab81df897b424
* ADT/Layoutlib: properly handle stroke information.Xavier Ducrohet2010-01-141-2/+14
| | | | Change-Id: Iec9284d0e65d1313739e361d1fd5a522646fd1fd
* ADT/Layoutlib: don't draw 0-sized rectangle, AWT doesn't like that.Xavier Ducrohet2010-01-141-28/+32
| | | | Change-Id: I298d00208ace2421478c5864cc5a66a508b2b411
* ADT/Layoutlib: shader clean-up.Xavier Ducrohet2010-01-141-1/+1
| | | | Change-Id: I0a200f438b7ccde2bfc19fd23614a647cb19d312
* ADT/Layoutlib: 2 color, linear gradient support.Xavier Ducrohet2010-01-131-8/+11
| | | | Change-Id: Ifaafa4fc42a22f4851449a7c35a5b82e211aafe7
* ADT/Layoutlib: implement Canvas.concat(Matrix)Xavier Ducrohet2010-01-131-16/+28
| | | | | | | | | | | | This prevented ImageView from making proper use of ScaleType. Also fixed Canvas.getSaveCount() that returned the wrong value and Matrix.getTransform() which used the wrong order for the AffineTransform constructor!! Bug: 2364564 Change-Id: I78babf4aa6689440e52ad06b1473f75b20eb66da
* Support for fallback fonts in layoutlib.Xavier Ducrohet2009-11-091-6/+84
| | | | | | BUG 2041229 Change-Id: Ib12bcb7f6d8f0e4c2b51871f8129ecf51fa938ee
* Improved drawing/matrix support in layoutlibXavier Ducrohet2009-08-171-0/+1176
- Make the custom Canvas actually replace the original one so that it's used even by parts of the framework that allocate their own temp Canvas object. - Better support for Matrix: added support for mapPoint() and mapRect(), and invert() - Implemented drawBitmap() with a Matrix, and made the paint object not NPE when null.