| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2010, Google Inc. All rights reserved. | 2 * Copyright (c) 2010, Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * * Redistributions of source code must retain the above copyright | 7 * * 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 * * Redistributions in binary form must reproduce the above | 9 * * Redistributions in binary form must reproduce the above |
| 10 * copyright notice, this list of conditions and the following disclaimer | 10 * copyright notice, this list of conditions and the following disclaimer |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #ifndef WebGLContextAttributes_h | 27 #ifndef WebGLContextAttributes_h |
| 28 #define WebGLContextAttributes_h | 28 #define WebGLContextAttributes_h |
| 29 | 29 |
| 30 #include "bindings/v8/ScriptWrappable.h" | 30 #include "bindings/v8/ScriptWrappable.h" |
| 31 #include "core/html/canvas/CanvasContextAttributes.h" | 31 #include "core/html/canvas/CanvasContextAttributes.h" |
| 32 #include "public/platform/WebGraphicsContext3D.h" | 32 #include "public/platform/WebGraphicsContext3D.h" |
| 33 #include "wtf/PassRefPtr.h" | 33 #include "wtf/PassRefPtr.h" |
| 34 | 34 |
| 35 namespace WebCore { | 35 namespace WebCore { |
| 36 | 36 |
| 37 class WebGLContextAttributes : public CanvasContextAttributes, public ScriptWrap
pable { | 37 class WebGLContextAttributes FINAL : public CanvasContextAttributes, public Scri
ptWrappable { |
| 38 public: | 38 public: |
| 39 virtual ~WebGLContextAttributes(); | 39 virtual ~WebGLContextAttributes(); |
| 40 | 40 |
| 41 // Create a new attributes object | 41 // Create a new attributes object |
| 42 static PassRefPtr<WebGLContextAttributes> create(); | 42 static PassRefPtr<WebGLContextAttributes> create(); |
| 43 | 43 |
| 44 // Create a new attributes object initialized with preexisting attributes | 44 // Create a new attributes object initialized with preexisting attributes |
| 45 static PassRefPtr<WebGLContextAttributes> create(blink::WebGraphicsContext3D
::Attributes); | 45 static PassRefPtr<WebGLContextAttributes> create(blink::WebGraphicsContext3D
::Attributes); |
| 46 | 46 |
| 47 // Whether or not the drawing buffer has an alpha channel; default=true | 47 // Whether or not the drawing buffer has an alpha channel; default=true |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 WebGLContextAttributes(blink::WebGraphicsContext3D::Attributes); | 85 WebGLContextAttributes(blink::WebGraphicsContext3D::Attributes); |
| 86 | 86 |
| 87 private: | 87 private: |
| 88 blink::WebGraphicsContext3D::Attributes m_attrs; | 88 blink::WebGraphicsContext3D::Attributes m_attrs; |
| 89 bool m_preserveDrawingBuffer; | 89 bool m_preserveDrawingBuffer; |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 } // namespace WebCore | 92 } // namespace WebCore |
| 93 | 93 |
| 94 #endif // WebGLContextAttributes_h | 94 #endif // WebGLContextAttributes_h |
| OLD | NEW |