aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/MarginView.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-03-19 15:44:55 +1100
committerNeil <nyamatongwe@gmail.com>2021-03-19 15:44:55 +1100
commit09534ab81f72ce766c8d13ea13216dd589d41a1c (patch)
tree2bb190bb18294936a55b1e2c6e70961f22268968 /src/MarginView.cxx
parentdd9ae27be2d1b983638337f24685e6458360dfa3 (diff)
downloadscintilla-mirror-09534ab81f72ce766c8d13ea13216dd589d41a1c.tar.gz
Add an explicit FlushDrawing method to Surface that should be called after
completing a bitmap. Currently only has a real implementation on Direct2D. Avoiding implicit flushes inside Copy and FillRectangle produced a 23% speed improvement on files with about 1 indentation guide per line as the drawing pipeline was being flushed for each indentation guide.
Diffstat (limited to 'src/MarginView.cxx')
-rw-r--r--src/MarginView.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/MarginView.cxx b/src/MarginView.cxx
index fbe3488c0..4d040776d 100644
--- a/src/MarginView.cxx
+++ b/src/MarginView.cxx
@@ -172,6 +172,8 @@ void MarginView::RefreshPixMaps(Surface *surfaceWindow, WindowID wid, const View
pixmapSelPatternOffset1->FillRectangle(rcPixel, colourFMFill);
}
}
+ pixmapSelPattern->FlushDrawing();
+ pixmapSelPatternOffset1->FlushDrawing();
}
}