{"comment":{"url":"https://api.github.com/repos/junmin-zhu/blink-crosswalk/comments/9558780","html_url":"https://github.com/junmin-zhu/blink-crosswalk/commit/820c0620350609d124ec7d36f0863a68a48afca8#commitcomment-9558780","id":9558780,"user":{"login":"ds-hwang","id":1198635,"avatar_url":"https://avatars.githubusercontent.com/u/1198635?v=3","gravatar_id":"","url":"https://api.github.com/users/ds-hwang","html_url":"https://github.com/ds-hwang","followers_url":"https://api.github.com/users/ds-hwang/followers","following_url":"https://api.github.com/users/ds-hwang/following{/other_user}","gists_url":"https://api.github.com/users/ds-hwang/gists{/gist_id}","starred_url":"https://api.github.com/users/ds-hwang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ds-hwang/subscriptions","organizations_url":"https://api.github.com/users/ds-hwang/orgs","repos_url":"https://api.github.com/users/ds-hwang/repos","events_url":"https://api.github.com/users/ds-hwang/events{/privacy}","received_events_url":"https://api.github.com/users/ds-hwang/received_events","type":"User","site_admin":false},"position":136,"line":136,"path":"Source/modules/webcl/WebCLContext.cpp","commit_id":"820c0620350609d124ec7d36f0863a68a48afca8","created_at":"2015-02-03T09:51:39Z","updated_at":"2015-02-03T09:51:39Z","body":"> How to handle in WebCLKernel? After setArg function called, there is no way to initialize memory.\r\n\r\nI think it's possible to something like\r\n```\r\nvoid WebCLCommandQueue::enqueueNDRangeKernel(WebCLKernel* kernel, unsigned dim, const Vector<double>& offsets, const Vector<double>& globalWorkSize, const Vector<double>& localWorkSize, const Vector<RefPtr<WebCLEvent>>& events, WebCLEvent* event, ExceptionState& es)\r\n{\r\n\r\nbuffer = kernel->getArg(0);\r\nif (!buffer->isCleared())\r\n  memoryUtil->clean(buffer);\r\n```"}}