summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/canvas/WebGLBuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/html/canvas/WebGLBuffer.h')
-rw-r--r--Source/WebCore/html/canvas/WebGLBuffer.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/Source/WebCore/html/canvas/WebGLBuffer.h b/Source/WebCore/html/canvas/WebGLBuffer.h
index 8075b4a16..3451bb68c 100644
--- a/Source/WebCore/html/canvas/WebGLBuffer.h
+++ b/Source/WebCore/html/canvas/WebGLBuffer.h
@@ -10,10 +10,10 @@
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
+ * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
@@ -37,11 +37,11 @@ class ArrayBufferView;
namespace WebCore {
-class WebGLBuffer final : public WebGLSharedObject {
+class WebGLBuffer : public WebGLSharedObject {
public:
virtual ~WebGLBuffer();
- static Ref<WebGLBuffer> create(WebGLRenderingContextBase*);
+ static PassRefPtr<WebGLBuffer> create(WebGLRenderingContext*);
bool associateBufferData(GC3Dsizeiptr size);
bool associateBufferData(JSC::ArrayBuffer*);
@@ -49,8 +49,6 @@ public:
bool associateBufferSubData(GC3Dintptr offset, JSC::ArrayBuffer*);
bool associateBufferSubData(GC3Dintptr offset, JSC::ArrayBufferView*);
- void disassociateBufferData();
-
GC3Dsizeiptr byteLength() const;
const JSC::ArrayBuffer* elementArrayBuffer() const { return m_elementArrayBuffer.get(); }
@@ -66,7 +64,7 @@ public:
bool hasEverBeenBound() const { return object() && m_target; }
protected:
- WebGLBuffer(WebGLRenderingContextBase*);
+ WebGLBuffer(WebGLRenderingContext*);
virtual void deleteObjectImpl(GraphicsContext3D*, Platform3DObject) override;