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 #include "chrome/browser/chromeos/login/camera.h" | 5 #include "chrome/browser/chromeos/login/camera.h" |
6 | 6 |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 #include <fcntl.h> // low-level i/o | 8 #include <fcntl.h> // low-level i/o |
9 #include <unistd.h> | 9 #include <unistd.h> |
10 #include <errno.h> | 10 #include <errno.h> |
11 #include <sys/stat.h> | 11 #include <sys/stat.h> |
12 #include <sys/types.h> | 12 #include <sys/types.h> |
13 #include <sys/time.h> | 13 #include <sys/time.h> |
14 #include <sys/mman.h> | 14 #include <sys/mman.h> |
15 #include <sys/ioctl.h> | 15 #include <sys/ioctl.h> |
16 #include <asm/types.h> // for videodev2.h | 16 #include <asm/types.h> // for videodev2.h |
17 #include <linux/videodev2.h> | 17 #include <linux/videodev2.h> |
18 | 18 |
19 #include <algorithm> | 19 #include <algorithm> |
20 #include <vector> | 20 #include <vector> |
21 | 21 |
22 #include "base/logging.h" | 22 #include "base/logging.h" |
23 #include "base/string_util.h" | 23 #include "base/string_util.h" |
24 #include "base/stringprintf.h" | 24 #include "base/stringprintf.h" |
25 #include "base/thread.h" | 25 #include "base/threading/thread.h" |
26 #include "base/time.h" | 26 #include "base/time.h" |
27 #include "chrome/browser/browser_thread.h" | 27 #include "chrome/browser/browser_thread.h" |
28 #include "gfx/size.h" | 28 #include "gfx/size.h" |
29 #include "skia/ext/image_operations.h" | 29 #include "skia/ext/image_operations.h" |
30 #include "third_party/skia/include/core/SkBitmap.h" | 30 #include "third_party/skia/include/core/SkBitmap.h" |
31 #include "third_party/skia/include/core/SkColorPriv.h" | 31 #include "third_party/skia/include/core/SkColorPriv.h" |
32 | 32 |
33 namespace chromeos { | 33 namespace chromeos { |
34 | 34 |
35 namespace { | 35 namespace { |
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
580 void Camera::PostCameraTask(const tracked_objects::Location& from_here, | 580 void Camera::PostCameraTask(const tracked_objects::Location& from_here, |
581 Task* task) { | 581 Task* task) { |
582 AutoLock lock(thread_lock_); | 582 AutoLock lock(thread_lock_); |
583 if (!thread_) | 583 if (!thread_) |
584 return; | 584 return; |
585 DCHECK(thread_->IsRunning()); | 585 DCHECK(thread_->IsRunning()); |
586 thread_->message_loop()->PostTask(from_here, task); | 586 thread_->message_loop()->PostTask(from_here, task); |
587 } | 587 } |
588 | 588 |
589 } // namespace chromeos | 589 } // namespace chromeos |
OLD | NEW |