2013-01-07  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        WebCLException::computeContextErrorToWebCLExceptionCode should handle ComputeContext::Success properly
        Issue #52

        Reviewed by Igor.

        Remove unneeded checks for ComputeContext::SUCCESS before
        calling computeContextErrorToExceptionCode method. It is a
        no-op call anyways.

        Took the opportunity to add some asserts to the code.

        * Modules/webcl/WebCLCommandQueue.cpp:
        (WebCore::WebCLCommandQueue::enqueueWriteBuffer):
        (WebCore::WebCLCommandQueue::enqueueWriteBufferRect):
        (WebCore::WebCLCommandQueue::enqueueReadBuffer):
        (WebCore::WebCLCommandQueue::enqueueReadImage):
        (WebCore::WebCLCommandQueue::enqueueReadBufferRect):
        (WebCore::WebCLCommandQueue::enqueueNDRangeKernel):
        (WebCore::WebCLCommandQueue::enqueueWriteImage):
        (WebCore::WebCLCommandQueue::enqueueAcquireGLObjects):
        (WebCore::WebCLCommandQueue::enqueueReleaseGLObjects):
        (WebCore::WebCLCommandQueue::enqueueCopyImageToBuffer):
        (WebCore::WebCLCommandQueue::enqueueCopyBufferToImage):
        (WebCore::WebCLCommandQueue::enqueueCopyBuffer):
        (WebCore::WebCLCommandQueue::enqueueCopyBufferRect):
        (WebCore::WebCLCommandQueue::enqueueTask):
        * Modules/webcl/WebCLContext.cpp:
        (WebCore::WebCLContext::createCommandQueue):
        (WebCore::WebCLContext::createProgram):
        (WebCore::WebCLContext::createBuffer):
        (WebCore::WebCLContext::createFromGLBuffer):
        (WebCore::WebCLContext::createFromGLRenderBuffer):
        (WebCore::WebCLContext::createSampler):
        (WebCore::WebCLContext::createFromGLTexture2D):
        (WebCore::WebCLContext::getSupportedImageFormats):
        * Modules/webcl/WebCLException.cpp:
        * Modules/webcl/WebCLException.h:
        (WebCLException):
        * Modules/webcl/WebCLProgram.cpp:
        (WebCore::WebCLProgram::getBuildInfo):
        (WebCore::WebCLProgram::createKernel):
2013-01-07  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        Make all out-parameters to be passed by reference
        Issue #55

        Reviewed by Igor.

        It makes all method declaration in ComputeContext conformant.

        * Modules/webcl/WebCL.cpp:
        (WebCore::WebCL::createContext):
        * Modules/webcl/WebCLContext.cpp:
        (WebCore::WebCLContext::create):
        (WebCore::WebCLContext::WebCLContext):
        * Modules/webcl/WebCLContext.h:
        (WebCLContext):
        * platform/ComputeContext.cpp:
        (WebCore::ComputeContext::ComputeContext):
        (WebCore::ComputeContext::create):
        * platform/ComputeContext.h:
        (ComputeContext):