Optimize subresource tracking - use texture view

Bug: dawn:441

Change-Id: I5cdfc1d84b27eb0b127d34ee829ceedf15f1150c
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/22321
Commit-Queue: Yunchao He <yunchao.he@intel.com>
Reviewed-by: Austin Eng <enga@chromium.org>
This commit is contained in:
Yunchao He
2020-06-15 18:26:12 +00:00
committed by Commit Bot service account
parent ee7debf44d
commit 1c2a039e04
13 changed files with 25 additions and 23 deletions

View File

@@ -443,7 +443,7 @@ namespace dawn_native { namespace null {
return GetDevice()->CreateTexture(descriptor);
}
MaybeError OldSwapChain::OnBeforePresent(TextureBase*) {
MaybeError OldSwapChain::OnBeforePresent(TextureViewBase*) {
return {};
}

View File

@@ -268,7 +268,7 @@ namespace dawn_native { namespace null {
protected:
~OldSwapChain() override;
TextureBase* GetNextTextureImpl(const TextureDescriptor* descriptor) override;
MaybeError OnBeforePresent(TextureBase*) override;
MaybeError OnBeforePresent(TextureViewBase*) override;
};
class NativeSwapChainImpl {