| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_CAMERA_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_CAMERA_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_CAMERA_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_CAMERA_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/lock.h" | |
| 13 #include "base/ref_counted.h" | 12 #include "base/ref_counted.h" |
| 13 #include "base/synchronization/lock.h" |
| 14 #include "base/threading/thread.h" | 14 #include "base/threading/thread.h" |
| 15 #include "third_party/skia/include/core/SkBitmap.h" | 15 #include "third_party/skia/include/core/SkBitmap.h" |
| 16 | 16 |
| 17 class Task; | 17 class Task; |
| 18 namespace base { | 18 namespace base { |
| 19 class Thread; | 19 class Thread; |
| 20 } // namespace base | 20 } // namespace base |
| 21 | 21 |
| 22 namespace chromeos { | 22 namespace chromeos { |
| 23 | 23 |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 int frame_height_; | 174 int frame_height_; |
| 175 | 175 |
| 176 // If set to true, the returned image will be reflected from the Y axis to | 176 // If set to true, the returned image will be reflected from the Y axis to |
| 177 // mimic mirror behavior. | 177 // mimic mirror behavior. |
| 178 bool mirrored_; | 178 bool mirrored_; |
| 179 | 179 |
| 180 // Image where camera frames are stored for UI thread to pick up. | 180 // Image where camera frames are stored for UI thread to pick up. |
| 181 SkBitmap frame_image_; | 181 SkBitmap frame_image_; |
| 182 | 182 |
| 183 // Lock that guards references to |frame_image_|. | 183 // Lock that guards references to |frame_image_|. |
| 184 mutable Lock image_lock_; | 184 mutable base::Lock image_lock_; |
| 185 | 185 |
| 186 // Lock that guards references to |camera_thread_|. | 186 // Lock that guards references to |camera_thread_|. |
| 187 mutable Lock thread_lock_; | 187 mutable base::Lock thread_lock_; |
| 188 | 188 |
| 189 DISALLOW_COPY_AND_ASSIGN(Camera); | 189 DISALLOW_COPY_AND_ASSIGN(Camera); |
| 190 }; | 190 }; |
| 191 | 191 |
| 192 } // namespace chromeos | 192 } // namespace chromeos |
| 193 | 193 |
| 194 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_CAMERA_H_ | 194 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_CAMERA_H_ |
| OLD | NEW |