| 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 "modules/webgl/WebGL2RenderingContextBase.h" | 8 #include "modules/webgl/WebGL2RenderingContextBase.h" |
| 8 | 9 |
| 9 namespace blink { | 10 namespace blink { |
| 10 | 11 |
| 11 WebGLSync* WebGLFenceSync::create(WebGL2RenderingContextBase* ctx, GLenum condit
ion, GLbitfield flags) | 12 WebGLSync* WebGLFenceSync::create(WebGL2RenderingContextBase* ctx, GLenum condit
ion, GLbitfield flags) |
| 12 { | 13 { |
| 13 return new WebGLFenceSync(ctx, condition, flags); | 14 return new WebGLFenceSync(ctx, condition, flags); |
| 14 } | 15 } |
| 15 | 16 |
| 16 WebGLFenceSync::~WebGLFenceSync() | 17 WebGLFenceSync::~WebGLFenceSync() |
| 17 { | 18 { |
| 18 } | 19 } |
| 19 | 20 |
| 20 WebGLFenceSync::WebGLFenceSync(WebGL2RenderingContextBase* ctx, GLenum condition
, GLbitfield flags) | 21 WebGLFenceSync::WebGLFenceSync(WebGL2RenderingContextBase* ctx, GLenum condition
, GLbitfield flags) |
| 21 : WebGLSync(ctx, ctx->webContext()->fenceSync(condition, flags), GL_SYNC_FEN
CE) | 22 : WebGLSync(ctx, ctx->contextGL()->FenceSync(condition, flags), GL_SYNC_FENC
E) |
| 22 { | 23 { |
| 23 } | 24 } |
| 24 | 25 |
| 25 } // namespace blink | 26 } // namespace blink |
| OLD | NEW |