2026-03-11 SRA-SV / ABT Lab <no.email@needed>

        WebCL added files (REBASE Feb/2014).

        Added directories/files:

        Source/WebCore:

        * Modules/webcl/DOMWindowWebCLEnvironment.cpp: Added.
        * Modules/webcl/DOMWindowWebCLEnvironment.h: Added.
        * Modules/webcl/DOMWindowWebCLEnvironment.idl: Added.
        * Modules/webcl/WebCL.cpp: Added.
        * Modules/webcl/WebCL.h: Added.
        * Modules/webcl/WebCL.idl: Added.
        * Modules/webcl/WebCLBuffer.cpp: Added.
        * Modules/webcl/WebCLBuffer.h: Added.
        * Modules/webcl/WebCLBuffer.idl: Added.
        * Modules/webcl/WebCLCallback.h: Added.
        * Modules/webcl/WebCLCallback.idl: Added.
        * Modules/webcl/WebCLCommandQueue.cpp: Added.
        * Modules/webcl/WebCLCommandQueue.h: Added.
        * Modules/webcl/WebCLCommandQueue.idl: Added.
        * Modules/webcl/WebCLContext.cpp: Added.
        * Modules/webcl/WebCLContext.h: Added.
        * Modules/webcl/WebCLContext.idl: Added.
        * Modules/webcl/WebCLDevice.cpp: Added.
        * Modules/webcl/WebCLDevice.h: Added.
        * Modules/webcl/WebCLDevice.idl: Added.
        * Modules/webcl/WebCLEvent.cpp: Added.
        * Modules/webcl/WebCLEvent.h: Added.
        * Modules/webcl/WebCLEvent.idl: Added.
        * Modules/webcl/WebCLException.cpp: Added.
        * Modules/webcl/WebCLException.h: Added.
        * Modules/webcl/WebCLException.idl: Added.
        * Modules/webcl/WebCLExtensionsAccessor.cpp: Added.
        * Modules/webcl/WebCLExtensionsAccessor.h: Added.
        * Modules/webcl/WebCLGLObjectInfo.cpp: Added.
        * Modules/webcl/WebCLGLObjectInfo.h: Added.
        * Modules/webcl/WebCLGLObjectInfo.idl: Added.
        * Modules/webcl/WebCLGetInfo.cpp: Added.
        * Modules/webcl/WebCLGetInfo.h: Added.
        * Modules/webcl/WebCLHTMLInterop.cpp: Added.
        * Modules/webcl/WebCLHTMLInterop.h: Added.
        * Modules/webcl/WebCLImage.cpp: Added.
        * Modules/webcl/WebCLImage.h: Added.
        * Modules/webcl/WebCLImage.idl: Added.
        * Modules/webcl/WebCLImageDescriptor.cpp: Added.
        * Modules/webcl/WebCLImageDescriptor.h: Added.
        * Modules/webcl/WebCLImageDescriptor.idl: Added.
        * Modules/webcl/WebCLInputChecker.cpp: Added.
        * Modules/webcl/WebCLInputChecker.h: Added.
        * Modules/webcl/WebCLKernel.cpp: Added.
        * Modules/webcl/WebCLKernel.h: Added.
        * Modules/webcl/WebCLKernel.idl: Added.
        * Modules/webcl/WebCLKernelArgInfo.h: Added.
        * Modules/webcl/WebCLKernelArgInfo.idl: Added.
        * Modules/webcl/WebCLKernelArgInfoProvider.cpp: Added.
        * Modules/webcl/WebCLKernelArgInfoProvider.h: Added.
        * Modules/webcl/WebCLMemoryInitializer.cpp: Added.
        * Modules/webcl/WebCLMemoryInitializer.h: Added.
        * Modules/webcl/WebCLMemoryObject.cpp: Added.
        * Modules/webcl/WebCLMemoryObject.h: Added.
        * Modules/webcl/WebCLMemoryObject.idl: Added.
        * Modules/webcl/WebCLObject.h: Added.
        * Modules/webcl/WebCLPlatform.cpp: Added.
        * Modules/webcl/WebCLPlatform.h: Added.
        * Modules/webcl/WebCLPlatform.idl: Added.
        * Modules/webcl/WebCLProgram.cpp: Added.
        * Modules/webcl/WebCLProgram.h: Added.
        * Modules/webcl/WebCLProgram.idl: Added.
        * Modules/webcl/WebCLSampler.cpp: Added.
        * Modules/webcl/WebCLSampler.h: Added.
        * Modules/webcl/WebCLSampler.idl: Added.
        * Modules/webcl/WebCLUserEvent.cpp: Added.
        * Modules/webcl/WebCLUserEvent.h: Added.
        * Modules/webcl/WebCLUserEvent.idl: Added.
        * Modules/webcl/WorkerContextWebCLEnvironment.cpp: Added.
        * Modules/webcl/WorkerContextWebCLEnvironment.h: Added.
        * Modules/webcl/WorkerContextWebCLEnvironment.idl: Added.
        * bindings/js/JSWebCLCommandQueueCustom.cpp: Added.
        * bindings/js/JSWebCLContextCustom.cpp: Added.
        * bindings/js/JSWebCLCustom.cpp: Added.
        * bindings/js/JSWebCLCustom.h: Added.
        * bindings/js/JSWebCLDeviceCustom.cpp: Added.
        * bindings/js/JSWebCLEventCustom.cpp: Added.
        * bindings/js/JSWebCLGLObjectInfoCustom.cpp: Added.
        * bindings/js/JSWebCLKernelCustom.cpp: Added.
        * bindings/js/JSWebCLMemoryObjectCustom.cpp: Added.
        * bindings/js/JSWebCLPlatformCustom.cpp: Added.
        * bindings/js/JSWebCLProgramCustom.cpp: Added.
        * bindings/js/JSWebCLSamplerCustom.cpp: Added.
        * platform/ComputeCommandQueue.h: Added.
        * platform/ComputeContext.h: Added.
        * platform/ComputeDevice.h: Added.
        * platform/ComputeEvent.h: Added.
        * platform/ComputeExtensions.h: Added.
        * platform/ComputeExtensionsTraits.h: Added.
        * platform/ComputeKernel.h: Added.
        * platform/ComputeMemoryObject.h: Added.
        * platform/ComputePlatform.h: Added.
        * platform/ComputeProgram.h: Added.
        * platform/ComputeSampler.h: Added.
        * platform/ComputeTypes.h: Added.
        * platform/ComputeTypesTraits.h: Added.
        * platform/opencl/ComputeCommandQueueCL.cpp: Added.
        * platform/opencl/ComputeContextCL.cpp: Added.
        * platform/opencl/ComputeDeviceCL.cpp: Added.
        * platform/opencl/ComputeEventCL.cpp: Added.
        * platform/opencl/ComputeExtensionsCL.cpp: Added.
        * platform/opencl/ComputeKernelCL.cpp: Added.
        * platform/opencl/ComputeMemoryObjectCL.cpp: Added.
        * platform/opencl/ComputePlatformCL.cpp: Added.
        * platform/opencl/ComputeProgramCL.cpp: Added.
        * platform/opencl/ComputeSamplerCL.cpp: Added.

        LayoutTests:

        * webcl/resources/js-test-post.js: Added.
        * webcl/resources/js-test-pre.js: Added.
        * webcl/resources/kernels.js: Added.
        * webcl/resources/logger.js: Added.
        * webcl/resources/webcl-proxy.js: Added.
        * webcl/resources/webcl-test-utils.js: Added.
        * webcl/resources/webcl-test.js: Added.
        * webcl/stress/webcl-stress-buffer-expected.txt: Added.
        * webcl/stress/webcl-stress-buffer.html: Added.
        * webcl/stress/webcl-stress-context-expected.txt: Added.
        * webcl/stress/webcl-stress-context.html: Added.
        * webcl/stress/webcl-stress-event-expected.txt: Added.
        * webcl/stress/webcl-stress-event.html: Added.
        * webcl/stress/webcl-stress-image-expected.txt: Added.
        * webcl/stress/webcl-stress-image.html: Added.
        * webcl/stress/webcl-stress-kernels-one-device-expected.txt: Added.
        * webcl/stress/webcl-stress-kernels-one-device.html: Added.
        * webcl/stress/webcl-stress-nkernels-expected.txt: Added.
        * webcl/stress/webcl-stress-nkernels.html: Added.
        * webcl/stress/webcl-stress-program-expected.txt: Added.
        * webcl/stress/webcl-stress-program.html: Added.
        * webcl/stress/webcl-stress-queue-expected.txt: Added.
        * webcl/stress/webcl-stress-queue.html: Added.
        * webcl/stress/webcl-stress-sampler-expected.txt: Added.
        * webcl/stress/webcl-stress-sampler.html: Added.
        * webcl/tests/webcl-kernel-result-expected.txt: Added.
        * webcl/tests/webcl-kernel-result.html: Added.
        * webcl/tests/webcl-test-consts-expected.txt: Added.
        * webcl/tests/webcl-test-consts.html: Added.
        * webcl/tests/webcl-test-context-properties-expected.txt: Added.
        * webcl/tests/webcl-test-context-properties.html: Added.
        * webcl/tests/webcl-test-device-extensions-expected.txt: Added.
        * webcl/tests/webcl-test-device-extensions.html: Added.
        * webcl/tests/webcl-test-device-using-multiple-contexts-expected.txt: Added.
        * webcl/tests/webcl-test-device-using-multiple-contexts.html: Added.
        * webcl/tests/webcl-test-devices-sharing-single-context-expected.txt: Added.
        * webcl/tests/webcl-test-devices-sharing-single-context.html: Added.
        * webcl/tests/webcl-test-event-expected.txt: Added.
        * webcl/tests/webcl-test-event.html: Added.
        * webcl/tests/webcl-test-gl-extension-instanceof-expected.txt: Added.
        * webcl/tests/webcl-test-gl-extension-instanceof.html: Added.
        * webcl/tests/webcl-test-image-expected.txt: Added.
        * webcl/tests/webcl-test-image.html: Added.
        * webcl/tests/webcl-test-instanceof-expected.txt: Added.
        * webcl/tests/webcl-test-instanceof.html: Added.
        * webcl/tests/webcl-test-interop-expected.txt: Added.
        * webcl/tests/webcl-test-interop-renderbuffer-expected.txt: Added.
        * webcl/tests/webcl-test-interop-renderbuffer.html: Added.
        * webcl/tests/webcl-test-interop-texture-expected.txt: Added.
        * webcl/tests/webcl-test-interop-texture.html: Added.
        * webcl/tests/webcl-test-interop.html: Added.
        * webcl/tests/webcl-test-platform-supported-extensions-expected.txt: Added.
        * webcl/tests/webcl-test-platform-supported-extensions.html: Added.
        * webcl/tests/webcl-test-resource-management-expected.txt: Added.
        * webcl/tests/webcl-test-resource-management.html: Added.
        * webcl/tests/webcl-test-supported-extensions-expected.txt: Added.
        * webcl/tests/webcl-test-supported-extensions.html: Added.

        Examples:
        * WebCL/Barkley/index.html: Added.
        * WebCL/Barkley/kernel.cl: Added.
        * WebCL/Deform/Controller.js: Added.
        * WebCL/Deform/DrawGL.js: Added.
        * WebCL/Deform/SimCL.js: Added.
        * WebCL/Deform/SimJS.js: Added.
        * WebCL/Deform/Util/Three.js: Added.
        * WebCL/Deform/Util/opencl.js: Added.
        * WebCL/Deform/Util/sampler.js: Added.
        * WebCL/Deform/index.html: Added.
        * WebCL/Deform/textures/Thumbs.db: Added.
        * WebCL/Deform/textures/negx.jpg: Added.
        * WebCL/Deform/textures/negy.jpg: Added.
        * WebCL/Deform/textures/negz.jpg: Added.
        * WebCL/Deform/textures/posx.jpg: Added.
        * WebCL/Deform/textures/posy.jpg: Added.
        * WebCL/Deform/textures/posz.jpg: Added.
        * WebCL/Deform/textures/readme.txt: Added.
        * WebCL/FluidDynamics/index.html: Added.
        * WebCL/FluidDynamics/kernel.cl: Added.
        * WebCL/Hello/index.html: Added.
        * WebCL/Ising/index.html: Added.
        * WebCL/Ising/kernel.cl: Added.
        * WebCL/Mandelbrot/index.html: Added.
        * WebCL/Mandelbrot/kernel.cl: Added.
        * WebCL/N-Field/index.html: Added.
        * WebCL/N-Field/kernel.cl: Added.
        * WebCL/Nbody/Controller.js: Added.
        * WebCL/Nbody/DrawGL.js: Added.
        * WebCL/Nbody/DrawJS.js: Added.
        * WebCL/Nbody/InitSim.js: Added.
        * WebCL/Nbody/SimCL.js: Added.
        * WebCL/Nbody/SimJS.js: Added.
        * WebCL/Nbody/Util/J3DIMath.js: Added.
        * WebCL/Nbody/Util/opencl.js: Added.
        * WebCL/Nbody/Util/sampler.js: Added.
        * WebCL/Nbody/Util/shader.js: Added.
        * WebCL/Nbody/Util/webgl-debug.js: Added.
        * WebCL/Nbody/index.html: Added.
        * WebCL/PathIntegrals/index.html: Added.
        * WebCL/PathIntegrals/kernel.cl: Added.
        * WebCL/Random/Framework.js: Added.
        * WebCL/Random/Metrics.js: Added.
        * WebCL/Random/index.html: Added.
        * WebCL/RippleEffect/Controller.js: Added.
        * WebCL/RippleEffect/FastButton.js: Added.
        * WebCL/RippleEffect/FilterCL.js: Added.
        * WebCL/RippleEffect/FilterJS.js: Added.
        * WebCL/RippleEffect/button.css: Added.
        * WebCL/RippleEffect/index.html: Added.
        * WebCL/RippleEffect/pebble.jpg: Added.
        * WebCL/RippleEffect/ripple.cl: Added.
        * WebCL/SmallPathTracing/README.md: Added.
        * WebCL/SmallPathTracing/camera.js: Added.
        * WebCL/SmallPathTracing/geom.js: Added.
        * WebCL/SmallPathTracing/gl-matrix.js: Added.
        * WebCL/SmallPathTracing/index.html: Added.
        * WebCL/SmallPathTracing/rendering_kernel.cl: Added.
        * WebCL/SmallPathTracing/scene.js: Added.
        * WebCL/SmallPathTracing/webcl-smallpt.js: Added.
        * WebCL/SmokeVision/J3DI.js: Added.
        * WebCL/SmokeVision/J3DIMath.js: Added.
        * WebCL/SmokeVision/fieldutil.js: Added.
        * WebCL/SmokeVision/gl-matrix.js: Added.
        * WebCL/SmokeVision/index.html: Added.
        * WebCL/SmokeVision/scalarField.js: Added.
        * WebCL/SmokeVision/scalar_kernels.cl: Added.
        * WebCL/SmokeVision/vectorField.js: Added.
        * WebCL/SmokeVision/vector_kernels.cl: Added.
        * WebCL/SmokeVision/viewer.js: Added.
        * WebCL/SmokeVision/webclfluid.js: Added.
        * WebCL/SmokeVision/webgl-debug.js: Added.
        * WebCL/SmokeVision/webgl-utils.js: Added.
        * WebCL/Sobel-CorG/index.html: Added.
        * WebCL/Sobel-CorG/kernel.cl: Added.
        * WebCL/Sobel-CorG/zer256.jpg: Added.
        * WebCL/Sobel-CorG/zer512.jpg: Added.
        * WebCL/VideoCube/BasicVideoCube.html: Added.
        * WebCL/VideoCube/J3DI.js: Added.
        * WebCL/VideoCube/J3DIMath.js: Added.
        * WebCL/VideoCube/index.html: Added.
        * WebCL/VideoCube/kernel.cl: Added.
        * WebCL/VideoCube/robots.mp4: Added.
        * WebCL/VideoCube/sampler.js: Added.
        * WebCL/VideoCube/sobelCL.js: Added.
        * WebCL/VideoCube/sobelJS.js: Added.
        * WebCL/XY/fig/xy.jpg: Added.
        * WebCL/XY/index.html: Added.
        * WebCL/XY/kernel.cl: Added.
        * WebCL/XY3D/CanvasMatrix.js: Added.
        * WebCL/XY3D/index.html: Added.
        * WebCL/XY3D/kernel.cl: Added.
        * WebCL/XY3D/xy3d_gl.js: Added.
        * WebCL/common/J3DI.js: Added.
        * WebCL/common/J3DIMath.js: Added.
        * WebCL/common/gl-matrix.js: Added.
        * WebCL/common/gl.js: Added.
        * WebCL/common/webcl.js: Added.
        * WebCL/common/webgl-utils.js: Added.
2014-03-11 SRA-SV / ABT Lab <no.email@needed>

        WebCL changs to existing files (REBASE March2014)

        Source/WebCore:
        * dom/DOMExceptions.in:
        * html/canvas/WebGLRenderingContext.idl:
        * platform/graphics/GraphicsContext3D.h:

        LayoutTests:
        * TestExpectations:
2014-03-12  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        rebase against WebKit.org / ToT
        Issue #476

        Reviewed by TrustMe.

        Various fixes in order to bring WebCL code
        up to date to WebKit.org ToT.

        Some related bugs:
        - https://bugs.webkit.org/show_bug.cgi?id=119770
        Foo::s_info should be Foo::info(), so that you can change how the s_info is actually linked
        - https://bugs.webkit.org/show_bug.cgi?id=119064
        Typed arrays should be rewritten
        - https://bugs.webkit.org/show_bug.cgi?id=125838
        Remove dead code for reflected attributes from audio, video, and track elements
        - https://bugs.webkit.org/show_bug.cgi?id=122497
        JS DOM wrappers' impl() functions should return references.
        - https://bugs.webkit.org/show_bug.cgi?id=121588
        Replace use of OwnArrayPtr<Foo> with std::unique_ptr<Foo[]> in Tools

        * Modules/webcl/WebCL.idl:
        * Modules/webcl/WebCLCommandQueue.cpp:
        * Modules/webcl/WebCLContext.cpp:
        (WebCore::WebCLContext::createImage):
        (WebCore::WebCLContext::LRUImageBufferCache::LRUImageBufferCache):
        (WebCore::WebCLContext::LRUImageBufferCache::imageBuffer):
        * Modules/webcl/WebCLContext.h:
        * Modules/webcl/WebCLHTMLInterop.cpp:
        * Modules/webcl/WebCLInputChecker.cpp:
        (WebCore::WebCLInputChecker::isValidDataSizeForArrayBufferView):
        * Modules/webcl/WebCLKernel.cpp:
        (WebCore::WebCLKernel::setArg):
        * bindings/js/JSWebCLCommandQueueCustom.cpp:
        (WebCore::JSWebCLCommandQueue::getInfo):
        * bindings/js/JSWebCLContextCustom.cpp:
        (WebCore::JSWebCLContext::getInfo):
        (WebCore::setChannelOrder):
        (WebCore::setChannelType):
        (WebCore::setWidth):
        (WebCore::setHeight):
        (WebCore::setRowPitch):
        (WebCore::JSWebCLContext::createImage):
        * bindings/js/JSWebCLCustom.cpp:
        * bindings/js/JSWebCLCustom.h:
        * bindings/js/JSWebCLDeviceCustom.cpp:
        (WebCore::JSWebCLDevice::getInfo):
        * bindings/js/JSWebCLEventCustom.cpp:
        (WebCore::JSWebCLEvent::getInfo):
        (WebCore::JSWebCLEvent::getProfilingInfo):
        * bindings/js/JSWebCLGLObjectInfoCustom.cpp:
        (WebCore::JSWebCLGLObjectInfo::glObject):
        * bindings/js/JSWebCLKernelCustom.cpp:
        (WebCore::JSWebCLKernel::getInfo):
        (WebCore::JSWebCLKernel::getWorkGroupInfo):
        * bindings/js/JSWebCLMemoryObjectCustom.cpp:
        (WebCore::JSWebCLMemoryObject::getInfo):
        * bindings/js/JSWebCLPlatformCustom.cpp:
        (WebCore::JSWebCLPlatform::getInfo):
        * bindings/js/JSWebCLProgramCustom.cpp:
        (WebCore::JSWebCLProgram::getInfo):
        (WebCore::JSWebCLProgram::getBuildInfo):
        * bindings/js/JSWebCLSamplerCustom.cpp:
        (WebCore::JSWebCLSampler::getInfo):
2014-03-12  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        Remove left over broken Worker support
        Issue #481

        Reviewed by TrustMe.

        * Modules/webcl/WorkerContextWebCLEnvironment.cpp: Removed.
        * Modules/webcl/WorkerContextWebCLEnvironment.h: Removed.
        * Modules/webcl/WorkerContextWebCLEnvironment.idl: Removed.
2014-03-11  Arnaud Renevier  <a.renevier@samsung.com>

        Refactor exception handling.

        The goal is to put all WebKit specific code in a single file. That way,
        porting to blink will be more easy.

        We create a function setExceptionFromComputeErrorCode which sets
        exception code to the code matching the computeContext error.

        We also create a special function  setExtensionsNotEnabledException
        because EXTENSION_NOT_ENABLED doesn't have a matching computeContext
        error code.

        And also, we create a willThrowException function that returns true if
        the exceptionCode has been set to an error code.

        Lastly, we define ExceptionObject to be ExceptionCode. Then, when
        porting to blink, we'll be able to define ExceptionObject to be
        ExceptionState, and be able to call the 3 functions without
        modifications.

        Bug #478

        Reviewed by Antonio & Martin.

        * Modules/webcl/WebCL.cpp:
        (WebCore::WebCL::getPlatforms):
        (WebCore::WebCL::waitForEvents):
        (WebCore::WebCL::createContext):
        * Modules/webcl/WebCL.h:
        * Modules/webcl/WebCLBuffer.cpp:
        (WebCore::WebCLBuffer::create):
        (WebCore::WebCLBuffer::createSubBuffer):
        * Modules/webcl/WebCLBuffer.h:
        * Modules/webcl/WebCLCommandQueue.cpp:
        (WebCore::WebCLCommandQueue::create):
        (WebCore::WebCLCommandQueue::getInfo):
        (WebCore::WebCLCommandQueue::ccEventListFromWebCLEventList):
        (WebCore::WebCLCommandQueue::computeEventFromWebCLEventIfApplicable):
        (WebCore::WebCLCommandQueue::enqueueWriteBufferBase):
        (WebCore::WebCLCommandQueue::enqueueWriteBuffer):
        (WebCore::WebCLCommandQueue::enqueueWriteBufferRectBase):
        (WebCore::WebCLCommandQueue::enqueueWriteBufferRect):
        (WebCore::WebCLCommandQueue::enqueueReadBufferBase):
        (WebCore::WebCLCommandQueue::enqueueReadBuffer):
        (WebCore::WebCLCommandQueue::enqueueReadImageBase):
        (WebCore::WebCLCommandQueue::enqueueReadImage):
        (WebCore::WebCLCommandQueue::enqueueReadBufferRectBase):
        (WebCore::WebCLCommandQueue::enqueueReadBufferRect):
        (WebCore::WebCLCommandQueue::enqueueNDRangeKernel):
        (WebCore::WebCLCommandQueue::enqueueWaitForEvents):
        (WebCore::WebCLCommandQueue::finish):
        (WebCore::WebCLCommandQueue::flush):
        (WebCore::WebCLCommandQueue::enqueueWriteImageBase):
        (WebCore::WebCLCommandQueue::enqueueWriteImage):
        (WebCore::WebCLCommandQueue::enqueueCopyImage):
        (WebCore::WebCLCommandQueue::enqueueCopyImageToBuffer):
        (WebCore::WebCLCommandQueue::enqueueCopyBufferToImage):
        (WebCore::WebCLCommandQueue::enqueueCopyBuffer):
        (WebCore::WebCLCommandQueue::enqueueCopyBufferRect):
        (WebCore::WebCLCommandQueue::enqueueBarrier):
        (WebCore::WebCLCommandQueue::enqueueMarker):
        (WebCore::WebCLCommandQueue::enqueueAcquireGLObjects):
        (WebCore::WebCLCommandQueue::enqueueReleaseGLObjects):
        * Modules/webcl/WebCLCommandQueue.h:
        * Modules/webcl/WebCLContext.cpp:
        (WebCore::WebCLContext::create):
        (WebCore::WebCLContext::getInfo):
        (WebCore::WebCLContext::createCommandQueue):
        (WebCore::WebCLContext::createProgram):
        (WebCore::WebCLContext::postCreateCommandQueue):
        (WebCore::WebCLContext::postCreateBuffer):
        (WebCore::WebCLContext::createBufferBase):
        (WebCore::WebCLContext::createBuffer):
        (WebCore::WebCLContext::createImage2DBase):
        (WebCore::WebCLContext::createImage):
        (WebCore::WebCLContext::createSampler):
        (WebCore::WebCLContext::createUserEvent):
        (WebCore::WebCLContext::getSupportedImageFormats):
        (WebCore::WebCLContext::createFromGLBuffer):
        (WebCore::WebCLContext::createFromGLRenderbuffer):
        (WebCore::WebCLContext::createFromGLTexture):
        * Modules/webcl/WebCLContext.h:
        * Modules/webcl/WebCLDevice.cpp:
        (WebCore::WebCLDevice::getInfo):
        * Modules/webcl/WebCLDevice.h:
        * Modules/webcl/WebCLEvent.cpp:
        (WebCore::WebCLEvent::getInfo):
        (WebCore::WebCLEvent::getProfilingInfo):
        (WebCore::WebCLEvent::setCallback):
        (WebCore::WebCLEvent::processCallbackRegisterQueueForEvent):
        * Modules/webcl/WebCLEvent.h:
        * Modules/webcl/WebCLException.cpp:
        (WebCore::setExceptionFromComputeErrorCode):
        (WebCore::setExtensionsNotEnabledException):
        (WebCore::willThrowException):
        * Modules/webcl/WebCLException.h:
        * Modules/webcl/WebCLExtensionsAccessor.h:
        * Modules/webcl/WebCLHTMLInterop.cpp:
        (WebCore::WebCLHTMLInterop::extractDataFromCanvas):
        (WebCore::WebCLHTMLInterop::extractDataFromImage):
        (WebCore::WebCLHTMLInterop::extractDataFromImageData):
        * Modules/webcl/WebCLHTMLInterop.h:
        * Modules/webcl/WebCLImage.cpp:
        (WebCore::WebCLImage::create):
        (WebCore::WebCLImage::getGLTextureInfo):
        (WebCore::WebCLImage::getInfo):
        * Modules/webcl/WebCLImage.h:
        * Modules/webcl/WebCLKernel.cpp:
        (WebCore::WebCLKernel::create):
        (WebCore::WebCLKernel::createKernelsInProgram):
        (WebCore::WebCLKernel::getInfo):
        (WebCore::WebCLKernel::getWorkGroupInfo):
        (WebCore::WebCLKernel::setArg):
        (WebCore::WebCLKernel::getArgInfo):
        * Modules/webcl/WebCLKernel.h:
        * Modules/webcl/WebCLMemoryInitializer.cpp:
        (WebCore::WebCLMemoryInitializer::ensureMemoryInitialization):
        (WebCore::WebCLMemoryInitializer::commandQueueCreated):
        (WebCore::WebCLMemoryInitializer::bufferCreated):
        (WebCore::WebCLMemoryInitializer::processPendingMemoryInitializationList):
        (WebCore::WebCLMemoryInitializer::initializeOrQueueMemoryInitializationOfMemoryObject):
        * Modules/webcl/WebCLMemoryInitializer.h:
        * Modules/webcl/WebCLMemoryObject.cpp:
        (WebCore::WebCLMemoryObject::getInfo):
        (WebCore::WebCLMemoryObject::getGLObjectInfo):
        * Modules/webcl/WebCLMemoryObject.h:
        * Modules/webcl/WebCLObject.h:
        * Modules/webcl/WebCLPlatform.cpp:
        (WebCore::WebCLPlatform::getInfo):
        (WebCore::WebCLPlatform::getDevices):
        * Modules/webcl/WebCLPlatform.h:
        * Modules/webcl/WebCLProgram.cpp:
        (WebCore::WebCLProgram::create):
        (WebCore::WebCLProgram::getInfo):
        (WebCore::WebCLProgram::getBuildInfo):
        (WebCore::WebCLProgram::createKernel):
        (WebCore::WebCLProgram::createKernelsInProgram):
        (WebCore::WebCLProgram::build):
        (WebCore::WebCLProgram::ccDeviceListFromWebCLDeviceList):
        * Modules/webcl/WebCLProgram.h:
        * Modules/webcl/WebCLSampler.cpp:
        (WebCore::WebCLSampler::create):
        (WebCore::WebCLSampler::getInfo):
        * Modules/webcl/WebCLSampler.h:
        * Modules/webcl/WebCLUserEvent.cpp:
        (WebCore::WebCLUserEvent::create):
        (WebCore::WebCLUserEvent::setStatus):
        (WebCore::WebCLUserEvent::getInfo):
        * Modules/webcl/WebCLUserEvent.h:

