summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/ReliableSurface.cpp
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2019-04-12 13:06:11 -0700
committerJohn Reck <jreck@google.com>2019-04-12 13:06:11 -0700
commit321d8e538dab448a61c6b510fe080e4b62c5644e (patch)
tree75858b03794b48b85c4b34f74dcd3b18f51a4c50 /libs/hwui/renderthread/ReliableSurface.cpp
parenta39c85fc2b563e628a4fd197b4a8b0d0ba86ec43 (diff)
Fix set_buffers_damage in VulkanSurface
Fixes: 130363483 Test: `setprop debug.hwui.renderer skiavk` and ensure surface damage in dumpsys surfaceflinger is expected in portrait & landscape orientations. Change-Id: I973c47038e534c86f38112de7b863477d982d150
Diffstat (limited to 'libs/hwui/renderthread/ReliableSurface.cpp')
-rw-r--r--libs/hwui/renderthread/ReliableSurface.cpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/libs/hwui/renderthread/ReliableSurface.cpp b/libs/hwui/renderthread/ReliableSurface.cpp
index 6f2b9df918e3..6cbca33b1b07 100644
--- a/libs/hwui/renderthread/ReliableSurface.cpp
+++ b/libs/hwui/renderthread/ReliableSurface.cpp
@@ -300,17 +300,9 @@ int ReliableSurface::hook_perform(ANativeWindow* window, int operation, ...) {
int result = callProtected(getWrapped(window), perform, operation, args);
va_end(args);
- switch (operation) {
- case NATIVE_WINDOW_SET_BUFFERS_FORMAT:
- case NATIVE_WINDOW_SET_USAGE:
- case NATIVE_WINDOW_SET_USAGE64:
- va_start(args, operation);
- getSelf(window)->perform(operation, args);
- va_end(args);
- break;
- default:
- break;
- }
+ va_start(args, operation);
+ getSelf(window)->perform(operation, args);
+ va_end(args);
return result;
}