GravatarCommit : 71d6b00c573f64e1e28838f791032dea3d87d853 [71d6b00]
Parents: 88767726bd
Auteur : Sharath Kamath <s.kamath@samsung.com>
Date : 24 février 2014 14:23:58 UTC+1
Commit Date : 25 février 2014 09:48:52 UTC+1
Labels : HEAD origin/master_r152423 origin/HEAD master_r152423

2014-02-24 Sharath Kamath <s.kamath@samsung.com>

Add switch for html_image extension in WebCL.

Fixed #454

Reviewed by Antonio.

As per resolution in ::
https://www.khronos.org/bugzilla/show_bug.cgi?id=1121.

A extension is enabled at context level. i.e if a extension is
enabled before context is created, the context will have those features
enabled.
So adding a switch() at WebCLContext, to make sure API of "WebCL_html_image"
extension are available only with context that have this feature enabled.

All test case for "WebCL_html_image" extension in test suite.

* Modules/webcl/WebCLCommandQueue.cpp:
(WebCore::WebCLCommandQueue::enqueueWriteBuffer):
(WebCore::WebCLCommandQueue::enqueueWriteBufferRect):
(WebCore::WebCLCommandQueue::enqueueReadBuffer):
(WebCore::WebCLCommandQueue::enqueueReadImage):
(WebCore::WebCLCommandQueue::enqueueReadBufferRect):
(WebCore::WebCLCommandQueue::enqueueWriteImage):
* Modules/webcl/WebCLContext.cpp:
(WebCore::WebCLContext::WebCLContext):
(WebCore::WebCLContext::isExtensionEnabled):
(WebCore::WebCLContext::createBuffer):
(WebCore::WebCLContext::createImage):
* Modules/webcl/WebCLContext.h:
* Modules/webcl/WebCLException.cpp:
* Modules/webcl/WebCLException.h:
* Modules/webcl/WebCLException.idl:
* Modules/webcl/WebCLExtensionsAccessor.cpp:
(WebCore::::enableExtension):
(WebCore::::isEnabledExtension):
* Modules/webcl/WebCLExtensionsAccessor.h:
(WebCore::WebCLExtensionsAccessor::WebCLExtensionsAccessor):