Conflicts:
	Source/WebCore/Modules/webcl/WebCLKernel.cpp
2014-03-13  Arnaud Renevier  <a.renevier@samsung.com>

        Incorrectly use exception instead of error following bug #478
        Bug #485

        Reviewed by Antonio.

        * Modules/webcl/WebCLProgram.cpp:
        (WebCore::WebCLProgram::create):
2014-03-14  Arnaud Renevier  <a.renevier@samsung.com>

        Replace GLuint with GC3Duint
        Bug #489

        Reviewed by Antonio.

        * platform/ComputeContext.h:
        * platform/ComputeMemoryObject.h:
        * platform/opencl/ComputeContextCL.cpp:
        (WebCore::ComputeContext::createFromGLBuffer):
        * platform/opencl/ComputeMemoryObjectCL.cpp:
        (WebCore::ComputeMemoryObject::ComputeMemoryObject):
2014-03-19  Arnaud Renevier  <a.renevier@samsung.com>

        Replace Vector.tryReserveCapacity with Vector.reserveCapacity

        This will allow us to diverge less between WebKit and blink
        implementation.

        Bug #493

        Reviewed by Antonio.

        * platform/ComputeTypesTraits.h:
        * platform/opencl/ComputeContextCL.cpp:
        (WebCore::ComputeContext::supportedImageFormats):
        * platform/opencl/ComputePlatformCL.cpp:
        (WebCore::ComputePlatform::getPlatformIDs):
        (WebCore::ComputePlatform::getDeviceIDs):
        * platform/opencl/ComputeProgramCL.cpp:
        (WebCore::ComputeProgram::createKernelsInProgram):
