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

Unified Diff: tools/viewer/sk_app/unix/Window_unix.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 | « tools/viewer/sk_app/Window.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/viewer/sk_app/unix/Window_unix.h
diff --git a/tools/viewer/sk_app/unix/Window_unix.h b/tools/viewer/sk_app/unix/Window_unix.h
index fb6b22d4132a4e09ed056528bc6b298cb2588e84..b6d40e69dbda855db5afe579ec0dde4899d793ab 100644
--- a/tools/viewer/sk_app/unix/Window_unix.h
+++ b/tools/viewer/sk_app/unix/Window_unix.h
@@ -63,10 +63,12 @@ public:
}
}
- void markPendingResize(int width, int height) {
- fPendingWidth = width;
- fPendingHeight = height;
- fPendingResize = true;
+ void markPendingResize(int width, int height) {
+ if (width != fWidth || height != fHeight){
+ fPendingResize = true;
+ fPendingWidth = width;
+ fPendingHeight = height;
+ }
}
void finishResize() {
if (fPendingResize) {
« no previous file with comments | « tools/viewer/sk_app/Window.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698