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

        Remove WebCLContext::createImage2DBaseMemory
        Issue #139

        Reviewed by NOBODY (OOPS!).

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

        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):