2014-03-13  Sharath Kamath  <s.kamath@samsung.com>

        Changes to default value constructor in WebCLImageDescriptor.

        Issue #469

        Reviewed by Antonio.

        Since creating a strcuture using {} is not supported by EFL port,
        changing it to simpler constructor taking channel order & type with
        default values.

        * Modules/webcl/WebCLContext.cpp:
        (WebCore::WebCLContext::createImage2DBase):
        (WebCore::WebCLContext::createImage):
        * Modules/webcl/WebCLContext.h:
        * Modules/webcl/WebCLImageDescriptor.cpp:
        (WebCore::WebCLImageDescriptor::create):
        * Modules/webcl/WebCLImageDescriptor.h:
2014-03-19  Sharath Kamath  <s.kamath@samsung.com>

        Moving the multiplier factor to calculation of default rowPitch.

        Regression from commit 061b721549e1ce23c286472a3242366db50498af.
        imageBytesPerPixel must be used to calculate the the default rowPitch,
        not the region accessed by the rowPitch.

        Issue #453

        Reviewed by Antonio.

        conformance/functionalityTesting/enqueueOperations/enqueue####Image.html

        * Modules/webcl/WebCLInputChecker.cpp:
        (WebCore::WebCLInputChecker::isValidRegionForHostPtr):
