OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 WebGLRenderbuffer::WebGLRenderbuffer(WebGLRenderingContext* ctx) | 45 WebGLRenderbuffer::WebGLRenderbuffer(WebGLRenderingContext* ctx) |
46 : WebGLSharedObject(ctx) | 46 : WebGLSharedObject(ctx) |
47 , m_internalFormat(GraphicsContext3D::RGBA4) | 47 , m_internalFormat(GraphicsContext3D::RGBA4) |
48 , m_initialized(false) | 48 , m_initialized(false) |
49 , m_width(0) | 49 , m_width(0) |
50 , m_height(0) | 50 , m_height(0) |
51 , m_isValid(true) | 51 , m_isValid(true) |
52 , m_hasEverBeenBound(false) | 52 , m_hasEverBeenBound(false) |
53 { | 53 { |
| 54 ScriptWrappable::init(this); |
54 setObject(ctx->graphicsContext3D()->createRenderbuffer()); | 55 setObject(ctx->graphicsContext3D()->createRenderbuffer()); |
55 } | 56 } |
56 | 57 |
57 void WebGLRenderbuffer::deleteObjectImpl(GraphicsContext3D* context3d, Platform3
DObject object) | 58 void WebGLRenderbuffer::deleteObjectImpl(GraphicsContext3D* context3d, Platform3
DObject object) |
58 { | 59 { |
59 context3d->deleteRenderbuffer(object); | 60 context3d->deleteRenderbuffer(object); |
60 } | 61 } |
61 | 62 |
62 } | 63 } |
OLD | NEW |