2013-08-14  Sharath Kamath  <s.kamath@samsung.com>

        Fix WebCLMemoryObject::getInfo(MEM_ASSOCIATED_MEMOBJECT)
        Issue #275

        Reviewed by Antonio.

        As per OpenCL specification [http://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clGetMemObjectInfo.html]
        Return memory object from which memobj is created.
        This returns the memory object specified as buffer argument to clCreateSubBuffer.
        Otherwise a NULL value is returned.

        So we need to store the parent WebCLMemoryObject when creating each sub-buffer.

        Also reveriting 115a8389369bb00240eca6dfd54ccee77158a651 and using the stored parent memory object to
        fix issue when createSubBuffer() is called on a subbuffer.

        conformance/computeinfo/cl_memoryObject_getinfo.html
        conformance/buffimgs/cl_buffer_createSubBuffer.html
        in https://github.com/SRA-SiliconValley/webkit-webcl-conformance

        * Modules/webcl/WebCLBuffer.cpp:
        (WebCore::WebCLBuffer::WebCLBuffer):
        (WebCore::WebCLBuffer::createSubBuffer):
        * Modules/webcl/WebCLBuffer.h:
        * Modules/webcl/WebCLMemoryObject.cpp:
        (WebCore::WebCLMemoryObject::WebCLMemoryObject):
        (WebCore::WebCLMemoryObject::getInfo):
        * Modules/webcl/WebCLMemoryObject.h:

        This reverts commit 115a8389369bb00240eca6dfd54ccee77158a651.