diff options
author | Mike Klein <mtklein@google.com> | 2015-07-29 11:50:09 -0400 |
---|---|---|
committer | Mike Klein <mtklein@google.com> | 2015-07-29 11:50:09 -0400 |
commit | 1e8a58b5680508c241f25f03af5b57502221f215 (patch) | |
tree | 0b0389d4a98a124a8c564f129a190ca5eeae744d /src/gpu | |
parent | 3b2fb981ab8d011077eb6de7eec5fe1f590906b3 (diff) |
Revert "Move headers with no dependencies."
This reverts commit 117842223bd13325b6da26110d80e0590c1a742b.
No good:
https://uberchromegw.corp.google.com/i/client.skia/builders/Mac%20Builder/builds/3465/steps/compile/logs/stdio
BUG=skia:4126
Review URL: https://codereview.chromium.org/1262173002 .
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/SkGpuFenceSync.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/gpu/SkGpuFenceSync.h b/src/gpu/SkGpuFenceSync.h new file mode 100644 index 0000000000..b78398fed8 --- /dev/null +++ b/src/gpu/SkGpuFenceSync.h @@ -0,0 +1,29 @@ + +/* + * Copyright 2015 Google Inc. + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ +#ifndef SkGpuFenceSync_DEFINED +#define SkGpuFenceSync_DEFINED + +#include "SkTypes.h" + +typedef void* SkPlatformGpuFence; + +/* + * This class provides an interface to interact with fence syncs. A fence sync is an object that the + * client can insert into the GPU command stream, and then at any future time, wait until all + * commands that were issued before the fence have completed. + */ +class SkGpuFenceSync { +public: + virtual SkPlatformGpuFence SK_WARN_UNUSED_RESULT insertFence() const = 0; + virtual bool flushAndWaitFence(SkPlatformGpuFence) const = 0; + virtual void deleteFence(SkPlatformGpuFence) const = 0; + + virtual ~SkGpuFenceSync() {} +}; + +#endif |