| Index: tools/gpu/TestContext.cpp
|
| diff --git a/tools/gpu/TestContext.cpp b/tools/gpu/TestContext.cpp
|
| index 8a78b903b15fbefe8507fa9210fa02448b8dd22e..f613db7ab5b9307fd1acccb9f6a0db483db13586 100644
|
| --- a/tools/gpu/TestContext.cpp
|
| +++ b/tools/gpu/TestContext.cpp
|
| @@ -8,8 +8,13 @@
|
|
|
| #include "TestContext.h"
|
|
|
| +#include "SkGpuTimer.h"
|
| +
|
| namespace sk_gpu_test {
|
| -TestContext::TestContext() : fFenceSync(nullptr), fCurrentFenceIdx(0) {
|
| +TestContext::TestContext()
|
| + : fFenceSync(nullptr)
|
| + , fGpuTimer(nullptr)
|
| + , fCurrentFenceIdx(0) {
|
| memset(fFrameFences, 0, sizeof(fFrameFences));
|
| }
|
|
|
| @@ -21,6 +26,7 @@ TestContext::~TestContext() {
|
| }
|
| #endif
|
| SkASSERT(!fFenceSync);
|
| + SkASSERT(!fGpuTimer);
|
| }
|
|
|
| void TestContext::makeCurrent() const { this->onPlatformMakeCurrent(); }
|
| @@ -63,6 +69,7 @@ void TestContext::teardown() {
|
| delete fFenceSync;
|
| fFenceSync = nullptr;
|
| }
|
| + delete fGpuTimer;
|
| }
|
|
|
| }
|
|
|