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

Unified Diff: tools/viewer/sk_app/Window.h

Issue 2182163002: Don't unnecessarily resize windows in sk_app on X (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: 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
« no previous file with comments | « no previous file | tools/viewer/sk_app/unix/Window_unix.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/viewer/sk_app/Window.h
diff --git a/tools/viewer/sk_app/Window.h b/tools/viewer/sk_app/Window.h
index 9ced74784a62a3845992c10e9c4f5a59ba35dbce..eab8c1df545f716541a49e0b01a66536b161d5a4 100644
--- a/tools/viewer/sk_app/Window.h
+++ b/tools/viewer/sk_app/Window.h
@@ -158,8 +158,8 @@ public:
void onPaint();
void onResize(uint32_t width, uint32_t height);
- uint32_t width() { return fWidth; }
- uint32_t height() { return fHeight; }
+ int width() { return fWidth; }
+ int height() { return fHeight; }
virtual const DisplayParams& getDisplayParams();
void setDisplayParams(const DisplayParams& params);
@@ -170,8 +170,8 @@ public:
protected:
Window();
- uint32_t fWidth;
- uint32_t fHeight;
+ int fWidth;
+ int fHeight;
OnCharFunc fCharFunc;
void* fCharUserData;
« no previous file with comments | « no previous file | tools/viewer/sk_app/unix/Window_unix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698