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
  • BlobCache.cpp
Find file
BlameHistoryPermalink
  • Shahbaz Youssefi's avatar
    Make BlobCache use independent from ANGLE_program_cache_control · 37d2e606
    Shahbaz Youssefi authored Jan 10, 2019
    The decision to enable caching or not was based on the size of the cache
    as directed by eglProgramCacheResizeANGLE, which is incorrect for
    applications that only use the ANDROID_blob_cache extension.
    
    The new behavior is as follows:
    
    - If EGL_CONTEXT_PROGRAM_BINARY_CACHE_ENABLED_ANGLE is specifically
      requested and set to true, but the size of the cache is 0, caching is
      disabled for the context.
    - If EGL_CONTEXT_PROGRAM_BINARY_CACHE_ENABLED_ANGLE is specifically
      requested and set to false, caching is disabled for the context.
    - Otherwise, caching is left enabled for the context, although the cache
      possibly has a size of zero, which effectively disables it.  During
      application execution, if the blob cache callbacks are set, the
      application cache will be used.
    
    Bug: 896406, angleproject:2516
    Change-Id: Ic0cabda03fb6bf53994e86e3ede30afc8021d67e
    Reviewed-on: https://chromium-review.googlesource.com/c/1405708
    Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
    Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
    37d2e606
BlobCache.cpp 4.95 KB
EditWeb IDE
×

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