• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2018 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "base/android/android_image_reader_compat.h"
6 
7 namespace base {
8 namespace android {
9 
EnableAndroidImageReader()10 bool EnableAndroidImageReader() {
11   // Currently we want to enable AImageReader only for android P+ devices.
12   if (__builtin_available(android 28, *)) {
13     return true;
14   }
15   return false;
16 }
17 
18 }  // namespace android
19 }  // namespace base
20