Index: tools/viewer/sk_app/unix/RasterWindowContext_unix.cpp |
diff --git a/tools/viewer/sk_app/unix/RasterWindowContext_unix.cpp b/tools/viewer/sk_app/unix/RasterWindowContext_unix.cpp |
index aaf1712be0f285c4ec1ba959f247a5609e7cb2c1..16b11a9f158c5ce96c08e06ee77ba1dca926d1b1 100644 |
--- a/tools/viewer/sk_app/unix/RasterWindowContext_unix.cpp |
+++ b/tools/viewer/sk_app/unix/RasterWindowContext_unix.cpp |
@@ -21,7 +21,7 @@ public: |
sk_sp<SkSurface> getBackbufferSurface() override; |
void swapBuffers() override; |
bool isValid() override { return SkToBool(fWindow); } |
- void resize(uint32_t w, uint32_t h) override; |
+ void resize(int w, int h) override; |
void setDisplayParams(const DisplayParams& params) override; |
protected: |
@@ -49,7 +49,7 @@ void RasterWindowContext_xlib::setDisplayParams(const DisplayParams& params) { |
this->resize(attrs.width, attrs.height); |
} |
-void RasterWindowContext_xlib::resize(uint32_t w, uint32_t h) { |
+void RasterWindowContext_xlib::resize(int w, int h) { |
SkImageInfo info = SkImageInfo::Make(w, h, fDisplayParams.fColorType, kPremul_SkAlphaType, |
fDisplayParams.fColorSpace); |
fBackbufferSurface = SkSurface::MakeRaster(info); |