Skip to content

Conversation

@shai-almog
Copy link
Collaborator

Summary

  • add a graphics pipeline screenshot test covering primitives, gradients, alpha, clipping, and affine transforms
  • include the new test in the device runner suite for automated screenshots

Testing

  • Not run (not requested)

Codex Task

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +118 to +122
}

g.setColor(0xf8fafc);
g.drawString("translate + affine", -58, 4);
g.translate(-cx, -cy);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve translation when undoing transform center

When isAffineSupported() is true (e.g., Android and JavaSE ports), resetAffine() clears the translate(cx, cy) applied earlier in drawTransforms, so the subsequent translate(-cx, -cy) leaves the graphics context shifted to a negative origin and the label in this block is drawn at negative coordinates. That means the rest of the showcase (other quadrants) will render off-canvas whenever affine transforms are enabled, defeating the screenshot’s intent.

Useful? React with 👍 / 👎.

@shai-almog
Copy link
Collaborator Author

shai-almog commented Nov 19, 2025

Compared 2 screenshots: 2 matched.

Native Android coverage

  • 📊 Line coverage: 12.33% (1327/10763 lines covered) [HTML preview] (artifact android-coverage-report, jacocoAndroidReport/html/index.html)
    • Other counters: instruction 10.72% (5440/50756), branch 7.96% (375/4714), complexity 8.51% (363/4267), method 16.99% (310/1825), class 19.41% (59/304)
    • Lowest covered classes
      • com.codename1.impl.android.com.codename1.impl.android.AndroidContactsManager – 0.00% (0/398 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.AndroidImplementation$Video – 0.00% (0/168 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.IntentIntegrator – 0.00% (0/139 lines covered)
      • com.codename1.impl.android.util.com.codename1.impl.android.util.Base64 – 0.00% (0/117 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.CodenameOneInputConnection – 0.00% (0/109 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.AndroidImplementation$SocketImpl – 0.00% (0/77 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.AndroidTextureView – 0.00% (0/76 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.AndroidSurfaceView – 0.00% (0/73 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.LocalNotificationPublisher – 0.00% (0/65 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.FridaDetectionUtil – 0.00% (0/64 lines covered)

@github-actions
Copy link

github-actions bot commented Nov 19, 2025

✅ Continuous Quality Report

Test & Coverage

Static Analysis

Generated automatically by the PR CI workflow.

@shai-almog
Copy link
Collaborator Author

shai-almog commented Nov 19, 2025

iOS screenshot updates

Compared 8 screenshots: 2 matched, 6 missing references.

  • Graphics.getTranslateX__ — missing reference. Reference screenshot missing at /Users/runner/work/CodenameOne/CodenameOne/scripts/ios/screenshots/Graphics.getTranslateX__.png.

    Graphics.getTranslateX__
    Preview info: JPEG preview quality 10; JPEG preview quality 10; downscaled to 825x1789.
    Full-resolution PNG saved as Graphics.getTranslateX__.png in workflow artifacts.

  • GraphicsPipeline — missing reference. Reference screenshot missing at /Users/runner/work/CodenameOne/CodenameOne/scripts/ios/screenshots/GraphicsPipeline.png.

    GraphicsPipeline
    Preview info: Preview provided by instrumentation.
    Full-resolution PNG saved as GraphicsPipeline.png in workflow artifacts.

  • GraphicsShapesAndGradients — missing reference. Reference screenshot missing at /Users/runner/work/CodenameOne/CodenameOne/scripts/ios/screenshots/GraphicsShapesAndGradients.png.

    GraphicsShapesAndGradients
    Preview info: Preview provided by instrumentation.
    Full-resolution PNG saved as GraphicsShapesAndGradients.png in workflow artifacts.

  • GraphicsStateAndText — missing reference. Reference screenshot missing at /Users/runner/work/CodenameOne/CodenameOne/scripts/ios/screenshots/GraphicsStateAndText.png.

    GraphicsStateAndText
    Preview info: Preview provided by instrumentation.
    Full-resolution PNG saved as GraphicsStateAndText.png in workflow artifacts.

  • GraphicsTransformations — missing reference. Reference screenshot missing at /Users/runner/work/CodenameOne/CodenameOne/scripts/ios/screenshots/GraphicsTransformations.png.

    GraphicsTransformations
    Preview info: Preview provided by instrumentation.
    Full-resolution PNG saved as GraphicsTransformations.png in workflow artifacts.

  • MediaPlayback — missing reference. Reference screenshot missing at /Users/runner/work/CodenameOne/CodenameOne/scripts/ios/screenshots/MediaPlayback.png.

    MediaPlayback
    Preview info: Preview provided by instrumentation.
    Full-resolution PNG saved as MediaPlayback.png in workflow artifacts.

@shai-almog shai-almog merged commit de71c18 into master Nov 19, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants