Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As said in this <a href="http://android-developers.blogspot.com/2011/03/memory-analysis-for-android.html" rel="nofollow">article</a>, the pixel data for Bitmap objects is stored in byte arrays on Android 3.0 (Honeycomb). Previously it was not stored in the Dalvik heap but was stored in external heap which is not managed by Dalvik VM.</p> <p>So it is a big difference between Android 2.x and 3.x. And it might not be safe to draw into bitmap from native code because NDK does not provide native API for levels higher then 9. In general API should be backward compatible but hardwareAccelerated attribute changes the behavior of several methods and may break compatibility.</p> <p>For example the following operations behave differently when hardware acceleration enabled:</p> <ul> <li>Canvas <ul> <li>clipRect: XOR, Difference and ReverseDifference clip modes are ignored; 3D transforms do not apply to the clip rectangle</li> <li>drawBitmapMesh: colors array is ignored</li> <li>drawLines: anti-aliasing is not supported</li> <li>setDrawFilter: can be set, but ignored</li> </ul></li> <li>Paint <ul> <li>setDither: ignored</li> <li>setFilterBitmap: filtering is always on</li> <li>setShadowLayer: works with text only</li> </ul></li> <li>ComposeShader <ul> <li>A ComposeShader can only contain shaders of different types (a BitmapShader and a LinearGradientShader for instance, but not two instances of BitmapShader)</li> <li>A ComposeShader cannot contain a ComposeShader</li> </ul></li> </ul> <p>Here are more details about hardware acceleration: <a href="http://android-developers.blogspot.com/2011/03/android-30-hardware-acceleration.html" rel="nofollow">http://android-developers.blogspot.com/2011/03/android-30-hardware-acceleration.html</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload