equal
deleted
inserted
replaced
203 // and let the surface point to it. Here, we use surface_create instead. |
203 // and let the surface point to it. Here, we use surface_create instead. |
204 |
204 |
205 int ret = gf_surface_create(&d->memSurface, d->device, w, h, |
205 int ret = gf_surface_create(&d->memSurface, d->device, w, h, |
206 GF_FORMAT_ARGB8888, 0, |
206 GF_FORMAT_ARGB8888, 0, |
207 GF_SURFACE_CREATE_CPU_FAST_ACCESS | GF_SURFACE_CREATE_CPU_LINEAR_ACCESSIBLE |
207 GF_SURFACE_CREATE_CPU_FAST_ACCESS | GF_SURFACE_CREATE_CPU_LINEAR_ACCESSIBLE |
208 | GF_SURFACE_PHYS_CONTIG); |
208 | GF_SURFACE_PHYS_CONTIG | GF_SURFACE_CREATE_SHAREABLE); |
209 if (ret != GF_ERR_OK) { |
209 if (ret != GF_ERR_OK) { |
210 qWarning("QQnxScreen: gf_surface_create(%dx%d) failed with error code %d", |
210 qWarning("QQnxScreen: gf_surface_create(%dx%d) failed with error code %d", |
211 w, h, ret); |
211 w, h, ret); |
212 return false; |
212 return false; |
213 } |
213 } |