2013-05-23  Sharath Kamath  <s.kamath@samsung.com>

        Part 1- WebCL*::getInfo() API fixes.
        Issue #232

        Reviewed by NOBODY (OOPS!).

        Fix issues with getInfo() API. Mainly fixes to pass a PassRefPtr
        to WebCLGetInfo() instead of Normal pointer.

        WebCLGetInfo is returned to JS and then destructed once user closes the tab.
        If we use PassRefPtr and pass ownership to WebCLGetInfo the associated opencl object
        will be destroyed when WebCLGetInfo is destroyed. So we need to pass a copy of the
        object rather than passing the ownership.

        No new tests (OOPS!).

        * Modules/webcl/WebCLContext.cpp:
        (WebCore::WebCLContext::getInfo):
        (WebCore::WebCLContext::createProgram):
        (WebCore::WebCLContext::createImage):
        * Modules/webcl/WebCLEvent.cpp:
        (WebCore::WebCLEvent::getInfo):
        * Modules/webcl/WebCLKernel.cpp:
        (WebCore::WebCLKernel::getInfo):
        * Modules/webcl/WebCLMemoryObject.cpp:
        (WebCore::WebCLMemoryObject::getInfo):
        * Modules/webcl/WebCLProgram.cpp:
        (WebCore::WebCLProgram::getInfo):
        * Modules/webcl/WebCLSampler.cpp:
        (WebCore::WebCLSampler::getInfo):
2013-05-23  Sharath Kamath  <s.kamath@samsung.com>

        WebCLDevice::GetInfo does not return WebCLPlatform on DEVICE_PLATFORM param type.
        Issue #236

        Reviewed by NOBODY (OOPS!).

        No new tests (OOPS!).

        * Modules/webcl/WebCLDevice.cpp:
        (WebCore::WebCLDevice::create):
        (WebCore::WebCLDevice::WebCLDevice):
        (WebCore::WebCLDevice::getInfo):
        (WebCore::toWebCLDeviceArray):
        * Modules/webcl/WebCLDevice.h:
        (WebCore):
        (WebCLDevice):
        (WebCore):
        * Modules/webcl/WebCLPlatform.cpp:
        (WebCore::WebCLPlatform::getDevices):