2014-03-07  Sharath Kamath  <s.kamath@samsung.com>

        [Part 2] Add validation for pitchValues in equeue*Image API's.

        Issue #453

        Reviewed by Antonio.

        isValidRegionForImage() is used to validate the Image length against region being read
        + offset given bu origin[].
        isValidRegionForHostPtr() is used to validate the HostPtr [TypedArrays] against
        hostRowPitch {used to move pointer for each row read} region being read.
        Does a early error handling, without going down to OpenCL for error handling.

        Test cases ::
        conformance/bindingTesting/queues/cl_commandQueue_enqueue####Image.html

        * Modules/webcl/WebCLCommandQueue.cpp:
        (WebCore::WebCLCommandQueue::enqueueReadImageBase):
        (WebCore::WebCLCommandQueue::enqueueWriteImageBase):
        (WebCore::WebCLCommandQueue::enqueueCopyImage):
        (WebCore::WebCLCommandQueue::enqueueCopyImageToBuffer):
        (WebCore::WebCLCommandQueue::enqueueCopyBufferToImage):
        * Modules/webcl/WebCLInputChecker.cpp:
        (WebCore::WebCLInputChecker::isValidRegionForImage):
        (WebCore::WebCLInputChecker::isValidRegionForHostPtr):
        * Modules/webcl/WebCLInputChecker.h: