Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
S
swiftshader
  • 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
  • swiftshader
  • Repository

Switch branch/tag
  • swiftshader
  • src
  • Common
  • DebugAndroid.hpp
Find file
BlameHistoryPermalink
  • Merck Hung's avatar
    Migrate to using <log/log.h> since Android O (API 27) · 720aec1c
    Merck Hung authored Sep 29, 2018
    Starting from Android O, <cutils/log.h> is planned to be deprecated in the
    future. The use of the original <cutils/log.h> is split into 2 header files.
    
    Per Treble team's (b/78370064) description, <log/log.h> is for native shared
    libs or executables, and <android/log.h> is for app JNI.
    
    So a conditional preprocessor is put in place to look at the
    ANDROID_PLATFORM_SDK_VERSION definition. If the value is less than 27, means
    it's Android N or older, and it ought to include <cutils/log.h>.
    
    Otherwise, it should be 27 (Android O) or any greater version, and it's
    supposed to include the new <log/log.h> file.
    
    If ANDROID_PLATFORM_SDK_VERSION is not definied, Andorid build system catches
    it and stops the building process with an error message.
    
    Bug: b/116855807
    Test: pi-dev(28), oc-mr1-dev(27), and nyc-mr2-dev(26) branches
    Test: aosp_arm-eng target
    Change-Id: I732803e900144bf291feeb2cba1d632301c4fa21
    Reviewed-on: https://swiftshader-review.googlesource.com/21130Tested-by: 's avatarMerck Hung <merckhung@google.com>
    Reviewed-by: 's avatarMerck Hung <merckhung@google.com>
    Reviewed-by: 's avatarAlistair Strachan <astrachan@google.com>
    Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
    720aec1c
DebugAndroid.hpp 3.42 KB
EditWeb IDE
×

Replace DebugAndroid.hpp

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.