2014-01-03  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        Introduce ComputeProgram class
        Issue #388

        Reviewed by Igor.

        * Modules/webcl/WebCLKernel.cpp:
        (WebCore::WebCLKernel::create):
        (WebCore::WebCLKernel::createKernelsInProgram):
        * Modules/webcl/WebCLProgram.cpp:
        (WebCore::WebCLProgram::create):
        (WebCore::WebCLProgram::WebCLProgram):
        (WebCore::WebCLProgram::getBuildInfo):
        (WebCore::WebCLProgram::build):
        (WebCore::WebCLProgram::releasePlatformObjectImpl):
        * Modules/webcl/WebCLProgram.h:
        (WebCore::WebCLProgram::computeProgram):
        * WebCore.xcodeproj/project.pbxproj:
        * platform/ComputeContext.h:
        * platform/ComputeProgram.h: Added.
        (WebCore::ComputeProgram::getProgramInfo):
        (WebCore::ComputeProgram::getBuildInfo):
        * platform/opencl/ComputeContextCL.cpp:
        (WebCore::ComputeContext::createProgram):
        * platform/opencl/ComputeProgramCL.cpp: Added.
        (WebCore::ComputeProgram::ComputeProgram):
        (WebCore::ComputeProgram::~ComputeProgram):
        (WebCore::ComputeProgram::buildProgram):
        (WebCore::ComputeProgram::createKernel):
        (WebCore::ComputeProgram::createKernelsInProgram):
        (WebCore::ComputeProgram::getProgramInfoBase):
        (WebCore::ComputeProgram::getBuildInfoBase):
        (WebCore::ComputeProgram::release):
2014-01-03  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        Introduce ComputeKernel class
        Issue #389

        Reviewed by Igor.

        * Modules/webcl/WebCLCommandQueue.cpp:
        (WebCore::WebCLCommandQueue::enqueueNDRangeKernel):
        * Modules/webcl/WebCLKernel.cpp:
        (WebCore::WebCLKernel::create):
        (WebCore::WebCLKernel::createKernelsInProgram):
        (WebCore::WebCLKernel::WebCLKernel):
        (WebCore::WebCLKernel::getInfo):
        (WebCore::WebCLKernel::getWorkGroupInfo):
        (WebCore::WebCLKernel::releasePlatformObjectImpl):
        (WebCore::WebCLKernel::setArg):
        * Modules/webcl/WebCLKernel.h:
        (WebCore::WebCLKernel::computeKernel):
        * WebCore.xcodeproj/project.pbxproj:
        * platform/ComputeCommandQueue.h:
        * platform/ComputeKernel.h: Copied from Source/WebCore/platform/ComputeProgram.h.
        (WebCore::ComputeKernel::getKernelInfo):
        (WebCore::ComputeKernel::getWorkGroupInfo):
        (WebCore::ComputeKernel::kernel):
        * platform/ComputeProgram.h:
        * platform/opencl/ComputeCommandQueueCL.cpp:
        (WebCore::ComputeCommandQueue::enqueueNDRangeKernel):
        * platform/opencl/ComputeKernelCL.cpp: Copied from Source/WebCore/platform/ComputeProgram.h.
        (WebCore::ComputeKernel::ComputeKernel):
        (WebCore::ComputeKernel::~ComputeKernel):
        (WebCore::ComputeKernel::setKernelArg):
        (WebCore::ComputeKernel::getKernelInfoBase):
        (WebCore::ComputeKernel::getWorkGroupInfoBase):
        (WebCore::ComputeKernel::release):
        * platform/opencl/ComputeProgramCL.cpp:
        (WebCore::ComputeProgram::createKernel):
        (WebCore::ComputeProgram::createKernelsInProgram):