| 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" | |
| 10 | 9 |
| 11 namespace blink { | 10 namespace blink { |
| 12 | 11 |
| 13 class WebGL2RenderingContextBase; | 12 class WebGL2RenderingContextBase; |
| 14 | 13 |
| 15 class WebGLFenceSync : public WebGLSync { | 14 class WebGLFenceSync : public WebGLSync { |
| 16 public: | 15 public: |
| 17 ~WebGLFenceSync() override; | 16 ~WebGLFenceSync() override; |
| 18 | 17 |
| 19 static PassRefPtrWillBeRawPtr<WebGLSync> create(WebGL2RenderingContextBase*,
GLenum condition, GLbitfield flags); | 18 static WebGLSync* create(WebGL2RenderingContextBase*, GLenum condition, GLbi
tfield flags); |
| 20 | 19 |
| 21 protected: | 20 protected: |
| 22 WebGLFenceSync(WebGL2RenderingContextBase*, GLenum condition, GLbitfield fla
gs); | 21 WebGLFenceSync(WebGL2RenderingContextBase*, GLenum condition, GLbitfield fla
gs); |
| 23 }; | 22 }; |
| 24 | 23 |
| 25 } // namespace blink | 24 } // namespace blink |
| 26 | 25 |
| 27 #endif // WebGLFenceSync_h | 26 #endif // WebGLFenceSync_h |
| OLD | NEW |