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 2383383002: Move GPU fences into sk_gpu_test (Closed)
Patch Set: fix for windowsx 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 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;
« 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