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

Unified Diff: tools/gpu/TestContext.h

Issue 2395573002: Revert of Move GPU fences into sk_gpu_test (Closed)
Patch Set: 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 | « tools/gpu/FenceSync.h ('k') | tools/gpu/gl/GLTestContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gpu/TestContext.h
diff --git a/tools/gpu/TestContext.h b/tools/gpu/TestContext.h
index d01cb02af2ad833e256b61f5e87ba4d348bf4f7d..ffa8cae8f9d76792d8e1a924500f396efb6f0861 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,7 +25,6 @@
virtual bool isValid() const = 0;
bool fenceSyncSupport() const { return fFenceSync != nullptr; }
- FenceSync* fenceSync() { SkASSERT(fFenceSync); return fFenceSync; }
bool getMaxGpuFrameLag(int *maxFrameLag) const {
if (!fFenceSync) {
@@ -74,8 +73,13 @@
/** Wait until all GPU work is finished. */
virtual void finish() = 0;
+ /**
+ * returns the fencesync object owned by this GLTestContext
+ */
+ SkGpuFenceSync *fenceSync() { return fFenceSync; }
+
protected:
- FenceSync* fFenceSync;
+ SkGpuFenceSync* fFenceSync;
TestContext();
@@ -90,7 +94,7 @@
kMaxFrameLag = 3
};
- PlatformFence fFrameFences[kMaxFrameLag - 1];
+ SkPlatformGpuFence fFrameFences[kMaxFrameLag - 1];
int fCurrentFenceIdx;
typedef SkNoncopyable INHERITED;
« no previous file with comments | « tools/gpu/FenceSync.h ('k') | tools/gpu/gl/GLTestContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698