aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/sk_app/unix
diff options
context:
space:
mode:
authorGravatar Ben Wagner <bungeman@google.com>2018-04-13 14:30:23 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-04-16 22:46:50 +0000
commit37c5403890000289d7db9fd1d90cf96c2ee12bf3 (patch)
tree7d85406ae79f02f59f99146b117cdc63cee7c30b /tools/sk_app/unix
parente7fbafe1da930eba9e24f60fefef5a440f715219 (diff)
Add pixel geometry and dft selection to viewer app.
Change-Id: I2fea84793383c44b102fa97b23f59235ef302ff9 Reviewed-on: https://skia-review.googlesource.com/121581 Commit-Queue: Ben Wagner <bungeman@google.com> Reviewed-by: Herb Derby <herb@google.com>
Diffstat (limited to 'tools/sk_app/unix')
-rw-r--r--tools/sk_app/unix/RasterWindowContext_unix.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/sk_app/unix/RasterWindowContext_unix.cpp b/tools/sk_app/unix/RasterWindowContext_unix.cpp
index 6bfa6fd0be..d0e700cb2e 100644
--- a/tools/sk_app/unix/RasterWindowContext_unix.cpp
+++ b/tools/sk_app/unix/RasterWindowContext_unix.cpp
@@ -54,7 +54,7 @@ void RasterWindowContext_xlib::setDisplayParams(const DisplayParams& params) {
void RasterWindowContext_xlib::resize(int w, int h) {
SkImageInfo info = SkImageInfo::Make(w, h, fDisplayParams.fColorType, kPremul_SkAlphaType,
fDisplayParams.fColorSpace);
- fBackbufferSurface = SkSurface::MakeRaster(info);
+ fBackbufferSurface = SkSurface::MakeRaster(info, &fDisplayParams.fSurfaceProps);
}