| 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 #include "modules/webgl/WebGLFenceSync.h" | 5 #include "modules/webgl/WebGLFenceSync.h" |
| 6 | 6 |
| 7 #include "gpu/command_buffer/client/gles2_interface.h" | 7 #include "gpu/command_buffer/client/gles2_interface.h" |
| 8 #include "modules/webgl/WebGL2RenderingContextBase.h" | 8 #include "modules/webgl/WebGL2RenderingContextBase.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 WebGLSync* WebGLFenceSync::create(WebGL2RenderingContextBase* ctx, | 12 WebGLSync* WebGLFenceSync::create(WebGL2RenderingContextBase* ctx, |
| 13 GLenum condition, | 13 GLenum condition, |
| 14 GLbitfield flags) { | 14 GLbitfield flags) { |
| 15 return new WebGLFenceSync(ctx, condition, flags); | 15 return new WebGLFenceSync(ctx, condition, flags); |
| 16 } | 16 } |
| 17 | 17 |
| 18 WebGLFenceSync::~WebGLFenceSync() {} | |
| 19 | |
| 20 WebGLFenceSync::WebGLFenceSync(WebGL2RenderingContextBase* ctx, | 18 WebGLFenceSync::WebGLFenceSync(WebGL2RenderingContextBase* ctx, |
| 21 GLenum condition, | 19 GLenum condition, |
| 22 GLbitfield flags) | 20 GLbitfield flags) |
| 23 : WebGLSync(ctx, | 21 : WebGLSync(ctx, |
| 24 ctx->contextGL()->FenceSync(condition, flags), | 22 ctx->contextGL()->FenceSync(condition, flags), |
| 25 GL_SYNC_FENCE) {} | 23 GL_SYNC_FENCE) {} |
| 26 | 24 |
| 27 } // namespace blink | 25 } // namespace blink |
| OLD | NEW |