| 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 19 matching lines...) Expand all Loading... |
| 30 #include "wtf/HashSet.h" | 30 #include "wtf/HashSet.h" |
| 31 #include "wtf/PassRefPtr.h" | 31 #include "wtf/PassRefPtr.h" |
| 32 #include "wtf/RefCounted.h" | 32 #include "wtf/RefCounted.h" |
| 33 | 33 |
| 34 namespace blink { | 34 namespace blink { |
| 35 class WebGraphicsContext3D; | 35 class WebGraphicsContext3D; |
| 36 } | 36 } |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 | 39 |
| 40 class WebGLExtension; | |
| 41 class WebGLSharedObject; | 40 class WebGLSharedObject; |
| 42 class WebGLRenderingContextBase; | 41 class WebGLRenderingContextBase; |
| 43 | 42 |
| 44 typedef int ExceptionCode; | 43 typedef int ExceptionCode; |
| 45 | 44 |
| 46 class WebGLContextGroup FINAL : public RefCounted<WebGLContextGroup> { | 45 class WebGLContextGroup FINAL : public RefCounted<WebGLContextGroup> { |
| 47 public: | 46 public: |
| 48 static PassRefPtr<WebGLContextGroup> create(); | 47 static PassRefPtr<WebGLContextGroup> create(); |
| 49 ~WebGLContextGroup(); | 48 ~WebGLContextGroup(); |
| 50 | 49 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 71 // registration with WebGLContextGroup, and vice versa, the | 70 // registration with WebGLContextGroup, and vice versa, the |
| 72 // WebGLContextGroup takes care of detaching the group objects if | 71 // WebGLContextGroup takes care of detaching the group objects if |
| 73 // the set of WebGLRenderingContextBase contexts becomes empty. | 72 // the set of WebGLRenderingContextBase contexts becomes empty. |
| 74 HashSet<WebGLRenderingContextBase*> m_contexts; | 73 HashSet<WebGLRenderingContextBase*> m_contexts; |
| 75 HashSet<WebGLSharedObject*> m_groupObjects; | 74 HashSet<WebGLSharedObject*> m_groupObjects; |
| 76 }; | 75 }; |
| 77 | 76 |
| 78 } // namespace blink | 77 } // namespace blink |
| 79 | 78 |
| 80 #endif // WebGLContextGroup_h | 79 #endif // WebGLContextGroup_h |
| OLD | NEW |