[Webkit-unassigned] [Bug 113493] New: Enhance the restrictions on going through the faster hardware path for uploading Canvas2D to WebGL
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Mar 28 02:44:19 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=113493
Summary: Enhance the restrictions on going through the faster
hardware path for uploading Canvas2D to WebGL
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: WebGL
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: jun.a.jiang at intel.com
Current restrictions on going through the faster hardware path for uploading Canvas2D to WebGL have two issues:
1. Although Level is assumed to be 0 and hard-coded in ImageBuffer::copyToPlatformTexture as follows:
extensions->copyTextureCHROMIUM(GraphicsContext3D::TEXTURE_2D, sourceTexture, texture, 0, internalFormat);
The level parameter is not checked in WebGLRenderingContext::texImage2D(..., canvas) and level with a value larger than 0 can still pass through.
2. The type restrictions "type == texture->getType(target, level) && type == GraphicsContext3D::UNSIGNED_BYTE" result in that the first WebGLRenderingContext::texImage2D(..., canvas) call will go through SW path and only the successive call will go through the faster hardware path. It is because for the first call, the texture is not defined before and texture->getType(target, level) returns 0.
--
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