WebCL class cleanup and style changes
2012-12-18  Sharath Kamath  <kamath.sharath@gmail.com>
Examples:

        Replacing the createSharedContext API with createContext.
        Issue #21

        Reviewed by Antonio .

        * WebCL/Nbody/SimCL.js: Style changes.
        (getKernel): Style changes.
        (InitCL): createSharedContext fix.
        (SimulateCL): Style changes.
        (GetWorkGroupSize): Style changes.

Source/WebCore:

        WebCL class cleanup.
        Issue #21

        Reviewed by Antonio.

        Code cleanup as per the specification for WebCL,
        Style changes as per the webkit styling guidelines.

        No new tests.

        * Modules/webcl/WebCL.cpp:
        (WebCore::WebCL::WebCL):
        (WebCore::WebCL::create):
        (WebCore::WebCL::getPlatforms):
        (WebCore::WebCL::getImageInfo):
        (WebCore::WebCL::waitForEvents):
        (WebCore::WebCL::createContext):
        (WebCore::WebCL::getSupportedExtensions):
        (WebCore::WebCL::setCLDeviceID):
        (WebCore):
        (WebCore::WebCL::getCLDeviceID):
        * Modules/webcl/WebCL.h:
        (WebCore):
        (WebCore::WebCL::createContext):
        (WebCL):
        * Modules/webcl/WebCL.idl:
        * Modules/webcl/WebCLContext.cpp:
        (WebCore::WebCLContext::createCommandQueue):
        * Modules/webcl/WebCLDevice.cpp:
        (WebCore::WebCLDevice::getInfo):
        * Modules/webcl/WebCLKernel.cpp:
        (WebCore::WebCLKernel::setArg):
        * bindings/js/JSWebCLCustom.cpp:
        (WebCore::JSWebCL::getImageInfo):
        (WebCore::JSWebCL::createContext):
        (WebCore::JSWebCLConstructor::constructJSWebCL):
2012-12-19  Sharath Kamath  <kamath.sharath@gmail.com>

        WebCL:: createContext not taking properties passed.
        Issue #22

        Reviewed by Antonio.

        createContext() API must take WebCLProperties and use it when creating
        context. Fixed to take platforms and device type from property.

        No new tests.

        * Modules/webcl/WebCL.cpp:
        (WebCore::WebCL::createContext): Fix to take properties.
2012-12-20  Sharath Kamath  <kamath.sharath@gmail.com>

        WebCLContext class cleanup.
        Issue #23

        Reviewed by NOBODY (OOPS!).

        Style changes as per webkit standards.

        No new tests.

        * Modules/webcl/WebCLContext.cpp:
        (WebCore::WebCLContext::~WebCLContext):
        (WebCore):
        (WebCore::WebCLContext::create): Style changes
        (WebCore::WebCLContext::WebCLContext): Style changes
        (WebCore::WebCLContext::getInfo): Style changes
        (WebCore::WebCLContext::createCommandQueue): Style changes
        (WebCore::WebCLContext::createProgram): Style changes
        (WebCore::WebCLContext::createBuffer): Style changes & validation for flags.
        (WebCore::WebCLContext::createImage2DBaseMemory): Style changes
        (WebCore::WebCLContext::createImage2DBaseImage): Style changes
        (WebCore::WebCLContext::createImage): Style changes & change in error handling.
        (WebCore::WebCLContext::createImageWithDescriptor): Style changes & change in error handling.
        (WebCore::WebCLContext::createFromGLBuffer): Style changes
        (WebCore::WebCLContext::createFromGLRenderBuffer): Style changes
        (WebCore::WebCLContext::createSampler): Style changes
        (WebCore::WebCLContext::createFromGLTexture2D): Style changes
        (WebCore::WebCLContext::createUserEvent): Style changes.
        (WebCore::WebCLContext::videoFrameToImage): Style changes.
        (WebCore::WebCLContext::LRUImageBufferCache::imageBuffer): Style changes.
        (WebCore::WebCLContext::LRUImageBufferCache::bubbleToFront): Style changes.
        (WebCore::WebCLContext::getSupportedImageFormats): Style changes & validation for flags and image Type.
        (WebCore::WebCLContext::createImage2D): Style changes & change in error handling.
        * Modules/webcl/WebCLContext.h: Style changes.
        (WebCore):
        (WebCLContext):
        (WebCore::WebCLContext::createBuffer):
        (WebCore::WebCLContext::createCommandQueue):
        (WebCore::WebCLContext::createImageWithDescriptor):
        (LRUImageBufferCache):
        * Modules/webcl/WebCLContext.idl: Style changes.
        * bindings/js/JSWebCLContextCustom.cpp:
        (WebCore):
        (WebCore::JSWebCLContext::getInfo):
        (WebCore::JSWebCLContext::createImageWithDescriptor):