Index: tools/viewer/sk_app/WindowContext.h |
diff --git a/tools/viewer/sk_app/WindowContext.h b/tools/viewer/sk_app/WindowContext.h |
index fdd847445c25df03d250f10d96f34fe71c03b5fe..2c526a4bfe0d176c35536e221021e6f39ada9d2b 100644 |
--- a/tools/viewer/sk_app/WindowContext.h |
+++ b/tools/viewer/sk_app/WindowContext.h |
@@ -44,6 +44,7 @@ public: |
virtual GrBackendContext getBackendContext() = 0; |
GrContext* getGrContext() const { return fContext; } |
+ sk_sp<SkSurface> createOffscreenSurface(bool sRGB); |
sk_sp<SkSurface> createRenderSurface(sk_sp<GrRenderTarget>, int colorBits); |
void presentRenderSurface(sk_sp<SkSurface> renderSurface, sk_sp<GrRenderTarget> rt, |
int colorBits); |
@@ -58,6 +59,10 @@ protected: |
DisplayParams fDisplayParams; |
GrPixelConfig fPixelConfig; |
SkSurfaceProps fSurfaceProps; |
+ |
+private: |
+ sk_sp<SkSurface> createSurface( |
+ sk_sp<GrRenderTarget>, int colorBits, bool offscreen, bool forceSRGB); |
}; |
} // namespace sk_app |