OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "media/capture/video/android/photo_capabilities.h" | 5 #include "media/capture/video/android/photo_capabilities.h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "base/android/jni_array.h" | 8 #include "base/android/jni_array.h" |
9 #include "base/android/jni_string.h" | 9 #include "base/android/jni_string.h" |
10 #include "jni/PhotoCapabilities_jni.h" | 10 #include "jni/PhotoCapabilities_jni.h" |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 } | 112 } |
113 | 113 |
114 PhotoCapabilities::AndroidMeteringMode PhotoCapabilities::getWhiteBalanceMode() | 114 PhotoCapabilities::AndroidMeteringMode PhotoCapabilities::getWhiteBalanceMode() |
115 const { | 115 const { |
116 DCHECK(!object_.is_null()); | 116 DCHECK(!object_.is_null()); |
117 return static_cast<AndroidMeteringMode>( | 117 return static_cast<AndroidMeteringMode>( |
118 Java_PhotoCapabilities_getWhiteBalanceMode(AttachCurrentThread(), | 118 Java_PhotoCapabilities_getWhiteBalanceMode(AttachCurrentThread(), |
119 object_)); | 119 object_)); |
120 } | 120 } |
121 | 121 |
| 122 PhotoCapabilities::AndroidFillLightMode PhotoCapabilities::getFillLightMode() |
| 123 const { |
| 124 DCHECK(!object_.is_null()); |
| 125 return static_cast<AndroidFillLightMode>( |
| 126 Java_PhotoCapabilities_getFillLightMode(AttachCurrentThread(), object_)); |
| 127 } |
| 128 |
122 } // namespace media | 129 } // namespace media |
OLD | NEW |