Index: tools/viewer/sk_app/Window.cpp |
diff --git a/tools/viewer/sk_app/Window.cpp b/tools/viewer/sk_app/Window.cpp |
index 7ec8baae36b7ef04f5ae0f92b17711e066568fd0..068d1ce720314afc75d4405a2fb67e07ec6dcfab 100644 |
--- a/tools/viewer/sk_app/Window.cpp |
+++ b/tools/viewer/sk_app/Window.cpp |
@@ -113,4 +113,8 @@ void Window::markInvalProcessed() { |
fIsContentInvalidated = false; |
} |
+sk_sp<SkSurface> Window::getOffscreenSurface(bool forceSRGB) { |
+ return fWindowContext->createOffscreenSurface(forceSRGB); |
+} |
+ |
} // namespace sk_app |