• Home
  • History
  • Annotate
  • only in /frameworks/base/tests/HwAccelerationTest/
History log of /frameworks/base/tests/HwAccelerationTest/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
1b85122bd22c4528679ae8bd67077dfc2fdf1847 17-Oct-2012 Romain Guy <romainguy@google.com> Merge "Add API to enable mipmaps on Bitmap Bug #7353771" into jb-mr1-dev
713e1bb9df6bdfc21bd5c40d1a6ecf6c822a4be5 17-Oct-2012 Romain Guy <romainguy@google.com> Add API to enable mipmaps on Bitmap
Bug #7353771

This API can be used when scaling large images down to a small size
to get nicer looking results.

Change-Id: If09087eed36077eee5355f6047a3ca67747d7d9e
ndroidManifest.xml
es/drawable-nodpi/very_large_photo.jpg
rc/com/android/test/hwui/MipMapActivity.java
a92bb4dc9605c86b8773c929412af2dc242b1fa8 16-Oct-2012 Romain Guy <romainguy@google.com> Support clipping in Canvas.drawBitmapMesh()
Bug #7354162

Change-Id: Ifd1d0b365e8a4d88e0ff0629c9ee13f27e1a7331
rc/com/android/test/hwui/BitmapMeshActivity.java
5c2591e6eff3233c7f9c5bbae0dd20c1320f0854 23-Sep-2012 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix bug #7206086 NumberPicker widget should use locale digits" into jb-mr1-dev
d88e3054d08b1f821bb2e27b2647aa16a60d8742 21-Sep-2012 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #7206086 NumberPicker widget should use locale digits

- fix for having the TwoDigitFormatter being able to be recreated if the locale is changed
- accept now also the Arabic and Persian digits

Change-Id: Ifbf7e274d971008f4a5782402d4b76d9472b68fc
rc/com/android/test/hwui/DatePicker.java
57b5268708c3b974296c7d4e58a02a957979224a 21-Sep-2012 Romain Guy <romainguy@google.com> Optimize tiling management
Bug #7186819

Change-Id: Iebc42a6e9c96ad5605fbbe1539aa887695d2e829
rc/com/android/test/hwui/MultiLayersActivity.java
2b7028eabac80cec170572bc0e945a1d4224e595 20-Sep-2012 Romain Guy <romainguy@google.com> Add support for QCOM_tiled_rendering
Bug #7186819

This optional OpenGL extension can be used by tiled renderers to optimize
copies from main memory to tiles memory.

Change-Id: Id4a5d64e61ad17f50e773e8104b9bf584bb65077
es/layout/text_fade.xml
rc/com/android/test/hwui/TextFadeActivity.java
rc/com/android/test/hwui/ViewLayersActivity.java
189ff17caa29e51e3438af59fb33c5cb513018bd 19-Sep-2012 Romain Guy <romainguy@google.com> Add test for layer updates optimizations

Optimizations are following.

Change-Id: I120e1d0c08d8068fcac46515f37a4ae510e5f3a3
ndroidManifest.xml
rc/com/android/test/hwui/MultiLayersActivity.java
4aacf93d40b4be82aa35bf164d6fd6536c8b2a50 08-Sep-2012 Romain Guy <romainguy@google.com> Merge "Fix memory corruption in LayerRenderer::copyLayer" into jb-mr1-dev
e49d7ec36132f33b7c9e2c044ab9dd3585aa3747 08-Sep-2012 Romain Guy <romainguy@google.com> Fix memory corruption in LayerRenderer::copyLayer

The pixel store pack alignment was not set for the source texture,
causing a write to occur outside of the destination bitmap's
bounds.

Change-Id: Iaa5767acf7b5943fbc2765c3810a142f06b1a796
ndroidManifest.xml
rc/com/android/test/hwui/TJunctionActivity.java
75040f8a7727f18bb33da23696a32a0760926ff2 07-Sep-2012 Chris Craik <ccraik@google.com> Handle different x, y scales in drawLines AA path

bug:7114630

Fixes different x, y scales, and fixes boundaryWidthProportion to be from
center, not edge.

Also adds drawLine tests that previously drew blurry.

Change-Id: I2b648a60361ad3931eac67647b9b27909525ee1e
rc/com/android/test/hwui/LinesActivity.java
378d131e65348d199db36c21ba7156542bbf0045 06-Sep-2012 Chris Craik <ccraik@google.com> Merge "Varying-based AA rect drawing" into jb-mr1-dev
6ebdc114e0d72137394f02bc8ffe9d7a782a65c4 01-Sep-2012 Chris Craik <ccraik@google.com> Varying-based AA rect drawing

Instead of calculating opacity from relative position in the shader, use a
shader varying to do this computation for us.

bug:5045101

Also adds a test to HwAccelerationTest to show incorrect antialiasing in
scaled drawAARect / boundarySize calculation.

Change-Id: Icdc41acb01dc10ce354834f8389a5aed2f439162
rc/com/android/test/hwui/ColoredRectsActivity.java
9fc4b356a4552336f661bf4dfaaa19a251194cdb 04-Sep-2012 Romain Guy <romainguy@google.com> Add new hw acceleration test

Change-Id: Id2b94286cf62ab77d8c843cffaba09b3070a6332
ndroidManifest.xml
rc/com/android/test/hwui/PathOffsetActivity.java
e816baea651476aca4407200d4a5e629b9ab8dfa 09-Aug-2012 Chet Haase <chet@google.com> Optimize interactions with glyph cache

There are two fixes here:
- precaching: instead of caching-then-drawing whenever there is a new
glyph, we cache at DisplayList record time. Then when we finally draw that
DisplayList, we just upload the affected texture(s) once, instead of once
per change. This is a huge savings in upload time, especially when there are
larger glyphs being used by the app.
- packing: Previously, glyphs would line up horizontally on each cache line, leaving
potentially tons of space vertically, especially when smaller glyphs got put into cache
lines intended for large glyphs (which can happen when an app uses lots of unique
glyphs, a common case with, for example, chinese/japanese/korean languages). The new
approach packs glyphs vertically as well as horizontally to use the space more efficiently
and provide space for more glyphs in these situations.

Change-Id: I84338aa25db208c7bf13f3f92b4d05ed40c33527
ndroidManifest.xml
rc/com/android/test/hwui/GlyphCacheActivity.java
320d46bf844b84351cb80c5d4a4768d86447ac81 09-Aug-2012 Romain Guy <romainguy@google.com> Reduce gradients textures size whenever possible

Change-Id: Ifd58625ee62edac3b5d20b77553cb98b6fa2b46e
ndroidManifest.xml
rc/com/android/test/hwui/TextPathActivity.java
33fa1f774c8e7289fd7c39fbc2c65b9361f2c2c4 08-Aug-2012 Romain Guy <romainguy@google.com> Draw an empty border around glyphs to avoid sampling issues
Bug #6942209

The font renderer was preserving a 1 px border around each glyph to ensure
bilinear filtering would work nicely. Unfortunately, this border was not
set to 0 when glyphs were added in the cache to replace old evicted glyphs.

Change-Id: Ib85afca7ebad5cb63f960dc0e87ae162333dbfe8
rc/com/android/test/hwui/TextActivity.java
211efea7376371ee755edd2ad03e83ef6eea464e 01-Aug-2012 Romain Guy <romainguy@google.com> Add dithering to gradients

Change-Id: Ic1208855bde3a254eca2fd7cef43e0f1318ce419
rc/com/android/test/hwui/GradientStopsActivity.java
42e1e0d482d774cf18a55773e434f02edb9e4462 30-Jul-2012 Romain Guy <romainguy@google.com> Improve gradients

Avoid using textures for common gradients (two stops from 0.0 to 1.0)

Change-Id: Iff55d21b126c8cfc4cfb701669f2339c8f6b131a
ndroidManifest.xml
rc/com/android/test/hwui/GradientStopsActivity.java
786fc93d71b833ab6b02b0c7ea5e30f25cceeedf 25-Jul-2012 Romain Guy <romainguy@google.com> Make HardwareRenderer able to target generic Surface objects

Change-Id: I4b7199a1eb30e0df354ae12c4819adc69db5df40
rc/com/android/test/hwui/GLTextureViewActivity.java
98ba89492a477114148fcb1f89675e41679ca7cc 21-Jul-2012 Romain Guy <romainguy@google.com> Make gradients look slightly better

Change-Id: Ib12c628a88b9ec6af1214ce6e5cb14cfde40485e
ndroidManifest.xml
rc/com/android/test/hwui/BigGradientActivity.java
ba64974141bb04d35759c7a8f1741d23c172f9a5 29-Jun-2012 Michael Jurka <mikejurka@google.com> Removing setChildrenLayersEnabled

Change-Id: I88d8228eadb59160648f2c4e131fcd85945f2109
ndroidManifest.xml
es/layout/view_layers_5.xml
es/layout/view_layers_6.xml
rc/com/android/test/hwui/ViewLayersActivity5.java
rc/com/android/test/hwui/ViewLayersActivity6.java
4c43f66d06fe7f75ad6f9c860cf0936b8ee36082 17-May-2012 Romain Guy <romainguy@google.com> Fix TextureView OpenGL sample

The sample was doing something dumb: instead of binding the texture unit
to the shader's sampler, it was binding the texture name. Oops.

Change-Id: I13450dacbbd2dad362a2573aebb95e8eb87b25f0
rc/com/android/test/hwui/GLTextureViewActivity.java
e651cc6239616a202f6e96ebc2ed93b4b8b3627c 15-May-2012 Romain Guy <romainguy@google.com> Remove all Dalvik allocations from Cavnas.drawBitmap(int[], ...)

Change-Id: Ie28538a2104d21154fdc78a56525e7403f08287d
rc/com/android/test/hwui/BitmapMutateActivity.java
d34dd71800d9a1077e58c3b7f2511c46848da417 03-May-2012 Chet Haase <chet@google.com> Fix hang/crash in native path code

