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

Commit 64f51e3

Browse files
committed
Added support to set scissor.
1 parent 7cb9531 commit 64f51e3

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

lib/gpu/lib/src/render_pass.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ base class RenderPass extends NativeFieldWrapperClass1 {
490490
int readMask,
491491
int writeMask,
492492
int target_face);
493-
493+
494494
@Native<Void Function(Pointer<Void>, Int, Int, Int, Int)>(
495495
symbol: 'InternalFlutterGpu_RenderPass_SetScissor')
496496
external void _setScissor(

lib/gpu/render_pass.cc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,8 +537,11 @@ void InternalFlutterGpu_RenderPass_SetStencilReference(
537537
wrapper->stencil_reference = static_cast<uint32_t>(stencil_reference);
538538
}
539539

540-
void InternalFlutterGpu_RenderPass_SetScissor(
541-
flutter::gpu::RenderPass* wrapper, int x, int y, int width, int height) {
540+
void InternalFlutterGpu_RenderPass_SetScissor(flutter::gpu::RenderPass* wrapper,
541+
int x,
542+
int y,
543+
int width,
544+
int height) {
542545
wrapper->scissor = impeller::TRect<int64_t>::MakeXYWH(x, y, width, height);
543546
}
544547

0 commit comments

Comments
 (0)