added checks for painting_ when setting the outputdevice to active state and removed show/hide from start/stoppainting since during testing they caused transparent frames to appear when a window was set to paint again after stopping

This commit is contained in:
Heilig Benedek 2016-08-05 04:35:04 +02:00
parent 3be68ba136
commit 29f30aa6ba
4 changed files with 5 additions and 15 deletions

View file

@ -76,10 +76,6 @@ void OffScreenOutputDevice::SetActive(bool active) {
void OffScreenOutputDevice::OnPaint(const gfx::Rect& damage_rect) {
gfx::Rect rect = damage_rect;
if (!pending_damage_rect_.IsEmpty()) {
rect.Union(pending_damage_rect_);
pending_damage_rect_.SetRect(0, 0, 0, 0);
}
rect.Intersect(gfx::Rect(viewport_pixel_size_));
if (rect.IsEmpty())