An optimization for paths is to only create a texture for the original native
Path object, and have all copies of that object use that texture. This works in
most cases, but sometimes that original path object may get destroyed (when the
SDK path object is finalized) while we are still referencing and using that object
in the DisplayList code. This causes undefined errors such as crashes and hanging
as we iterate through the operations of a destroyed (and garbage-filled) path object.

The fix is to use the existing ResourceCache to refcount the original path until
we are done with it.

Issue #6414050 Analytics Dogfood App crashes reliably on Jellybean

Change-Id: I5dbec5c069f7d6a1e68c13424f454976a7d188e9
ndroidManifest.xml
rc/com/android/test/hwui/PathDestructionActivity.java
810a8676df1d504da17bad80c7bd6638bdd97711 02-May-2012 Chet Haase <chet@google.com> Corrects invalidation logic for layered views

A bug in the invalidation logic meant that changes to a view
would not cause parents in the view hiearchy that were set to have
a layer (e.g., View.LAYER_TYPE_HARDWARE) to get invalidated properly.
So even though the child view was all set to recreate its display list
according to the property change, the layer in the tree above it would stay
as-is, meaning that the change would not show up on the screen.

Issue #5887530 DropTarget text does not change color with the icon

Change-Id: Ie6eac4f406d172cb437822d9fe76340ab2afaf1c
ndroidManifest.xml
es/layout/view_layer_invalidation.xml
rc/com/android/test/hwui/ViewLayerInvalidationActivity.java
0a1cbc5f7df7e1294b5a4e37f01b76fca5899324 04-Apr-2012 Romain Guy <romainguy@google.com> Merge "New libhwui test activity"
2946445b560fde5e63df17f5a2db60c8349fe532 04-Apr-2012 Romain Guy <romainguy@google.com> New libhwui test activity

Change-Id: I0ce4bc665f117d7c0ed47670ceb4ed6f9b54d85c
ndroidManifest.xml
es/layout/date_picker.xml
rc/com/android/test/hwui/DatePicker.java
rc/com/android/test/hwui/DatePickerActivity.java
db8c9a6a4d9bf8c39f834b25611926caf21380f6 22-Mar-2012 Chet Haase <chet@google.com> Optimization of alpha with DisplayList properties

Some views (such as ImageView and TextView) handle non-opaque alpha
values directly. This was originally an optimization, but we can handle it faster
in many cases without this optimization when DisplayList properties are enabled.
Basically, if a view has non-overlapping rendering, we set the alpha value directly
on the renderer (the equivalent of setting it on the Paint object) and draw each
primitive with that alpha value. Doing it this way avoids re-creating DisplayLists
while getting the same speedup that onSetAlpha() used to get pre-DisplayList properties.

Change-Id: I0f7827f075d3b35093a882d4adbb300a1063c288
ndroidManifest.xml
es/layout/view_properties.xml
rc/com/android/test/hwui/ViewPropertyAlphaActivity.java
9420abd56a2af7ddbeb70562b79d61b2dca8c5a1 30-Mar-2012 Chet Haase <chet@google.com> Re-enable DisplayList properties.

Re-enabling DisplayList properties last week caused some app
errors due to the way that some transforms were being handled (specifically,
those coming from the old Animations and ViewGroup's childStaticTransformation
field). This change pushes *all* transform/alpha data from View.draw() into
the view's DisplayList, making DisplayLists more encapsulated (and correct).

Change-Id: Ia702c6aae050784bb3ed505aa87553113f8a1938
ndroidManifest.xml
es/layout/transforms_and_animations.xml
rc/com/android/test/hwui/TransformsAndAnimationsActivity.java
9777173eb6c9eb97c7921c8288ebc65e3ab3ce6f 29-Feb-2012 Romain Guy <romainguy@google.com> Full implementation of Canvas.drawPath()

Change-Id: I23223b89770a0cd2b4762365bead9bfddb094290
rc/com/android/test/hwui/TextOnPathActivity.java
03d58520c3eb6bb7efb7235bfd957550533d6725 25-Feb-2012 Romain Guy <romainguy@google.com> More infrastructure for Canvas.drawTextOnPath

Change-Id: Iff42b24e342650d06fa4e2fa9db6c28da820ff01
rc/com/android/test/hwui/TextOnPathActivity.java
325740fb444af8fc7fb0119b2e30ce322c2ae134 25-Feb-2012 Romain Guy <romainguy@google.com> Add hooks to implement Canvas.drawTextOnPath() in GL

Change-Id: I165c9e05facf5365aa6850605688e538640c7fcc
ndroidManifest.xml
rc/com/android/test/hwui/TextOnPathActivity.java
4bcb7467a174ed03a67b0c62950c555813ddf00d 24-Feb-2012 Romain Guy <romainguy@google.com> Only recreate path textures when necessary

When a drawPath command is recorded in a display list, a copy of the
source path is made to preserve against possible modifications of the
said source path. Copies are discarded when a display list is cleared,
which usually happens on invalidate(). This means that even if a path
is never modified, the texture generated to draw it on screen is
destroyed every time an invalidate() is issued. This change fixes this
problem by introducing a reference to the source path in the copy.
If both the copy and the source path have the same genID, they are
the same path and can share the same texture.

Change-Id: I34849311c183e06336a1391d2d1568a087f973f6
rc/com/android/test/hwui/PathsCacheActivity.java
96ebc6b5097ab73eef45e094241e444f4c21bfcc 22-Feb-2012 Romain Guy <romainguy@google.com> Only copy paths, paints and shaders when we need to.

Change-Id: Iba7a9c92c865f698821b6ff7bc4f502659642ac1
ndroidManifest.xml
rc/com/android/test/hwui/PathsCacheActivity.java
c27cc01f6abf8564dc9b7b6cd7f2a12a347f725d 16-Feb-2012 Romain Guy <romainguy@google.com> Prevent AutoCompleteTextView from opening a popup when it shouldn't
Bug #5553515

The People app is forcing ACTV to show the IME which had the side effect
of showing the drop down popup. ACTV was unfortunately not ready to show
the drop down if the filtering resulted in no results. Doing so was putting
ACTV in a weird state that in turn caused a window to be leaked and really
bad behavior to occur in the lower graphics levels.

Change-Id: I2ff146d5ae4e4a28edf6ea17039c9f8fdb710e4f
rc/com/android/test/hwui/TextActivity.java
967e2bf3ac8943a8e8a374bf86021915445cda67 08-Feb-2012 Romain Guy <romainguy@google.com> Preliminary support for clipRect(Rect, Op)

This adds basic support for clip regions. It is currently disabled at compile
time. Enabling clip regions will require setting up a stencil buffer.

Change-Id: I638616a972276e38737f8ac0633692c3845eaa74
ndroidManifest.xml
rc/com/android/test/hwui/ClipRegionActivity.java
211370fd943cf26905001b38b8b1791851b26adc 02-Feb-2012 Romain Guy <romainguy@google.com> Add optional metadata to initiliaze the render threat.

The render threat is likely to break your application if you initiate it.
As such it must be explicitely requested using the following meta-data
tag in your manifest's application tag:

<meta-data android:name="android.graphics.renderThread" android:value="true" />

Change-Id: Ibf0a48af2a0d091562bf6907eac970e3d1d601c4
ndroidManifest.xml
5ff9df658230d49e42c43586997a02d8e4dd417e 24-Jan-2012 Romain Guy <romainguy@google.com> Add full support for Canvas.setDrawFilter()

Change-Id: I0ad35d0603c4eeda469014803be14c1dcdde918c
ndroidManifest.xml
rc/com/android/test/hwui/PaintDrawFilterActivity.java
f9d9c065ed75f1196316a9a31f92309f602cef76 20-Jan-2012 Romain Guy <romainguy@google.com> Deprecate unused APIs

Change-Id: I0107e246b632dda96b8b025217936954f1f46283
ndroidManifest.xml
rc/com/android/test/hwui/MatrixActivity.java
671d6cf460531825a321edb200523d0faa7792c9 18-Jan-2012 Romain Guy <romainguy@google.com> Full support for Canvas.drawPosText

This also introduces a small optimization when rendering text.

Change-Id: Iff620ac97bf878eaac406bccc6daa07052c93890
rc/com/android/test/hwui/PosTextActivity.java
62b6eaa7f3a8111311a7ee097f278eb55865a499 17-Jan-2012 Romain Guy <romainguy@google.com> Fix text encoding when drawing with drawPosText in software

Change-Id: I0cd8ee526189c38c50953a1a08b50e0b31c55d8c
ndroidManifest.xml
es/values/strings.xml
rc/com/android/test/hwui/PosTextActivity.java
5e7c469c7a3039af7696789a797f8d91a45227eb 21-Oct-2011 Romain Guy <romainguy@google.com> Make sure 9patches are not filtered when not necessary
Bug #5383406

Change-Id: I061c8069a4d9f4eaf45671283710b564639eeb32
es/drawable-hdpi/appwidget_bg.9.png
es/drawable-hdpi/appwidget_bg_focus.9.png
es/drawable-hdpi/appwidget_bg_press.9.png
es/drawable-hdpi/green_gradient.9.png
es/drawable-hdpi/patch.9.png
es/drawable-hdpi/widget_title_bg.9.png
es/drawable-nodpi/appwidget_bg.9.png
es/drawable-nodpi/appwidget_bg_focus.9.png
es/drawable-nodpi/appwidget_bg_press.9.png
es/drawable-nodpi/green_gradient.9.png
es/drawable-nodpi/patch.9.png
es/drawable-nodpi/patch2.9.png
es/drawable-nodpi/widget_title_bg.9.png
rc/com/android/test/hwui/ThinPatchesActivity.java
a9dc86b21defc26db0d71f276aff5c3af0b62ff5 11-Oct-2011 Romain Guy <romainguy@google.com> Correctly apply transforms when getting a TextureView's bitmap
Bug #5439406

