Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • M mutter
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,012
    • Issues 1,012
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 138
    • Merge requests 138
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOME
  • mutter
  • Merge requests
  • !867

Use regions for Cogl clipping and culling

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Carlos Garnacho requested to merge wip/carlosg/clip-regions into master Oct 20, 2019
  • Overview 31
  • Commits 6
  • Pipelines 24
  • Changes 13

(NB: This MR relies on !692 (merged) and currently includes its commits here)

Going a little bit further with clip regions, these commits:

  • Implements a Cogl region-based clip method implemented through the stencil buffer. The coordinates are given in the "window" coordinate system, just like scissor clips.
  • Makes the ClutterStageCogl use this new clip method, instead of using the clip area bounding rect.
  • Pass the clip cairo_region_t on MetaCullable
  • Does some minor related cleanups

This all ensures we can just paint in the areas we are meant to paint, so actors painting sloppily (eg. MetaBackgroundActor when the uncovered area degenerates in too many rectangles; or window shadows) don't end up over-painting.

Edited Oct 22, 2019 by Carlos Garnacho
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: wip/carlosg/clip-regions