2013-02-27  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-03-07  Sharath Kamath  <kamath.sharath@gmail.com>

        Route WebCLKernel::setArg() via ComputeContext.
        Issue #162

        Reviewed by NOBODY (OOPS!).

        Route calls to clSetKernelArg() opencl API via computeContext.

        No new tests.

        * Modules/webcl/WebCLKernel.cpp:
        (WebCore::WebCLKernel::create):
        (WebCore::WebCLKernel::WebCLKernel):
        (WebCore::WebCLKernel::setArg):
        (WebCore):
        (WebCore::WebCLKernel::clSetKernelArgPrimitiveType):
        (WebCore::WebCLKernel::clSetKernelArgVectorType):
        (WebCore::WebCLKernel::getCLKernel):
        * Modules/webcl/WebCLKernel.h:
        (WebCLKernel):
        * Modules/webcl/WebCLKernelTypes.cpp:
        (WebCore::WebCLKernelTypeValue::asVector):
        (WebCore::WebCLKernelTypeVector::asVector):
        * Modules/webcl/WebCLKernelTypes.h:
        (WebCLKernelTypeValue):
        (WebCLKernelTypeVector):
        * platform/ComputeContext.h:
        * platform/ComputeTypes.h:
        * platform/opencl/ComputeContextCL.cpp:
        (WebCore::ComputeContext::setArg):