[Webkit-unassigned] [Bug 44926] Multiple accelerated 2D canvases should be able to use the same GraphicsContext3D
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Sep 1 15:31:37 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=44926
--- Comment #20 from James Robinson <jamesr at chromium.org> 2010-09-01 15:31:36 PST ---
> > > WebCore/platform/graphics/skia/PlatformContextSkia.cpp:791
> > > + m_uploadTexture = context->createTexture(0, Texture::BGRA8, bitmap.width(), bitmap.height());
> > Hmm.. hashing on the NULL ptr (besides making it "magic" and fragile, in case anyone else tries the same trick) will share a single upload texture for all canvases. This means we might hang onto an 8K texture long after a big canvas is gone, and we only need to upload little 150x150 canvases, e.g.
>
> A NULL pointer means "do not cache" - look at the changes in createTexture(). It is slightly magic but we need a way to create and upload textures without any caching at all and this seemed as good as any.
Actually, this idea sucked. I'll add another API for creating a non-cached texture.
--
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