2013-08-07  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        Change WebCLGL{Image,Buffer} ctor to take WebGL objects instead of OpenGL IDs
        Issue #270

        Reviewed by Igor.

        That way we can cache the WebGL{Image,Buffer} object passed in from JS
        and return it from getGLObjectInfo method, if needed.

        * Modules/webcl/WebCLGLBuffer.cpp:
        (WebCore::WebCLGLBuffer::create):
        * Modules/webcl/WebCLGLBuffer.h:
        (WebCore::WebCLGLBuffer::~WebCLGLBuffer):
        * Modules/webcl/WebCLGLContext.cpp:
        (WebCore::WebCLGLContext::createFromGLBuffer):
        (WebCore::WebCLGLContext::createFromGLRenderbuffer):
        (WebCore::WebCLGLContext::createFromGLTexture):
        * Modules/webcl/WebCLGLImage.cpp:
        (WebCore::WebCLGLImage::create):
        * Modules/webcl/WebCLGLImage.h:
2013-08-07  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        Fix getGLObjectInfo implementations
        Issue #269

        Reviewed by NOBODY (OOPS!).

        At creation of WebCLGLImage and WebCLGLBuffer objects
        cache the associated WebCLGLObject info.

        Patch also reworks WebCLGLObjectInfo implementation
        completely (.cpp, .h and .idl). Now it works like how
        the spec describes it.

        Note that WebCLGLObjectInfo::glObject attribute getter
        gets declared with a Custom extended attribute. That way
        we can implement "any" in the spec, and return either
        a WebGLBuffer, WebGLRenderbuffer or WebGLTexture.

        * Modules/webcl/WebCLGLBuffer.cpp:
        (WebCore::WebCLGLBuffer::create):
        (WebCore::WebCLGLBuffer::cacheGLObjectInfo):
        (WebCore::WebCLGLBuffer::getGLObjectInfo):
        * Modules/webcl/WebCLGLBuffer.h:
        * Modules/webcl/WebCLGLBuffer.idl:
        * Modules/webcl/WebCLGLImage.cpp:
        (WebCore::WebCLGLImage::create):
        (WebCore::WebCLGLImage::getGLTextureInfo):
        (WebCore::WebCLGLImage::cacheGLObjectInfo):
        (WebCore::WebCLGLImage::getGLObjectInfo):
        * Modules/webcl/WebCLGLImage.h:
        * Modules/webcl/WebCLGLImage.idl:
        * Modules/webcl/WebCLGLObjectInfo.cpp:
        (WebCore::WebCLGLObjectInfo::create):
        (WebCore::WebCLGLObjectInfo::WebCLGLObjectInfo):
        (WebCore::WebCLGLObjectInfo::type):
        (WebCore::WebCLGLObjectInfo::glObject):
        * Modules/webcl/WebCLGLObjectInfo.h:
        (WebCore::WebCLGLObjectInfo::~WebCLGLObjectInfo):
        * Modules/webcl/WebCLGLObjectInfo.idl:
        * WebCore.xcodeproj/project.pbxproj:
        * bindings/js/JSWebCLGLObjectInfoCustom.cpp: Added.
        (WebCore::JSWebCLGLObjectInfo::glObject):
2013-08-07  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        Clean up WebCLGLImage::getGLTextureInfo
        Issue #273

        Reviewed by NOBODY (OOPS!).

        Patch:
        1) made use of WebCLInputChecker to validate passed-in parameters;
        2) removed unneeded casts;
        3) replaced CL_SUCCESS by ComputeContext::SUCCESS.

        * Modules/webcl/WebCLGLImage.cpp:
        (WebCore::WebCLGLImage::getGLTextureInfo):
        * Modules/webcl/WebCLInputChecker.cpp:
        (WebCore::WebCLInputChecker::isValidTextureInfo):
        * Modules/webcl/WebCLInputChecker.h:
2013-08-07  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        Unreviewed Deform demo fix, left over from cc0b8cafb.

        WebCLGLCommandQueue::enqueueAcquireGLObjects / enqueueReleaseGLObjects is not working properly
        Issue #264

        * WebCL/Deform/SimCL.js:
        (SimulateCL):
2013-08-07  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        Fix WebCLContext::getInfo signature.

        Reviewed by TrustMe.

        * Modules/webcl/WebCLContext.idl:
2013-08-08  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        Remove remaining cl_xxx directly calls from Modules/WebCL
        Issue #191

        Reviewed by TrustMe.

        cl_image_format -> CCImageFormat
        cl_platform_id -> CCPlatformID
        cl_program -> CCProgram
        CL_SUCCESS -> ComputeContext::SUCCESS

        * Modules/webcl/WebCLCommandQueue.cpp:
        (WebCore::WebCLCommandQueue::getInfo):
        (WebCore::WebCLCommandQueue::enqueueCopyImage):
        * Modules/webcl/WebCLGLCommandQueue.idl:
        * Modules/webcl/WebCLImageDescriptor.cpp:
        (WebCore::WebCLImageDescriptor::create):
        (WebCore::WebCLImageDescriptor::WebCLImageDescriptor):
        * Modules/webcl/WebCLMemoryObject.cpp:
        (WebCore::WebCLMemoryObject::getInfo):
        * Modules/webcl/WebCLPlatform.h:
        * Modules/webcl/WebCLProgram.cpp:
        (WebCore::WebCLProgram::WebCLProgram):
        (WebCore::WebCLProgram::getBuildInfo):
        (WebCore::WebCLProgram::finishCallback):
        * Modules/webcl/WebCLProgram.h:
2013-08-07  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        use [Default=Undefined] in WebCLGLContext::createCommandQueue
        Issue #271

        Reviewed by TrustMe.

        * Modules/webcl/WebCLGLContext.h:
        * Modules/webcl/WebCLGLContext.idl:
minors