Lines Matching refs:windowInfo
86 void VulkanSurface::ComputeWindowSizeAndTransform(WindowInfo* windowInfo, const SkISize& minSize, in ComputeWindowSizeAndTransform() argument
88 SkISize& windowSize = windowInfo->size; in ComputeWindowSizeAndTransform()
100 windowInfo->actualSize = windowSize; in ComputeWindowSizeAndTransform()
101 if (windowInfo->transform & HAL_TRANSFORM_ROT_90) { in ComputeWindowSizeAndTransform()
102 windowInfo->actualSize.set(windowSize.height(), windowSize.width()); in ComputeWindowSizeAndTransform()
105 windowInfo->preTransform = GetPreTransformMatrix(windowInfo->size, windowInfo->transform); in ComputeWindowSizeAndTransform()
212 WindowInfo windowInfo; in Create() local
214 windowInfo.transform = ConvertVkTransformToNative(caps.supportedTransforms); in Create()
215 windowInfo.size = SkISize::Make(caps.currentExtent.width, caps.currentExtent.height); in Create()
219 ComputeWindowSizeAndTransform(&windowInfo, minSize, maxSize); in Create()
229 windowInfo.bufferCount = min_undequeued_buffers + in Create()
231 if (caps.maxImageCount > 0 && windowInfo.bufferCount > caps.maxImageCount) { in Create()
233 windowInfo.bufferCount = caps.maxImageCount; in Create()
243 windowInfo.dataspace = HAL_DATASPACE_V0_SRGB; in Create()
249 windowInfo.dataspace = HAL_DATASPACE_V0_SCRGB; in Create()
251 windowInfo.dataspace = HAL_DATASPACE_DISPLAY_P3; in Create()
257 windowInfo.pixelFormat = ColorTypeToPixelFormat(colorType); in Create()
259 if (windowInfo.pixelFormat == PIXEL_FORMAT_RGBA_FP16) { in Create()
298 windowInfo.windowUsageFlags = consumerUsage | hwbUsage.androidHardwareBufferUsage; in Create()
303 if (!UpdateWindow(window, windowInfo)) { in Create()
307 return new VulkanSurface(window, windowInfo, minSize, maxSize, grContext); in Create()
310 bool VulkanSurface::UpdateWindow(ANativeWindow* window, const WindowInfo& windowInfo) { in UpdateWindow() argument
318 int err = native_window_set_buffers_format(window, windowInfo.pixelFormat); in UpdateWindow()
321 windowInfo.pixelFormat, strerror(-err), err); in UpdateWindow()
325 err = native_window_set_buffers_data_space(window, windowInfo.dataspace); in UpdateWindow()
329 windowInfo.dataspace, strerror(-err), err); in UpdateWindow()
333 const SkISize& size = windowInfo.actualSize; in UpdateWindow()
348 err = native_window_set_buffers_transform(window, InvertTransform(windowInfo.transform)); in UpdateWindow()
352 windowInfo.transform, strerror(-err), err); in UpdateWindow()
366 err = native_window_set_buffer_count(window, windowInfo.bufferCount); in UpdateWindow()
369 windowInfo.bufferCount, strerror(-err), err); in UpdateWindow()
373 err = native_window_set_usage(window, windowInfo.windowUsageFlags); in UpdateWindow()
383 VulkanSurface::VulkanSurface(ANativeWindow* window, const WindowInfo& windowInfo, in VulkanSurface() argument
386 , mWindowInfo(windowInfo) in VulkanSurface()