Searched refs:isPremultiplied (Results 1 - 9 of 9) sorted by relevance

/frameworks/native/services/surfaceflinger/RenderEngine/
H A DProgramCache.cpp158 if (needs.isPremultiplied()) {
167 if (!needs.isOpaque() && needs.isPremultiplied()) {
174 if (!needs.isOpaque() && needs.isPremultiplied()) {
H A DProgramCache.h88 inline bool isPremultiplied() const { function in class:android::ProgramCache::Key
/frameworks/base/core/jni/android/graphics/
H A DBitmap.cpp100 static FromColorProc ChooseFromColorProc(SkBitmap::Config config, bool isPremultiplied) { argument
103 return isPremultiplied ? FromColor_D32 : FromColor_D32_Raw;
105 return isPremultiplied ? FromColor_D4444 : FromColor_D4444_Raw;
116 const SkBitmap& dstBitmap, bool isPremultiplied) {
119 FromColorProc proc = ChooseFromColorProc(dstBitmap.config(), isPremultiplied);
260 static ToColorProc ChooseToColorProc(const SkBitmap& src, bool isPremultiplied) { argument
264 return isPremultiplied ? ToColor_S32_Alpha : ToColor_S32_Raw;
267 return isPremultiplied ? ToColor_S4444_Alpha : ToColor_S4444_Raw;
275 return isPremultiplied ? ToColor_SI8_Raw : ToColor_SI8_Alpha;
616 int x, int y, bool isPremultiplied) {
114 SetPixels(JNIEnv* env, jintArray srcColors, int srcOffset, int srcStride, int x, int y, int width, int height, const SkBitmap& dstBitmap, bool isPremultiplied) argument
615 Bitmap_getPixel(JNIEnv* env, jobject, const SkBitmap* bitmap, int x, int y, bool isPremultiplied) argument
633 Bitmap_getPixels(JNIEnv* env, jobject, const SkBitmap* bitmap, jintArray pixelArray, int offset, int stride, int x, int y, int width, int height, bool isPremultiplied) argument
660 Bitmap_setPixel(JNIEnv* env, jobject, const SkBitmap* bitmap, int x, int y, SkColor color, bool isPremultiplied) argument
676 Bitmap_setPixels(JNIEnv* env, jobject, const SkBitmap* bitmap, jintArray pixelArray, int offset, int stride, int x, int y, int width, int height, bool isPremultiplied) argument
[all...]
H A DGraphics.cpp349 // Assert that bitmap's SkAlphaType is consistent with isPremultiplied.
350 static void assert_premultiplied(const SkBitmap& bitmap, bool isPremultiplied) { argument
351 // kOpaque_SkAlphaType and kIgnore_SkAlphaType mean that isPremultiplied is
353 // opposite of isPremultiplied.
354 if (isPremultiplied) {
367 bool isPremultiplied = bitmapCreateFlags & kBitmapCreateFlag_Premultiplied; local
371 assert_premultiplied(*bitmap, isPremultiplied);
375 bitmap->width(), bitmap->height(), density, isMutable, isPremultiplied,
388 bool isPremultiplied)
392 assert_premultiplied(*bitmap, isPremultiplied);
387 reinitBitmap(JNIEnv* env, jobject javaBitmap, SkBitmap* bitmap, bool isPremultiplied) argument
[all...]
H A DGraphicsJNI.h69 sync with isPremultiplied
72 bool isPremultiplied);
88 const SkBitmap& dstBitmap, bool isPremultiplied);
H A DBitmapFactory.cpp474 bool isPremultiplied = !requireUnpremultiplied; local
475 GraphicsJNI::reinitBitmap(env, javaBitmap, outputBitmap, isPremultiplied);
/frameworks/base/graphics/java/android/graphics/
H A DBitmap.java63 * Note that isPremultiplied() does not directly return this value, because
64 * isPremultiplied() may never return true for a 565 Bitmap.
108 boolean isMutable, boolean isPremultiplied,
117 mIsPremultiplied = isPremultiplied;
135 void reinit(int width, int height, boolean isPremultiplied) { argument
138 mIsPremultiplied = isPremultiplied;
468 * (see {@link #isPremultiplied()}, the values in the buffer will also be
1029 public final boolean isPremultiplied() { method in class:Bitmap
1050 * @see Bitmap#isPremultiplied()
1599 boolean isPremultiplied);
107 Bitmap(int nativeBitmap, byte[] buffer, int width, int height, int density, boolean isMutable, boolean isPremultiplied, byte[] ninePatchChunk, int[] layoutBounds) argument
1598 nativeGetPixel(int nativeBitmap, int x, int y, boolean isPremultiplied) argument
1600 nativeGetPixels(int nativeBitmap, int[] pixels, int offset, int stride, int x, int y, int width, int height, boolean isPremultiplied) argument
1604 nativeSetPixel(int nativeBitmap, int x, int y, int color, boolean isPremultiplied) argument
1606 nativeSetPixels(int nativeBitmap, int[] colors, int offset, int stride, int x, int y, int width, int height, boolean isPremultiplied) argument
[all...]
H A DCanvas.java1086 if (!bitmap.isPremultiplied() && bitmap.getConfig() == Bitmap.Config.ARGB_8888 &&
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBitmap_Delegate.java111 * @see Bitmap#isPremultiplied()
145 * @see Bitmap#isPremultiplied()
179 * @see Bitmap#isPremultiplied()
397 boolean isPremultiplied) {
404 // TODO: Support isPremultiplied.
410 int stride, int x, int y, int width, int height, boolean isPremultiplied) {
422 boolean isPremultiplied) {
433 int stride, int x, int y, int width, int height, boolean isPremultiplied) {
601 boolean isPremultiplied = createFlags.contains(BitmapCreateFlags.PREMULTIPLIED);
605 isPremultiplied, nul
396 nativeGetPixel(int nativeBitmap, int x, int y, boolean isPremultiplied) argument
409 nativeGetPixels(int nativeBitmap, int[] pixels, int offset, int stride, int x, int y, int width, int height, boolean isPremultiplied) argument
421 nativeSetPixel(int nativeBitmap, int x, int y, int color, boolean isPremultiplied) argument
432 nativeSetPixels(int nativeBitmap, int[] colors, int offset, int stride, int x, int y, int width, int height, boolean isPremultiplied) argument
[all...]

Completed in 177 milliseconds