<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>284279</bug_id>
          
          <creation_ts>2024-12-09 00:23:57 -0800</creation_ts>
          <short_desc>[TextureMapper] Avoid stencil use in clipping</short_desc>
          <delta_ts>2024-12-16 00:24:03 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WPE WebKit</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=283820</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=284250</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jani Hautakangas">jani</reporter>
          <assigned_to name="Jani Hautakangas">jani</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>fujii</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2080120</commentid>
    <comment_count>0</comment_count>
    <who name="Jani Hautakangas">jani</who>
    <bug_when>2024-12-09 00:23:57 -0800</bug_when>
    <thetext>Stencil usage can often be avoided by rendering only the relevant portions of a layer or texture. This can be achieved by carefully setting up texture coordinates and vertex positions to render only the desired section of the texture.

To implement this, shaders need to be updated, and new antialiasing logic must be introduced to allow for selective antialiased edges. It&apos;s essential to ensure that cutting edges are not antialiased, as this could affect the visual fidelity of the clipping.

This optimization will reduce stencil usage and significantly improve performance, particularly on low-end devices like the Raspberry Pi 3, where computational resources are limited.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>