diff options
author | Neil <nyamatongwe@gmail.com> | 2021-03-19 15:44:55 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-03-19 15:44:55 +1100 |
commit | 09534ab81f72ce766c8d13ea13216dd589d41a1c (patch) | |
tree | 2bb190bb18294936a55b1e2c6e70961f22268968 /qt/ScintillaEditBase/PlatQt.cpp | |
parent | dd9ae27be2d1b983638337f24685e6458360dfa3 (diff) | |
download | scintilla-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 'qt/ScintillaEditBase/PlatQt.cpp')
-rw-r--r-- | qt/ScintillaEditBase/PlatQt.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qt/ScintillaEditBase/PlatQt.cpp b/qt/ScintillaEditBase/PlatQt.cpp index ce6f0313b..6a26d47c4 100644 --- a/qt/ScintillaEditBase/PlatQt.cpp +++ b/qt/ScintillaEditBase/PlatQt.cpp @@ -612,6 +612,10 @@ void SurfaceImpl::SetBidiR2L(bool) { } +void SurfaceImpl::FlushDrawing() +{ +} + QPaintDevice *SurfaceImpl::GetPaintDevice() { return device; |