summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/canvas/WebGLShaderPrecisionFormat.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/html/canvas/WebGLShaderPrecisionFormat.h')
-rw-r--r--Source/WebCore/html/canvas/WebGLShaderPrecisionFormat.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/Source/WebCore/html/canvas/WebGLShaderPrecisionFormat.h b/Source/WebCore/html/canvas/WebGLShaderPrecisionFormat.h
index c4c7b7861..6ff2dd467 100644
--- a/Source/WebCore/html/canvas/WebGLShaderPrecisionFormat.h
+++ b/Source/WebCore/html/canvas/WebGLShaderPrecisionFormat.h
@@ -24,18 +24,16 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebGLShaderPrecisionFormat_h
-#define WebGLShaderPrecisionFormat_h
+#pragma once
#include "GraphicsContext3D.h"
-#include <wtf/PassRefPtr.h>
#include <wtf/RefCounted.h>
namespace WebCore {
class WebGLShaderPrecisionFormat : public RefCounted<WebGLShaderPrecisionFormat> {
public:
- static PassRefPtr<WebGLShaderPrecisionFormat> create(GC3Dint rangeMin, GC3Dint rangeMax, GC3Dint precision);
+ static Ref<WebGLShaderPrecisionFormat> create(GC3Dint rangeMin, GC3Dint rangeMax, GC3Dint precision);
GC3Dint rangeMin() const;
GC3Dint rangeMax() const;
@@ -49,6 +47,4 @@ private:
GC3Dint m_precision;
};
-}
-
-#endif // WebGLShaderPrecisionFormat_h
+} // namespace WebCore