Change-Id: I271a9a2e38f5b3600dc158f8f442a6b0893f472b
rc/com/android/test/hwui/GLTextureViewActivity.java
rc/com/android/test/hwui/TextureViewActivity.java
2a9fa89643ce796ee6dc7edae2742b291b6c5f40 29-Sep-2011 Romain Guy <romainguy@google.com> Don't build display lists for views with a layer.

This could cause the draw() code of views to be invoked too often
or worse, called with the wrong canvas. For instance, a view backed
by a software layer could get its draw() method called to record a
display list. Using a software layer is the recommended way to use
drawing operations not supported in hardware. Since we would
sometimes call the draw() method with the hardware backend anyway,
the app could crash by executing an unsupported operation.

Change-Id: Ib5f9a3a4c6f3efff5e0162ecd73d2dffe06e30a6
ndroidManifest.xml
rc/com/android/test/hwui/DisplayListLayersActivity.java
407ec78b828173257b0c5dae221649a4ccd8b058 25-Aug-2011 Romain Guy <romainguy@google.com> Add OpenGL backend to ImageWallpaper
Bug #5204874

Currently disabled.

Change-Id: I5e7b35dce2981b0691f107e39c6394b260466543
rc/com/android/test/hwui/GLTextureViewActivity.java
302a9df1d50373c82923bb84ff665dfce584fb22 16-Aug-2011 Romain Guy <romainguy@google.com> Add an API to set the transform on a TextureView's surface texture.
Bug #5156689

Change-Id: I635a625885c9b832a60d44ece0de7613ceb84109
rc/com/android/test/hwui/TextureViewActivity.java
402f05530352f34d5320c2d23be43c274d97c4e2 10-Aug-2011 Grace Kloba <klobag@google.com> Add a return value for SurfaceTextureListener#onSurfaceTextureDestroyed.

If returns true, the SurfaceTexture will be released by TextureView.
If returns false, the client needs to release the SurfaceTexture.

Change-Id: I946f71e337ad4170c168854ac27e028b82489c8c
rc/com/android/test/hwui/CanvasTextureViewActivity.java
rc/com/android/test/hwui/GLTextureViewActivity.java
rc/com/android/test/hwui/GetBitmapActivity.java
rc/com/android/test/hwui/TextureViewActivity.java
bd496bc3d481f9cfc39007d22372d3a1a8809f96 03-Aug-2011 Romain Guy <romainguy@google.com> Paint style and stroke width affect text rendering.
Bug #5112207

Change-Id: Ic34037ace21a5058ba23dd15e51aae58c998454d
rc/com/android/test/hwui/TextActivity.java
0965a3244b4c3009d08db2e084cdcb681ef66d26 02-Aug-2011 Romain Guy <romainguy@google.com> Allow Canvas.setBitmap() to receive a null Bitmap.

Change-Id: I6096f0b44866e532ccd96a29c816bf34d48c1dc2
rc/com/android/test/hwui/PathsActivity.java
b50149825fae95b2918bcf67b2ddb773b9797068 29-Jul-2011 Romain Guy <romainguy@google.com> Correctly apply linear filter to drawBitmap(Rect, Rect)

Change-Id: I1049282e1996b1020c92cb7bec46e9f28e94e967
ndroidManifest.xml
es/layout/text_fade.xml
rc/com/android/test/hwui/TextFadeActivity.java
7eabe55db6b113f83c2cefcd06812648927de877 21-Jul-2011 Romain Guy <romainguy@google.com> Add looper profiling to adb shell am

To profile the looper, run the following command:

adb shell am profile looper start <process> <file>
adb shell am profile looper stop <process>

Change-Id: I781f156e473d7bdbb6d13aaffeeaae88bc01a69f
rc/com/android/test/hwui/ListActivity.java
3c2c9e4e0dde0f3a9c27ccff5313cfbeb4504f8e 19-Jul-2011 Romain Guy <romainguy@google.com> Update TextureView.lockCanvas() test.

Change-Id: Ib0f613fcd6ba64a696936e4e2b386b96d76b828a
rc/com/android/test/hwui/CanvasTextureViewActivity.java
6be3d5561cbeccf0a8257a4acb155657f868e548 15-Jul-2011 Romain Guy <romainguy@google.com> Add lock/unlockCanvas to TextureView

With this change, TextureView has feature parity with SurfaceView.

Change-Id: I4ef2da33420fc9590f868636ae72a5a6de61965b
ndroidManifest.xml
rc/com/android/test/hwui/CanvasTextureViewActivity.java
f9284695e8c10dad4daf3d2c84f607483bcb56ca 14-Jul-2011 Romain Guy <romainguy@google.com> Add new ViewDebug APIs to profile the event queue.

Change-Id: I225bf288780b0244f459316e2765cfa29cd22c89
es/layout/list_activity.xml
rc/com/android/test/hwui/ListActivity.java
5fccb70de94f4270cff1ca35d59a289bdf37a89f 12-Jul-2011 Romain Guy <romainguy@google.com> Add test for bug #4970944

Change-Id: I3e7287bc406ff497a49cf823cee53b1a943a74a9
ndroidManifest.xml
es/drawable-nodpi/progress_vertical_bg_holo_dark.9.png
es/drawable-nodpi/progress_vertical_primary_holo_dark.9.png
es/drawable-nodpi/progress_vertical_secondary_holo_dark.9.png
es/drawable-nodpi/scrubber_vertical_primary_holo.9.png
es/drawable-nodpi/scrubber_vertical_secondary_holo.9.png
es/drawable-nodpi/scrubber_vertical_track_holo_dark.9.png
es/drawable-nodpi/scrubber_vertical_track_holo_light.9.png
es/drawable/progress_vertical_holo_dark.xml
es/drawable/scrubber_progress_vertical_holo_dark.xml
rc/com/android/test/hwui/MoreNinePatchesActivity.java
cfacbeadffb5dccbf0434d9c05b19430a5237c3b 08-Jul-2011 Romain Guy <romainguy@google.com> Cleanup

Change-Id: I2a9dc34e907b4c6e60f8c2999150b22015012e74
rc/com/android/test/hwui/GLTextureViewActivity.java
ec19b4a764d512091a780fc93ced567dfbf80914 08-Jul-2011 Romain Guy <romainguy@google.com> Use NEAREST filtering mode for TextureView.getBitmap().

Change-Id: I4649062bbdf18ebba7924bdf578f39ad8f6576ac
rc/com/android/test/hwui/GLTextureViewActivity.java
rc/com/android/test/hwui/TextureViewActivity.java
9ace8f5e79e76893fe4ca9e4d10f6c4056330485 08-Jul-2011 Romain Guy <romainguy@google.com> Use NEAREST filtering for layers whenever possible.

Change-Id: Id5bee1bd4a322cf93e8000b08e18f1e1b058648e
rc/com/android/test/hwui/TextureViewActivity.java
f61970fc79e9c5cf340fa942597628242361864a 07-Jul-2011 Romain Guy <romainguy@google.com> Add an API to query maximum bitmap/texture size on Canvas.

Change-Id: I2c576c9a4ecad9f33cc6636bcbc29786acdf052d
ndroidManifest.xml
rc/com/android/test/hwui/MaxBitmapSizeActivity.java
595c18b07a86754f5af1a971e3566fcbb6066b60 30-Jun-2011 Romain Guy <romainguy@google.com> Add test case for driver issue

Change-Id: I0411bf9c8e114ce388e619170fb4c2b1c6fd80f9
ndroidManifest.xml
rc/com/android/test/hwui/TimeDialogActivity.java
d0d07059943603c8d20ab9e2ee31ba5c7d477fba 25-Jun-2011 Romain Guy <romainguy@google.com> Update GLTextureView sample to do something real.

Change-Id: I55a62434ae0b602522221689626f6b4155bd0d91
rc/com/android/test/hwui/GLTextureViewActivity.java
4a5a71518a71a44dbccb3af9a08b82056ea748b3 25-Jun-2011 Romain Guy <romainguy@google.com> Don't set texture parameters on every frame.

Change-Id: Iec368405ad6a4ccfd569a0b3b4d681871a770396
rc/com/android/test/hwui/TextureViewActivity.java
80429c458506485904715180d10584092a5cd082 25-Jun-2011 Romain Guy <romainguy@google.com> Properly tear down TextureView

Change-Id: Ic23cd9257889d0abe8cc3fc1d04a66d0505e383e
rc/com/android/test/hwui/GLTextureViewActivity.java
rc/com/android/test/hwui/TextureViewActivity.java
02ccac69fd1c0a03c24c5f3ace0ad4bed337b1fd 24-Jun-2011 Romain Guy <romainguy@google.com> Code cleanup

Change-Id: I64c346004e0adf9a776d0315534d4fe445f0c0ca
ndroidManifest.xml
rc/com/android/test/hwui/OpaqueActivity.java
cf559377b750271472aa0a717bf3b7d34abc0b39 23-Jun-2011 Grace Kloba <klobag@google.com> Add onSurfaceTextureUpdated to the TextureView listener.

The app needs a way to throttle the producer side. Expose this to enable it.

Change-Id: I04b6a3fc444117a9fc2449fb87c3c834247c8ef1
rc/com/android/test/hwui/GLTextureViewActivity.java
rc/com/android/test/hwui/GetBitmapActivity.java
rc/com/android/test/hwui/TextureViewActivity.java
1ec3a58bcdd0d5fa82cf878d974d062811933ae2 23-Jun-2011 Romain Guy <romainguy@google.com> Prevent possible NPE in TextureView

Change-Id: I539813d614c7eb1f68dad6b605cbad5b5144c5e9
rc/com/android/test/hwui/TextureViewActivity.java
a9489274d67b540804aafb587a226f7c2ae4464d 23-Jun-2011 Romain Guy <romainguy@google.com> Add the ability to specify the opacity of a TextureView

TextureView assumes its content is opaque by default.

Change-Id: Iba873423566a5b67c388081838bd910dceba32ba
rc/com/android/test/hwui/TextureViewActivity.java
d6b2a00dd43257d1498b09175bff63663f6cb861 18-Jun-2011 Romain Guy <romainguy@google.com> Add error checking to LayerRenderer::copyLayer

