Skip to content
Snippets Groups Projects
Commit 6687cd98 authored by George Nachman's avatar George Nachman
Browse files

Ensure views have layers when they ought to. Note: performance on my MBP is...

Ensure views have layers when they ought to. Note: performance on my MBP is dramatically *worse* with layers. wtf
parent 325397ba
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -146,10 +146,12 @@
}
 
- (void)boundsDidChangeNotification:(NSNotification *)notification {
if (!self.layer) {
return;
}
if (!self.contentView.copiesOnScroll) {
[self redrawSubviewsInRect:self.documentVisibleRect];
[self redrawFloatingSubviews];
return;
}
NSRect newDocumentVisibleRect = self.documentVisibleRect;
PTYClipView *clipView = (PTYClipView *)self.contentView;
Loading
Loading
Loading
Loading
@@ -7706,4 +7706,8 @@ ITERM_WEAKLY_REFERENCEABLE
return self.textview.excess;
}
 
- (void)sessionViewDidLayoutSubviews {
[self useTransparencyDidChange];
}
@end
Loading
Loading
@@ -117,6 +117,8 @@
// Height of bottom of textview that should be obscured.
- (CGFloat)sessionViewBottomMarginHeight;
 
- (void)sessionViewDidLayoutSubviews;
@end
 
@interface SessionView : NSView <SessionTitleViewDelegate>
Loading
Loading
Loading
Loading
@@ -196,6 +196,8 @@ static NSDate* lastResizeDate_;
}
}
_bottomMarginView.frame = self.frameForBottomMargin;
[_delegate sessionViewDidLayoutSubviews];
}
 
- (NSRect)frameForBottomMargin {
Loading
Loading
Loading
Loading
@@ -23,7 +23,7 @@ typedef struct {
double m2;
} iTermPreciseTimerStats;
 
#define ENABLE_PRECISE_TIMERS 0
#define ENABLE_PRECISE_TIMERS 1
 
#if ENABLE_PRECISE_TIMERS
void iTermPreciseTimerStart(iTermPreciseTimer *timer);
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment