1. 程式人生 > >WebKit之影象顯示分析流程

WebKit之影象顯示分析流程

## 流程分析

<img src="a.jpg">

## 影象繪製分析

ImageFrame::setPixmap(const QPixmap & pixmap={...})
ImageDecoderQt::internalHandleCurrentImage(unsigned int frameIndex=0)
ImageDecoderQt::internalReadImage(unsigned int frameIndex=0)
ImageDecoderQt::frameBufferAtIndex(unsigned int index=0)
ImageSource::createFrameAtIndex(unsigned int index=0)
BitmapImage::cacheFrame(unsigned int index=0)
BitmapImage::frameAtIndex(unsigned int index=0)
BitmapImage::nativeImageForCurrentFrame()
BitmapImage::draw(WebCore::GraphicsContext * ctxt=0x002dc640, const WebCore::FloatRect & dst={...)
GraphicsContext::drawImage()
GraphicsContext::drawImage()
GraphicsContext::drawImage(WebCore::Image * image, WebCore::ColorSpace styleColorSpace)
RenderImage::paintIntoRect(WebCore::GraphicsContext * context, const WebCore::IntRect & rect)
RenderImage::paintReplaced(WebCore::PaintInfo & paintInfo={...})//預設margin:8,8
RenderReplaced::paint(WebCore::PaintInfo & paintInfo,)
RenderImage::paint(WebCore::PaintInfo & paintInfo)//繪製圖像
InlineBox::paint(PaintInfo & paintInfo) //單行元素繪製