2014-03-18  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        support webCLContext.getSupportedImageFormats() without parameters
        Issue #492

        Reviewed by Martin.

        Added an overload method to getSupportedImageFormats
        without parameters. That is preferrable than using
        "[Default=undefined] optional" because we can have
        full control of what to do in the the parameter is omitted.

        * Modules/webcl/WebCLContext.cpp:
        (WebCore::WebCLContext::getSupportedImageFormats):
        * Modules/webcl/WebCLContext.h:
        * Modules/webcl/WebCLContext.idl:
2014-03-18  Sharath Kamath  <s.kamath@samsung.com>

         KHR_GL_Sharing API's test cases crash.

         Issue #477

         Reviewed by Antonio

         The crash are due to the test cases testing for INVALID_CONTEXT.
         Added check to avoid calling OpenCL cl-gl API's on WebCL context
         that are not created with WebGLContext sharing.

         Also added getGLContext() API support.

         All test cases under extension KHR_GL_Sharing in test suite.

        * Modules/webcl/WebCLCommandQueue.cpp:
        (WebCore::WebCLCommandQueue::isExtensionEnabled):
        (WebCore::WebCLCommandQueue::enqueueAcquireGLObjects):
        (WebCore::WebCLCommandQueue::enqueueReleaseGLObjects):
        * Modules/webcl/WebCLContext.cpp:
        (WebCore::WebCLContext::create):
        (WebCore::WebCLContext::WebCLContext):
        (WebCore::WebCLContext::getGLContext):
        (WebCore::WebCLContext::isGLCapableContext):
        (WebCore::WebCLContext::createFromGLBuffer):
        (WebCore::WebCLContext::createFromGLRenderbuffer):
        (WebCore::WebCLContext::createFromGLTexture):
        * Modules/webcl/WebCLContext.h:
        * Modules/webcl/WebCLContext.idl:
