summaryrefslogtreecommitdiffstats
path: root/graphics
Commit message (Collapse)AuthorAgeFilesLines
* Add script to script call support. Add exception to catch out of bound ↵Jason Sams2009-10-071-0/+5
| | | | index data when added to TriangleMeshBuilder.
* add (hidden) setHasAlpha() to allow clients like the view's cache to hint ↵Mike Reed2009-10-071-1/+25
| | | | | | that a bitmap is opaque. Knowing that a 32bit bitmap is opaque is a performance boost for some blits.
* Implement data push from scripts. Fixes the problem where apps would have ↵Jason Sams2009-10-062-0/+89
| | | | | | | | to poll to monitor a scripts state. Fix bug in StoreState where state could be overridden by the default unless the script used more than one state. Change only impacts renderscript and renderscript apps.
* Update the SimpleMesh API to support new attribute types. Also spilt ↵Jason Sams2009-10-021-51/+79
| | | | add/set commands to avoid permutation explosion.
* hide setGammaForText, which is only used for calibrating new devicesMike Reed2009-10-011-0/+2
|
* Update from API review.Dianne Hackborn2009-09-301-0/+2
| | | | Change-Id: I16b1c566f91167aac9615ac59dd297a154c828ea
* if we have a single value for roundrect radius, manually clamp it before ↵Mike Reed2009-09-291-0/+9
| | | | | | | | | | | drawing. Skia will clamp the radius independently in X and Y to ensure it is not larger than 1/2 the width (or height). If the caller to our drawable gives us a single value, we'll assume they want it to be circular, and not an oval. To do that, we clamp it up front, so we get (possibly smaller) circular corners, rather than potentially elliptical ones. This makes the progress bar look "nicer" when it is very thin in one dimension.
* Whoops, these shouldn't be public.Dianne Hackborn2009-09-291-4/+4
| | | | Change-Id: I66057b1fb63b97ad79cea7056849274c6a7b3ed4
* Merge change I6cacaa0d into eclairAndroid (Google) Code Review2009-09-291-12/+114
|\ | | | | | | | | * changes: Hack to fix issue #2125365: Sports Trivia compatability with Eclair
| * Hack to fix issue #2125365: Sports Trivia compatability with EclairDianne Hackborn2009-09-281-12/+114
| | | | | | | | | | | | | | | | | | Adds a mechanism to tell Paint the scaling factor its target canvas will have, for it to compute font metrics based on the correct font size. Only TextView uses this, but that is enough for the large majority of apps. Change-Id: I6cacaa0dd26d40ee3ad959bed0028678d6e9016e
* | Fix but processing raster state pragma.Jason Sams2009-09-281-2/+2
|/ | | | rename stateFragmentStore to stateStore
* Improve logging code to dump more detaild rs object info. Fix bug with ↵Jason Sams2009-09-275-156/+195
| | | | predefined elements not being recreated for contexts after one was destroyed. Add stricter type enforcement.
* Reduce debugging spew and add props to selectivly re-enable it.Jason Sams2009-09-251-7/+7
| | | | change-id: Ib59ed5d7a9d479ccd1af456029735dbc65ae1efe
* Improve renderscript context teardown. Track object in the system and then ↵Jason Sams2009-09-252-1/+6
| | | | force their cleanup by releasing all user references once destroy context is called. Java layer will no longer send destroy notifications for objects garbage collected once a context is destroyed.
* Add a method to destroy the RS object.Joe Onorato2009-09-251-1/+4
|
* Implement pause/resume for the RS thread.Jason Sams2009-09-243-2/+37
|
* Remove depricated triangleMesh.Jason Sams2009-09-232-150/+15
|
* Fix issue #2125720 Weather Forecast Widget - graphics do not scaleDianne Hackborn2009-09-231-2/+7
| | | | | | I forgot to add the new density field to the Bitmaps' parcelable data. Change-Id: I77cf3e93e356297e0caed6fc71b62b5cd8f79124
* Merge change 26667 into eclairAndroid (Google) Code Review2009-09-234-3/+180
|\ | | | | | | | | * changes: Add raster object to control point and line params. Add flag to force SW rendering.
| * Add raster object to control point and line params. Add flag to force SW ↵Jason Sams2009-09-234-3/+180
| | | | | | | | rendering.
* | Fix #2101821: Cut labels of menu items in "SnapTell" market app.Dianne Hackborn2009-09-231-6/+20
|/ | | | | | | | | Ummmm... this turns out to be pretty bad. NinePatchDrawable was not scaling its reported padding for compatibility mode, causing spacing to be off. All over the place. This change should improve things quite a bit (and magically makes nearly all of the menu flaws go away). Change-Id: I94a8310d95b908b6f087db97d9afaed654ca6de5
* Implement more type checks on Allocations.Jason Sams2009-09-216-101/+185
| | | | | Add tracking for allocations created using the "sized" helper. Add more param validation for data upload calls.
* Fix 2092386: Support yuyv for camera preview format.Chih-Chung Chang2009-09-211-0/+7
| | | | Change-Id: I3ef821fed2132a9faf92983324c7e036d0f5641e
* Clean up some debugging and add 2 math lib routines.Jason Sams2009-09-181-7/+0
|
* Merge change 25394 into eclairAndroid (Google) Code Review2009-09-161-5/+8
|\ | | | | | | | | * changes: Add StateListDrawable's dither flag to the constant state.
| * Add StateListDrawable's dither flag to the constant state.Romain Guy2009-09-161-5/+8
| | | | | | | | Change-Id: Ie377bfe3dfb83c33df3c0cc5a02810332a60a322
* | Merge change 25185 into eclairAndroid (Google) Code Review2009-09-163-0/+64
|\ \ | |/ |/| | | | | * changes: Implement renderscript Invokables.
| * Implement renderscript Invokables.Jason Sams2009-09-163-0/+64
| |
* | Build the BitmapShader if it hasn't been built yet.Romain Guy2009-09-151-1/+2
|/ | | | | | This was causing a bug in the InCall UI where the background would be stretched. Change-Id: Ie25a7d09f4779f166e267b2f921d40441ce361d2
* redraw once more on a touch-up if we've been dragging, so we can redraw in ↵Mike Reed2009-09-151-4/+10
| | | | | | high-quality mode update dox on BlurMaskFilter
* Merge change 25100 into eclairAndroid (Google) Code Review2009-09-153-4/+72
|\ | | | | | | | | * changes: Implement Object readback.
| * Implement Object readback.Jason Sams2009-09-153-4/+72
| |
* | Fix issue #2116977: buttons are huge and bentDianne Hackborn2009-09-1417-108/+263
|/ | | | | | | | Now that we are using preloaded drawables in compatibilty mode, when constructing them from their constant state we need to set the new drawable's target density appropriately. Change-Id: I3665cbea09d38b9ac5f45f8c380dc8641f86b266
* Various cleanup around resources and nine-patches.Dianne Hackborn2009-09-111-0/+6
| | | | | | | | | | | | | | | | | | | Remove the stuff that doesn't use preloaded drawables when in compatibility mode, since this works fine ever since we were able to deal with drawables in a different density than the canvas. Change the snapshot function on View to return a snapshot at the same size that will actually be drawn on screen (when in compatibility mode), to be able to show scaling artifacts and all. This change was original an attempt to fix issue #2101917: Text field edges appears to be improperly rounded. That turns out to probably be something deeper in the graphics system, but also included here is the debugging code I did to try to track down the problem to make it easy to turn on again later. Change-Id: I34bfca629639c7ff103f3989d88874112ef778d9
* change default for dither to trueMike Reed2009-09-114-10/+39
|
* resolved conflicts for merge of e0408aa1 to eclairScott Main2009-09-101-0/+6
|\
| * docs only.Scott Main2009-09-101-0/+6
| | | | | | | | | | | | | | add documentation to notify developers about variable camera specifications and add some more links Change-Id: I46ef9811af17858cbc6547f88e626becb481b043
* | default dithering to ON (cheap, looks good)Mike Reed2009-09-101-0/+10
| | | | | | | | officially ignore filtering (expensive, no real improvement)
* | Remove "predefined" elements from Java layer. Static elements continue to ↵Jason Sams2009-09-044-178/+236
| | | | | | | | exist but are no longer treated as a special version of element.
* | Improve structure support using symbol lookup of named structures in scripts ↵Jason Sams2009-09-035-28/+38
| | | | | | | | to allow them to appear as just pointers to structs.
* | Don't leak jni refs.Joe Onorato2009-08-311-2/+2
| |
* | Load bitmap resources entirely from native code.Romain Guy2009-08-314-18/+76
| | | | | | | | Change-Id: I6660baec241794c40611bce79b7f9ce9479e52ba
* | Implement async data/subData. Implement TriangleMeshBuilder in SimpleMesh ↵Jason Sams2009-08-275-79/+322
| | | | | | | | which replaces TriangleMesh. Update Film to use new builder.
* | Remove bogus comments and logging.Jason Sams2009-08-251-8/+0
| |
* | Implement java interface for RS shutdown and fix shutdown deadlock with the ↵Jason Sams2009-08-251-0/+7
| | | | | | | | command fifo.
* | Add support for selecting the color bit depth and if the application used a ↵Jason Sams2009-08-253-11/+8
| | | | | | | | depth buffer.
* | expose runtime changes to gammaMike Reed2009-08-251-0/+10
| |
* | I am getting tired of the java doc warnings, so fix them.Dianne Hackborn2009-08-242-0/+4
| | | | | | | | Change-Id: I2205eebae419eaf4a0992c9f5b7cd807eb843fe1
* | Add dither XML flag to StateListDrawable.Jeff Sharkey2009-08-221-0/+2
| | | | | | | | | | | | | | | | | | | | We currently allow the dither="true" flag to be set on individual <bitmap> and <nine-patch> objects, but that flag is overridden when they are included in a <selector>. This change adds the dither="true" flag to StateListDrawable so they can be dithered when desired. Fixes http://b/issue?id=2068024
* | Allow null to be re-bound as a root script. This was always legal from ↵Jason Sams2009-08-201-1/+5
| | | | | | | | native and just a limitation of the java binding for the API.