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 10 matching lines...) Expand all Loading... |
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #ifndef WebGLObject_h | 26 #ifndef WebGLObject_h |
27 #define WebGLObject_h | 27 #define WebGLObject_h |
28 | 28 |
29 #include "core/platform/graphics/GraphicsContext3D.h" | 29 #include "core/platform/graphics/GraphicsContext3D.h" |
30 | 30 |
31 #include <wtf/PassRefPtr.h> | 31 #include "wtf/RefCounted.h" |
32 #include <wtf/RefCounted.h> | |
33 | 32 |
34 namespace WebCore { | 33 namespace WebCore { |
35 | 34 |
36 class GraphicsContext3D; | 35 class GraphicsContext3D; |
37 class WebGLContextGroup; | 36 class WebGLContextGroup; |
38 class WebGLRenderingContext; | 37 class WebGLRenderingContext; |
39 | 38 |
40 class WebGLObject : public RefCounted<WebGLObject> { | 39 class WebGLObject : public RefCounted<WebGLObject> { |
41 public: | 40 public: |
42 virtual ~WebGLObject(); | 41 virtual ~WebGLObject(); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 75 |
77 private: | 76 private: |
78 Platform3DObject m_object; | 77 Platform3DObject m_object; |
79 unsigned m_attachmentCount; | 78 unsigned m_attachmentCount; |
80 bool m_deleted; | 79 bool m_deleted; |
81 }; | 80 }; |
82 | 81 |
83 } // namespace WebCore | 82 } // namespace WebCore |
84 | 83 |
85 #endif // WebGLObject_h | 84 #endif // WebGLObject_h |
OLD | NEW |