From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- .../WebCore/html/canvas/WebGLContextAttributes.h | 60 ++-------------------- 1 file changed, 5 insertions(+), 55 deletions(-) (limited to 'Source/WebCore/html/canvas/WebGLContextAttributes.h') diff --git a/Source/WebCore/html/canvas/WebGLContextAttributes.h b/Source/WebCore/html/canvas/WebGLContextAttributes.h index 5391a2b7d..a36dc9b07 100644 --- a/Source/WebCore/html/canvas/WebGLContextAttributes.h +++ b/Source/WebCore/html/canvas/WebGLContextAttributes.h @@ -1,5 +1,6 @@ /* * Copyright (c) 2010, Google Inc. All rights reserved. + * Copyright (c) 2016 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are @@ -24,64 +25,13 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef WebGLContextAttributes_h -#define WebGLContextAttributes_h +#pragma once -#include "CanvasContextAttributes.h" -#include "GraphicsContext3D.h" -#include +#include "GraphicsContext3DAttributes.h" namespace WebCore { -class WebGLContextAttributes : public CanvasContextAttributes { - public: - virtual ~WebGLContextAttributes(); - - // Create a new attributes object - static PassRefPtr create(); - - // Create a new attributes object initialized with preexisting attributes - static PassRefPtr create(GraphicsContext3D::Attributes attributes); - - // Whether or not the drawing buffer has an alpha channel; default=true - bool alpha() const; - void setAlpha(bool alpha); - - // Whether or not the drawing buffer has a depth buffer; default=true - bool depth() const; - void setDepth(bool depth); - - // Whether or not the drawing buffer has a stencil buffer; default=true - bool stencil() const; - void setStencil(bool stencil); - - // Whether or not the drawing buffer is antialiased; default=true - bool antialias() const; - void setAntialias(bool antialias); - - // Whether or not to treat the values in the drawing buffer as - // though their alpha channel has already been multiplied into the - // color channels; default=true - bool premultipliedAlpha() const; - void setPremultipliedAlpha(bool premultipliedAlpha); - - // Whether or not to preserve the drawing buffer after presentation to the - // screen; default=false - bool preserveDrawingBuffer() const; - void setPreserveDrawingBuffer(bool); - - // Fetches a copy of the attributes stored in this object in a - // form that can be used to initialize a GraphicsContext3D. - GraphicsContext3D::Attributes attributes() const; - - protected: - WebGLContextAttributes(); - WebGLContextAttributes(GraphicsContext3D::Attributes attributes); - - private: - GraphicsContext3D::Attributes m_attrs; -}; +using WebGLPowerPreference = GraphicsContext3DPowerPreference; +using WebGLContextAttributes = GraphicsContext3DAttributes; } // namespace WebCore - -#endif // WebGLContextAttributes_h -- cgit v1.2.1