This method is invoked by TextureView.getBitmap() and failures must be
caught to avoid leaving the GL context in a potentially bad state.

Change-Id: I620de395ba1bc20154de58c81963223dc55cac78
ndroidManifest.xml
rc/com/android/test/hwui/GetBitmapActivity.java
98029c825b9234e6b90721d910cc180885fcab1d 18-Jun-2011 Romain Guy <romainguy@google.com> Fix rendering issue with paths when the stroke width is 0

Change-Id: I5d8ac23dc69e9e17df4ef6b5195186b5207e2524
ndroidManifest.xml
rc/com/android/test/hwui/SmallCircleActivity.java
77a811610f99e21da7f88dafef60d09f345d0506 15-Jun-2011 Romain Guy <romainguy@google.com> Add TextureView.getBitmap()

This API can be used to get a Bitmap copy of the content of a
TextureView.

Change-Id: I07522216c353720fba5cab333174f58f484eb911
ndroidManifest.xml
54be1cdf3d63095512120fa7ced5c16e462abffa 14-Jun-2011 Romain Guy <romainguy@google.com> Batch glCopyTexImage() calls to get about 15 fps back on SGX.

Change-Id: I04079e070739c1e46df3e90fc388c335e2a7d2b9
rc/com/android/test/hwui/ClearActivity.java
451ce44a18e4c48f8a43aa250957f76967a35d31 11-Jun-2011 Romain Guy <romainguy@google.com> Add onSurfaceTextureDestroyed() callback.

This is needed for Renderscript and it also makes implementations
of TextureView cleaner. This change also hooks up the onSurfaceTextureSizeCHanged()
callback whenever the view size changes.

Change-Id: I2f972ee4504d800329defefacf32cf20547d31a3
rc/com/android/test/hwui/GLTextureViewActivity.java
rc/com/android/test/hwui/TextureViewActivity.java
f09ef51889f75289b041f9e9f949b7b82ed5b686 27-May-2011 Romain Guy <romainguy@google.com> Fix issue with drawColor(color, Mode.Clear)

Change-Id: I486b24a5b609c6f8adb0276037ddb24af2b888b2
rc/com/android/test/hwui/ClearActivity.java
1e59f9d10d164f156221f6d34b932f06cdd29f1f 27-May-2011 Romain Guy <romainguy@google.com> Fix texture coordinates for sub-bitmap rendering.

Change-Id: I05a31775e03f5b223a55a5144d420351abac89be
es/drawable-hdpi/patch.9.png
rc/com/android/test/hwui/ThinPatchesActivity.java
f504a2fa144504ca1efd39a4ef9208e3d4d336c5 27-May-2011 Romain Guy <romainguy@google.com> Correctly implement the CLEAR xfermode.

The previous implementation was using glBlendFunc with the parameters
GL_ZERO/GL_ZERO which doesn't work for text, paths and other alpha
sources (anti-aliasing.) The correct implementation is GL_ZERO/
GL_ONE_MINUS_SRC_ALPHA.

Change-Id: I4cca65e57b6a37bbf5a41d382cb0648ee8e11e79
ndroidManifest.xml
rc/com/android/test/hwui/ClearActivity.java
f9be16a9d4f5e3b2e9f6b9742626e4a87c5e29be 26-May-2011 Romain Guy <romainguy@google.com> Rename test to be able to launch it on crespo.

Change-Id: Ieb3e1f6a2e3effe5c4042ad170f195244c7e2158
ndroidManifest.xml
44984ea0cb3702384d023b5f211deda3c4b0b656 19-May-2011 Chet Haase <chet@google.com> Enable large font rendering with GPU acceleration

Change-Id: I7b022100fb0762613f9cf7753dbb0217e1e75f8d
rc/com/android/test/hwui/TextActivity.java
858aa93ddb6e69e0503382af63bb681b6728aef1 12-May-2011 Chet Haase <chet@google.com> Antialiasing for rectangles

Change-Id: I7ca6931606541ddd504bd5db7f8dc04b9cde8cd9
ndroidManifest.xml
rc/com/android/test/hwui/ColoredRectsActivity.java
99ecdc480dd4f9b550b2a62ea39f77845a4fec49 06-May-2011 Chet Haase <chet@google.com> Fix for scaled AA lines

Previously, the translucent boundary of AA lines would be scaled
by the line's transform. It should always be exactly one pixel wide
in screen space. This fix accounts for scaling for the boundary
region, and fixes some AA calculations that make wide/AA lines
more correct.

Change-Id: I30df2d5d96315bf3e7ff30be9735282fd5439a39
rc/com/android/test/hwui/LinesActivity.java
df0a7fbdcff3c683641b7980da50a7d0eebe0876 03-May-2011 Romain Guy <romainguy@google.com> Merge "Allows to render with an OpenGL context inside a TextureView."
8f0095cd33558e9cc8a440047908e53b68906f5f 03-May-2011 Romain Guy <romainguy@google.com> Allows to render with an OpenGL context inside a TextureView.

Change-Id: I59453f7fc3997f0502a1c5d325d37fed376fabc7
ndroidManifest.xml
rc/com/android/test/hwui/GLTextureViewActivity.java
rc/com/android/test/hwui/TextureViewActivity.java
99585adeb4167ca357a72eb866f34c1af944f4b9 03-May-2011 Chet Haase <chet@google.com> Line endcaps for AA lines are now antialiased.

Also fixed other minor issues with AA and line rendering.

Change-Id: Icd4638d27c70e2ee0f28b5d9a2b97d8b29e8ac4d
rc/com/android/test/hwui/Lines2Activity.java
ad44445c772efe66fdf063aa8f78d7ae3233570e 29-Apr-2011 Romain Guy <romainguy@google.com> Merge "New widget: TextureView Bug #4343984"
aa6c24c21c727a196451332448d4e3b11a80be69 29-Apr-2011 Romain Guy <romainguy@google.com> New widget: TextureView
Bug #4343984

TextureView can be used to render media content (video, OpenGL,
RenderScript) inside a View.

The key difference with SurfaceView is that TextureView does
not create a new Surface. This gives the ability to seamlessly
transform, animate, fade, etc. a TextureView, which was hard
if not impossible to do with a SurfaceView.
A TextureView also interacts perfectly with ScrollView,
ListView, etc. It allows application to embed media content
in a much more flexible way than before.

For instance, to render the camera preview at 50% opacity,
all you need to do is the following:

mTextureView.setAlpha(0.5f);
Camera c = Camera.open();
c.setPreviewTexture(mTextureView.getSurfaceTexture());
c.startPreview();

TextureView uses a SurfaceTexture to get the job done. More
APIs are required to make it easy to create OpenGL contexts
for a TextureView. It can currently be done with a bit of
JNI code.

Change-Id: Iaa7953097ab5beb8437bcbbfa03b2df5b7f80cd7
ndroidManifest.xml
rc/com/android/test/hwui/TextureViewActivity.java
8a5cc92a150bae38ec43732d941b38bb381fe153 26-Apr-2011 Chet Haase <chet@google.com> Fix various hw-accelerated line/point bugs

All accelerated lines are now rendered as quads. Hairlines used to
be rendered as GL_LINES, but these lines don't render the same as our
non-accelerated lines, so we're using quads for everything. Also, fixed
a bug in the way that we were offsetting quads (and not offseting points)
to ensure that our lines/points actuall start on the same pixels as
Skia's.

Change-Id: I51b923cc08a9858444c430ba07bc8aa0c83cbe6a
ndroidManifest.xml
rc/com/android/test/hwui/Lines2Activity.java
rc/com/android/test/hwui/PointsActivity.java
740bf2bb2e900d3db2292b5909b4b4c6e90320e6 27-Apr-2011 Romain Guy <romainguy@google.com> Apply shaders/filters to text drop shadows.
Bug #4318323

This change also fixes the fact that shaders were not modulated
by the paint's color when drawing paths.

Change-Id: Id88804143aea06c895d4cbcdbe106d660230aa5a
rc/com/android/test/hwui/MoreShadersActivity.java
rc/com/android/test/hwui/PathsActivity.java
3a03eeedafb3e3335b56bdb9c0a2f02104d32299 26-Apr-2011 Romain Guy <romainguy@google.com> Update shader text to test with drop shadows.

Change-Id: Iefdf116846c9b5649d1561a9d80d66d1c3acfeca
rc/com/android/test/hwui/MoreShadersActivity.java
5b0200bd47e8a9a4dc8d2e6c3a110d522b30bf82 14-Apr-2011 Chet Haase <chet@google.com> Enable anti-aliasing for hw-accelerated lines

Draw anti-aliased lines with OpenGL by constructing a quad with
a border that fades out (to mimic fragment coverage).

Change-Id: Ib81a3e62d663acdf1b46b401ac4aa7ee9855cc7e
ndroidManifest.xml
rc/com/android/test/hwui/Lines2Activity.java
rc/com/android/test/hwui/LinesActivity.java
1a81aea8144b92ebaf807af9de69a0ab3415a5aa 21-Mar-2011 Romain Guy <romainguy@google.com> Update GL textures when changing a Bitmap's pixels
Bug #4146495

Change-Id: I4fe3f8501373b86b164af11ae51642b140035bb8
ndroidManifest.xml
rc/com/android/test/hwui/BitmapMutateActivity.java
ed6fcb034b44d9a6ac2fc72fee6030417811f234 21-Mar-2011 Romain Guy <romainguy@google.com> Add support for drawPoint() and drawPoints().

Change-Id: I01bef50c08ec3160f8d40dc060b2cf6c2e4d7639
rc/com/android/test/hwui/LinesActivity.java
7b5b6abf852c039983eded25ebe43a70fef5a4ab 15-Mar-2011 Romain Guy <romainguy@google.com> Fix rendering artifact in edge fades.
Bug #4092053

