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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 virtual bool isShader() const { return false; } | 47 virtual bool isShader() const { return false; } |
48 virtual bool isTexture() const { return false; } | 48 virtual bool isTexture() const { return false; } |
49 | 49 |
50 virtual bool validate(const WebGLContextGroup* contextGroup, const WebGLRend
eringContextBase*) const OVERRIDE FINAL | 50 virtual bool validate(const WebGLContextGroup* contextGroup, const WebGLRend
eringContextBase*) const OVERRIDE FINAL |
51 { | 51 { |
52 return contextGroup == m_contextGroup; | 52 return contextGroup == m_contextGroup; |
53 } | 53 } |
54 | 54 |
55 void detachContextGroup(); | 55 void detachContextGroup(); |
56 | 56 |
| 57 virtual void trace(Visitor*) OVERRIDE; |
| 58 |
57 protected: | 59 protected: |
58 WebGLSharedObject(WebGLRenderingContextBase*); | 60 WebGLSharedObject(WebGLRenderingContextBase*); |
59 | 61 |
60 virtual bool hasGroupOrContext() const OVERRIDE FINAL | 62 virtual bool hasGroupOrContext() const OVERRIDE FINAL |
61 { | 63 { |
62 return m_contextGroup; | 64 return m_contextGroup; |
63 } | 65 } |
64 | 66 |
65 virtual blink::WebGraphicsContext3D* getAWebGraphicsContext3D() const OVERRI
DE FINAL; | 67 virtual blink::WebGraphicsContext3D* getAWebGraphicsContext3D() const OVERRI
DE FINAL; |
66 | 68 |
67 private: | 69 private: |
68 WebGLContextGroup* m_contextGroup; | 70 RawPtrWillBeMember<WebGLContextGroup> m_contextGroup; |
69 }; | 71 }; |
70 | 72 |
71 } // namespace WebCore | 73 } // namespace WebCore |
72 | 74 |
73 #endif // WebGLSharedObject_h | 75 #endif // WebGLSharedObject_h |
OLD | NEW |