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 25 matching lines...) Expand all Loading... |
36 } | 36 } |
37 | 37 |
38 PassRefPtr<WebGLContextAttributes> WebGLContextAttributes::create(GraphicsContex
t3D::Attributes attributes) | 38 PassRefPtr<WebGLContextAttributes> WebGLContextAttributes::create(GraphicsContex
t3D::Attributes attributes) |
39 { | 39 { |
40 return adoptRef(new WebGLContextAttributes(attributes)); | 40 return adoptRef(new WebGLContextAttributes(attributes)); |
41 } | 41 } |
42 | 42 |
43 WebGLContextAttributes::WebGLContextAttributes() | 43 WebGLContextAttributes::WebGLContextAttributes() |
44 : CanvasContextAttributes() | 44 : CanvasContextAttributes() |
45 { | 45 { |
| 46 ScriptWrappable::init(this); |
46 } | 47 } |
47 | 48 |
48 WebGLContextAttributes::WebGLContextAttributes(GraphicsContext3D::Attributes att
ributes) | 49 WebGLContextAttributes::WebGLContextAttributes(GraphicsContext3D::Attributes att
ributes) |
49 : CanvasContextAttributes() | 50 : CanvasContextAttributes() |
50 , m_attrs(attributes) | 51 , m_attrs(attributes) |
51 { | 52 { |
| 53 ScriptWrappable::init(this); |
52 } | 54 } |
53 | 55 |
54 WebGLContextAttributes::~WebGLContextAttributes() | 56 WebGLContextAttributes::~WebGLContextAttributes() |
55 { | 57 { |
56 } | 58 } |
57 | 59 |
58 bool WebGLContextAttributes::alpha() const | 60 bool WebGLContextAttributes::alpha() const |
59 { | 61 { |
60 return m_attrs.alpha; | 62 return m_attrs.alpha; |
61 } | 63 } |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 { | 116 { |
115 m_attrs.preserveDrawingBuffer = preserveDrawingBuffer; | 117 m_attrs.preserveDrawingBuffer = preserveDrawingBuffer; |
116 } | 118 } |
117 | 119 |
118 GraphicsContext3D::Attributes WebGLContextAttributes::attributes() const | 120 GraphicsContext3D::Attributes WebGLContextAttributes::attributes() const |
119 { | 121 { |
120 return m_attrs; | 122 return m_attrs; |
121 } | 123 } |
122 | 124 |
123 } // namespace WebCore | 125 } // namespace WebCore |
OLD | NEW |