2013-01-18  Sharath Kamath  <kamath.sharath@gmail.com>

        WebCLProgram::finishCallback conformance test crashes.
        Issue #77

        Reviewed by NOBODY (OOPS!).

        When WebCLProgram::build() api is called with a callback event.
        The call back is not registered and thus the static cast fails.
        Adding null check on the pointer to avoid crash if static fails due to other issues.

        * Modules/webcl/WebCLProgram.cpp:
        (WebCore::WebCLProgram::finishCallback): Add null check.
        (WebCore::WebCLProgram::build): Register the object into file level static for use in finishCallback.
2013-01-23  Sharath Kamath  <kamath.sharath@gmail.com>

        WebCLBuffer interface cleanup and style issues.
        Issue #84.

        Reviewed by NOBODY (OOPS!).

        WebCLBuffer cleanup and webkit style fixes.

        No new tests.

        * Modules/webcl/WebCLBuffer.cpp:
        (WebCore::WebCLBuffer::create):
        (WebCore::WebCLBuffer::WebCLBuffer):
        (WebCore::WebCLBuffer::getCLBuffer):
        (WebCore::WebCLBuffer::createSubBuffer):
        * Modules/webcl/WebCLBuffer.h:
        (WebCLBuffer):
        * Modules/webcl/WebCLBuffer.idl:
        * platform/ComputeTypes.h: Add cl_buffer_region type.
2013-01-24  Sharath Kamath  <kamath.sharath@gmail.com>

        WebCLMemoryObject must store a WebCLContext object as member.
        Issue #90

        Reviewed by NOBODY.

        WebCLMemoryObject, WebCLBuffer, WebCLImage, WebCLMemoryObjectList needs change to
        store WebCLContext object.
        WebCLContext needs to modify create calls to above interface with "this" object.

        No new tests (OOPS!).

        * Modules/webcl/WebCLBuffer.cpp:
        (WebCore::WebCLBuffer::create):
        (WebCore::WebCLBuffer::WebCLBuffer):
        * Modules/webcl/WebCLBuffer.h:
        (WebCLBuffer):
        * Modules/webcl/WebCLContext.cpp:
        (WebCore::WebCLContext::createBuffer):
        (WebCore::WebCLContext::createImage2DBaseMemory):
        (WebCore::WebCLContext::createImage2DBaseImage):
        (WebCore::WebCLContext::createFromGLBuffer):
        (WebCore::WebCLContext::createFromGLRenderBuffer):
        (WebCore::WebCLContext::createFromGLTexture2D):
        * Modules/webcl/WebCLImage.cpp:
        (WebCore::WebCLImage::create):
        (WebCore::WebCLImage::WebCLImage):
        * Modules/webcl/WebCLImage.h:
        (WebCLImage):
        * Modules/webcl/WebCLMemoryObject.cpp:
        (WebCore::WebCLMemoryObject::create):
        (WebCore::WebCLMemoryObject::WebCLMemoryObject):
        * Modules/webcl/WebCLMemoryObject.h:
        (WebCore):
        (WebCLMemoryObject):
        * Modules/webcl/WebCLMemoryObjectList.cpp:
        (WebCore::WebCLMemoryObjectList::create):
        (WebCore::WebCLMemoryObjectList::WebCLMemoryObjectList):
        * Modules/webcl/WebCLMemoryObjectList.h:
        (WebCore):
        (WebCLMemoryObjectList):