Searched refs:hasAlpha (Results 1 - 25 of 54) sorted by relevance

123

/external/webkit/Source/WebCore/platform/graphics/skia/
H A DGraphicsContext3DSkia.cpp56 bool hasAlpha = skiaImage ? !skiaImage->isOpaque() : true; local
57 if ((!skiaImage || ignoreGammaAndColorProfile || (hasAlpha && !premultiplyAlpha)) && image->data()) {
64 hasAlpha = decoder.frameHasAlphaAtIndex(0);
72 if (hasAlpha && premultiplyAlpha)
74 } else if (!premultiplyAlpha && hasAlpha)
/external/webkit/Source/WebKit/qt/WebCoreSupport/
H A DDeviceOrientationProviderQt.h46 bool hasAlpha() const { return m_rotation.property("hasZ").toBool(); } function in class:WebCore::DeviceOrientationProviderQt
H A DDeviceMotionProviderQt.cpp59 m_deviceOrientation->hasAlpha(), m_deviceOrientation->orientation()->alpha(),
H A DDeviceOrientationProviderQt.cpp61 // The Z (alpha) rotation angle is checked via hasAlpha() private method,
64 m_orientation = DeviceOrientation::create(hasAlpha(), reading->z(),
/external/skia/src/images/
H A DSkImageDecoder_libwebp.cpp113 int hasAlpha; member in class:SkWEBPImageDecoder
148 static WEBP_CSP_MODE webp_decode_mode(SkBitmap* decodedBitmap, int hasAlpha) { argument
155 mode = hasAlpha ? MODE_rgbA : MODE_RGBA;
157 mode = hasAlpha ? MODE_rgbA_4444 : MODE_RGBA_4444;
217 int width, int height, int hasAlpha) {
218 WEBP_CSP_MODE mode = webp_decode_mode(decodedBitmap, hasAlpha);
245 SkIRect region, int hasAlpha) {
248 config, decodedBitmap, region.width(), region.height(), hasAlpha)) {
263 SkBitmap::Config config = this->getPrefConfig(k32Bit_SrcDepth, hasAlpha);
266 if (hasAlpha) {
215 webp_get_config_resize(WebPDecoderConfig& config, SkBitmap* decodedBitmap, int width, int height, int hasAlpha) argument
243 webp_get_config_resize_crop(WebPDecoderConfig& config, SkBitmap* decodedBitmap, SkIRect region, int hasAlpha) argument
290 int origWidth, origHeight, hasAlpha; local
391 int origWidth, origHeight, hasAlpha; local
567 int width, height, hasAlpha; local
[all...]
H A DSkImageDecoder_libpng.cpp70 SkBitmap::Config *config, bool *hasAlpha, bool *doDither,
274 bool hasAlpha = false; local
278 if (getBitmapConfig(png_ptr, info_ptr, &config, &hasAlpha,
313 decodePalette(png_ptr, info_ptr, &hasAlpha,
361 } else if (hasAlpha) {
641 bool hasAlpha = false; local
645 if (getBitmapConfig(png_ptr, info_ptr, &config, &hasAlpha,
668 decodePalette(png_ptr, info_ptr, &hasAlpha,
735 } else if (hasAlpha) {
916 bool hasAlpha) {
915 choose_proc(SkBitmap::Config config, bool hasAlpha) argument
967 pack_palette(SkColorTable* ctable, png_color* SK_RESTRICT palette, png_byte* SK_RESTRICT trans, bool hasAlpha) argument
1032 const bool hasAlpha = !bitmap.isOpaque(); local
1092 doEncode(SkWStream* stream, const SkBitmap& bitmap, const bool& hasAlpha, int colorType, int bitDepth, SkBitmap::Config config, png_color_8& sig_bit) argument
[all...]
/external/webkit/Source/WebCore/platform/graphics/haiku/
H A DImageHaiku.cpp131 bool hasAlpha = false;
138 for (uint32 y = 0; y < height && !hasAlpha; y++) {
140 for (uint32 x = 0; x < width && !hasAlpha; x++) {
141 hasAlpha = p[3] < 255;
148 if (hasAlpha)
/external/webkit/Source/WebCore/platform/graphics/win/
H A DGraphicsContextCairoWin.cpp39 static cairo_t* createCairoContextWithHDC(HDC hdc, bool hasAlpha) argument
67 GraphicsContext::GraphicsContext(HDC dc, bool hasAlpha) argument
70 platformInit(dc, hasAlpha);
73 void GraphicsContext::platformInit(HDC dc, bool hasAlpha) argument
77 cr = createCairoContextWithHDC(dc, hasAlpha);
H A DGraphicsContextCGWin.cpp40 static CGContextRef CGContextWithHDC(HDC hdc, bool hasAlpha) argument
55 CGBitmapInfo bitmapInfo = kCGBitmapByteOrder32Little | (hasAlpha ? kCGImageAlphaPremultipliedFirst : kCGImageAlphaNoneSkipFirst);
69 GraphicsContext::GraphicsContext(HDC hdc, bool hasAlpha) argument
72 platformInit(hdc, hasAlpha);
75 void GraphicsContext::platformInit(HDC hdc, bool hasAlpha) argument
77 m_data = new GraphicsContextPlatformPrivate(CGContextWithHDC(hdc, hasAlpha));
H A DQTDecompressionSession.cpp84 bool hasAlpha = pixelFormatInfo.formatFlags & kICMPixelFormatHasAlphaChannel; local
87 if (hasAlpha)
/external/webkit/Source/WebCore/html/
H A DColorInputType.cpp52 return color.isValid() && !color.hasAlpha();
/external/webkit/Source/WebKit/mac/Carbon/
H A DCarbonUtils.m34 extern CGImageRef _NSCreateImageRef( unsigned char *const bitmapData[5], int pixelsWide, int pixelsHigh, int bitsPerSample, int samplesPerPixel, int bitsPerPixel, int bytesPerRow, BOOL isPlanar, BOOL hasAlpha, NSString *colorSpaceName, CGColorSpaceRef customColorSpace, id sourceObj);
125 [rep bytesPerRow], [rep isPlanar], [rep hasAlpha], [rep colorSpaceName],
/external/webkit/Source/WebCore/platform/image-decoders/png/
H A DPNGImageDecoder.cpp155 bool hasAlpha() const { return m_hasAlpha; } function in class:WebCore::PNGImageReader
352 m_reader->createInterlaceBuffer((m_reader->hasAlpha() ? 4 : 3) * size().width() * size().height());
387 bool hasAlpha = m_reader->hasAlpha(); local
388 unsigned colorChannels = hasAlpha ? 4 : 3;
407 unsigned alpha = hasAlpha ? pixel[3] : 255;
411 if (nonTrivialAlpha && !buffer.hasAlpha())
/external/webkit/Source/WebCore/platform/graphics/wince/
H A DSharedBitmap.h48 static PassRefPtr<SharedBitmap> create(const Vector<unsigned>&, const IntSize&, bool hasAlpha = true);
66 bool hasAlpha() const { return m_hasAlpha; } function in class:WebCore::SharedBitmap
78 bool canUseDIBits() const { return !hasAlpha() && !usesTransparentColor(); }
H A DSharedBitmap.cpp51 PassRefPtr<SharedBitmap> SharedBitmap::create(const Vector<unsigned>& data, const IntSize& size, bool hasAlpha) argument
57 result->setHasAlpha(hasAlpha);
227 m_hbitmap = createHandle(&pixels, &bmpInfo, -1, !hasAlpha());
256 bool usingHandle = compositeOp == CompositeSourceOver && (hasAlpha() && hasAlphaBlendSupport() || usesTransparentColor());
419 bool useAlpha = op == CompositeSourceOver && hasAlpha() && is32bit();
/external/skia/src/pdf/
H A DSkPDFImage.cpp29 bool hasAlpha = false; local
79 hasAlpha = true;
93 hasAlpha = true;
134 hasAlpha = true;
166 hasAlpha = true;
178 hasAlpha = true;
199 hasAlpha = true;
220 if (isTransparent || !hasAlpha) {
/external/webkit/Source/WebCore/platform/graphics/android/rendering/
H A DRasterRenderer.cpp83 m_bitmap.setIsOpaque(!background->hasAlpha());
/external/webkit/Source/WebCore/platform/graphics/qt/
H A DImageQt.cpp123 ctxt->setCompositeOperation(!pixmap.hasAlpha() && op == CompositeSourceOver ? CompositeCopy : op);
136 if (pixmap.hasAlpha())
190 m_frames[0].m_hasAlpha = pixmap->hasAlpha();
225 ctxt->setCompositeOperation(!image->hasAlpha() && op == CompositeSourceOver ? CompositeCopy : op);
/external/webkit/Source/WebCore/platform/image-decoders/openvg/
H A DImageDecoderOpenVG.cpp41 const VGImageFormat imageFormat = hasAlpha() ? bufferFormat : VG_sRGB_565;
/external/webkit/Source/WebCore/platform/image-decoders/skia/
H A DImageDecoderSkia.cpp110 bool ImageFrame::hasAlpha() const function in class:WebCore::ImageFrame
/external/webkit/Source/WebCore/platform/image-decoders/qt/
H A DImageFrameQt.cpp118 bool ImageFrame::hasAlpha() const function in class:WebCore::ImageFrame
/external/webkit/Source/WebCore/platform/graphics/
H A DImageSource.cpp180 || m_decoder->frameBufferAtIndex(index)->hasAlpha();
H A DColor.cpp188 if (!hasAlpha()) {
309 if (!alpha() || !source.hasAlpha())
326 if (hasAlpha())
H A DGradient.h92 bool hasAlpha() const;
/external/webkit/Source/WebCore/platform/graphics/cg/
H A DGraphicsContext3DCG.cpp103 bool hasAlpha = image->isBitmapImage() ? static_cast<BitmapImage*>(image)->frameHasAlphaAtIndex(0) : true; local
104 if ((ignoreGammaAndColorProfile || (hasAlpha && !premultiplyAlpha)) && image->data()) {

Completed in 230 milliseconds

123