The problem always existed but was made visible by partial invalidation.
When saving a layer, the renderer would try to postpone glClear()
operations until the next drawing command. This however does not work
since the clip might have changed. The fix is rather simple and
simply gets rid of this "optimization" (that turned out to be
usless anyway given how View issues saveLayer() calls.)

This change also fixes an issue with gradients (color stops where
not properly computed when using a null stops array) and optimizes
display lists rendering (quickly rejects larger portions of the
tree to avoid executing unnecessary code.)

Change-Id: I0f5b5f6e1220d41a09cc2fa84c212b0b4afd9c46
es/drawable/gradient.xml
rc/com/android/test/hwui/GradientsActivity.java
rc/com/android/test/hwui/TransparentListActivity.java
cabfcc1364eb7e4de0b15b3574fba45027b45cfc 08-Mar-2011 Romain Guy <romainguy@google.com> Add support for partial invalidates in WebView
Bug #3461349

This change also fixes two bugs that prevented partial invalidates
from working with other views. Both bugs were in our EGL implementation:
they were preventing the caller from comparing the current context/surface
with another context/surface. This was causing HardwareRenderer to always
redraw the entire screen.

Change-Id: I33e096b304d4a0b7e6c8f92930f71d2ece9bebf5
rc/com/android/test/hwui/TextActivity.java
47b8adec3904535c8d8ce2b6e42ecd736f2d90ce 24-Feb-2011 Romain Guy <romainguy@google.com> Add a new Camera API to control the camera's location

Change-Id: Id9a082d2def803eb527e1987875e0d8a22c6e8aa
ndroidManifest.xml
es/drawable-nodpi/large_photo.jpg
rc/com/android/test/hwui/Animated3dActivity.java
b18d2d0079b4dbf5675ab79b7111b3dfb3cc1ad0 11-Feb-2011 Romain Guy <romainguy@google.com> Dirty layers in the area covered by a drawBitmapMesh() call
Bug #3410827

Change-Id: Ic8b4f6201af94497bba86c75819588c78debddc2
ndroidManifest.xml
rc/com/android/test/hwui/BitmapMeshActivity.java
rc/com/android/test/hwui/BitmapMeshLayerActivity.java
f28daffda50042c1b7cbfeb34b4d47741c6e21a8 04-Feb-2011 Romain Guy <romainguy@google.com> Empty the clip rect when intersection is empty.
Bug #3410035

Change-Id: I5ceb80514d3b20c9ad230478549ad31ced403d53
ndroidManifest.xml
es/anim/accelerate_interpolator_2.xml
es/anim/slide_off_left.xml
rc/com/android/test/hwui/MarqueeActivity.java
09b7c91de73b59aa3f679b3ae3ba299f82ec9f8a 03-Feb-2011 Romain Guy <romainguy@google.com> Allocate layers from the layers pool.
Bug #3413433

This change will be beneficial to Launcher to avoid hiccups when
swiping pages of icons. When a layer is discarded, it is kept
in the layers pool instead of being destroyed right away. This
favors memory reuse over allocations.

Change-Id: Ifb6944ba83d6ceb67c331527c0827b26ce648eb1
ndroidManifest.xml
es/layout/view_layers_6.xml
rc/com/android/test/hwui/ViewLayersActivity6.java
849d0a37cf2ca6c6a6c2d4d4456495e32e363120 02-Feb-2011 Romain Guy <romainguy@google.com> New API to let apps draw without layers.
Bug #3413433

Launcher now enables layers all the time, but in some cases (for instance, when the
workspace is not scrolling,) it is more efficient to draw without the layer.

Change-Id: I625fb5b48506acda9ae75356fdbbe812c85f2aab
ndroidManifest.xml
es/layout/view_layers_5.xml
rc/com/android/test/hwui/ViewLayersActivity5.java
54229ee5eb92e3e2fc63d75353bcf09e0ebc8030 01-Feb-2011 Romain Guy <romainguy@google.com> Correctly set the alpha of a hardware layer before drawing it.
Bug #3410819

Change-Id: I3ebaca2233f4edf5b59d84ec7706555056a1a4b1
ndroidManifest.xml
es/layout/view_layers_4.xml
rc/com/android/test/hwui/ViewLayersActivity4.java
7d7b5490a0b0763e831b31bc11f17d8159b5914a 25-Jan-2011 Romain Guy <romainguy@google.com> Enable partial invalidates when rendering with OpenGL.

Change-Id: Ie8be06c4776b815e8737753eb8003b4fd8936130
ndroidManifest.xml
efault.properties
a566b7c3aada08d37cf08096c972e3e641bed773 24-Jan-2011 Romain Guy <romainguy@google.com> Fix bitmap meshes to work in display lists.

Change-Id: Ie226d049840942d9ad9cf58e0c19132f49d62a75
rc/com/android/test/hwui/BitmapMeshActivity.java
8b2f5267f16c295f12faab810527cd6311997e34 24-Jan-2011 Romain Guy <romainguy@google.com> Add support for arcs.

Change-Id: I96c057ff4eb1b464b03f132da0b85333777bee4f
rc/com/android/test/hwui/ShapesActivity.java
c1cd9ba335b293f11e1082447ef08e474710a05f 23-Jan-2011 Romain Guy <romainguy@google.com> Add support for ovals and stroked rectangles.

Change-Id: I1292e241386763c82e6622c8f7ed90b0f5b7bd4f
rc/com/android/test/hwui/ShapesActivity.java
5a7b466a2b4b7ced739bd5c31e022de61650545a 21-Jan-2011 Romain Guy <romainguy@google.com> Add support for drawBitmapMesh().

Change-Id: Ic77f9c534bb90dc7b9458299544bd50b8b6ae6a5
ndroidManifest.xml
rc/com/android/test/hwui/BitmapMeshActivity.java
01d58e43ede5ca98cbebdd166f9b0c545032c01b 20-Jan-2011 Romain Guy <romainguy@google.com> Add rounded rects and circles support to OpenGLRenderer.

Change-Id: I6cedf2b495d58de7c0437096809fa9e4518a1b8c
ndroidManifest.xml
rc/com/android/test/hwui/ShapesActivity.java
42f3a4b7c35dd1ea1922356eb3611af8cde05179 19-Jan-2011 Romain Guy <romainguy@google.com> Make embedded hardware layers work.
Bug #3369474

Change-Id: Ib6d7fb44eedda9dc2933b5e1b176f307968af91d
ndroidManifest.xml
es/layout/view_layers_3.xml
rc/com/android/test/hwui/ViewLayersActivity3.java
2577db1ec135a1470a2c42139772ec97a6c30e78 18-Jan-2011 Romain Guy <romainguy@google.com> Add support for Paint::setTextSkewX in OpenGLRenderer.
Bug #3360888

Change-Id: I42e81a1f10bf7b9ae1c63ca8add1878fd59a1e8a
rc/com/android/test/hwui/TextActivity.java
807daf7df615b60ce6fc41355aabe3aa353cebab 18-Jan-2011 Romain Guy <romainguy@google.com> Add support for skew()

Change-Id: Ia3a9a867f74fd78b61f75179e3788fdc2f0cacd0
ndroidManifest.xml
rc/com/android/test/hwui/BitmapsSkewActivity.java
d6cd572df8067c40b3e0e7e74e58cdb456b33e92 17-Jan-2011 Romain Guy <romainguy@google.com> Improve hardware layers rendering speed when setting a View's alpha.

Change-Id: Ib1275677f531c60d9919978c5538c663fdb823b5
rc/com/android/test/hwui/ViewLayersActivity2.java
2361098da3b9d9c3eeed410dc72ba62c0e9177cf 17-Jan-2011 Romain Guy <romainguy@google.com> Add BitmapFactory.Options.inMutable to load mutable bitmaps.

Change-Id: Iaa222127520f3aa55072d44af12ee3477908b876
rc/com/android/test/hwui/BitmapsActivity.java
fb13abd800cd610c7f46815848545feff83e5748 17-Jan-2011 Romain Guy <romainguy@google.com> Fix 9patch rendering in ExpandableListView.

Change-Id: I60843d61a40b0cb7dd09923cb4489a5a76f20486
ndroidManifest.xml
es/drawable-mdpi/expander_ic_maximized.9.png
es/drawable-mdpi/expander_ic_minimized.9.png
rc/com/android/test/hwui/SimplePatchActivity.java
6c319ca1275c8db892c39b48fc54864c949f9171 11-Jan-2011 Romain Guy <romainguy@google.com> Better backend for hardware layers.

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
ndroidManifest.xml
rc/com/android/test/hwui/PathsActivity.java
rc/com/android/test/hwui/ViewLayersActivity2.java
7230a74e9a36dfc6c4346c14e325bf07cd05b380 11-Jan-2011 Romain Guy <romainguy@google.com> Composite layers as regions.

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
rc/com/android/test/hwui/LinesActivity.java
171c592f0b7066acf279863c8a52ddabea49d3db 06-Jan-2011 Romain Guy <romainguy@google.com> New layers API for Views.

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
ndroidManifest.xml
es/layout/_advanced_blend.xml
es/layout/_advanced_gradient.xml
es/layout/_layers.xml
es/layout/_lines.xml
es/layout/_newlayers.xml
es/layout/_paths.xml
es/layout/_shaders.xml
es/layout/view_layers.xml
rc/com/android/test/hwui/ViewLayersActivity.java
9f0696709b403065d98936e7884536dc98349a59 06-Jan-2011 Dianne Hackborn <hackbod@google.com> We are now Honeycomb.

Change-Id: I69dadd57184d2d80f426c1c862ed0a040c8baf03
ndroidManifest.xml
d38e776a3cc8cb53945cbebafbe6f6c2e3501fa5 21-Dec-2010 Xavier Ducrohet <xav@android.com> LayoutLib: support for layers.

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
es/layout/_layers.xml
es/layout/_newlayers.xml
rc/com/android/test/hwui/LayersActivity.java
rc/com/android/test/hwui/NewLayersActivity.java
63fd87113cea6abec97a6cd966e090e9b590fc3b 21-Dec-2010 Xavier Ducrohet <xav@android.com> LayoutLib: Misc rendering fixes.