2014-03-21  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        Unreviewed fix for Left over bits from cfe226a
        Issue 477 - cl-gl tests crash

        CL-GL conformance tests now run with crashes.

        * Modules/webcl/WebCLContext.cpp:
        (WebCore::WebCLContext::createFromGLRenderbuffer):
2014-03-27  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        MaxOS/XCode build system

        Tools:
        * Scripts/webkitperl/FeatureList.pm:

        Source/WebCore:
        * Configurations/FeatureDefines.xcconfig:
        * DerivedSources.make:
        * WebCore.xcodeproj/project.pbxproj:
constants are always typed to 'int' https://bugs.webkit.org/show_bug.cgi?id=130775

Reviewed by Darin Adler.
Patch by Antonio Gomes <a1.gomes@sisa.samsung.com>

Patch fixes a bug where all constant getter generated
methods were returning 'integer' values due to static_cast.

Compilers should be smarth enough to properly infer which
jsNumber class construtor to call given a literal value.

Patch also fixes a bug where values whose representation
is bigger an integer maximum were overflowing. For instance,
NodeFilter.SHOW_ALL (0xFFFFFFFF).

Tests:
Binding tests updated.
Rebaselined fast/dom/constants.html

* bindings/scripts/CodeGeneratorJS.pm:
(GenerateImplementation):
* bindings/scripts/test/JS/JSTestInterface.cpp:
(WebCore::jsTestInterfaceIMPLEMENTSCONSTANT1):
(WebCore::jsTestInterfaceIMPLEMENTSCONSTANT2):
(WebCore::jsTestInterfaceSUPPLEMENTALCONSTANT1):
(WebCore::jsTestInterfaceSUPPLEMENTALCONSTANT2):
* bindings/scripts/test/JS/JSTestObj.cpp:
(WebCore::jsTestObjCONDITIONAL_CONST):
(WebCore::jsTestObjCONST_VALUE_0):
(WebCore::jsTestObjCONST_VALUE_1):
(WebCore::jsTestObjCONST_VALUE_2):
(WebCore::jsTestObjCONST_VALUE_4):
(WebCore::jsTestObjCONST_VALUE_8):
(WebCore::jsTestObjCONST_VALUE_9):
(WebCore::jsTestObjCONST_VALUE_11):
(WebCore::jsTestObjCONST_VALUE_12):
(WebCore::jsTestObjCONST_VALUE_13):
(WebCore::jsTestObjCONST_VALUE_14):
(WebCore::jsTestObjCONST_JAVASCRIPT):
(WebCore::jsTestObjReadonly):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@166413 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-03-25  Shilpa Shri  <shilpa.shri@samsung.com>

        WebCLDevice :: getInfo (DEVICE_VENDOR_ID) must return CLuint

        Fixed #497

        Reviewed by Antonio and Sharath.

        Conformance tests :
        conformance/bindingTesting/fetchInfo/cl_device_getinfo.html

        * Modules/webcl/WebCLDevice.cpp:
        (WebCore::WebCLDevice::getInfo):
