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

Commit 1e5a29c

Browse files
committed
additional conversions in other platform sources
1 parent edc78e3 commit 1e5a29c

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

display_list/dl_canvas.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace flutter {
1111

1212
DlRect DlCanvas::ComputeShadowBounds(const DlPath& path,
1313
float elevation,
14-
SkScalar dpr,
14+
DlScalar dpr,
1515
const DlMatrix& ctm) {
1616
SkRect shadow_bounds(path.GetSkBounds());
1717
SkShadowUtils::GetLocalBounds(

shell/platform/android/surface_texture_external_texture.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ void SurfaceTextureExternalTexture::DrawFrame(
8484
transform = inverted;
8585

8686
if (transform.isIdentity()) {
87-
context.canvas->DrawImage(dl_image_, {0, 0}, sampling, context.paint);
87+
context.canvas->DrawImage(dl_image_, SkPoint{0, 0}, sampling,
88+
context.paint);
8889
return;
8990
}
9091

shell/platform/android/surface_texture_external_texture_vk_impeller.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ void SurfaceTextureExternalTextureVKImpeller::DrawFrame(
224224
PaintContext& context,
225225
const SkRect& bounds,
226226
const DlImageSampling sampling) const {
227-
context.canvas->DrawImage(dl_image_, {0, 0}, sampling, context.paint);
227+
context.canvas->DrawImage(dl_image_, SkPoint{0, 0}, sampling, context.paint);
228228
}
229229

230230
} // namespace flutter

shell/platform/embedder/embedder_external_texture_gl.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ void EmbedderExternalTextureGL::Paint(PaintContext& context,
5151
if (bounds != image_bounds) {
5252
canvas->DrawImageRect(last_image_, image_bounds, bounds, sampling, paint);
5353
} else {
54-
canvas->DrawImage(last_image_, {bounds.x(), bounds.y()}, sampling, paint);
54+
canvas->DrawImage(last_image_, SkPoint{bounds.x(), bounds.y()}, sampling,
55+
paint);
5556
}
5657
}
5758
}

shell/platform/fuchsia/flutter/canvas_spy_unittests.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ TEST(CanvasSpyTest, DrawingIsTracked) {
2424
ASSERT_FALSE(canvas_spy.DidDrawIntoCanvas());
2525

2626
DlPaint paint;
27-
spy->DrawCircle({0, 0}, 60, paint);
27+
spy->DrawCircle(SkPoint{0, 0}, 60, paint);
2828
ASSERT_TRUE(canvas_spy.DidDrawIntoCanvas());
2929
}
3030

0 commit comments

Comments
 (0)