| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2009 Apple Inc. All Rights Reserved. |
| 3 * Copyright (C) 2009 Google Inc. All Rights Reserved. | 3 * Copyright (C) 2009 Google Inc. All Rights Reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 WebGLGetInfo::WebGLGetInfo(PassRefPtr<WebGLVertexArrayObjectOES> value) | 202 WebGLGetInfo::WebGLGetInfo(PassRefPtr<WebGLVertexArrayObjectOES> value) |
| 203 : m_type(kTypeWebGLVertexArrayObjectOES) | 203 : m_type(kTypeWebGLVertexArrayObjectOES) |
| 204 , m_bool(false) | 204 , m_bool(false) |
| 205 , m_float(0) | 205 , m_float(0) |
| 206 , m_int(0) | 206 , m_int(0) |
| 207 , m_unsignedInt(0) | 207 , m_unsignedInt(0) |
| 208 , m_webglVertexArrayObject(value) | 208 , m_webglVertexArrayObject(value) |
| 209 { | 209 { |
| 210 } | 210 } |
| 211 | 211 |
| 212 WebGLGetInfo::~WebGLGetInfo() | |
| 213 { | |
| 214 } | |
| 215 | |
| 216 WebGLGetInfo::Type WebGLGetInfo::getType() const | 212 WebGLGetInfo::Type WebGLGetInfo::getType() const |
| 217 { | 213 { |
| 218 return m_type; | 214 return m_type; |
| 219 } | 215 } |
| 220 | 216 |
| 221 bool WebGLGetInfo::getBool() const | 217 bool WebGLGetInfo::getBool() const |
| 222 { | 218 { |
| 223 ASSERT(getType() == kTypeBool); | 219 ASSERT(getType() == kTypeBool); |
| 224 return m_bool; | 220 return m_bool; |
| 225 } | 221 } |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 return m_webglUnsignedIntArray; | 304 return m_webglUnsignedIntArray; |
| 309 } | 305 } |
| 310 | 306 |
| 311 PassRefPtr<WebGLVertexArrayObjectOES> WebGLGetInfo::getWebGLVertexArrayObjectOES
() const | 307 PassRefPtr<WebGLVertexArrayObjectOES> WebGLGetInfo::getWebGLVertexArrayObjectOES
() const |
| 312 { | 308 { |
| 313 ASSERT(getType() == kTypeWebGLVertexArrayObjectOES); | 309 ASSERT(getType() == kTypeWebGLVertexArrayObjectOES); |
| 314 return m_webglVertexArrayObject; | 310 return m_webglVertexArrayObject; |
| 315 } | 311 } |
| 316 | 312 |
| 317 } // namespace WebCore | 313 } // namespace WebCore |
| OLD | NEW |