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 (OOPS!).

        * 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-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):
2012-12-20  Sharath Kamath  <kamath.sharath@gmail.com>

        Add clReleaseContext  call in WebCLContext destructor.
        Need the bug URL (OOPS!).

        Need to call the clReleaseContext to ask opencl to destroy the context object.

        Reviewed by NOBODY (OOPS!).

        No new tests (OOPS!).

        * Modules/webcl/WebCLContext.cpp:
        (WebCore::WebCLContext::~WebCLContext): call clReleaseContext and reset context obj to null.
2012-12-20  Sharath Kamath  <kamath.sharath@gmail.com>

        7a0b3d75789c3e01290a643e55c439c79c053ee3 commit review comments.

        Reviewed by Antonio.

        No new tests (OOPS!).

        * Modules/webcl/WebCL.cpp:
        (WebCore::WebCL::getPlatforms): Style changes.
        (WebCore::WebCL::getImageInfo): Style changes.
        (WebCore::WebCL::waitForEvents): Style changes.
        (WebCore::WebCL::createContext): Style changes.
        (WebCore::WebCL::getSupportedExtensions): Style changes.
LOCAL commit