Skip to content

Commit

Permalink
#800: add paint option to do everything (delta, decoding, csc, etc) b…
Browse files Browse the repository at this point in the history
…ut without actually updating the back buffer or the screen

git-svn-id: https://xpra.org/svn/Xpra/trunk@13027 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jul 16, 2016
1 parent b76dbf8 commit 3883fa2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/xpra/client/gl/gl_window_backing_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,9 @@ def do_paint_rgb(self, rgb_format, img_data, x, y, width, height, rowstride, opt
log("%s._do_paint_rgb(..) no context!", self)
fire_paint_callbacks(callbacks, False, "no opengl context")
return
if not options.get("paint", True):
fire_paint_callbacks(callbacks)
return

try:
upload, img_data = self.pixels_for_upload(img_data)
Expand Down
3 changes: 3 additions & 0 deletions src/xpra/client/window_backing_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,9 @@ def do_paint_rgb(self, rgb_format, img_data, x, y, width, height, rowstride, opt
the actual paint code is in _do_paint_rgb[24|32]
"""
try:
if not options.get("paint", True):
fire_paint_callbacks(callbacks)
return
if self._backing is None:
fire_paint_callbacks(callbacks, -1, "no backing")
return
Expand Down

0 comments on commit 3883fa2

Please sign in to comment.