when running with [QT_]WEBKIT_SHOW_COMPOSITING_DEBUG_VISUALS=1 a repaint counter is shown. This shown 1, then next time 10, then next time 100, etc... This is because it cannot reuse texture between 1 and 10 and 100 and 1000, etc. The following fixes it, but something must be wrong with the texture pool, or elsewhere. --- a/Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp +++ b/Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp @@ -376,7 +376,8 @@ void TextureMapperGL::drawRepaintCounter(int value, int pointSize, const FloatPo IntRect sourceRect(IntPoint::zero(), size); IntRect targetRect(roundedIntPoint(targetPoint), size); - RefPtr<BitmapTexture> texture = acquireTextureFromPool(size); + RefPtr<BitmapTexture> texture = createTexture(); + texture->reset(size);
wrong bug :/
MY guess is that it's not about reusing texture 2-9, but rather that it thinks it only works once the required texture changes size, which is what naturally happens when the counter goes from 9 to 10.
Created attachment 176209 [details] Patch
Landed in 135839, reviewed on irc.
Comment on attachment 176209 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=176209&action=review > Source/WebCore/ChangeLog:12 > + This method obviosly needs to bind the texture. "obviosly" -> "obviously" ;-)
Comment on attachment 176209 [details] Patch Ooops, clearing review, to make it disappear from the review queue.