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
  • Thread.cpp
Find file
BlameHistoryPermalink
  • Jamie Madill's avatar
    Context: Bind current display/surface. · 61e16b44
    Jamie Madill authored Jun 19, 2017
    Looking at the EGL spec, it says for eglGetCurrentDisplay:
    
    "The display for the current context in the calling thread, for the
    current rendering API, is returned."
    
    This implies that MakeCurrent binds a display to a Context. There's
    also pretty clear language for the read/draw Surface as well, that
    they can only be bound to one Context/thread at a time. Hence we
    don't need to duplicate this storage in the egl::Thread structure,
    merely storing a pointer to the current Context, which has access
    to the read/draw Surface and current Display.
    
    BUG=angleproject:1156
    
    Change-Id: Ia3b99d50b3591012c43e851834c1af02ff62a33f
    Reviewed-on: https://chromium-review.googlesource.com/538865Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org>
    Commit-Queue: Jamie Madill <jmadill@chromium.org>
    61e16b44
Thread.cpp 1.55 KB
EditWeb IDE
×

Replace Thread.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.