aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/viewer/sk_app/WindowContext.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/viewer/sk_app/WindowContext.h')
-rw-r--r--tools/viewer/sk_app/WindowContext.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/viewer/sk_app/WindowContext.h b/tools/viewer/sk_app/WindowContext.h
index fbd2756b67..cd4c357e20 100644
--- a/tools/viewer/sk_app/WindowContext.h
+++ b/tools/viewer/sk_app/WindowContext.h
@@ -8,11 +8,11 @@
#define WindowContext_DEFINED
#include "DisplayParams.h"
+#include "GrContext.h"
#include "GrTypes.h"
#include "SkRefCnt.h"
#include "SkSurfaceProps.h"
-class GrContext;
class SkSurface;
class GrRenderTarget;
@@ -46,7 +46,7 @@ public:
}
virtual GrBackendContext getBackendContext() = 0;
- GrContext* getGrContext() const { return fContext; }
+ GrContext* getGrContext() const { return fContext.get(); }
int width() const { return fWidth; }
int height() const { return fHeight; }
@@ -56,7 +56,7 @@ public:
protected:
virtual bool isGpuContext() { return true; }
- GrContext* fContext;
+ sk_sp<GrContext> fContext;
int fWidth;
int fHeight;