text: use udmabuf for text upload
This commit is contained in:
parent
5758e16658
commit
c008b7ea35
12 changed files with 301 additions and 80 deletions
|
|
@ -111,8 +111,7 @@ impl PlaceholderNode {
|
|||
let rect = self.toplevel.pos.get();
|
||||
let mut textures = self.textures.borrow_mut();
|
||||
for (scale, _) in scales.iter() {
|
||||
let tex = textures
|
||||
.get_or_insert_with(*scale, || TextTexture::new(&self.state.cpu_worker, &ctx));
|
||||
let tex = textures.get_or_insert_with(*scale, || TextTexture::new(&self.state, &ctx));
|
||||
let mut width = rect.width();
|
||||
let mut height = rect.height();
|
||||
if *scale != 1 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue