Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: Source/core/html/canvas/WebGLRenderbuffer.h

Issue 635793002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/html (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/html/canvas/WebGLProgram.h ('k') | Source/core/html/canvas/WebGLRenderingContext.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 14 matching lines...) Expand all
25 25
26 #ifndef WebGLRenderbuffer_h 26 #ifndef WebGLRenderbuffer_h
27 #define WebGLRenderbuffer_h 27 #define WebGLRenderbuffer_h
28 28
29 #include "bindings/core/v8/ScriptWrappable.h" 29 #include "bindings/core/v8/ScriptWrappable.h"
30 #include "core/html/canvas/WebGLSharedObject.h" 30 #include "core/html/canvas/WebGLSharedObject.h"
31 #include "wtf/PassRefPtr.h" 31 #include "wtf/PassRefPtr.h"
32 32
33 namespace blink { 33 namespace blink {
34 34
35 class WebGLRenderbuffer FINAL : public WebGLSharedObject, public ScriptWrappable { 35 class WebGLRenderbuffer final : public WebGLSharedObject, public ScriptWrappable {
36 DEFINE_WRAPPERTYPEINFO(); 36 DEFINE_WRAPPERTYPEINFO();
37 public: 37 public:
38 virtual ~WebGLRenderbuffer(); 38 virtual ~WebGLRenderbuffer();
39 39
40 static PassRefPtrWillBeRawPtr<WebGLRenderbuffer> create(WebGLRenderingContex tBase*); 40 static PassRefPtrWillBeRawPtr<WebGLRenderbuffer> create(WebGLRenderingContex tBase*);
41 41
42 void setInternalFormat(GLenum internalformat) 42 void setInternalFormat(GLenum internalformat)
43 { 43 {
44 m_internalFormat = internalformat; 44 m_internalFormat = internalformat;
45 } 45 }
46 GLenum internalFormat() const { return m_internalFormat; } 46 GLenum internalFormat() const { return m_internalFormat; }
47 47
48 void setSize(GLsizei width, GLsizei height) 48 void setSize(GLsizei width, GLsizei height)
49 { 49 {
50 m_width = width; 50 m_width = width;
51 m_height = height; 51 m_height = height;
52 } 52 }
53 GLsizei width() const { return m_width; } 53 GLsizei width() const { return m_width; }
54 GLsizei height() const { return m_height; } 54 GLsizei height() const { return m_height; }
55 55
56 bool hasEverBeenBound() const { return object() && m_hasEverBeenBound; } 56 bool hasEverBeenBound() const { return object() && m_hasEverBeenBound; }
57 57
58 void setHasEverBeenBound() { m_hasEverBeenBound = true; } 58 void setHasEverBeenBound() { m_hasEverBeenBound = true; }
59 59
60 void setEmulatedStencilBuffer(PassRefPtrWillBeRawPtr<WebGLRenderbuffer> buff er) { m_emulatedStencilBuffer = buffer; } 60 void setEmulatedStencilBuffer(PassRefPtrWillBeRawPtr<WebGLRenderbuffer> buff er) { m_emulatedStencilBuffer = buffer; }
61 WebGLRenderbuffer* emulatedStencilBuffer() const { return m_emulatedStencilB uffer.get(); } 61 WebGLRenderbuffer* emulatedStencilBuffer() const { return m_emulatedStencilB uffer.get(); }
62 void deleteEmulatedStencilBuffer(blink::WebGraphicsContext3D* context3d); 62 void deleteEmulatedStencilBuffer(blink::WebGraphicsContext3D* context3d);
63 63
64 virtual void trace(Visitor*) OVERRIDE; 64 virtual void trace(Visitor*) override;
65 65
66 protected: 66 protected:
67 explicit WebGLRenderbuffer(WebGLRenderingContextBase*); 67 explicit WebGLRenderbuffer(WebGLRenderingContextBase*);
68 68
69 virtual void deleteObjectImpl(blink::WebGraphicsContext3D*, Platform3DObject ) OVERRIDE; 69 virtual void deleteObjectImpl(blink::WebGraphicsContext3D*, Platform3DObject ) override;
70 70
71 private: 71 private:
72 virtual bool isRenderbuffer() const OVERRIDE { return true; } 72 virtual bool isRenderbuffer() const override { return true; }
73 73
74 GLenum m_internalFormat; 74 GLenum m_internalFormat;
75 GLsizei m_width, m_height; 75 GLsizei m_width, m_height;
76 76
77 bool m_hasEverBeenBound; 77 bool m_hasEverBeenBound;
78 78
79 RefPtrWillBeMember<WebGLRenderbuffer> m_emulatedStencilBuffer; 79 RefPtrWillBeMember<WebGLRenderbuffer> m_emulatedStencilBuffer;
80 }; 80 };
81 81
82 } // namespace blink 82 } // namespace blink
83 83
84 #endif // WebGLRenderbuffer_h 84 #endif // WebGLRenderbuffer_h
OLDNEW
« no previous file with comments | « Source/core/html/canvas/WebGLProgram.h ('k') | Source/core/html/canvas/WebGLRenderingContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698