Revert "[Impeller] Load instead of restore drawing for non-MSAA passes" (#41060)
Revert "[Impeller] Load instead of restore drawing for non-MSAA passes"
diff --git a/impeller/entity/inline_pass_context.cc b/impeller/entity/inline_pass_context.cc
index 01aa642..a922376 100644
--- a/impeller/entity/inline_pass_context.cc
+++ b/impeller/entity/inline_pass_context.cc
@@ -100,10 +100,7 @@
RenderPassResult result;
- if (pass_count_ > 0 && pass_target_.GetRenderTarget()
- .GetColorAttachments()
- .find(0)
- ->second.resolve_texture) {
+ if (pass_count_ > 0) {
result.backdrop_texture =
pass_target_.Flip(*context_->GetResourceAllocator());
if (!result.backdrop_texture) {
@@ -114,12 +111,8 @@
auto color0 =
pass_target_.GetRenderTarget().GetColorAttachments().find(0)->second;
- if (pass_count_ > 0) {
- color0.load_action =
- color0.resolve_texture ? LoadAction::kDontCare : LoadAction::kLoad;
- } else {
- color0.load_action = LoadAction::kClear;
- }
+ color0.load_action =
+ pass_count_ > 0 ? LoadAction::kDontCare : LoadAction::kClear;
color0.store_action = color0.resolve_texture
? StoreAction::kMultisampleResolve
diff --git a/impeller/entity/inline_pass_context.h b/impeller/entity/inline_pass_context.h
index 00ce649..f35c1fc 100644
--- a/impeller/entity/inline_pass_context.h
+++ b/impeller/entity/inline_pass_context.h
@@ -15,7 +15,6 @@
public:
struct RenderPassResult {
std::shared_ptr<RenderPass> pass;
-
std::shared_ptr<Texture> backdrop_texture;
};