- 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
es/layout/_lines.xml
rc/com/android/test/hwui/LinesActivity.java
rc/com/android/test/hwui/ShadersActivity.java
d348b6eaa98e23cb38d90906df109aaa2d20ea7f 20-Dec-2010 Xavier Ducrohet <xav@android.com> LayoutLib: support for Path and BitmapShader using delegates.

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.
es/layout/_advanced_blend.xml
es/layout/_advanced_gradient.xml
es/layout/_paths.xml
es/layout/_shaders.xml
es/layout/advanced_blend.xml
es/layout/advanced_gradient.xml
rc/com/android/test/hwui/PathsActivity.java
rc/com/android/test/hwui/ShadersActivity.java
b146b1214ef6e4fc75d98779b22434335764cfdb 16-Dec-2010 Romain Guy <romainguy@google.com> Fix text shadow rendering issue.

Change-Id: Ic9eb0d38ad684d2f2c95a4f586f865db911cb872
rc/com/android/test/hwui/TextActivity.java
ec31a7f119608b94ea1bb41275811027a360bf30 14-Dec-2010 Xavier Ducrohet <xav@android.com> Create some layout files for HwAccelerationTest

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
classpath
gitignore
project
ndroidManifest.xml
efault.properties
es/layout/advanced_blend.xml
es/layout/advanced_gradient.xml
rc/com/android/test/hwui/AdvancedBlendActivity.java
rc/com/android/test/hwui/AdvancedGradientsActivity.java
rc/com/android/test/hwui/GradientsActivity.java
rc/com/android/test/hwui/TextGammaActivity.java
a957eea78557cb47a91d44d9e6ee641c58cf1c07 09-Dec-2010 Romain Guy <romainguy@google.com> New, better line drawing implementation.
Bug #3207544
Bug #3225875

Change-Id: Ibdd1dfc64e01625d5c441f39eb0aa3ee647f6ff5
ndroidManifest.xml
rc/com/android/test/hwui/LinesActivity.java
5ec9924d24495822b589f1a17996655d66273b30 04-Nov-2010 Romain Guy <romainguy@google.com> Fix rendering issue with layers.

Change-Id: I1d511ab2707000762a942d32c300a9944ab38603
ndroidManifest.xml
8164c2d338781c3a3c4a443941070dca5d88f2a7 26-Oct-2010 Romain Guy <romainguy@google.com> Don't change textures wrap modes on every draw.

Change-Id: If6d3f313778cc7f3e803a063338539c8b3e165e3
rc/com/android/test/hwui/ShadersActivity.java
e5ebcb0107a939395e03592fd44c746cd09e311d 15-Oct-2010 Romain Guy <romainguy@google.com> Fix clipping issue in StackView.

Change-Id: I7ec28f25c3993a2bd7ef6399ba1923839d239905
ndroidManifest.xml
es/anim/fade_in.xml
es/anim/fade_out.xml
es/drawable-hdpi/appwidget_background.xml
es/drawable-hdpi/appwidget_bg.9.png
es/drawable-hdpi/appwidget_bg_focus.9.png
es/drawable-hdpi/appwidget_bg_press.9.png
es/drawable-hdpi/green_gradient.9.png
es/drawable-hdpi/widget_header.png
es/drawable-hdpi/widget_title_bg.9.png
es/drawable/appwidget_background.xml
es/drawable/appwidget_bg.9.png
es/drawable/appwidget_bg_focus.9.png
es/drawable/appwidget_bg_press.9.png
es/drawable/green_gradient.9.png
es/drawable/widget_header.png
es/drawable/widget_title_bg.9.png
es/layout/flipper_item.xml
es/layout/widget.xml
rc/com/android/test/hwui/Bitmaps3dActivity.java
rc/com/android/test/hwui/ViewFlipperActivity.java
14830948d02f768c41b97b7a8d15e1b3cab78267 08-Oct-2010 Romain Guy <romainguy@google.com> Add 3D transforms support to all gradients.

Change-Id: I61409edd00dab3a11684a3f5e4f7df0afc734758
rc/com/android/test/hwui/GradientsActivity.java
e3095e0c1e2a4a4f34f741aa386eae56536ca5aa 07-Oct-2010 Romain Guy <romainguy@google.com> Apply 3D transformations to gradient shaders.

This fixes only linear gradients. Sweep and radial gradients, as well as
bitmap shaders, will be fixed in a future commit.

Change-Id: I4eee4ff62e9bbf3b9339fc111a780167449ecfef
rc/com/android/test/hwui/GradientsActivity.java
469b1dbeaf7d3267d1b43af4e7391b49eac10ee0 05-Oct-2010 Romain Guy <romainguy@google.com> Code cleanup and disable display lists for now.

Change-Id: I681213036b5279339cb96a016d1dfb15d74dafc8
rc/com/android/test/hwui/LinesActivity.java
7975fb6d12cb1eb96b75e3a563627cd4c4081bd6 02-Oct-2010 Romain Guy <romainguy@google.com> Apply bilinear filtering to text.

Change-Id: I2c81ad657ee2a11a2139e0b11ae3749db54c0749
ndroidManifest.xml
es/layout/labels.xml
rc/com/android/test/hwui/LabelsActivity.java
0bb5667b4ef91fefd0500fae0186789d15d54e0e 01-Oct-2010 Romain Guy <romainguy@android.com> Fix INVALID_OPERATION error with layers rendering.

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
ndroidManifest.xml
rc/com/android/test/hwui/GradientsActivity.java
rc/com/android/test/hwui/ShadersActivity.java
rc/com/android/test/hwui/TransparentListActivity.java
ddb80bebb0776e6d852aab6e8bba5d5591847a55 21-Sep-2010 Romain Guy <romainguy@google.com> Add support for circular gradients to the GL renderer.

This change also adds full support for local transformation matrices on
sweep and radial gradients.

Change-Id: Id8773bc0766575190e3f3d51984fc5e57b266c3f
rc/com/android/test/hwui/AdvancedGradientsActivity.java
ee916f14cbd1fe1422c063ce2ef7b185e2bc5c6f 21-Sep-2010 Romain Guy <romainguy@google.com> Add support for SweepGradient in the GL renderer.

Change-Id: I7aa397ed4e34655ead9ba1f5b4ce087665e0f022
ndroidManifest.xml
rc/com/android/test/hwui/AdvancedGradientsActivity.java
759ea80dca64ad652110a129e0d8bf93fea79f61 17-Sep-2010 Romain Guy <romainguy@google.com> Add support for drawLines(), with anti-aliasing

Change-Id: I16c0593c5671490909dec13a85df601e1428a1a6
ndroidManifest.xml
rc/com/android/test/hwui/LinesActivity.java
6820ac8b14b4558f5d8b833dde80895306a3e137 16-Sep-2010 Romain Guy <romainguy@google.com> Fix 9patch rendering.

Change-Id: Ic4c18ff483cca95fbabcb10843f7714efe488adb
es/drawable/patch.9.png
rc/com/android/test/hwui/ThinPatchesActivity.java
8411f336c786379c5a03106e9ed3bc8622b579a5 14-Sep-2010 Romain Guy <romainguy@google.com> Fix rendering issue with layers intersecting the clip rect.

Change-Id: Icbe35194fa219ef13ce639d33631235f8d7df3d7
ndroidManifest.xml
es/drawable/btn_toggle_off.9.png
es/drawable/btn_toggle_on.9.png
rc/com/android/test/hwui/NewLayersActivity.java
rc/com/android/test/hwui/ThinPatchesActivity.java
8694230ff25fa0a60e480d424843e56b718f0516 12-Sep-2010 Romain Guy <romainguy@google.com> Optimize calls to glCopyTexImage2D().

Change-Id: I34ee87bd4472864f440916e03a2894fae24bbe4a
rc/com/android/test/hwui/TransparentListActivity.java
f607bdc167f66b3e7003acaa4736ae46d78c1492 11-Sep-2010 Romain Guy <romainguy@google.com> Correct implementation of saveLayer().

Change-Id: I5375126636913e0a84f2d6bbd0ebe40d2e4f2763
ndroidManifest.xml
es/drawable/default_wallpaper.jpg
rc/com/android/test/hwui/AdvancedBlendActivity.java
rc/com/android/test/hwui/AlphaLayersActivity.java
rc/com/android/test/hwui/BitmapsActivity.java
rc/com/android/test/hwui/BitmapsAlphaActivity.java
rc/com/android/test/hwui/BitmapsRectActivity.java
rc/com/android/test/hwui/ColorFiltersActivity.java
rc/com/android/test/hwui/FramebufferBlendActivity.java
rc/com/android/test/hwui/LayersActivity.java
rc/com/android/test/hwui/LinesActivity.java
rc/com/android/test/hwui/ListActivity.java
rc/com/android/test/hwui/MoreShadersActivity.java
rc/com/android/test/hwui/NewLayersActivity.java
rc/com/android/test/hwui/NinePatchesActivity.java
rc/com/android/test/hwui/PathsActivity.java
rc/com/android/test/hwui/QuickRejectActivity.java
rc/com/android/test/hwui/ResizeActivity.java
rc/com/android/test/hwui/RotationActivity.java
rc/com/android/test/hwui/ShadersActivity.java
rc/com/android/test/hwui/SimplePathsActivity.java
rc/com/android/test/hwui/StackActivity.java
rc/com/android/test/hwui/TextActivity.java
rc/com/android/test/hwui/TextGammaActivity.java
rc/com/android/test/hwui/Transform3dActivity.java
rc/com/android/test/hwui/TransparentListActivity.java
rc/com/android/test/hwui/XfermodeActivity.java
rc/com/google/android/test/hwui/AdvancedBlendActivity.java
rc/com/google/android/test/hwui/AlphaLayersActivity.java
rc/com/google/android/test/hwui/BitmapsActivity.java
rc/com/google/android/test/hwui/BitmapsAlphaActivity.java
rc/com/google/android/test/hwui/BitmapsRectActivity.java
rc/com/google/android/test/hwui/ColorFiltersActivity.java
rc/com/google/android/test/hwui/FramebufferBlendActivity.java
rc/com/google/android/test/hwui/LayersActivity.java
rc/com/google/android/test/hwui/LinesActivity.java
rc/com/google/android/test/hwui/ListActivity.java
rc/com/google/android/test/hwui/MoreShadersActivity.java
rc/com/google/android/test/hwui/NinePatchesActivity.java
rc/com/google/android/test/hwui/PathsActivity.java
rc/com/google/android/test/hwui/QuickRejectActivity.java
rc/com/google/android/test/hwui/ResizeActivity.java
rc/com/google/android/test/hwui/RotationActivity.java
rc/com/google/android/test/hwui/ShadersActivity.java
rc/com/google/android/test/hwui/SimplePathsActivity.java
rc/com/google/android/test/hwui/StackActivity.java
rc/com/google/android/test/hwui/TextActivity.java
rc/com/google/android/test/hwui/TextGammaActivity.java
rc/com/google/android/test/hwui/Transform3dActivity.java
rc/com/google/android/test/hwui/XfermodeActivity.java
a5aed0d58962a24c44728ffc46dc9e1ba2f9fda5 09-Sep-2010 Romain Guy <romainguy@google.com> Add support for advanced blend modes with the framebuffer.

