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

@@ -44,7 +44,7 @@ namespace dawn_native { namespace opengl {
TextureBase::TextureState::OwnedExternal);
}
MaybeError SwapChain::OnBeforePresent(TextureBase*) {
MaybeError SwapChain::OnBeforePresent(TextureViewBase*) {
return {};
}

View File

@@ -30,7 +30,7 @@ namespace dawn_native { namespace opengl {
protected:
~SwapChain() override;
TextureBase* GetNextTextureImpl(const TextureDescriptor* descriptor) override;
MaybeError OnBeforePresent(TextureBase* texture) override;
MaybeError OnBeforePresent(TextureViewBase* view) override;
};
}} // namespace dawn_native::opengl