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-19  Sharath Kamath  <kamath.sharath@gmail.com>

        WebCLEvent interface cleanup.
        Issue #103

        Reviewed by NOBODY.

        Fix webkit style issues and cleanup WebCLEvent interface files.
        Route releaseEvent call through ComputeContextCL.

        No new tests (OOPS!).

        * Modules/webcl/WebCLContext.cpp:
        (WebCore::WebCLContext::createUserEvent):
        * 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/ComputeContext.h:
        * platform/ComputeTypes.h:
        * platform/opencl/ComputeContextCL.cpp:
        (WebCore::ComputeContext::releaseEvent):