void StandbyState::Decorator::getInvalidDecoratoredRegion(Editor* editor, gfx::Region& region) { gfx::Rect box1, box2; if (getSymmetryHandles(editor, box1, box2)) { region.createUnion(region, gfx::Region(box1)); region.createUnion(region, gfx::Region(box2)); } }
void defer_invalid_rect(const gfx::Rect& rc) { if (!defered_invalid_timer) defered_invalid_timer = new ui::Timer(250, manager); defered_invalid_timer->stop(); defered_invalid_timer->start(); defered_invalid_region.createUnion(defered_invalid_region, gfx::Region(rc)); }