/frameworks/base/libs/hwui/ |
H A D | Texture.cpp | 174 static void colorTypeToGlFormatAndType(SkColorType colorType, argument 176 switch (colorType) { 197 LOG_ALWAYS_FATAL("Unsupported bitmap colorType: %d", colorType); 228 colorTypeToGlFormatAndType(bitmap.colorType(), &format, &type); 237 if (CC_UNLIKELY(bitmap.colorType() == kARGB_4444_SkColorType 238 || bitmap.colorType() == kIndex_8_SkColorType)) {
|
H A D | Readback.cpp | 62 switch (bitmap->colorType()) {
|
H A D | BakedOpDispatcher.cpp | 76 const int textureFillFlags = (bitmap->colorType() == kAlpha_8_SkColorType) 181 if (firstOp.bitmap->colorType() == kAlpha_8_SkColorType) { 431 const int textureFillFlags = (op.bitmap->colorType() == kAlpha_8_SkColorType) 528 const int textureFillFlags = (op.bitmap->colorType() == kAlpha_8_SkColorType) 597 if (op.bitmap->colorType() == kAlpha_8_SkColorType) {
|
H A D | LayerRenderer.cpp | 378 switch (bitmap->colorType()) {
|
H A D | OpenGLRenderer.cpp | 1474 const int textureFillFlags = (bitmap->colorType() == kAlpha_8_SkColorType) 1498 const int textureFillFlags = (bitmap->colorType() == kAlpha_8_SkColorType) 1615 const int textureFillFlags = (bitmap->colorType() == kAlpha_8_SkColorType) 1643 if (bitmap->colorType() == kAlpha_8_SkColorType) { 1673 if (bitmap->colorType() == kAlpha_8_SkColorType) {
|
H A D | FrameBuilder.cpp | 612 && op.bitmap->colorType() != kAlpha_8_SkColorType
|
H A D | DisplayListOp.h | 694 (mBitmap->colorType() != kAlpha_8_SkColorType);
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Bitmap.cpp | 53 if (kIndex_8_SkColorType != newInfo.colorType()) { 67 newInfo.colorType(), newInfo.alphaType(), &alphaType), 262 if (!SkColorTypeValidateAlphaType(info().colorType(), alphaType, &alphaType)) { 481 switch (bitmap.colorType()) { 649 switch (src.colorType()) { 708 SkColorType colorType = GraphicsJNI::legacyBitmapConfigToColorType(configHandle); local 718 if (colorType == kARGB_4444_SkColorType) { 719 colorType = kN32_SkColorType; 723 bitmap.setInfo(SkImageInfo::Make(width, height, colorType, kPremul_SkAlphaType)); 770 SkColorType dstCT = src.colorType(); 803 SkColorType colorType = GraphicsJNI::legacyBitmapConfigToColorType(configHandle); local 956 const SkColorType colorType = (SkColorType)p->readInt32(); local [all...] |
H A D | BitmapRegionDecoder.cpp | 130 SkColorType colorType = kN32_SkColorType; local 138 colorType = GraphicsJNI::getNativeBitmapColorType(env, jconfig); 169 colorType = recycledBitmap->info().colorType(); 179 if (!brd->decodeRegion(&bitmap, allocator, subset, sampleSize, colorType, requireUnpremul)) {
|
H A D | BitmapFactory.cpp | 128 static SkColorType colorTypeForScaledOutput(SkColorType colorType) { argument 129 switch (colorType) { 136 return colorType; 148 colorTypeForScaledOutput(bitmap->colorType())); 175 if (info.colorType() == kUnknown_SkColorType) { 363 // Set the decode colorType. This is necessary because we can't always support 364 // the requested colorType. 479 SkColorType scaledColorType = colorTypeForScaledOutput(decodingBitmap.colorType());
|
H A D | Graphics.cpp | 310 jint GraphicsJNI::colorTypeToLegacyBitmapConfig(SkColorType colorType) { argument 311 switch (colorType) { 489 if (info.colorType() == kUnknown_SkColorType) { 541 if (info.colorType() == kUnknown_SkColorType) { 584 if (info.colorType() == kUnknown_SkColorType) { 628 if (info.colorType() == kUnknown_SkColorType) { 699 if (mRecycledBitmap->info().colorType() != bitmap->colorType()) {
|
H A D | GraphicsJNI.h | 70 static jint colorTypeToLegacyBitmapConfig(SkColorType colorType); 72 /** Return the corresponding native colorType from the java Config enum,
|
/frameworks/base/tools/aapt2/compile/ |
H A D | Png.cpp | 111 int colorType, bitDepth, interlaceType, compressionType; local 112 png_get_IHDR(readPtr, infoPtr, &outInfo->width, &outInfo->height, &bitDepth, &colorType, 115 if (colorType == PNG_COLOR_TYPE_PALETTE) { 119 if (colorType == PNG_COLOR_TYPE_GRAY && bitDepth < 8) { 131 if (!(colorType & PNG_COLOR_MASK_ALPHA)) { 135 if (colorType == PNG_COLOR_TYPE_GRAY || colorType == PNG_COLOR_TYPE_GRAY_ALPHA) { 232 int *paletteEntries, bool *hasTransparency, int *colorType, 348 *colorType = PNG_COLOR_TYPE_GRAY; // 1 byte/pixel 355 *colorType 230 analyze_image(IDiagnostics* diag, const PngInfo& imageInfo, int grayscaleTolerance, png_colorp rgbPalette, png_bytep alphaPalette, int *paletteEntries, bool *hasTransparency, int *colorType, png_bytepp outRows) argument 420 int colorType, bitDepth, interlaceType, compressionType; local [all...] |
/frameworks/base/core/jni/ |
H A D | android_view_TextureView.cpp | 75 SkColorType colorType = kUnknown_SkColorType; local 79 colorType = kN32_SkColorType; 83 colorType = kN32_SkColorType; 87 colorType = kRGB_565_SkColorType; 93 return SkImageInfo::Make(buffer.width, buffer.height, colorType, alphaType);
|
H A D | android_view_SurfaceControl.cpp | 154 SkColorType colorType; local 158 colorType = kRGBA_8888_SkColorType; 163 colorType = kRGBA_8888_SkColorType; 168 colorType = kRGB_565_SkColorType; 178 colorType, alphaType);
|
H A D | com_google_android_gles_jni_EGLImpl.cpp | 296 pixmap.format = convertPixelFormat(nativeBitmap.colorType());
|
/frameworks/base/core/jni/android/opengl/ |
H A D | util.cpp | 646 static int checkFormat(SkColorType colorType, int format, int type) argument 648 switch(colorType) { 674 static int getInternalFormat(SkColorType colorType) argument 676 switch(colorType) { 692 static int getType(SkColorType colorType) argument 694 switch(colorType) { 715 return getInternalFormat(nativeBitmap.colorType()); 723 return getType(nativeBitmap.colorType()); 732 SkColorType colorType = bitmap.colorType(); local 779 SkColorType colorType = bitmap.colorType(); local [all...] |
/frameworks/base/native/graphics/jni/ |
H A D | bitmap.cpp | 39 switch (bm.colorType()) {
|
/frameworks/base/libs/hwui/tests/common/ |
H A D | TestUtils.h | 136 SkColorType colorType = kN32_SkColorType) { 139 colorType, kPremul_SkAlphaType);
|
/frameworks/base/tools/aapt/ |
H A D | Images.cpp | 877 int *colorType, png_bytepp outRows) 1054 *colorType = PNG_COLOR_TYPE_GRAY; // 1 byte/pixel 1061 *colorType = PNG_COLOR_TYPE_PALETTE; // 1 byte/pixel + 4 bytes/color 1063 *colorType = PNG_COLOR_TYPE_GRAY_ALPHA; // 2 bytes per pixel 1067 *colorType = PNG_COLOR_TYPE_PALETTE; 1071 *colorType = isOpaque ? PNG_COLOR_TYPE_GRAY : PNG_COLOR_TYPE_GRAY_ALPHA; 1073 *colorType = isOpaque ? PNG_COLOR_TYPE_RGB : PNG_COLOR_TYPE_RGB_ALPHA; 1080 if (*colorType == PNG_COLOR_TYPE_PALETTE) { 1113 } else if (*colorType == PNG_COLOR_TYPE_GRAY || *colorType 874 analyze_image(const char *imageName, image_info &imageInfo, int grayscaleTolerance, png_colorp rgbPalette, png_bytep alphaPalette, int *paletteEntries, int *alphaPaletteEntries, bool *hasTransparency, int *colorType, png_bytepp outRows) argument [all...] |
/frameworks/base/libs/hwui/utils/ |
H A D | TestWindowContext.cpp | 156 LOG_ALWAYS_FATAL_IF(bmp->colorType() != kRGBA_8888_SkColorType,
|
H A D | NinePatchImpl.cpp | 35 switch (bitmap.colorType()) {
|
/frameworks/base/cmds/bootanimation/ |
H A D | BootAnimation.cpp | 131 switch (bitmap.colorType()) { 194 switch (bitmap.colorType()) {
|