Fix viewport origin of webrender frame (#30088)

* Fix viewport origin of webrender frame

* Update documentations
This commit is contained in:
Ngo Iok Ui (Wu Yu Wei) 2023-08-10 22:01:21 +08:00 committed by GitHub
parent c264993da8
commit 1f7f4cf2be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 1 deletions

View file

@ -381,6 +381,11 @@ where
let wr_document_layer = 0; //TODO
let webrender_document =
webrender_api.add_document(coordinates.framebuffer, wr_document_layer);
webrender_api.set_document_view(
webrender_document,
coordinates.get_viewport(),
coordinates.hidpi_factor.get(),
);
// Important that this call is done in a single-threaded fashion, we
// can't defer it after `create_constellation` has started.