Lines Matching defs:buffer
74 static inline SkImageInfo convertPixelFormat(const ANativeWindow_Buffer& buffer) {
77 switch (buffer.format) {
97 return SkImageInfo::Make(buffer.width, buffer.height, colorType, alphaType,
144 ANativeWindow_Buffer buffer;
157 int32_t status = native_window_lock(window.get(), &buffer, &rect);
160 ssize_t bytesCount = buffer.stride * bytesPerPixel(buffer.format);
163 bitmap.setInfo(convertPixelFormat(buffer), bytesCount);
165 if (buffer.width > 0 && buffer.height > 0) {
166 bitmap.setPixels(buffer.bits);