2014-01-27  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        events can not be reused
        Issue #433

        Reviewed by Igor.

        As per http://www.khronos.org/bugzilla/show_bug.cgi?id=1107
        (Disallow reuse of WebCLEvent):

        "Each WebCLEvent instance can only be used once; the enqueue methods
        will throw an INVALID_EVENT exception if a previously populated event
        is passed in. User events are considered previously populated, and as such
        cannot be re-populated. "

        * Modules/webcl/WebCLCommandQueue.cpp:
        (WebCore::WebCLCommandQueue::computeEventFromWebCLEventIfApplicable):
2014-01-27  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        Throw an exception if a blocking call is made and it waits on an user event
        Issue #434

        Reviewed by Igor.

        Throw INVALID_EVENT_WAIT_LIST in blocking APIs if eventWaitList
        contains user events.

        * Modules/webcl/WebCL.cpp:
        (WebCore::WebCL::waitForEvents):
        * Modules/webcl/WebCLCommandQueue.cpp:
        (WebCore::WebCLCommandQueue::enqueueWriteBufferBase):
        (WebCore::WebCLCommandQueue::enqueueWriteBufferRectBase):
        (WebCore::WebCLCommandQueue::enqueueReadBufferBase):
        (WebCore::WebCLCommandQueue::enqueueReadImageBase):
        (WebCore::WebCLCommandQueue::enqueueReadBufferRectBase):
        (WebCore::WebCLCommandQueue::enqueueWriteImageBase):
2014-01-27  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        WebCLCommandQueue::enqueueWaitForEvents can take user events
        Issue #435

        Reviewed by Igor.

        As per http://www.khronos.org/bugzilla/show_bug.cgi?id=1094
        (WebCLCommandQueue::enqueueWaitForEvents should not take WebCLUserEvent's),
        the API can take user event.

        It was identified as a bug in the OpenCL spec.

        * Modules/webcl/WebCLCommandQueue.cpp:
        (WebCore::WebCLCommandQueue::enqueueWaitForEvents):