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

        WebCLEvent interface cleanup.
        Issue #103

        Reviewed by NOBODY (OOPS!).

        Fix webkit style issues and cleanup WebCLEvent interface files.

        No new tests (OOPS!).

        * Modules/webcl/WebCLContext.cpp:
        (WebCore::WebCLContext::createUserEvent):uncomment the code since it will work after WebCLEvent cleanup.
        * Modules/webcl/WebCLEvent.cpp:
        (WebCore::WebCLEvent::~WebCLEvent):
        (WebCore::WebCLEvent::create):
        (WebCore::WebCLEvent::WebCLEvent):
        (WebCore::WebCLEvent::getInfo):
        (WebCore::WebCLEvent::getProfilingInfo):
        (WebCore::WebCLEvent::setUserEventStatus):
        (WebCore):
        (WebCore::WebCLEvent::setCallback):
        (WebCore::WebCLEvent::getCLEvent):
        * Modules/webcl/WebCLEvent.h:
        (WebCLEvent):
        * Modules/webcl/WebCLEvent.idl:
        * bindings/js/JSWebCLEventCustom.cpp:
        (WebCore::createFinishCallback):
        (WebCore::JSWebCLEvent::getInfo):
        (WebCore::JSWebCLEvent::getProfilingInfo):
        (WebCore::JSWebCLEvent::setCallback):
        * platform/ComputeTypes.h:
2013-02-01  Sharath Kamath  <kamath.sharath@gmail.com>

        createSubBuffer() API crashes the safari browser.
        Issue #105

        Reviewed by NOBODY (OOPS!).

        On running the conformance test case to getInfo on MEM_ASSOCIATED_MEMOBJECT flag , the browser crashes.
        The stack reports crash in ~WebCLMemoryObject.
        Need to investigate the way the desctructor is called for a sub buffer as a subbuffer
        is also WebCLMemoryObject. And it depends on the cl_mem of the WebCLMemoryObject on using which it was created.

        The subbuffer will have a reference count heigher than 1. Thus can check it before calling clRelease.

        No new tests.

        * Modules/webcl/WebCLMemoryObject.cpp:
        (WebCore::WebCLMemoryObject::~WebCLMemoryObject):
2013-02-15  Sharath Kamath  <kamath.sharath@gmail.com>

        CreateImageWithDescriptor must return WebCLImage object.
        Issue #122

        Reviewed by NOBODY (OOPS!).

        CreateImageWithDescriptor returns a instance of WebCLMemoryObject.
        This must be changed to WebCLImage.
        Can be done in the custom binding for this method.

        No new tests.

        * bindings/js/JSWebCLContextCustom.cpp:
        (WebCore::JSWebCLContext::createImageWithDescriptor): Change return object to WebCLImage.