Backdoor to get the number of texture lazy clears for testing

Bug: dawn:145
Change-Id: Ie01b21ce490832c459e74c76a7b8d9f203552bfe
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/9400
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Natasha Lee <natlee@microsoft.com>
This commit is contained in:
Natasha Lee
2019-07-26 17:54:48 +00:00
committed by Commit Bot service account
parent 506ce9bba4
commit e69627f35e
9 changed files with 48 additions and 13 deletions

View File

@@ -115,4 +115,9 @@ namespace dawn_native {
return mImpl->IsBeginCaptureOnStartupEnabled();
}
size_t GetLazyClearCountForTesting(DawnDevice device) {
dawn_native::DeviceBase* deviceBase = reinterpret_cast<dawn_native::DeviceBase*>(device);
return deviceBase->GetLazyClearCountForTesting();
}
} // namespace dawn_native