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
  • libGLESv2
  • global_state.cpp
Find file
BlameHistoryPermalink
  • Mohan Maiya's avatar
    Optimize thread specific storage and retrieval with native ASM · 33c28e35
    Mohan Maiya authored Jun 12, 2020
    Android reserves specific TLS slots to store thread specific
    values. Given that the Context object gets queried on every
    call we leverage Android's ASM code to improve the speed of
    this operation.
    
    TLS_SLOT_OPENGL is an unused slot in Android and using that
    in combination with the ASM code,rather than using the
    pthread API, allows angle to store and retrieve thread specific
    context object much more efficiently.
    
    Bug: angleproject:4717
    Change-Id: I27a117fe82e62407e01c8c372918b866aaea9ee5
    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2231883
    Commit-Queue: Mohan Maiya <m.maiya@samsung.com>
    Reviewed-by: 's avatarCourtney Goeltzenleuchter <courtneygo@google.com>
    Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    33c28e35
global_state.cpp 7.3 KB
EditWeb IDE
×

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