Bug 798448 - Stop GonkNativeWindow::perform returning an error when the transform is set r=kanru

This commit is contained in:
Edwin Flores 2012-11-08 17:24:02 +13:00
parent c9abceda4c
commit e5807d5033

View File

@ -445,6 +445,7 @@ int GonkNativeWindow::cancelBuffer(ANativeWindowBuffer* buffer)
int GonkNativeWindow::perform(int operation, va_list args)
{
switch (operation) {
case NATIVE_WINDOW_SET_BUFFERS_TRANSFORM:
case NATIVE_WINDOW_SET_BUFFERS_SIZE:
case NATIVE_WINDOW_SET_SCALING_MODE:
case NATIVE_WINDOW_SET_CROP:
@ -464,12 +465,12 @@ int GonkNativeWindow::perform(int operation, va_list args)
return dispatchSetBuffersDimensions(args);
case NATIVE_WINDOW_SET_BUFFERS_FORMAT:
return dispatchSetBuffersFormat(args);
case NATIVE_WINDOW_SET_BUFFERS_TRANSFORM:
case NATIVE_WINDOW_LOCK:
case NATIVE_WINDOW_UNLOCK_AND_POST:
case NATIVE_WINDOW_API_CONNECT:
case NATIVE_WINDOW_API_DISCONNECT:
default:
NS_WARNING("Unsupported operation");
return INVALID_OPERATION;
}
}