[Webkit-unassigned] [Bug 88703] [Qt][Texmap] All layers with backingStore are opaque when using TextureMapperGL.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Jun 9 00:32:16 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=88703
--- Comment #2 from Huang Dongsung <luxtella at company100.net> 2012-06-09 00:32:16 PST ---
Following code causes this bug.
void TextureMapperLayer::updateBackingStore(TextureMapper* textureMapper, GraphicsLayerTextureMapper* layer)
{
...
// Paint the entire dirty rect into an image buffer. This ensures we only paint once.
OwnPtr<ImageBuffer> imageBuffer = ImageBuffer::create(dirtyRect.size());
...
RefPtr<Image> image = imageBuffer->copyImage(DontCopyBackingStore);
TextureMapperTiledBackingStore* backingStore = static_cast<TextureMapperTiledBackingStore*>(m_backingStore.get());
backingStore->updateContents(textureMapper, image.get(), m_size, dirtyRect);
...
}
void TextureMapperTiledBackingStore::updateContents(TextureMapper* textureMapper, Image* image, const FloatSize& totalSize, const IntRect& dirtyRect)
{
createOrDestroyTilesIfNeeded(totalSize, textureMapper->maxTextureSize(), image->currentFrameHasAlpha());
for (size_t i = 0; i < m_tiles.size(); ++i)
m_tiles[i].updateContents(textureMapper, image, dirtyRect);
}
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list