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

        CreateCommondQueue API crashes on sending invalid devices.
        Issue #81

        Reviewed by NOBODY (OOPS!).

        Need to store the deviceID in WebCL class when creating a context.
        Also fixing the Command queue property default value case.

        No new tests.

        * Modules/webcl/WebCL.cpp:
        (WebCore::WebCL::createContext): store the deviceID.
        * Modules/webcl/WebCLContext.cpp:
        (WebCore::WebCLContext::createCommandQueue):
        * Modules/webcl/WebCLContext.h:
        (WebCore::WebCLContext::createCommandQueue): Adding a new overloded API to make devices optional as per spec.
        (WebCLContext):
        * platform/opencl/ComputeContextCL.cpp:
        (WebCore::ComputeContext::createCommandQueue):fixing the Command queue property default value case.
2013-01-23  Sharath Kamath  <kamath.sharath@gmail.com>

        WebCLMemoryObject interface cleanup and style issues.
        Issue #80

        Reviewed by NOBODY (OOPS!).

        WebCLMemoryObject cleanup and webkit style fixes.

        No new tests (OOPS!).

        * Modules/webcl/WebCLBuffer.cpp:
        (WebCore::WebCLBuffer::getCLBuffer): Change to fix error in build.
        * Modules/webcl/WebCLImage.cpp:
        (WebCore::WebCLImage::getCLImage): Change to fix error in build.
        (WebCore::WebCLImage::getGLtextureInfo): Change to fix error in build.
        (WebCore::WebCLImage::getInfo): Change to fix error in build.
        * Modules/webcl/WebCLMemoryObject.cpp:
        (WebCore::WebCLMemoryObject::~WebCLMemoryObject):
        (WebCore::WebCLMemoryObject::create):
        (WebCore::WebCLMemoryObject::WebCLMemoryObject):
        (WebCore):
        (WebCore::WebCLMemoryObject::getGLObjectInfo):
        (WebCore::WebCLMemoryObject::getInfo):
        (WebCore::WebCLMemoryObject::getCLMemoryObject):
        * Modules/webcl/WebCLMemoryObject.h:
        (WebCLMemoryObject):
        * Modules/webcl/WebCLMemoryObject.idl:
        * platform/ComputeTypes.h: Adding cl_mem_object_type to ComputeTypes.