summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/canvas/WebGLFramebuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/html/canvas/WebGLFramebuffer.h')
-rw-r--r--Source/WebCore/html/canvas/WebGLFramebuffer.h23
1 files changed, 8 insertions, 15 deletions
diff --git a/Source/WebCore/html/canvas/WebGLFramebuffer.h b/Source/WebCore/html/canvas/WebGLFramebuffer.h
index a0ee31c69..baeeae66b 100644
--- a/Source/WebCore/html/canvas/WebGLFramebuffer.h
+++ b/Source/WebCore/html/canvas/WebGLFramebuffer.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 COMPUTER, INC. ``AS IS'' AND ANY
+ * THIS SOFTWARE IS PROVIDED BY APPLE 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 COMPUTER, INC. OR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE 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
@@ -23,13 +23,10 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebGLFramebuffer_h
-#define WebGLFramebuffer_h
+#pragma once
#include "WebGLContextObject.h"
#include "WebGLSharedObject.h"
-
-#include <wtf/PassRefPtr.h>
#include <wtf/RefCounted.h>
namespace WebCore {
@@ -37,7 +34,7 @@ namespace WebCore {
class WebGLRenderbuffer;
class WebGLTexture;
-class WebGLFramebuffer : public WebGLContextObject {
+class WebGLFramebuffer final : public WebGLContextObject {
public:
class WebGLAttachment : public RefCounted<WebGLAttachment> {
public:
@@ -61,7 +58,7 @@ public:
virtual ~WebGLFramebuffer();
- static PassRefPtr<WebGLFramebuffer> create(WebGLRenderingContext*);
+ static Ref<WebGLFramebuffer> create(WebGLRenderingContextBase&);
void setAttachmentForBoundFramebuffer(GC3Denum attachment, GC3Denum texTarget, WebGLTexture*, GC3Dint level);
void setAttachmentForBoundFramebuffer(GC3Denum attachment, WebGLRenderbuffer*);
@@ -81,7 +78,7 @@ public:
// Return false if the framebuffer is incomplete; otherwise initialize
// the buffers if they haven't been initialized and
// needToInitializeAttachments is true.
- bool onAccess(GraphicsContext3D*, bool needToInitializeAttachments, const char** reason);
+ bool onAccess(GraphicsContext3D*, const char** reason);
// Software version of glCheckFramebufferStatus(), except that when
// FRAMEBUFFER_COMPLETE is returned, it is still possible for
@@ -101,13 +98,11 @@ public:
GC3Denum getDrawBuffer(GC3Denum);
protected:
- WebGLFramebuffer(WebGLRenderingContext*);
+ WebGLFramebuffer(WebGLRenderingContextBase&);
- virtual void deleteObjectImpl(GraphicsContext3D*, Platform3DObject) override;
+ void deleteObjectImpl(GraphicsContext3D*, Platform3DObject) override;
private:
- virtual bool isFramebuffer() const { return true; }
-
WebGLAttachment* getAttachment(GC3Denum) const;
// Return false if framebuffer is incomplete.
@@ -133,5 +128,3 @@ private:
};
} // namespace WebCore
-
-#endif // WebGLFramebuffer_h