summaryrefslogtreecommitdiffstats
path: root/graphics
Commit message (Collapse)AuthorAgeFilesLines
* Fix build break.Jason Sams2009-08-121-1/+1
|
* Implement reflecting Java objects into the ACC enviroment.Jason Sams2009-08-126-16/+263
|
* readData should read the data, not write the data.Joe Onorato2009-08-121-3/+3
|
* Fix the simulator build by removing librs_jni and libRS from it.Marco Nelissen2009-08-121-0/+7
| | | | | | | Since libacc isn't 64-bit clean (it casts pointers to integers), and so can't be built for the gHardy simulator, everything that depends on it can't be built for the simulator either, which means removing libRS and librs_jni.
* Fix the buildRomain Guy2009-08-111-1/+1
|
* Add two addDefines methods to ScriptC.Builder. They add #defines from the ↵Joe Onorato2009-08-101-0/+40
| | | | fileds on a class or object that you pass in.
* Merge change 20657Android (Google) Code Review2009-08-101-1/+1
|\ | | | | | | | | * changes: Fix possible NPE when mutating a DrawableContainer
| * Fix possible NPE when mutating a DrawableContainerRomain Guy2009-08-101-1/+1
| |
* | Implement basic allocation readback. Add Get height, width to ScriptC_Lib.Jason Sams2009-08-103-0/+38
| |
* | build libRSJoe Onorato2009-08-101-2/+1
|/
* Let java put #defines into renderscriptJoe Onorato2009-08-093-9/+71
|
* Begin implementing SimpleMesh and fix some bugs with refcounting and java ↵Jason Sams2009-08-0912-20/+323
| | | | object destruction tracking.
* Remove useless slot from ProgramVertex. Optimize GL state setup.Jason Sams2009-08-053-16/+6
|
* Seperate ProgramVertex from RenderScript.java and merge ProgramVertexAlloc ↵Jason Sams2009-08-045-176/+204
| | | | into the ProgramVertex class.
* Seperate Light and Sampler from RenderScript.javaJason Sams2009-08-044-104/+201
|
* Split ProgramFragment and ProgramStore from RenderScript.java. Update ↵Jason Sams2009-08-047-259/+454
| | | | Element and Type to new cached builder for easier app developement.
* Split ScriptC from RenderScript.java. Implement state caching in the ↵Jason Sams2009-08-043-100/+197
| | | | Builder objects.
* Merge change 9551Android (Google) Code Review2009-08-033-19/+144
|\ | | | | | | | | * changes: Implement the jni bindings for Adapter2D. Fix a refcount bug in the native adapter implementation. Use adapters in Film to border the mipmaps.
| * Implement the jni bindings for Adapter2D. Fix a refcount bug in the native ↵Jason Sams2009-08-033-19/+144
| | | | | | | | adapter implementation. Use adapters in Film to border the mipmaps.
* | Add new utility methods to rsScriptC_Lib, android.util.MathUtil and ↵Romain Guy2009-07-311-14/+182
|/ | | | | | android.graphics.Color. Fixes RS compilation.
* Split RenderScript Type and Allocation into seperate classes.Jason Sams2009-07-315-190/+288
|
* Begin splitting up RenderScript.java into seperate classes. First piece ↵Jason Sams2009-07-314-289/+441
| | | | split off Element.
* First pass at implementing the Grass live wallpaper in RenderScript.Romain Guy2009-07-302-1/+29
| | | | This change also adds second(), minute() and hour() to the RS library.
* am 25dff70f: Merge change 9039 into donutAndroid (Google) Code Review2009-07-301-6/+23
|\ | | | | | | | | | | | | Merge commit '25dff70f153529b87f5ad4a92f4de21e8950b1de' * commit '25dff70f153529b87f5ad4a92f4de21e8950b1de': Fix #2018814: System cannot correctly render assets with "wrap_content" attribute in QVGA
| * Fix #2018814: System cannot correctly render assets with "wrap_content" ↵Dianne Hackborn2009-07-291-6/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | attribute in QVGA It turns out we were not returning the density for anything retrieved from a TypedArray... which basically means any bitmap references from a layout or style...!!! This is now fixed. Also fiddle with the density compatibility mode to turn on smoothing in certain situations, helping the look of things when they need to scale and we couldn't do the scaling at load time.
* | Implement bitmap resource loaders for utility. cleanup rolloRS and checkin ↵Jason Sams2009-07-301-2/+20
| | | | | | | | maps.png which was missing.
* | Merge change 8835Android (Google) Code Review2009-07-282-1/+31
|\ \ | | | | | | | | | | | | * changes: Add "boxed" bitmap uploads which simply place a non-pow2 bitmap into the smallest larger pow texture. The added space is filled black.
| * | Add "boxed" bitmap uploads which simply place a non-pow2 bitmap into the ↵Jason Sams2009-07-282-1/+31
| | | | | | | | | | | | smallest larger pow texture. The added space is filled black.
* | | am ef9fd18d: Merge change 8616 into donutAndroid (Google) Code Review2009-07-272-31/+86
|\ \ \ | | |/ | |/| | | | | | | | | | | | | Merge commit 'ef9fd18d90829ecbd37769cc05a8d5288aff821c' * commit 'ef9fd18d90829ecbd37769cc05a8d5288aff821c': Fiddle with default densities to try to sanitize the API.
| * | Fiddle with default densities to try to sanitize the API.Dianne Hackborn2009-07-262-31/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | An issue with the density API is that bitmaps assumed the old default density, so new programs would have to explicitly set the correct density for every bitmap they create. This is an attempt to fix that situation, by define the default density of bitmaps to be the main screen's density, except for old apps where it is the original default density. Actually implementing this is not so great, though, because the Bitmap constructors can't really know anything about who is calling them to know which density to use. So at this level the compatibility mode is defined per-process -- meaning the initial package loaded into a process defines the default bitmap density, and everyone else loaded in later on has to live with that. In practice this shouldn't be much of a problem, there shouldn't be much mixing of old vs. new apps in a process. It does mean that, going forward, if a developer is going to use shared user IDs for this, they will need to make sure either that all of their apps are in the same compatibility mode, or that their code explicitly sets the density of bitmaps it receives. This isn't all that great, but I think it is worth the benefit of allowing people who write modern apps to not have to deal with bitmap densities. This change also does some cleanup of the density management (making sure to always copy over bitmap densities, etc) and adds java docs to explain the various ways density is set and used by the system.
* | | am 11ea3347: Allow for screen density drawables in compatibility mode.Dianne Hackborn2009-07-247-283/+465
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '11ea33471e1a14a8594f0b2cd012d86340dd3bd8' * commit '11ea33471e1a14a8594f0b2cd012d86340dd3bd8': Allow for screen density drawables in compatibility mode.
| * | Allow for screen density drawables in compatibility mode.Dianne Hackborn2009-07-247-283/+465
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change allows us to use drawables that match the current screen density even when being loaded in compatibility mode. In this case, the bitmap is loaded in the screen density, and the bitmap and nine-patch drawables take care of accounting for the density difference. This should be safe for existing applications, for the most part, since they shouldn't really be pulling the bitmap out of the drawable. For the small rare chance of them breaking, it worth getting the correct graphics. Also this will only happen when there is actually a resource of the matching density, and no existing apps should have resources for anything besides the default density (though of course all of the framework resources will be available in the native density). As part of this, the bitmap density API has been changed to a single integer provider the DPI unit density.
* | | Merge change 8421Android (Google) Code Review2009-07-231-1/+4
|\ \ \ | | |/ | |/| | | | | | | * changes: Unbreak build by making the build of renderscript again conditional on BUILD_RENDERSCRIPT until we can figure out why the build servers see an error that does not reproduce locally.
| * | Unbreak build by making the build of renderscript again conditional on ↵Jason Sams2009-07-231-1/+4
| | | | | | | | | | | | BUILD_RENDERSCRIPT until we can figure out why the build servers see an error that does not reproduce locally.
* | | Merge change 8279Android (Google) Code Review2009-07-236-0/+2616
|\ \ \ | |/ / | | | | | | | | | * changes: Move the java and jni renderscript files to the proper location.
| * | Move the java and jni renderscript files to the proper location.Jason Sams2009-07-236-0/+2616
| | |
* | | am 59c25cba: Merge change 8218 into donutAndroid (Google) Code Review2009-07-221-3/+8
|\ \ \ | | |/ | |/| | | | | | | | | | | | | Merge commit '59c25cbaf0dd690e503b881392510127441d9074' * commit '59c25cbaf0dd690e503b881392510127441d9074': DrawableContainer was not respecting the value returned by Drawable.getPadding(Rect).
| * | DrawableContainer was not respecting the value returned by ↵Romain Guy2009-07-221-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Drawable.getPadding(Rect). Before this change, DrawableContainer would always return true from getPadding(Rect) even if all of its children were returning false from getPadding(Rect). This change modifies this behavior to respect getPadding(Rect): mConstantPadding is kept null when getPadding(Rect) returns false for all of the children and a flag is set to avoid recomputing that value every time getConstantPadding() is invoked.
* | | am fe6f45c8: Merge change 8098 into donutAndroid (Google) Code Review2009-07-211-4/+4
|\ \ \ | |/ / | | / | |/ |/| | | | | Merge commit 'fe6f45c81463d2d28e11ac6083f2653e1286c5ef' * commit 'fe6f45c81463d2d28e11ac6083f2653e1286c5ef': cast is floor. Use round instead.
| * cast is floor. Use round instead.Mitsuru Oshima2009-07-211-4/+4
| | | | | | | | This fixes a few layout issues (that was due to smaller widnow size)
* | am 5c536e91: Merge change 7840 into donutAndroid (Google) Code Review2009-07-191-4/+43
|\ \ | |/ | | | | | | | | | | Merge commit '5c536e9162721c460699a041959a0d67de1d20db' * commit '5c536e9162721c460699a041959a0d67de1d20db': Fix issue where scaled bitmap sizes could be wrong.
| * Fix issue where scaled bitmap sizes could be wrong.Dianne Hackborn2009-07-181-4/+43
| | | | | | | | | | | | | | The Bitmap functions to get the scaled width/height couldn't actually do the right thing because they didn't know the destination they would be drawing to. Now there are two forms of them, taking an explicit parameter specifying the destination.
* | am aad0fcc9: Merge change 7783 into donutAndroid (Google) Code Review2009-07-193-34/+14
|\ \ | |/ | | | | | | | | | | Merge commit 'aad0fcc9619eb72c18a6afff48ebc9d4011f0f54' * commit 'aad0fcc9619eb72c18a6afff48ebc9d4011f0f54': Add "nodpi" density, and expose a bunch of density-related APIs.
| * Add "nodpi" density, and expose a bunch of density-related APIs.Dianne Hackborn2009-07-173-34/+14
| | | | | | | | | | Also update the DpiTest app to use nodpi images, and try to have a mode where it turns off compatibility though it's not quite working.
* | am 09a903ab: Merge change 7696 into donutAndroid (Google) Code Review2009-07-171-0/+13
|\ \ | |/ | | | | | | | | | | Merge commit '09a903ab5b8d940605783ae4ee591c0f090a31d1' * commit '09a903ab5b8d940605783ae4ee591c0f090a31d1': add hidden Options field for native allocations
| * add hidden Options field for native allocationsMike Reed2009-07-171-0/+13
| |
* | am 6b532800: Merge change 6478 into donutAndroid (Google) Code Review2009-07-081-4/+9
|\ \ | |/ | | | | | | | | | | Merge commit '6b5328006ff9e844713eb26b40621d72bee0bdd1' * commit '6b5328006ff9e844713eb26b40621d72bee0bdd1': Fix ShapeDrawable.inflateTag() to accept proper dimension specs for padding
| * Fix ShapeDrawable.inflateTag() to accept proper dimension specs for paddingPhil Dubach2009-07-081-4/+9
| | | | | | | | | | | | | | | | ShapeDrawable.inflateTag() handles the 'padding' tag with the standard attributes android:left, etc. The attribute values for these standard attributes should be dimension specifications, e.g. '4dp'. ShapeDrawable.inflateTag() was wrongly parsing the attribute values as plain integers.
* | Lazily allocate the mBounds Rect in Drawable.Brad Fitzpatrick2009-07-071-1/+1
| | | | | | | | | | | | | | For background, see: http://kohlerm.blogspot.com/2009/04/analyzing-memory-usage-off-your-android.html Thanks, Markus!
* | am 9848f11f: Merge change 5826 into donutAndroid (Google) Code Review2009-07-011-2/+3
|\ \ | |/ | | | | | | | | | | Merge commit '9848f11fd8788b985330183aeb83cc589b8b14ae' * commit '9848f11fd8788b985330183aeb83cc589b8b14ae': Fix NullPointerException in NinePatch constructor