2014-03-05  Sharath Kamath  <s.kamath@samsung.com>

        Add switch for KHR_gl_sharing extension in WebCL.

        Issue #466

        Reviewed by NOBODY (OOPS!).

        Add a switch to turn on and off the KHR_gl_sharing API's.
        Without calling enableExtension("KHR_gl_sharing") the API must
        throw WEBCL_EXTENSION_NOT_ENABLED exception.

        All test cases under KHR_gl_sharing folder in extensions.

        * Modules/webcl/WebCL.cpp:
        (WebCore::WebCL::createContext):
        * Modules/webcl/WebCLCommandQueue.cpp:
        (WebCore::WebCLCommandQueue::enqueueAcquireGLObjects):
        (WebCore::WebCLCommandQueue::enqueueReleaseGLObjects):
        * Modules/webcl/WebCLContext.cpp:
        (WebCore::WebCLContext::createFromGLBuffer):
        (WebCore::WebCLContext::createFromGLRenderbuffer):
        (WebCore::WebCLContext::createFromGLTexture):
        * Modules/webcl/WebCLContext.h:
        * Modules/webcl/WebCLMemoryObject.cpp:
        (WebCore::WebCLMemoryObject::isExtensionEnabled):
        (WebCore::WebCLMemoryObject::getGLObjectInfo):
        * Modules/webcl/WebCLMemoryObject.h: