Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
A
angle
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • angle
  • Repository

Switch branch/tag
  • angle
  • src
  • libANGLE
  • Framebuffer.cpp
Find file
BlameHistoryPermalink
  • Sunny Sachanandani's avatar
    Merge surface texture offset changes to M84 · d188231d
    Sunny Sachanandani authored May 06, 2020
    This includes two CLs, cherry picked and squashed together:
    
    Add texture offset attributess for D3D texture pbuffer surfaces
    
    Add EGL_TEXTURE_OFFSET_X_ANGLE and EGL_TEXTURE_OFFSET_Y_ANGLE attributes
    to EGL_ANGLE_d3d_texture_client_buffer which are used to specify offsets
    used for rendering into the pbuffer surface backed by a D3D11 texture.
    Rendering with the correct offset is needed when Chrome gets a texture
    and offset from an external source e.g. when calling BeginDraw() on
    IDCompositionSurface.
    
    Bug: angleproject:2997
    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2186176Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
    Reviewed-by: 's avatarJonah Ryan-Davis <jonahr@google.com>
    Commit-Queue: Sunny Sachanandani <sunnyps@chromium.org>
    (cherry picked from commit 4b225c70)
    
    Use surface texture offset for clears and blits
    
    https://chromium-review.googlesource.com/c/angle/angle/+/2186176 added
    surface texture offset attributes for D3D11 pbuffer surfaces, but the
    implementation didn't apply the offset to blits or clears. This CL fixes
    that and includes a unit test for blit, clear, and draw.
    
    Also renames textureOffset to surfaceTextureOffset throughout since it's
    clearer, and fixes the dcomp surface test to specify the update offset
    returned by dcomp BeginDraw().
    
    Bug: angleproject:2997
    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2210967
    Commit-Queue: Sunny Sachanandani <sunnyps@chromium.org>
    Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
    (cherry picked from commit 3d5f0c82)
    Change-Id: If850aadedf1edaacea63113c8b6b474c156e9fa6
    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2237352Reviewed-by: 's avatarSunny Sachanandani <sunnyps@chromium.org>
    d188231d
Framebuffer.cpp 83.1 KB
EditWeb IDE
×

Replace Framebuffer.cpp

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.