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-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):
2013-01-24  Sharath Kamath  <kamath.sharath@gmail.com>

        Memory leak in WebCL causing crash of safari.
        Issue #79
        Reviewed by NOBODY.

        Only the base class destructor must be made virtual. Else causes memory leak since it doesnt call the
        destructor in right order.

        No new tests.

        * Modules/webcl/WebCLBuffer.h:
        (WebCLBuffer):
        * Modules/webcl/WebCLImage.h:
        (WebCLImage):
        * Modules/webcl/WebCLMemoryObject.h:
        (WebCLMemoryObject):
2013-01-24  Sharath Kamath  <kamath.sharath@gmail.com>

        WebCLDevice interface cleanup.
        Issue #91

        Reviewed by Antonio.

        Webkit style issues and cleanup of WebCLDevice interface.

        No new tests.

        * Modules/webcl/WebCLDevice.cpp:
        (WebCore::WebCLDevice::create):
        (WebCore::WebCLDevice::WebCLDevice):
        (WebCore::WebCLDevice::getInfo):
        (WebCore::WebCLDevice::getCLDevice):
        * Modules/webcl/WebCLDevice.h:
        (WebCLDevice):
        * Modules/webcl/WebCLDevice.idl:
        * platform/ComputeTypes.h:
2013-01-24  Sharath Kamath  <kamath.sharath@gmail.com>

        WebCLSampler interface cleanup.
        Issue #92

        Reviewed by Antonio.

        Webkit style issues and cleanup of WebCLSampler interface.

        No new tests.

        * Modules/webcl/WebCLSampler.cpp:
        (WebCore::WebCLSampler::~WebCLSampler):
        (WebCore::WebCLSampler::create):
        (WebCore::WebCLSampler::WebCLSampler):
        (WebCore::WebCLSampler::getInfo):
        (WebCore::WebCLSampler::getCLSampler):
        * Modules/webcl/WebCLSampler.h:
        (WebCLSampler):
        * Modules/webcl/WebCLSampler.idl:
        * platform/ComputeTypes.h:
2013-01-24  Sharath Kamath  <kamath.sharath@gmail.com>

        WebCLCommandQueue check pointers to avoid bad memory access.
        Issue #93

        Reviewed by NOBODY (OOPS!).

        Error can be thrown by WebCL or a null passed to OpenCL.
        If OpenCL needs a non-null value it will throw a exception which will
        be handled by WebCL.

        No new tests (OOPS!).

        * Modules/webcl/WebCLCommandQueue.cpp:
        (WebCore::WebCLCommandQueue::enqueueWriteBuffer):
        (WebCore::WebCLCommandQueue::enqueueWriteBufferRect):
        (WebCore::WebCLCommandQueue::enqueueReadImage):
        (WebCore::WebCLCommandQueue::enqueueReadBuffer):
        (WebCore::WebCLCommandQueue::enqueueReadBufferRect):
        (WebCore::WebCLCommandQueue::enqueueNDRangeKernel):
        (WebCore::WebCLCommandQueue::enqueueWriteImage):
        (WebCore::WebCLCommandQueue::enqueueCopyImage):
        (WebCore::WebCLCommandQueue::enqueueCopyImageToBuffer):
        (WebCore::WebCLCommandQueue::enqueueCopyBufferToImage):
        (WebCore::WebCLCommandQueue::enqueueCopyBufferRect):