GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=
2182163002
Review-Url: https://codereview.chromium.org/
2182163002
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);
protected:
Window();
- uint32_t fWidth;
- uint32_t fHeight;
+ int fWidth;
+ int fHeight;
OnCharFunc fCharFunc;
void* fCharUserData;
}
}
- 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) {