OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011 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 WebGLRenderingContextBase* context() const { return m_context; } | 45 WebGLRenderingContextBase* context() const { return m_context; } |
46 | 46 |
47 virtual bool validate(const WebGLContextGroup*, const WebGLRenderingContextB
ase* context) const OVERRIDE FINAL | 47 virtual bool validate(const WebGLContextGroup*, const WebGLRenderingContextB
ase* context) const OVERRIDE FINAL |
48 { | 48 { |
49 return context == m_context; | 49 return context == m_context; |
50 } | 50 } |
51 | 51 |
52 void detachContext(); | 52 void detachContext(); |
53 | 53 |
| 54 virtual void trace(Visitor*) OVERRIDE; |
| 55 |
54 protected: | 56 protected: |
55 WebGLContextObject(WebGLRenderingContextBase*); | 57 WebGLContextObject(WebGLRenderingContextBase*); |
56 | 58 |
57 virtual bool hasGroupOrContext() const OVERRIDE FINAL | 59 virtual bool hasGroupOrContext() const OVERRIDE FINAL |
58 { | 60 { |
59 return m_context; | 61 return m_context; |
60 } | 62 } |
61 | 63 |
62 virtual blink::WebGraphicsContext3D* getAWebGraphicsContext3D() const OVERRI
DE FINAL; | 64 virtual blink::WebGraphicsContext3D* getAWebGraphicsContext3D() const OVERRI
DE FINAL; |
63 | 65 |
64 private: | 66 private: |
65 WebGLRenderingContextBase* m_context; | 67 RawPtrWillBeMember<WebGLRenderingContextBase> m_context; |
66 }; | 68 }; |
67 | 69 |
68 } // namespace WebCore | 70 } // namespace WebCore |
69 | 71 |
70 #endif // WebGLContextObject_h | 72 #endif // WebGLContextObject_h |
OLD | NEW |