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

Unified Diff: gpu/ipc/client/gpu_fence_impl.h

Issue 2384243003: ui: Add libsync GLFence implementation.
Patch Set: rebase Created 4 years, 2 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/ipc/client/gpu_channel_host.cc ('k') | gpu/ipc/client/gpu_fence_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/client/gpu_fence_impl.h
diff --git a/gpu/ipc/client/gpu_fence_impl.h b/gpu/ipc/client/gpu_fence_impl.h
index 1c82d014981839e369ce567cd8979e4f6472813f..1ee1b62864061b255cd5ec722bd8d63cfa2e6f32 100644
--- a/gpu/ipc/client/gpu_fence_impl.h
+++ b/gpu/ipc/client/gpu_fence_impl.h
@@ -7,7 +7,6 @@
#include "gpu/gpu_export.h"
#include "ui/gfx/gpu_fence.h"
-#include "ui/gfx/shared_event.h"
namespace gpu {
@@ -15,12 +14,14 @@ namespace gpu {
class GPU_EXPORT GpuFenceImpl : public gfx::GpuFence {
public:
GpuFenceImpl();
- explicit GpuFenceImpl(const gfx::GpuFenceHandle& handle);
~GpuFenceImpl() override;
static gfx::GpuFenceHandle CreateForChildProcess(
base::ProcessHandle child_process);
+ static std::unique_ptr<GpuFenceImpl> CreateFromHandle(
+ const gfx::GpuFenceHandle& handle);
+
// Type-checking upcast routine. Returns an NULL on failure.
static GpuFenceImpl* FromClientFence(ClientFence fence);
@@ -28,12 +29,9 @@ class GPU_EXPORT GpuFenceImpl : public gfx::GpuFence {
bool IsSignaled() override;
bool Wait(const base::TimeDelta& max_time) override;
void Reset() override;
- gfx::GpuFenceHandle GetHandle() const override;
ClientFence AsClientFence() override;
private:
- gfx::SharedEvent shared_event_;
-
DISALLOW_COPY_AND_ASSIGN(GpuFenceImpl);
};
« no previous file with comments | « gpu/ipc/client/gpu_channel_host.cc ('k') | gpu/ipc/client/gpu_fence_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698