2013-01-16  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        WebCLPlatform.cpp: Unreviewed various style issues fixes

        * Modules/webcl/WebCLPlatform.cpp:
        (WebCore::WebCLPlatform::create):
        (WebCore::WebCLPlatform::getInfo):
        (WebCore::WebCLPlatform::getCLPlatform):
2013-01-18  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        Unreviewed fixes to various unneeded includes and forward declarations.

        * Modules/webcl/WebCLDevice.h:
        * Modules/webcl/WebCLDeviceList.h:
        * Modules/webcl/WebCLEvent.h:
        (WebCore):
        * Modules/webcl/WebCLGetInfo.cpp:
        * Modules/webcl/WebCLGetInfo.h:
        (WebCore):
        * Modules/webcl/WebCLKernel.h:
        (WebCore):
        * Modules/webcl/WebCLProgram.h:
        (WebCore):
        (WebCore::WebCLProgram::build):
        (WebCLProgram):
        * Modules/webcl/WebCLSampler.cpp:
2013-01-22  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        Route all clGetXXXInfo through ComputeContext: WebCLDevice
        Issue #54

        Reviewed by Igor.

        * Modules/webcl/WebCLDevice.cpp:
        (WebCore::WebCLDevice::getInfo):
        * Modules/webcl/WebCLDevice.h:
        * platform/ComputeContext.h:
        * platform/opencl/ComputeContextCL.cpp:
        (WebCore::computeDeviceInfoTypeToCL):
        (WebCore):
        (WebCore::clToComputeContextError):
        (WebCore::ComputeContext::getDeviceInfo):
2013-01-22  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        Route all clGetXXXInfo through ComputeContext: WebCLPlatform
        Issue #54

        Reviewed by Igor.

        * Modules/webcl/WebCLPlatform.cpp:
        (WebCore::WebCLPlatform::getInfo):
2013-01-23  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        Use computeContextErrorToWebCLExceptionCode in WebCLPlatform class
        Issue #87

        Reviewed by Igor.

        * Modules/webcl/WebCLPlatform.cpp:
        (WebCore::WebCLPlatform::getInfo):
2013-01-22  Sharath Kamath  <kamath.sharath@gmail.com>

        CreateCommondQueue API crashes on sending invalid devices.
        Issue #81

        Reviewed by Antonio.

        Need to store the deviceID in WebCL class when creating a context.
        Also fixing the Command queue property default value case.

        No new tests.

        * Modules/webcl/WebCL.cpp:
        (WebCore::WebCL::createContext): store the deviceID.
        * Modules/webcl/WebCLContext.cpp:
        (WebCore::WebCLContext::createCommandQueue):
        * Modules/webcl/WebCLContext.h:
        (WebCore::WebCLContext::createCommandQueue): Adding a new overloded API to make devices optional as per spec.
        (WebCLContext):
        * platform/opencl/ComputeContextCL.cpp:
        (WebCore::ComputeContext::createCommandQueue):fixing the Command queue property default value case.
2013-01-18  Sharath Kamath  <kamath.sharath@gmail.com>

        WebCLCommandQueue input param validation and style changes
        Issue #78

        Reviewed by Antonio.

        Changing the input buffer/image validation to handle invalid object and null object scenarios.
        Also certain style changes and wrapping of lines in cpp, idl and header files of WebCLCommandQueue
        interface.

        * Modules/webcl/WebCLCommandQueue.cpp:
        (WebCore::WebCLCommandQueue::getInfo):
        (WebCore::WebCLCommandQueue::enqueueWriteBuffer):
        (WebCore::WebCLCommandQueue::enqueueWriteBufferRect):
        (WebCore::WebCLCommandQueue::enqueueReadBuffer):
        (WebCore::WebCLCommandQueue::enqueueReadImage):
        (WebCore::WebCLCommandQueue::enqueueReadBufferRect):
        (WebCore::WebCLCommandQueue::enqueueNDRangeKernel):
        (WebCore::WebCLCommandQueue::enqueueWriteImage):
        (WebCore::WebCLCommandQueue::enqueueAcquireGLObjects):
        (WebCore::WebCLCommandQueue::enqueueReleaseGLObjects):
        (WebCore::WebCLCommandQueue::enqueueCopyImage):
        (WebCore::WebCLCommandQueue::enqueueCopyImageToBuffer):
        (WebCore::WebCLCommandQueue::enqueueCopyBufferToImage):
        (WebCore::WebCLCommandQueue::enqueueCopyBuffer):
        (WebCore::WebCLCommandQueue::enqueueCopyBufferRect):
        (WebCore::WebCLCommandQueue::enqueueBarrier):
        (WebCore::WebCLCommandQueue::enqueueMarker):
        (WebCore::WebCLCommandQueue::enqueueTask):
        * Modules/webcl/WebCLCommandQueue.h:
        (WebCore::WebCLCommandQueue::enqueueWriteBuffer):
        (WebCLCommandQueue):
        (WebCore::WebCLCommandQueue::enqueueWriteBufferRect):
        (WebCore::WebCLCommandQueue::enqueueReadBuffer):
        (WebCore::WebCLCommandQueue::enqueueReadBufferRect):
        (WebCore::WebCLCommandQueue::enqueueNDRangeKernel):
        (WebCore::WebCLCommandQueue::enqueueReadImage):
        (WebCore::WebCLCommandQueue::enqueueCopyBuffer):
        (WebCore::WebCLCommandQueue::enqueueCopyBufferRect):
        (WebCore::WebCLCommandQueue::enqueueCopyImage):
        (WebCore::WebCLCommandQueue::enqueueCopyImageToBuffer):
        (WebCore::WebCLCommandQueue::enqueueCopyBufferToImage):
        * Modules/webcl/WebCLCommandQueue.idl:

