summaryrefslogtreecommitdiffstats
path: root/graphics/java
Commit message (Collapse)AuthorAgeFilesLines
* Add inPremutiplied option to BitmapFactory.Options, functionality in BitmapChris Craik2013-08-203-42/+105
| | | | | | bug:2248948 Change-Id: I8fdd649332667598504a1076d5a447572bd53086
* Merge "Renderscript: Allow YUV_420_888 as a YUV type." into klp-devEino-Ville Talvala2013-08-211-6/+10
|\
| * Renderscript: Allow YUV_420_888 as a YUV type.Eino-Ville Talvala2013-08-141-6/+10
| | | | | | | | Change-Id: I1ed731103a49a814f9a049ecd01be98261b6d06b
* | Remove comment that's only relevant for the underlying SkMatrix. Matrix has ↵Mike Klein2013-08-141-3/+0
| | | | | | | | | | | | | | | | constructors. bug: 8470620 Change-Id: I00063dc03f752955c27c73e9c59b0496a1795924
* | Camera.applyToCanvas() now works with hardware canvasesRomain Guy2013-08-131-1/+9
|/ | | | Change-Id: I7f06b2a74ccc1941d51e12a0417028e094c1b669
* Update Bitmap.createBitmap() documentationRomain Guy2013-08-121-1/+6
| | | | Change-Id: Ic2efed6cc03c8b2c2d9810b7ab645b0b98b91e1f
* Merge "Fix bug #10205316 CTS (KLP): android.graphics tests are failing" into ↵Fabrice Di Meglio2013-08-091-0/+2
|\ | | | | | | klp-dev
| * Fix bug #10205316 CTS (KLP): android.graphics tests are failingFabrice Di Meglio2013-08-081-0/+2
| | | | | | | | | | | | | | | | - fix null Shader case during copy Related to https://googleplex-android-review.googlesource.com/#/c/336815/7 Change-Id: I920d6bb181ddb92d6f771e5060fd1858430e71ad
* | Remove an unnecessary allocationRomain Guy2013-08-091-3/+7
| | | | | | | | | | | | Also remove dead code from OpenGLRenderer.cpp Change-Id: I7eb54ca19e77ee3c32f1fe9513a031e6b2e115cf (cherry picked from commit 5c7d5ab878b26f855175a3305a14ac12fcacf25e)
* | Refactor Canvas.drawPicture() to delegate to PictureJonathan Dixon2013-08-081-3/+3
|/ | | | | | | | | Bug: 9814370 To allow WebView.capturePicture() to return a subclass, we need to ensure the subclass is always consulted when being drawn into a canvas. Change-Id: Ia0357f95b6fafb3ac81e6bcfaef05739e619897a
* Clearly separate consumer and producer interfacesMathias Agopian2013-08-061-0/+1
| | | | | Bug: 9265647 Change-Id: Ic68e91788d0a05251e1d2fb9f9d4de403c7099bf
* am eab8e18d: am 8a736129: Merge "If graphics wants ASCII lowercasing, it ↵Elliott Hughes2013-08-051-2/+2
|\ | | | | | | | | | | | | needs to ask for it." * commit 'eab8e18d8f6f34a9d35fbb120148956789ad48a2': If graphics wants ASCII lowercasing, it needs to ask for it.
| * am 8a736129: Merge "If graphics wants ASCII lowercasing, it needs to ask for ↵Elliott Hughes2013-08-051-2/+2
| |\ | | | | | | | | | | | | | | | | | | it." * commit '8a736129faa9e41b5f33c42bbeae1f68cb42d38f': If graphics wants ASCII lowercasing, it needs to ask for it.
| | * If graphics wants ASCII lowercasing, it needs to ask for it.Elliott Hughes2013-08-021-2/+2
| | | | | | | | | | | | | | | | | | | | | http://elliotth.blogspot.com/2012/01/beware-convenience-methods.html Bug: https://code.google.com/p/android/issues/detail?id=58359 Change-Id: I13c106985302335dbb15bb9176d35ec6b4546d4e
* | | Merge "graphics: Update ImageFormat#YUV_420_888 javadoc"Igor Murashkin2013-08-021-2/+18
|\ \ \
| * | | graphics: Update ImageFormat#YUV_420_888 javadocIgor Murashkin2013-08-021-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Make it clear that the Y-plane is not interleaved for YUV_420_888 * Make it clear that the U/V plane have the same stride * Make it clear what the order of Y/U/V planes is Change-Id: Id85d7c68e84382149dbf0e8b4e965ba2988326fe
* | | | Add automatic Drawable mirroring capability when in RTL layout directionFabrice Di Meglio2013-08-016-7/+165
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - default value is "no mirroring" - introduce android:autoMirrored as a new attribute for Drawable, BitmapDrawable, LayerDrawable, StateListDrawable and NinePatchDrawable - setting android:autoMirrored="true" means that the drawable will be mirrored when the layout direction is RTL (right-to-left) - also fix an issue with ImageView drawable layout direction not updated correctly when RTL properties were changed See bug #7034321 Need Drawable RTL support Change-Id: If595ee5106c786f38e786d3a032e182f784a9d97
* | | | Merge "Fix Paint Shader copy"Fabrice Di Meglio2013-08-017-4/+241
|\ \ \ \
| * | | | Fix Paint Shader copyFabrice Di Meglio2013-08-017-4/+241
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Paint.setClassVariablesFrom(Paint paint) was using the same Shader for the copy as the initial Paint. Make sure that we are using a copy. - implement a copy() API for shaders See bug #7034321 Need Drawable RTL support Change-Id: I4b9cee386edc72ad670723266333b85f4d2b0ab8
* | | | | Merge "Add missing alpha channel to built-in colors"Romain Guy2013-08-011-9/+9
|\ \ \ \ \
| * | | | | Add missing alpha channel to built-in colorsRomain Guy2013-08-011-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I911c17b623513b2715668d0f91604b28c32a969a
* | | | | | Support RGBA fonts and bitmap fonts (and RGBA bitmap fonts)Victoria Lease2013-07-311-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Quite a few things going on in this commit: - Enable bitmap strikes by default in Paint objects. The SkPaint parameter that enables bitmap strikes was not previously included in DEFAULT_PAINT_FLAGS. This effectively disabled bitmap fonts. Oops! It's for the best, though, as additional work was needed in Skia to make bitmap fonts work anyway. - Complain if TEXTURE_BORDER_SIZE is not 1. Our glyph cache code does not currently handle any value other than 1 here, including zero. I've added a little C preprocessor check to prevent future engineers (including especially future-me) from thinking that they can change this value without updating the related code. - Add GL_RGBA support to hwui's FontRenderer and friends This also happened to involve some refactoring for convenience and cleanliness. Bug: 9577689 Change-Id: I0abd1e5a0d6623106247fb6421787e2c2f2ea19c
* | | | | | Merge "Add missing InsetDrawable.getDrawable() method"Romain Guy2013-07-311-0/+7
|\ \ \ \ \ \ | |/ / / / /
| * | | | | Add missing InsetDrawable.getDrawable() methodRomain Guy2013-07-301-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I216b0e8a327f495fd83ebac79013418dbae007b9
* | | | | | Camera2 API: Rename package to android.hardware.camera2Eino-Ville Talvala2013-07-301-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I77b7939e199f9fe8e12a59393c24cff08097448c
* | | | | | Merge "Add path ops API"Romain Guy2013-07-301-13/+94
|\ \ \ \ \ \ | |/ / / / /
| * | | | | Add path ops APIRomain Guy2013-07-301-13/+94
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Path ops can be used to combine two paths instances in a single path object. The following operations can be used: - Difference - Reverse difference - Union - XOR - Intersection To use the API: Path p1 = createCircle(); Path p2 = createRect(); Path result = new Path(); result.op(p1, p2, Path.Op.DIFFERENCE); This code will subtract the rectangle from the circle and generate the resulting path in "result." Change-Id: Ic25244665b6691a7df0b0002a09da73d937b553b
* | | | | Relax restriction on Colormatrix and add Add step.Jason Sams2013-07-291-15/+111
|/ / / / | | | | | | | | | | | | Change-Id: Iccb519bb40f58f02346b5c0a10c1378cb853e3f8
* | | | fix SDK buildMathias Agopian2013-07-271-1/+1
| | | | | | | | | | | | | | | | Change-Id: I41c19740b8f0532dbd6184e13bae43a13aaa46e2
* | | | single buffer mode for SurfaceTextureMathias Agopian2013-07-261-10/+43
| | | | | | | | | | | | | | | | | | | | Bug: 9891035 Change-Id: Ib9cc2b64f7ff3c084ef1d7db442db8e7a24a923d
* | | | Merge changes I487d4eef,Ia750811fMathias Agopian2013-07-261-7/+38
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | * changes: get rid of PixelFormatInfo and simplify things get rid of PIXEL_FORMAT_A_8
| * | | | get rid of PixelFormatInfo and simplify thingsMathias Agopian2013-07-251-7/+38
| |/ / / | | | | | | | | | | | | Change-Id: I487d4eef7db0095ace4babf5bb100a8769711257
* | | | am 8d9a4bd1: am 174dd066: Merge "remove link to renderscript support ↵Scott Main2013-07-241-5/+0
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | library" into jb-mr2-ub-dev * commit '8d9a4bd1eb09cc795bf96c4f3a2824f9642c70e4': remove link to renderscript support library
| * | | remove link to renderscript support libraryScott Main2013-07-231-5/+0
| | |/ | |/| | | | | | | Change-Id: If8e693239b92058c0a2928e0811870bec3a150fe
* | | Use IllegaleStateException to be consistent with rest of Bitmap classChris Craik2013-07-231-2/+2
| |/ |/| | | | | Change-Id: Idd1c77f92eafa8a43619d27a9567382447540e5f
* | Merge "update to new Consumer APIs"Mathias Agopian2013-07-201-17/+2
|\ \
| * | update to new Consumer APIsMathias Agopian2013-07-161-17/+2
| | | | | | | | | | | | Change-Id: I8649f3add40e0aeeeb0396b98e2cb93312e8e990
* | | Merge "Add reconfigure method to Bitmap"Chris Craik2013-07-182-27/+130
|\ \ \
| * | | Add reconfigure method to BitmapChris Craik2013-07-172-27/+130
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | bug:9797004 Grants a means to reuse a bitmap's allocation for different width/height/Config without going through BitmapFactoryOptions.inBitmap Change-Id: Ib62319f3bd96c451fc1636288adf06a8275b4e3d
* | | Fix crashes in setMatrix() and concat()Romain Guy2013-07-161-2/+3
|/ / | | | | | | | | | | | | setMatrix() was crashing in native code, only with hw acceleration on. concat() would throw a NullPointerException. It now ignores null matrices. Change-Id: Iebd8b410a957d2ba501570c6fbb3f680ff4a1a23
* | Trace bitmaps decodingRomain Guy2013-07-111-34/+45
| | | | | | | | | | | | Also remove dead code Change-Id: Ie931b21858ccbe6ee4def54caf028fd2aed23317
* | Merge "Minor fixes to android.graphics.Matrix"Andy McFadden2013-07-101-13/+29
|\ \
| * | Minor fixes to android.graphics.MatrixAndy McFadden2013-07-091-13/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tweaked equals() and finalize(), introduced trivial hashCode(). (Also picked up a handful of automatic trailing-space removals.) Bug 9756081 Change-Id: I4639cf1e970a16179fa6c0d24785f4d0dfbe58ed
* | | Use global references for Bitmap AndroidPixelRefsChris Craik2013-07-081-1/+5
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug:9621717 Because we're no longer holding onto Bitmaps Java side during DisplayList lifetime, use global refs to keep the backing byte arrays around. Adds back bitmap buffer passing + native ref management removed by 3b748a44c6bd2ea05fe16839caf73dbe50bd7ae9 Adds back globalRef-ing removed by f890fab5a6715548e520a6f010a3bfe7607ce56e Change-Id: Ia59ba42f05bea6165aec2b800619221a8083d580
* | Merge "Add 2,3 vectors to allowed intrinsic list."Jason Sams2013-06-272-2/+16
|\ \
| * | Add 2,3 vectors to allowed intrinsic list.Jason Sams2013-06-272-2/+16
| | | | | | | | | | | | Change-Id: Iafd90ef4337076ed9d1e335c16272a0517f846b3
* | | Refcount 9-patches and properly handle GC eventsRomain Guy2013-06-261-47/+115
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds refcounting of Res_png_9patch instances, the native data structure used to represent 9-patches. The Dalvik NinePatch class now holds a native pointer instead of a Dalvik byte[]. This pointer is used whenever we need to draw the 9-patch (software or hardware.) Since we are now tracking garbage collection of NinePatch objects libhwui's PatchCache must keep a list of free blocks in the VBO used to store the meshes. This change also removes unnecessary instances tracking from GLES20DisplayList. Bitmaps and 9-patches are refcounted at the native level and do not need to be tracked by the Dalvik layer. Change-Id: Ib8682d573a538aaf1945f8ec5a9bd5da5d16f74b
* | (Small) 9patch drawing improvementsRomain Guy2013-06-242-43/+38
| | | | | | | | | | | | | | Save a bit of memory in meshs generated from native code Avoid an extra if/else when drawing with hardware accelration on Change-Id: I31a4550bde4d2c27961710ebcc92b66cd71153cc
* | Generate PDF from Canvas.Svetoslav Ganov2013-06-191-13/+39
| | | | | | | | | | | | | | This change adds simple APIs that enable an Android application to generate a PDF document by drawing content on a canvas. Change-Id: Ibac93d7c37b01a376ce7c48238657d8c7698d588
* | Fix docsJason Sams2013-06-181-2/+3
| | | | | | | | Change-Id: Ie6563f633481951d97f319aefd282b15c049e281