This adds the ability to blend with the framebuffer using Darken,
Lighten, Add, Multiply, Overlay and Screen.

Change-Id: Iae01a53797d4ad39c373cba6ff2a42293129da1a
ndroidManifest.xml
rc/com/google/android/test/hwui/FramebufferBlendActivity.java
53389bdcdf6ffaaec533b73bc1d0abc5807ec7f6 08-Sep-2010 Romain Guy <romainguy@google.com> Correctly set the viewport on window resize.

Change-Id: Idec325264d85feda76d4cda00fa511aaac82cf64
ndroidManifest.xml
es/layout/form.xml
rc/com/google/android/test/hwui/ResizeActivity.java
4299c0f2429a266e2390a7a9d5dbe5a8e8d7ce38 28-Aug-2010 Romain Guy <romainguy@google.com> Add test for gamma correction.

Change-Id: Id2a311bc116438d3627a943cb5fb1ba8dc121bb0
ndroidManifest.xml
es/layout/text_large.xml
es/layout/text_medium.xml
es/layout/text_small.xml
rc/com/google/android/test/hwui/TextGammaActivity.java
fb8b763f762ae21923c58d64caa729b012f40e05 24-Aug-2010 Romain Guy <romainguy@google.com> Use only one GL context per process, share chaches.

Change-Id: Ieabaa25338d2f4b8d4fd90e7401ad6e7452eae11
rc/com/google/android/test/hwui/ListActivity.java
a80d32f7b69aa37026ab99e4ade1ad86dae76a81 21-Aug-2010 Romain Guy <romainguy@google.com> Add support for textScaleX.

This will not look great because we render fonts using bitmaps, not
paths.

Change-Id: I01b87b81bfbdbfa28460a5d5309d38e2a65e77c4
ndroidManifest.xml
29378192f7ac4162d54fea4e34fddd42fd1f00d2 20-Aug-2010 Romain Guy <romainguy@google.com> Test setTextScaleX()

Change-Id: Iafa421def64a8f9a83b320b6cf3cc5286515c355
ndroidManifest.xml
rc/com/google/android/test/hwui/TextActivity.java
e9e7fd0813f1485d20c6cd0014d59aff53c35d84 19-Aug-2010 Romain Guy <romainguy@google.com> Update OpenGLRenderer test to test opaque ARGB8888 bitmaps.

Change-Id: I7159825f4b1d6f5a1cd09ec091994801b52b6bda
ndroidManifest.xml
es/drawable-hdpi/sunset3.png
es/drawable/sunset3.png
rc/com/google/android/test/hwui/BitmapsAlphaActivity.java
2542d199745cdf3ec910b8e3e4cff5851ed24e9b 18-Aug-2010 Romain Guy <romainguy@google.com> Layers were using an extra Snapshot causing extra clipping.

Bug #2919310

Change-Id: I72ccd44bba7a3f3db72f581aa96198b6226e4478
rc/com/google/android/test/hwui/TextActivity.java
8fb954263dd2f918ad339045cc6d82e346515599 18-Aug-2010 Romain Guy <romainguy@google.com> Fix save()/restore() issues in the OpenGL renderer.

The save stack now behaves exactly like in Skia.

Change-Id: If7e642f41f2c8f693f6e8c26cba81507d466562e
es/layout/list_activity.xml
rc/com/google/android/test/hwui/QuickRejectActivity.java
1d83e1981c8b89da93dff37a4f8b2b1ad8480b44 17-Aug-2010 Romain Guy <romainguy@google.com> Correctly set the viewport in layers.

Bug #2919295

Change-Id: I16ce79ab0d5747cb01c6c1abe531da3dfd93fb54
es/layout/stack.xml
es/layout/stack_item.xml
rc/com/google/android/test/hwui/StackActivity.java
0a41749953f35d33f61b3119e3161a82bb5fa59e 17-Aug-2010 Romain Guy <romainguy@google.com> Cleanup, better code reuse.

Change-Id: Ib86a7309ae579cce3b7cf464782c34e70a74c616
ndroidManifest.xml
rc/com/google/android/test/hwui/StackActivity.java
1e45aae5de003657e5d18f74d34998f5de5db5b7 14-Aug-2010 Romain Guy <romainguy@google.com> Add drop shadows.

Change-Id: Ic6a72409d4785968d1fbdff229f17ee5c00b240b
rc/com/google/android/test/hwui/TextActivity.java
48daa54d31fc59ec969dcff65eb3cbb0ce879a8d 11-Aug-2010 Romain Guy <romainguy@google.com> Add extra blending modes.

This change adds the following blending modes for shaders and color filters:
Add
Multiply
Screen
Overlay
Darken
Lighten

Change-Id: Iff22f5ce6041b43c71b1857d73013f5010ab3413
ndroidManifest.xml
rc/com/google/android/test/hwui/AdvancedBlendActivity.java
a674ab74e359ac73b4c4dd6b1a3a771836ac7e40 11-Aug-2010 Romain Guy <romainguy@google.com> Add support for text underline and strikethru.

Change-Id: I3a0e6643d7cafbdd06d9a908c8cf9347dcaba146
rc/com/google/android/test/hwui/TextActivity.java
61c8c9c5b2006d18e9310b6521c65b36ffe75ce4 10-Aug-2010 Romain Guy <romainguy@google.com> Fix tons of bugs and add new text rendering support.

Change-Id: I326c66b10784006f6df2f12d38e120cef94cd0d7
ndroidManifest.xml
rc/com/google/android/test/hwui/SimplePathsActivity.java
ba7186e0828b6fa53dadff75bc51547d5150c3d1 06-Aug-2010 Romain Guy <romainguy@google.com> Add 3d transformation test.

Change-Id: Ia163af802e5a320490196461a97d5f797b71abb4
ndroidManifest.xml
rc/com/google/android/test/hwui/Transform3dActivity.java
7fbcc0492fca03857e3c45064f4aa040af817d55 05-Aug-2010 Romain Guy <romainguy@google.com> Add support for paths.

Rendering is implementing by rasterizing the paths into A8 textures.
This cna be extremely inefficient if the path changes often.

Change-Id: I609343f304ae38e0d319359403ee73b9b5b3c93a
ndroidManifest.xml
rc/com/google/android/test/hwui/PathsActivity.java
529b60a3b16ac3dff24f2403d760ab8ebc9670ff 04-Aug-2010 Romain Guy <romainguy@google.com> Add android:hardwareAccelerated to Activity.

Hardware acceleration can now be enabled/disabled locally on each activity
declared in the manifest. It can also be enabled/disabled directly on a
window through the WindowManager.LayoutParams.

Change-Id: I91dd0b26c4e7eb8cd7288e523ed6b7bda6d0990b
ndroidManifest.xml
rc/com/google/android/test/hwui/LinesActivity.java
db1938e0e6ef816e228c815adccebd5cb05f2aa8 03-Aug-2010 Romain Guy <romainguy@google.com> Add support for ColorFilters.

Color filters are fully supported and can be used with shaders.

Change-Id: Id90ccf1c81cb462f2431f366f3f8f710d7971e04
ndroidManifest.xml
rc/com/google/android/test/hwui/ColorFiltersActivity.java
rc/com/google/android/test/hwui/MoreShadersActivity.java
06f96e2652e4855b6520ad9dd70583677605b79a 31-Jul-2010 Romain Guy <romainguy@google.com> Refactor Skia shaders handling.

With this change, Skia shaders can easily be applied to any mesh. This change also
supports ComposeShader. For instance, this can be used to blend a gradient and a
bitmap togehter and paint a string of text with the result.

Change-Id: I701c2f9cf7f89b2ff58005e8a1d0d80ccf4a4aea
rc/com/google/android/test/hwui/MoreShadersActivity.java
b82da65cb1601be504241f36778395cd6cb9f87b 30-Jul-2010 Romain Guy <romainguy@google.com> Fix improper clipping after a save()

Change-Id: I13426a67f20d77e2710bd500d82884098f4be97c
ndroidManifest.xml
rc/com/google/android/test/hwui/MoreShadersActivity.java
ae5575b3421c8fbe590ab046d7d5f2b36ecfd821 30-Jul-2010 Romain Guy <romainguy@google.com> Fix gradients rendering and destructor crashes.

This changes binds all textures to GL_TEXTURE0, this will have
to be changed when combining shader capabilities.

Change-Id: I02df4f5ba41e9b01ffa52fd7c26b41477c7ed18f
rc/com/google/android/test/hwui/ShadersActivity.java
889f8d1403761d5668115ced6cbb3f767cfe966d 29-Jul-2010 Romain Guy <romainguy@google.com> Moved all the rendering code to the new shader generator.

