OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WebGLFenceSync_h | 5 #ifndef WebGLFenceSync_h |
6 #define WebGLFenceSync_h | 6 #define WebGLFenceSync_h |
7 | 7 |
8 #include "modules/webgl/WebGLSync.h" | 8 #include "modules/webgl/WebGLSync.h" |
| 9 #include "wtf/PassRefPtr.h" |
9 | 10 |
10 namespace blink { | 11 namespace blink { |
11 | 12 |
12 class WebGL2RenderingContextBase; | 13 class WebGL2RenderingContextBase; |
13 | 14 |
14 class WebGLFenceSync : public WebGLSync { | 15 class WebGLFenceSync : public WebGLSync { |
15 public: | 16 public: |
16 ~WebGLFenceSync() override; | 17 ~WebGLFenceSync() override; |
17 | 18 |
18 static WebGLSync* create(WebGL2RenderingContextBase*, GLenum condition, GLbi
tfield flags); | 19 static PassRefPtrWillBeRawPtr<WebGLSync> create(WebGL2RenderingContextBase*,
GLenum condition, GLbitfield flags); |
19 | 20 |
20 protected: | 21 protected: |
21 WebGLFenceSync(WebGL2RenderingContextBase*, GLenum condition, GLbitfield fla
gs); | 22 WebGLFenceSync(WebGL2RenderingContextBase*, GLenum condition, GLbitfield fla
gs); |
22 }; | 23 }; |
23 | 24 |
24 } // namespace blink | 25 } // namespace blink |
25 | 26 |
26 #endif // WebGLFenceSync_h | 27 #endif // WebGLFenceSync_h |
OLD | NEW |