Lines Matching refs:previousState
112 GrBackendSurfaceMutableState previousState; in DEF_GPUTEST_FOR_VULKAN_CONTEXT() local
114 dContext->setBackendTextureState(backendTex, newState, &previousState); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
120 REPORTER_ASSERT(reporter, previousState.isValid()); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
121 REPORTER_ASSERT(reporter, previousState.backend() == GrBackendApi::kVulkan); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
122 REPORTER_ASSERT(reporter, previousState.getVkImageLayout() == initLayout); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
123 REPORTER_ASSERT(reporter, previousState.getQueueFamilyIndex() == initQueue); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
127 dContext->setBackendTextureState(backendTex, noopState, &previousState); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
132 REPORTER_ASSERT(reporter, previousState.isValid()); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
133 REPORTER_ASSERT(reporter, previousState.backend() == GrBackendApi::kVulkan); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
135 previousState.getVkImageLayout() == VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
136 REPORTER_ASSERT(reporter, previousState.getQueueFamilyIndex() == gpu->queueIndex()); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
144 dContext->setBackendTextureState(backendTex, externalState, &previousState); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
150 REPORTER_ASSERT(reporter, previousState.isValid()); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
151 REPORTER_ASSERT(reporter, previousState.backend() == GrBackendApi::kVulkan); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
153 previousState.getVkImageLayout() == VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
154 REPORTER_ASSERT(reporter, previousState.getQueueFamilyIndex() == gpu->queueIndex()); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
161 dContext->setBackendTextureState(backendTex, externalState2, &previousState); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
167 REPORTER_ASSERT(reporter, previousState.isValid()); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
168 REPORTER_ASSERT(reporter, previousState.backend() == GrBackendApi::kVulkan); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
169 REPORTER_ASSERT(reporter, previousState.getVkImageLayout() == VK_IMAGE_LAYOUT_GENERAL); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
170 REPORTER_ASSERT(reporter, previousState.getQueueFamilyIndex() == VK_QUEUE_FAMILY_EXTERNAL); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()