2013-02-25  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        Remove WebCLContext::createImage2DBaseMemory
        Issue #139

        Reviewed by Igor.

        It is not being used anymore; also name createImage2DBaseImage just createImage2DBase.

        * Modules/webcl/WebCLContext.cpp:
        (WebCore):
        (WebCore::WebCLContext::createImage):
        * Modules/webcl/WebCLContext.h:
        (WebCLContext):
2013-02-25  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        Perform most of input validation on Modules/WebCL side (part I)
        Issue #131

        Reviewed by Igor.

        Do the input checking of values prevenient from JS
        where possible.

        At this time we are able to more computeMemoryObjectTypeToCL
        and computeDeviceInfoTypeToCL from ComputeContextCL to under
        WebCLInputChecker namespace.

        * Modules/webcl/WebCLContext.cpp:
        (WebCore::WebCLContext::createBuffer):
        (WebCore::WebCLContext::createImage2DBase):
        (WebCore::WebCLContext::getSupportedImageFormats):
        * Modules/webcl/WebCLDevice.cpp:
        (WebCore::WebCLDevice::getInfo):
        * Modules/webcl/WebCLInputChecker.cpp: Added.
        (WebCLInputChecker):
        (WebCore::WebCLInputChecker::isValidDeviceInfoType):
        (WebCore::WebCLInputChecker::isValidMemoryObjectFlag):
        * Modules/webcl/WebCLInputChecker.h: Added.
        (WebCLInputChecker):
        (WebCore):
        * WebCore.xcodeproj/project.pbxproj:
        * platform/opencl/ComputeContextCL.cpp:
        (WebCore::ComputeContext::createBuffer):
        (WebCore):
        (WebCore::ComputeContext::createImage2D):
        (WebCore::ComputeContext::supportedImageFormats):
        (WebCore::ComputeContext::getDeviceInfo):
2013-02-25  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        Perform most of input validation on Modules/WebCL side (part II)
        Issue #131

        Reviewed by Igor.

        computeProgramInfoTypeToCL, computeCommandQueueInfoTypeToCL,
        computeEventInfoTypeToCL, computeEventProfilingInfoTypeToCL,
        computePlatformInfoTypeToCL can all just be removed, since the mapping
        between ComputeContext and CL types is 1:1 in such cases, and the
        respective switches on the call sites validate their valid possible
        values already.

        * Modules/webcl/WebCLInputChecker.h:
        (WebCLInputChecker):
        * platform/opencl/ComputeContextCL.cpp:
        (WebCore::ComputeContext::getPlatformInfo):
        * Modules/webcl/WebCLCommandQueue.cpp:
        (WebCore::WebCLCommandQueue::getInfo):
        * Modules/webcl/WebCLEvent.cpp:
        (WebCore::WebCLEvent::getInfo):
        * platform/opencl/ComputeContextCL.cpp:
        (WebCore):
        (WebCore::ComputeContext::getProgramInfo):
        (WebCore::ComputeContext::getCommandQueueInfo):
        (WebCore::ComputeContext::getEventInfo):
        (WebCore::ComputeContext::getEventProfilingInfo):
2013-02-25  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        MEM_READ_ONLY is not a valid WebCLDevice infoType
        Issue #140

        Reviewed by Igor.

        * Modules/webcl/WebCLDevice.cpp:
        (WebCore::WebCLDevice::getInfo):
2013-02-25  Antonio Gomes  <a1.gomes@sisa.samsung.com>

        Wrong value returned to WebCLPlatform::getInfo(PLATFORM_VERSION|PROFILE)
        Issue #141

        Reviewed by Igor.

        * Modules/webcl/WebCLPlatform.cpp:
        (WebCore::WebCLPlatform::getInfo):