Commit 3806be3ddb8766860e267b9183997c456b226089
- Diff rendering mode:
- inline
- side by side
src/egl/drivers/android/droid_intel.c
(0 / 4)
|   | |||
| 280 | 280 | NativeWindowType win) | |
| 281 | 281 | { | |
| 282 | 282 | struct droid_surface_intel *isurf; | |
| 283 | uint32_t pitch, cpp; | ||
| 284 | 283 | ||
| 285 | 284 | if (!win) { | |
| 286 | 285 | LOGE("invalid native window"); | |
| … | … | ||
| 293 | 293 | _eglError(EGL_BAD_NATIVE_WINDOW, "eglCreateWindowSurface"); | |
| 294 | 294 | return NULL; | |
| 295 | 295 | } | |
| 296 | |||
| 297 | cpp = ui_bytes_per_pixel(win->format); | ||
| 298 | pitch = win->stride * cpp; | ||
| 299 | 296 | ||
| 300 | 297 | isurf = calloc(1, sizeof(*isurf)); | |
| 301 | 298 | if (!isurf) { |
Comments
Add a new comment:
Login or create an account to post a comment
Add your comment
Please log in to comment

