From 472d16e9912dde0a18ff8346817d0306ffa48b29 Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Thu, 25 Jan 2024 16:14:04 -0800 Subject: [PATCH] Use clamp sampling mode in external texture. (flutter/engine#50063) This is a more reasonable default sampling mode. --- .../platform/android/surface_texture_external_texture.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/shell/platform/android/surface_texture_external_texture.cc b/engine/src/flutter/shell/platform/android/surface_texture_external_texture.cc index 330bc92fb0..f0bddae496 100644 --- a/engine/src/flutter/shell/platform/android/surface_texture_external_texture.cc +++ b/engine/src/flutter/shell/platform/android/surface_texture_external_texture.cc @@ -70,8 +70,8 @@ void SurfaceTextureExternalTexture::Paint(PaintContext& context, } if (!transform_.isIdentity()) { - DlImageColorSource source(dl_image_, DlTileMode::kRepeat, - DlTileMode::kRepeat, sampling, &transform_); + DlImageColorSource source(dl_image_, DlTileMode::kClamp, + DlTileMode::kClamp, sampling, &transform_); DlPaint paintWithShader; if (context.paint) {