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

        WebCLKernel interface cleanup.

        Issue #47

        Reviewed by Antonio.

        Cleanup for interface WebCLKernel changing file to be in par with webkit
        standards and webcl specification.

        No new tests.

        * Modules/webcl/WebCLKernel.cpp:
        (WebCore::WebCLKernel::~WebCLKernel):
        (WebCore::WebCLKernel::WebCLKernel):
        (WebCore::WebCLKernel::getInfo):
        (WebCore::WebCLKernel::getWorkGroupInfo):
        (WebCore::WebCLKernel::setArg):
        (WebCore::WebCLKernel::clSetKernelArgPrimitiveType): Change from RefPtr to PassRefPtr needs changes to other class. Will be done with a seperate commit.
        (WebCore::WebCLKernel::clSetKernelArgVectorType): Change from RefPtr to PassRefPtr needs changes to other class. Will be done with a seperate commit.
        (WebCore::WebCLKernel::setDevice):
        (WebCore::WebCLKernel::getCLKernel):
        * Modules/webcl/WebCLKernel.h:
        (WebCore):
        (WebCLKernel):
        * Modules/webcl/WebCLKernel.idl:
        * bindings/js/JSWebCLKernelCustom.cpp:
        (WebCore::JSWebCLKernel::getInfo):
        (WebCore::JSWebCLKernel::getWorkGroupInfo):
        (WebCore::JSWebCLKernel::setArg):
2013-01-08  Igor Oliveira  <igor.o@sisa.samsung.com>

        If clCreateContextFromType fails, ComputeContext should not be created
        Issue #57

        Reviewed by Antonio Gomes.

        When creating a ComputeContext instance, ComputeContext::create was leaking
        because it was not handling correctly clCreateContext* creation.
        This patch fixes the wrong behavior implementing error handling in the ComputeContext::create
        method.

        * platform/ComputeContext.cpp:
        (WebCore::ComputeContext::create):