Loading libs/gui/SurfaceTextureClient.cpp +3 −0 Original line number Diff line number Diff line Loading @@ -55,6 +55,9 @@ void SurfaceTextureClient::init() { mQueryWidth = 0; mQueryHeight = 0; mQueryFormat = 0; mDefaultWidth = 0; mDefaultHeight = 0; mTransformHint = 0; mConnectedToCpu = false; } Loading libs/ui/FramebufferNativeWindow.cpp +7 −21 Original line number Diff line number Diff line Loading @@ -310,35 +310,21 @@ int FramebufferNativeWindow::perform(ANativeWindow* window, int operation, ...) { switch (operation) { case NATIVE_WINDOW_SET_USAGE: // TODO: we should implement this return NO_ERROR; case NATIVE_WINDOW_CONNECT: // TODO: we should implement this return NO_ERROR; case NATIVE_WINDOW_DISCONNECT: // TODO: we should implement this case NATIVE_WINDOW_SET_USAGE: case NATIVE_WINDOW_SET_BUFFERS_GEOMETRY: case NATIVE_WINDOW_SET_BUFFERS_DIMENSIONS: case NATIVE_WINDOW_SET_BUFFERS_FORMAT: case NATIVE_WINDOW_SET_BUFFERS_TRANSFORM: // TODO: we should implement these return NO_ERROR; case NATIVE_WINDOW_LOCK: return INVALID_OPERATION; case NATIVE_WINDOW_UNLOCK_AND_POST: return INVALID_OPERATION; case NATIVE_WINDOW_SET_CROP: return INVALID_OPERATION; case NATIVE_WINDOW_SET_BUFFER_COUNT: // TODO: we should implement this return INVALID_OPERATION; case NATIVE_WINDOW_SET_BUFFERS_GEOMETRY: return INVALID_OPERATION; case NATIVE_WINDOW_SET_BUFFERS_TRANSFORM: return INVALID_OPERATION; case NATIVE_WINDOW_SET_BUFFERS_TIMESTAMP: return INVALID_OPERATION; case NATIVE_WINDOW_SET_BUFFERS_DIMENSIONS: return INVALID_OPERATION; case NATIVE_WINDOW_SET_BUFFERS_FORMAT: // TODO: we should implement this return NO_ERROR; case NATIVE_WINDOW_SET_SCALING_MODE: return INVALID_OPERATION; } Loading services/surfaceflinger/SurfaceTextureLayer.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -60,6 +60,10 @@ status_t SurfaceTextureLayer::queueBuffer(int buf, int64_t timestamp, sp<Layer> layer(mLayer.promote()); if (layer != NULL) { uint32_t orientation = layer->getOrientation(); if (orientation & Transform::ROT_INVALID) { orientation = 0; } *outTransform = layer->getOrientation(); } Loading Loading
libs/gui/SurfaceTextureClient.cpp +3 −0 Original line number Diff line number Diff line Loading @@ -55,6 +55,9 @@ void SurfaceTextureClient::init() { mQueryWidth = 0; mQueryHeight = 0; mQueryFormat = 0; mDefaultWidth = 0; mDefaultHeight = 0; mTransformHint = 0; mConnectedToCpu = false; } Loading
libs/ui/FramebufferNativeWindow.cpp +7 −21 Original line number Diff line number Diff line Loading @@ -310,35 +310,21 @@ int FramebufferNativeWindow::perform(ANativeWindow* window, int operation, ...) { switch (operation) { case NATIVE_WINDOW_SET_USAGE: // TODO: we should implement this return NO_ERROR; case NATIVE_WINDOW_CONNECT: // TODO: we should implement this return NO_ERROR; case NATIVE_WINDOW_DISCONNECT: // TODO: we should implement this case NATIVE_WINDOW_SET_USAGE: case NATIVE_WINDOW_SET_BUFFERS_GEOMETRY: case NATIVE_WINDOW_SET_BUFFERS_DIMENSIONS: case NATIVE_WINDOW_SET_BUFFERS_FORMAT: case NATIVE_WINDOW_SET_BUFFERS_TRANSFORM: // TODO: we should implement these return NO_ERROR; case NATIVE_WINDOW_LOCK: return INVALID_OPERATION; case NATIVE_WINDOW_UNLOCK_AND_POST: return INVALID_OPERATION; case NATIVE_WINDOW_SET_CROP: return INVALID_OPERATION; case NATIVE_WINDOW_SET_BUFFER_COUNT: // TODO: we should implement this return INVALID_OPERATION; case NATIVE_WINDOW_SET_BUFFERS_GEOMETRY: return INVALID_OPERATION; case NATIVE_WINDOW_SET_BUFFERS_TRANSFORM: return INVALID_OPERATION; case NATIVE_WINDOW_SET_BUFFERS_TIMESTAMP: return INVALID_OPERATION; case NATIVE_WINDOW_SET_BUFFERS_DIMENSIONS: return INVALID_OPERATION; case NATIVE_WINDOW_SET_BUFFERS_FORMAT: // TODO: we should implement this return NO_ERROR; case NATIVE_WINDOW_SET_SCALING_MODE: return INVALID_OPERATION; } Loading
services/surfaceflinger/SurfaceTextureLayer.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -60,6 +60,10 @@ status_t SurfaceTextureLayer::queueBuffer(int buf, int64_t timestamp, sp<Layer> layer(mLayer.promote()); if (layer != NULL) { uint32_t orientation = layer->getOrientation(); if (orientation & Transform::ROT_INVALID) { orientation = 0; } *outTransform = layer->getOrientation(); } Loading