Fixe error 'error: garbage collection is no longer supported' with Xcode Version 5.1 (5B130a)
GCC_ENABLE_OBJC_GC_macosx = NO
2014-03-29  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        WebCLEvent::getProfilingInfo should return unsigned long
        Issue #502

        Reviewed by Anthony.

        Fixes "Event Profiling" translated sampler from
        http://wolfviking0.github.io/webcl-translator/build_trans/index.html?sample=1&gl=off&title=Event%20Profiling&gpu

        * Modules/webcl/WebCLEvent.cpp:
        (WebCore::WebCLEvent::getProfilingInfo):
2014-03-29  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        Remove WebCLEvent::getProfilingInfo custom binding
        Issue #503

        Reviewed by TrustMe.

        it is now possible after http://www.khronos.org/bugzilla/show_bug.cgi?id=1126
        is fixed: instead of "any" return type, we now have CLulong.

        * Modules/webcl/WebCLEvent.cpp:
        (WebCore::WebCLEvent::getProfilingInfo):
        * Modules/webcl/WebCLEvent.h:
        * Modules/webcl/WebCLEvent.idl:
        * bindings/js/JSWebCLEventCustom.cpp:
2014-03-31  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        Events can be omited but can not be set as 'null'
        Issue #504

        Found by Anthony Liot.

        Fixed BoxFilter translated demo:
        http://wolfviking0.github.io/webcl-translator/build_nvidia/index.html?sample=2&gl=on&title=BoxFilter&gpu

        * Modules/webcl/WebCLCommandQueue.idl:
        * Modules/webcl/WebCLProgram.idl: