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) { |