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
  • common
  • PackedGLEnums_autogen.cpp
Find file
BlameHistoryPermalink
  • Jamie Madill's avatar
    Use flat enum for PrimitiveMode. · 752d220a
    Jamie Madill authored Nov 27, 2018
    The GLenum was already mostly packed. There were just a few missing
    values because of the exclusion of things like GL_QUADS and GL_POLYGON
    from GLES.
    
    Also update the PackedEnumMap initialization to take an intializer.
    The initializer is a list of key/values which is much more robust to
    changes in the packed map.
    
    Improves draw call speed slightly as there is no conversion needed any
    more for the mode enum.
    
    Bug: angleproject:2966
    Change-Id: Icae658272c6234f29335f6a57a63cf341cf5b2a0
    Reviewed-on: https://chromium-review.googlesource.com/c/1346529
    Commit-Queue: Jamie Madill <jmadill@chromium.org>
    Reviewed-by: 's avatarShahbaz Youssefi <syoussefi@chromium.org>
    752d220a
PackedGLEnums_autogen.cpp 34.2 KB
EditWeb IDE
×

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