[Webkit-unassigned] [Bug 103606] New: WebGL: Add a class to abstract the status of the Image in texImage2D() and texSubImage2D()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 29 00:29:36 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=103606

           Summary: WebGL: Add a class to abstract the status of the Image
                    in texImage2D() and texSubImage2D()
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        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


In texImage2D and texSubImage2D, the status of the Image is extracted and kept in the function GraphicsContext3D::getImageData() and has some inconvenience.

There are no interface and guaranteed way to use the status of the Image outside of GraphicsContext3D::getImageData() safely. For example, you can not get the address of the Image data and operate it outside the scope of the function and there is at least a memory copy existed. The lifetime of some key status is constrained and only kept in in getImageData(). This prevents some potential optimizations and affect the flexibility of the code.

It can be solved by adding a ImageLocker class to abstract the status of the Image. Then the lifetime and validity are determined by the lifetime of the object. It provides flexibility on code refactoring and optimizations.

-- 
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