Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(479)

Side by Side Diff: gpu/ipc/client/gpu_fence_impl_shared_event.cc

Issue 2384243003: ui: Add libsync GLFence implementation.
Patch Set: rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/ipc/client/gpu_fence_impl_shared_event.h ('k') | gpu/ipc/service/gpu_channel.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "gpu/ipc/client/gpu_fence_impl_shared_event.h"
6
7 namespace gpu {
8
9 GpuFenceImplSharedEvent::GpuFenceImplSharedEvent() {}
10
11 GpuFenceImplSharedEvent::GpuFenceImplSharedEvent(
12 const gfx::SharedEventHandle& handle)
13 : shared_event_(handle) {}
14
15 GpuFenceImplSharedEvent::~GpuFenceImplSharedEvent() {}
16
17 bool GpuFenceImplSharedEvent::IsSignaled() {
18 return shared_event_.IsSignaled();
19 }
20
21 bool GpuFenceImplSharedEvent::Wait(const base::TimeDelta& max_time) {
22 return shared_event_.Wait(max_time);
23 }
24
25 void GpuFenceImplSharedEvent::Reset() {
26 return shared_event_.Reset();
27 }
28
29 gfx::GpuFenceHandle GpuFenceImplSharedEvent::GetHandle() const {
30 gfx::GpuFenceHandle handle;
31 handle.shared_event_handle = shared_event_.GetHandle();
32 return handle;
33 }
34
35 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/ipc/client/gpu_fence_impl_shared_event.h ('k') | gpu/ipc/service/gpu_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698