Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Unified Diff: tools/viewer/sk_app/unix/RasterWindowContext_unix.cpp

Issue 2182273002: SW backend for viewer on Windows (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
« no previous file with comments | « tools/viewer/sk_app/android/RasterWindowContext_android.cpp ('k') | tools/viewer/sk_app/win/RasterWindowContext_win.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698