am 4ceff3d5
: screenshot layers wouldn\'t work in some cases
* commit '4ceff3d5efd27c164788bb2b3f0fd17c691a0204': screenshot layers wouldn't work in some cases
This commit is contained in:
commit
0a289c9cc8
@ -991,6 +991,8 @@ Region Layer::latchBuffer(bool& recomputeVisibleRegions)
|
|||||||
if (front.active.w != bufWidth ||
|
if (front.active.w != bufWidth ||
|
||||||
front.active.h != bufHeight) {
|
front.active.h != bufHeight) {
|
||||||
// reject this buffer
|
// reject this buffer
|
||||||
|
//ALOGD("rejecting buffer: bufWidth=%d, bufHeight=%d, front.active.{w=%d, h=%d}",
|
||||||
|
// bufWidth, bufHeight, front.active.w, front.active.h);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2769,6 +2769,7 @@ status_t SurfaceFlinger::captureScreenImplLocked(
|
|||||||
|
|
||||||
int err = 0;
|
int err = 0;
|
||||||
err = native_window_set_buffers_dimensions(window, reqWidth, reqHeight);
|
err = native_window_set_buffers_dimensions(window, reqWidth, reqHeight);
|
||||||
|
err |= native_window_set_scaling_mode(window, NATIVE_WINDOW_SCALING_MODE_SCALE_TO_WINDOW);
|
||||||
err |= native_window_set_buffers_format(window, HAL_PIXEL_FORMAT_RGBA_8888);
|
err |= native_window_set_buffers_format(window, HAL_PIXEL_FORMAT_RGBA_8888);
|
||||||
err |= native_window_set_usage(window, usage);
|
err |= native_window_set_usage(window, usage);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user