| Index: Source/core/html/canvas/WebGLSharedResources.h
|
| diff --git a/Source/core/html/canvas/WebGLDrawBuffers.h b/Source/core/html/canvas/WebGLSharedResources.h
|
| similarity index 68%
|
| copy from Source/core/html/canvas/WebGLDrawBuffers.h
|
| copy to Source/core/html/canvas/WebGLSharedResources.h
|
| index b002f221e2303914d5b79041143ae4166de01111..a3c64a2ce81ebcb35e84bfc0993e411c0ee75569 100644
|
| --- a/Source/core/html/canvas/WebGLDrawBuffers.h
|
| +++ b/Source/core/html/canvas/WebGLSharedResources.h
|
| @@ -23,32 +23,41 @@
|
| * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef WebGLDrawBuffers_h
|
| -#define WebGLDrawBuffers_h
|
| +#ifndef WebGLSharedResources_h
|
| +#define WebGLSharedResources_h
|
|
|
| -#include "bindings/v8/ScriptWrappable.h"
|
| #include "core/html/canvas/WebGLExtension.h"
|
| +#include "core/html/canvas/WebGLSharedObject.h"
|
| #include "wtf/PassRefPtr.h"
|
|
|
| namespace WebCore {
|
|
|
| -class WebGLDrawBuffers : public WebGLExtension, public ScriptWrappable {
|
| +class WebGLShader;
|
| +class WebGLShareGroup;
|
| +
|
| +typedef int ExceptionCode;
|
| +
|
| +class WebGLSharedResources : public WebGLExtension {
|
| public:
|
| - static PassRefPtr<WebGLDrawBuffers> create(WebGLRenderingContext*);
|
| + static PassRefPtr<WebGLSharedResources> create(WebGLRenderingContext*);
|
| static bool supported(WebGLRenderingContext*);
|
| static const char* getExtensionName();
|
|
|
| - virtual ~WebGLDrawBuffers();
|
| + virtual ~WebGLSharedResources();
|
| virtual ExtensionName getName() const;
|
|
|
| - void drawBuffersWEBGL(const Vector<GC3Denum>& buffers);
|
| + PassRefPtr<WebGLShareGroup> group() const;
|
| +
|
| + long acquireSharedResource(WebGLSharedObject*, unsigned, PassRefPtr<WebGLAcquireSharedResourceCallback>, ExceptionCode&);
|
| + void releaseSharedResource(WebGLSharedObject*, ExceptionCode&);
|
| + void cancelAcquireSharedResource(long);
|
|
|
| private:
|
| - WebGLDrawBuffers(WebGLRenderingContext*);
|
| + WebGLSharedResources(WebGLRenderingContext*);
|
|
|
| - static bool satisfiesWebGLRequirements(WebGLRenderingContext*);
|
| + RefPtr<WebGLShareGroup> m_shareGroup;
|
| };
|
|
|
| } // namespace WebCore
|
|
|
| -#endif // WebGLDrawBuffers_h
|
| +#endif // WebGLSharedResources_h
|
|
|