adds invalidate method and proper resizing

This commit is contained in:
gellert 2016-09-01 19:25:12 +02:00
parent d1274bb79f
commit b4c220613f
6 changed files with 31 additions and 5 deletions

View file

@ -24,6 +24,8 @@ void OffScreenOutputDevice::Resize(
const gfx::Size& pixel_size, float scale_factor) {
scale_factor_ = scale_factor;
printf("OffScreenOutputDevice::Resize\n");
if (viewport_pixel_size_ == pixel_size) return;
viewport_pixel_size_ = pixel_size;