Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 715b515

Browse files
committed
bdero feedback
1 parent f791d04 commit 715b515

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

shell/platform/darwin/ios/ios_surface_metal_impeller.mm

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include "flutter/shell/gpu/gpu_surface_metal_impeller.h"
1010

1111
namespace {
12-
impeller::PixelFormat InferContextPixelFormat(impeller::PixelFormat pixel_format) {
12+
impeller::PixelFormat InferOffscreenLayerPixelFormat(impeller::PixelFormat pixel_format) {
1313
switch (pixel_format) {
1414
case impeller::PixelFormat::kB10G10R10XR:
1515
return impeller::PixelFormat::kB10G10R10A10XR;
@@ -106,7 +106,8 @@ PixelFormat GetColorAttachmentPixelFormat() const override {
106106
// |IOSSurface|
107107
std::unique_ptr<Surface> IOSSurfaceMetalImpeller::CreateGPUSurface(GrDirectContext*) {
108108
auto context = std::make_shared<CustomColorAttachmentPixelFormatContext>(
109-
impeller_context_, InferContextPixelFormat(FromMTLPixelFormat(layer_.get().pixelFormat)));
109+
impeller_context_,
110+
InferOffscreenLayerPixelFormat(FromMTLPixelFormat(layer_.get().pixelFormat)));
110111
return std::make_unique<GPUSurfaceMetalImpeller>(this, //
111112
context //
112113
);

0 commit comments

Comments
 (0)