Index: tools/gpu/TestContext.h |
diff --git a/tools/gpu/TestContext.h b/tools/gpu/TestContext.h |
index ffa8cae8f9d76792d8e1a924500f396efb6f0861..d01cb02af2ad833e256b61f5e87ba4d348bf4f7d 100644 |
--- a/tools/gpu/TestContext.h |
+++ b/tools/gpu/TestContext.h |
@@ -9,8 +9,8 @@ |
#ifndef TestContext_DEFINED |
#define TestContext_DEFINED |
+#include "FenceSync.h" |
#include "GrTypes.h" |
-#include "../private/SkGpuFenceSync.h" |
#include "../private/SkTemplates.h" |
namespace sk_gpu_test { |
@@ -25,6 +25,7 @@ public: |
virtual bool isValid() const = 0; |
bool fenceSyncSupport() const { return fFenceSync != nullptr; } |
+ FenceSync* fenceSync() { SkASSERT(fFenceSync); return fFenceSync; } |
bool getMaxGpuFrameLag(int *maxFrameLag) const { |
if (!fFenceSync) { |
@@ -73,13 +74,8 @@ public: |
/** Wait until all GPU work is finished. */ |
virtual void finish() = 0; |
- /** |
- * returns the fencesync object owned by this GLTestContext |
- */ |
- SkGpuFenceSync *fenceSync() { return fFenceSync; } |
- |
protected: |
- SkGpuFenceSync* fFenceSync; |
+ FenceSync* fFenceSync; |
TestContext(); |
@@ -94,7 +90,7 @@ private: |
kMaxFrameLag = 3 |
}; |
- SkPlatformGpuFence fFrameFences[kMaxFrameLag - 1]; |
+ PlatformFence fFrameFences[kMaxFrameLag - 1]; |
int fCurrentFenceIdx; |
typedef SkNoncopyable INHERITED; |