summaryrefslogtreecommitdiff
path: root/libs/ui/FramebufferNativeWindow.cpp
diff options
context:
space:
mode:
author Romain Guy <romainguy@android.com> 2009-05-11 11:56:30 -0700
committer Romain Guy <romainguy@android.com> 2009-05-11 14:03:52 -0700
commit24443ea3992e372e47daa50266b0f2ec38cac388 (patch)
tree4aaf21a24e198686cc0715cbdac62bfeb809d698 /libs/ui/FramebufferNativeWindow.cpp
parentc825d3ebd6ca66e65e63fdc76f032e08aa2a8e22 (diff)
Fixes #1596240. Optimize invalidate/draw passes by marking opaque views and avoiding drawing them. Whenever a View requests an invalidate its parent check whether the view is opaque or not. When the view is not opaque, the framework behaves as it used to. However, when a view is opaque, the parent marks itself as being dirty because of an opaque view. Its parent then does the same, and so on. When the framework then starts drawing the views, it does not draw views marked as dirty opaque. If a view is dirty opaque and receives an invalidate request from a non-opaque view, it then clears the dirty opaque flag and behaves as before.
Diffstat (limited to 'libs/ui/FramebufferNativeWindow.cpp')
0 files changed, 0 insertions, 0 deletions