Conflicts:
	Source/WebCore/Modules/webcl/WebCLCommandQueue.cpp
2013-01-22  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        Route all clGetXXXInfo through ComputeContext: WebCLCommandQueue
        Issue #54

        Reviewed by Igor.

        * Modules/webcl/WebCLCommandQueue.cpp:
        (WebCore::WebCLCommandQueue::getInfo):
        * platform/ComputeContext.h:
        * platform/opencl/ComputeContextCL.cpp:
        (WebCore::computePlatformInfoTypeToCL):
        (WebCore::computeAddressingModeToCL):
        (WebCore):
        (WebCore::computeFilterModeToCL):
2013-01-22  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        Route all clGetXXXInfo through ComputeContext: WebCLProgram
        Issue #54

        Reviewed by Igor.

        * Modules/webcl/WebCLProgram.cpp:
        (WebCore::WebCLProgram::getInfo):
2013-01-23  Sharath Kamath  <kamath.sharath@gmail.com>

        WebCLMemoryObjectList interface cleanup and style issues.
        Issue #86

        Reviewed by Antonio.

        Webkit styling issues in WebCLMemoryObjectList.h/.idl/.cpp files.

        No new tests.

        * Modules/webcl/WebCLMemoryObjectList.cpp:
        (WebCore::WebCLMemoryObjectList::WebCLMemoryObjectList):
        (WebCore::WebCLMemoryObjectList::create):
        (WebCore::WebCLMemoryObjectList::length):
        (WebCore::WebCLMemoryObjectList::item):
        * Modules/webcl/WebCLMemoryObjectList.h:
        (WebCLMemoryObjectList):
        * Modules/webcl/WebCLMemoryObjectList.idl:
2013-01-23  Sharath Kamath  <kamath.sharath@gmail.com>

        WebCLImage interface cleanup and style issues.
        Issue #85

        Reviewed by Antonio

        WebCLImage cleanup and webkit style issue fixes.

        No new tests.

        * Modules/webcl/WebCLImage.cpp:
        (WebCore::WebCLImage::create):
        (WebCore::WebCLImage::WebCLImage):
        (WebCore::WebCLImage::getCLImage):
        (WebCore::WebCLImage::getGLtextureInfo):
        (WebCore::WebCLImage::getInfo):
        * Modules/webcl/WebCLImage.h:
        (WebCore):
        (WebCLImage):
        * Modules/webcl/WebCLImage.idl:

Conflicts:
	Source/WebCore/Modules/webcl/WebCLImage.cpp
	Source/WebCore/Modules/webcl/WebCLImage.h
2013-01-23  Sharath Kamath  <kamath.sharath@gmail.com>

        WebCLBuffer interface cleanup and style issues.
        Issue #84.

        Reviewed by Antonio.

        WebCLBuffer cleanup and webkit style fixes.

        No new tests.

        * Modules/webcl/WebCLBuffer.cpp:
        (WebCore::WebCLBuffer::create):
        (WebCore::WebCLBuffer::WebCLBuffer):
        (WebCore::WebCLBuffer::getCLBuffer):
        (WebCore::WebCLBuffer::createSubBuffer):
        * Modules/webcl/WebCLBuffer.h:
        (WebCLBuffer):
        * Modules/webcl/WebCLBuffer.idl:
        * platform/ComputeTypes.h: Add cl_buffer_region type.

Conflicts:
	Source/WebCore/platform/ComputeTypes.h
2013-01-23  Sharath Kamath  <kamath.sharath@gmail.com>

        WebCLMemoryObject interface cleanup and style issues.
        Issue #80

        Reviewed by Antonio.

        WebCLMemoryObject cleanup and webkit style fixes.

        No new tests (OOPS!).

        * Modules/webcl/WebCLBuffer.cpp:
        (WebCore::WebCLBuffer::getCLBuffer): Change to fix error in build.
        * Modules/webcl/WebCLImage.cpp:
        (WebCore::WebCLImage::getCLImage): Change to fix error in build.
        (WebCore::WebCLImage::getGLtextureInfo): Change to fix error in build.
        (WebCore::WebCLImage::getInfo): Change to fix error in build.
        * Modules/webcl/WebCLMemoryObject.cpp:
        (WebCore::WebCLMemoryObject::~WebCLMemoryObject):
        (WebCore::WebCLMemoryObject::create):
        (WebCore::WebCLMemoryObject::WebCLMemoryObject):
        (WebCore):
        (WebCore::WebCLMemoryObject::getGLObjectInfo):
        (WebCore::WebCLMemoryObject::getInfo):
        (WebCore::WebCLMemoryObject::getCLMemoryObject):
        * Modules/webcl/WebCLMemoryObject.h:
        (WebCLMemoryObject):
        * Modules/webcl/WebCLMemoryObject.idl:
        * platform/ComputeTypes.h: Adding cl_mem_object_type to ComputeTypes.

Conflicts:
	Source/WebCore/Modules/webcl/WebCLImage.cpp
	Source/WebCore/platform/ComputeTypes.h