aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/viewer
diff options
context:
space:
mode:
authorGravatar djsollen <djsollen@google.com>2016-06-09 13:07:13 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-06-09 13:07:13 -0700
commit7e73108a371dfb1dfa05f0810d5463d94bfa06b7 (patch)
tree14d8b2a2bc976dc111c95d8cba55f48aeccf40ff /tools/viewer
parent09b4224be3901b97cc2301115f9a2e9381a39dbb (diff)
Cleanup needed to use WindowContext for Android
Diffstat (limited to 'tools/viewer')
-rw-r--r--tools/viewer/sk_app/WindowContext.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/viewer/sk_app/WindowContext.h b/tools/viewer/sk_app/WindowContext.h
index 1fd921afb2..fdd847445c 100644
--- a/tools/viewer/sk_app/WindowContext.h
+++ b/tools/viewer/sk_app/WindowContext.h
@@ -42,6 +42,7 @@ public:
}
virtual GrBackendContext getBackendContext() = 0;
+ GrContext* getGrContext() const { return fContext; }
sk_sp<SkSurface> createRenderSurface(sk_sp<GrRenderTarget>, int colorBits);
void presentRenderSurface(sk_sp<SkSurface> renderSurface, sk_sp<GrRenderTarget> rt,