tonikitoo/webkit-webcl — pull request #4 by tonikitoo (2012-12-03 17:45:49+00:00)
Title: 2012-11-30  Antonio Gomes  <a1.gomes@sisa.samsung.com>

Move computeContextErrorToWebCLExceptionCode to WebCLException
Issue #3.

Reviewed by NOBODY (OOPS!).

Move computeContextErrorToWebCLExceptionCode to WebCLException, as
an static public method. It will allow us to remove a bunch of
duplicated code in WebCLCommandQueue.cpp.

Also expanded the switch in case to handle all values possible.

* Modules/webcl/WebCLCommandQueue.cpp:
(WebCore::WebCLCommandQueue::enqueueNDRangeKernel):
* Modules/webcl/WebCLException.cpp:
(WebCore::WebCLException::initializeDescription):
(WebCore):
(WebCore::WebCLException::computeContextErrorToWebCLExceptionCode):
* Modules/webcl/WebCLException.h: