Partial fix for high res displays
ClosedPublic

Authored by gilbert on Apr 28 2019, 5:36 PM.

Details

Summary

On high res displays we end up using
the tile manager on single pages, that doesn't work
(for reasons that aren't yet clear) - but it
doesn't make sense if we need the whole thing anyway.
Pass the normalizedRectangle to show we need the whole
page (which fixes *some* of the issues by itself),
and then don't bother using tileManager if we're
using most of the page anyway.

BUG: 401339

Diff Detail

Repository
R223 Okular
Branch
bug401339partial (branched from master)
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 11321
Build 11339: arc lint + arc unit
gilbert created this revision.Apr 28 2019, 5:36 PM
Restricted Application added a project: Okular. · View Herald TranscriptApr 28 2019, 5:36 PM
Restricted Application added a subscriber: okular-devel. · View Herald Transcript
gilbert requested review of this revision.Apr 28 2019, 5:36 PM
aacid added a comment.Jun 22 2019, 2:44 PM

I understand the qDebugs where useful for you, but i will remove them, okular is already quite noisy in debug mode.

The fix makes sense, no need to trigger the tiled rendering if you're going to end up rendering the whole page anyway, on the other hand the hardcoded 8M and 6M should probabbly removed at some point too.

I'm going to commit it without the debugs and without the change in presentationwidget since i'm 99% sure the check for 0 you added there is enough

Please shout if you disagree, sorry it took this much to review.

core/document.cpp
1307

make this const

ui/presentationwidget.cpp
1450

why this change? You already "fixed" this with the check for normalized area not being 0, no?

aacid accepted this revision.Jun 22 2019, 2:44 PM
This revision is now accepted and ready to land.Jun 22 2019, 2:44 PM
This revision was automatically updated to reflect the committed changes.