The generator supports features that are not yet implement in the
renderer: color matrix, lighting, porterduff color blending and
composite shaders.

This change also adds support for repeated/mirrored non-power of 2
bitmap shaders.

Change-Id: I903a11a070c0eb9cc8850a60ef305751e5b47234
rc/com/google/android/test/hwui/ShadersActivity.java
e8e62a4a032a80409114a37908b5f18ab0080848 24-Jul-2010 Romain Guy <romainguy@google.com> Add text alignment support to drawText().

This change also integrates better support for RTL text.

Change-Id: I6da8f5cf5dc28ca7cf1b22e27b0d853c919e8481
rc/com/google/android/test/hwui/TextActivity.java
09147fbdc8206a0cac78bfe9083e7e15b3c5689c 22-Jul-2010 Romain Guy <romainguy@google.com> Add support for text culling.

Change-Id: Ibf0adacdc5c64d40a8000b21d7cb0797d63efe29
ndroidManifest.xml
es/drawable-hdpi/icon.png
es/drawable/icon.png
es/layout/list_activity.xml
rc/com/google/android/test/hwui/ListActivity.java
rc/com/google/android/test/hwui/TextActivity.java
694b519ac647fe998fd396fe0784cc8e179aadc4 22-Jul-2010 Romain Guy <romainguy@google.com> Add text rendering.

Change-Id: Ibe5a9fa844d531b31b55e43de403a98d49f659b9
ndroidManifest.xml
rc/com/google/android/test/hwui/TextActivity.java
c0ac193b9415680f0a69e20a3f5f22d16f8053be 20-Jul-2010 Romain Guy <romainguy@google.com> Add support for linear gradients.

Change-Id: Id15329da065045b3f06fdaed615f33cd57608496
rc/com/google/android/test/hwui/ShadersActivity.java
d27977d1a91d5a6b3cc9fa7664ac7e835e7bd895 15-Jul-2010 Romain Guy <romainguy@google.com> Add support for BitmapShader.

This change also fixes an issue with the clip and layers.

Change-Id: I5fd9832098d8cf7ae8eb781ff9bffe7defaea279
ndroidManifest.xml
rc/com/google/android/test/hwui/BitmapsActivity.java
rc/com/google/android/test/hwui/ShadersActivity.java
3d58c03de0d8877b36cdb78b0ca8b5cac7f600e2 15-Jul-2010 Romain Guy <romainguy@google.com> Do not apply transforms when using drawColor().

This fixes an issue in the way the clip transformations were applied.

Change-Id: I91e7b5d15baf244d1280e48938282bb33609081d
ndroidManifest.xml
rc/com/google/android/test/hwui/MultisamplingActivity.java
rc/com/google/android/test/hwui/RotationActivity.java
266e05179cc8f5fe6324510aa54bb8c1779d2f6c 14-Jul-2010 Romain Guy <romainguy@google.com> Prevent crash in ListView when changing cache hint.
rc/com/google/android/test/hwui/MultisamplingActivity.java
6926c72e25b8dec3dd4b84af0819fa1937ae7296 13-Jul-2010 Romain Guy <romainguy@google.com> Correctly support pre-multiplied alpha, optimizations, more stuff.

Add support for the following drawing functions:
- drawBitmap(int[]...)
- drawPaint()

Optimizes shader state changes by enabling/disabling attribute arrays
only when needed.

Adds quick rejects when drawing trivial shapes to avoid unnecessary
OpenGL operations.

Change-Id: Ic2c6c2ed1523d08a63a8c95601a1ec40b6c7fbc9
ndroidManifest.xml
rc/com/google/android/test/hwui/QuickRejectActivity.java
16202fc9745e9b11db089ebc8f40119d13732016 10-Jul-2010 Romain Guy <romainguy@google.com> Fix alpha blending and improve fragment shaders performance.

Change-Id: Ib74f6941d25ca6f6a41708e541174eaa7e8d9bc2
rc/com/google/android/test/hwui/NinePatchesActivity.java
f7f93556c8fcc640ab5adef79d021a80a72a645a 09-Jul-2010 Romain Guy <romainguy@google.com> Draw n-patches using OpenGL.

Currently only tested with title bars and buttons.

Change-Id: I8263a9281898dc0e943b1b8412827fe55639b9d6
ndroidManifest.xml
rc/com/google/android/test/hwui/NinePatchesActivity.java
f86ef57f8bcd8ba43ce222ec6a8b4f67d3600640 01-Jul-2010 Romain Guy <romainguy@google.com> Don't use full screen FBOs, this dramatically increase performance.

The next step will be to add an FBO cache to avoid churning memory on every
frame we draw. This change also adds support for drawBitmap(Bitmap, Matrix, Paint).

Change-Id: I7825cdcf0cad9bffe6219e05d8328a53d4a6e583
es/drawable/sunset1.jpg
es/drawable/sunset2.png
8ba548f81d1ab5f1750cbf86098c4a14e0b8bead 01-Jul-2010 Romain Guy <romainguy@google.com> Add implementation for drawBitmap(Bitmap, Rect, Rect, Paint)

Change-Id: I10904d2325a5431d15801aebcec1048715678e8c
ndroidManifest.xml
rc/com/google/android/test/hwui/BitmapsRectActivity.java
c1396e93b6a5286a5183c00c781b62e940a12c1f 01-Jul-2010 Romain Guy <romainguy@google.com> Add implementation for drawBitmap().

Change-Id: Iada9325f3c5642b61c2e0c4cd80bcfbc92cb491e
ndroidManifest.xml
rc/com/google/android/test/hwui/BitmapsActivity.java
ce0537b80087a6225273040a987414b1dd081aa0 30-Jun-2010 Romain Guy <romainguy@google.com> Add hooks for drawBitmap().

Change-Id: I58e962c3a8b2bc75c2605fe369ad3002579d86e0

Add texture cache.

Change-Id: I1c0e5581d228869e114438258a1014e33e024ad7
ndroidManifest.xml
es/drawable-hdpi/sunset1.jpg
es/drawable-hdpi/sunset2.png
rc/com/google/android/test/hwui/BitmapsActivity.java
d55a86120dd1e8ebcc6906c9ffd463f7460348da 29-Jun-2010 Romain Guy <romainguy@google.com> Add support for saveLayer().

saveLayer() is affected by the paint's alpha and xfermode.

Change-Id: I28693a9337052643adccdb4889a8f228d4e17903
ndroidManifest.xml
rc/com/google/android/test/hwui/AlphaLayersActivity.java
rc/com/google/android/test/hwui/HwUiActivity.java
rc/com/google/android/test/hwui/LayersActivity.java
rc/com/google/android/test/hwui/XfermodeActivity.java
026c5e16704e817cac7d9c382914c947e34f87e0 29-Jun-2010 Romain Guy <romainguy@google.com> Implement support for PorterDuff's blending modes.

The blending modes are currently hooked up only when drawing filled rects but the
code is reusable for other primitives. This will allow implementation of saveLayer().
This method is required to support the fade effects used throughout the standard
Android UI.

Change-Id: I396023d123436f16cdafc606e358e4eb80c9df2c
ndroidManifest.xml
rc/com/google/android/test/hwui/XfermodeActivity.java
bd6b79b40247aea7bfe13d0831c6c0472df6c636 26-Jun-2010 Romain Guy <romainguy@android.com> Add implementations for saveLayerAlpha() and textured rects.

Even though there's an implementation for textured rects, drawBitmap() is not
hooked up yet as it will require a good texture cache.

This method is implemented using FBOs. There's currently an issue either in the
driver or in the Canvas renderer that forces the FBO to be fullscreen, which is
extremely expensive and yields terrible performance.

Change-Id: I148419195e12d45653c60186938aa78c23a68e2c
rc/com/google/android/test/hwui/HwUiActivity.java
c7d53494f1fbd9f9d74af89053ff9fdb1ccbac6c 25-Jun-2010 Romain Guy <romainguy@android.com> Implement quickReject() and drawRect().

The OpenGL ES 2.0 renderer can now draw colored rectangles. At least there's
something on screen now.

Change-Id: I80a13ccc1dd56784edf74f2670a364f30700234a
rc/com/google/android/test/hwui/HwUiActivity.java
9d5316e3f56d138504565ff311145ac01621dff4 25-Jun-2010 Romain Guy <romainguy@google.com> Add colored rectangles implementation in OpenGLRenderer.

Drawing two rectangles one after the other discards the second one because of
Z buffering issues. This will be fixed in another changelist.

Change-Id: Ida1b3cde8a78e60cacc07e477abc44def527ff67
rc/com/google/android/test/hwui/HwUiActivity.java
85bf02fc16784d935fb9eebfa9cb20fe46ff7951 22-Jun-2010 Romain Guy <romainguy@google.com> Fix the simulator build.

Change-Id: Ie404f7c2c308f0657f273af19a56e8c039b61898
rc/com/google/android/test/hwui/HwUiActivity.java
e4d011201cea40d46cb2b2eef401db8fddc5c9c6 17-Jun-2010 Romain Guy <romainguy@google.com> Add libhwui, to hardware accelerate the Canvas API using OpenGL ES 2.0.

This is the initial checkin to setup the library and turn on OEGL ES 2.0
in ViewRoot, not a functional renderer.

Change-Id: I6655c54166e2967da2e21e7d6dcfba78bf113b44
ndroidManifest.xml
0bbae0836426ba2704e38e7f90a9d0ca502ab71d 16-Jun-2010 Romain Guy <romainguy@google.com> Add new API to check whether a Bitmap was modified.

Bitmap.getGenerationId() can be used by caches to find out if a Bitmap has been
modified. This simply exposes an existing Skia API.

This change also adds a small test app for Canvas hardware acceleration. The new
Bitmap API is required to implement a texture cache.

Change-Id: I8547b146cd14c8afe1a2327fcd6d71b1b1cb68fc
ndroid.mk
ndroidManifest.xml
rc/com/google/android/test/hwui/HwUiActivity.java