OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "content/browser/media/capture/content_video_capture_device_core.h" | 5 #include "content/browser/media/capture/content_video_capture_device_core.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/callback_forward.h" | 9 #include "base/callback_forward.h" |
10 #include "base/callback_helpers.h" | 10 #include "base/callback_helpers.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "base/message_loop/message_loop_proxy.h" | 14 #include "base/message_loop/message_loop_proxy.h" |
15 #include "base/metrics/histogram.h" | 15 #include "base/metrics/histogram.h" |
16 #include "base/sequenced_task_runner.h" | 16 #include "base/sequenced_task_runner.h" |
17 #include "base/strings/string_number_conversions.h" | 17 #include "base/strings/string_number_conversions.h" |
18 #include "base/strings/stringprintf.h" | 18 #include "base/strings/stringprintf.h" |
19 #include "base/synchronization/lock.h" | 19 #include "base/synchronization/lock.h" |
20 #include "base/threading/thread.h" | 20 #include "base/threading/thread.h" |
21 #include "base/threading/thread_checker.h" | 21 #include "base/threading/thread_checker.h" |
22 #include "base/time/time.h" | 22 #include "base/time/time.h" |
23 #include "base/trace_event/trace_event.h" | 23 #include "base/trace_event/trace_event.h" |
24 #include "content/public/browser/browser_thread.h" | 24 #include "content/public/browser/browser_thread.h" |
25 #include "media/base/bind_to_current_loop.h" | |
26 #include "media/base/video_capture_types.h" | 25 #include "media/base/video_capture_types.h" |
27 #include "media/base/video_frame.h" | 26 #include "media/base/video_frame.h" |
28 #include "media/base/video_frame_metadata.h" | 27 #include "media/base/video_frame_metadata.h" |
29 #include "media/base/video_util.h" | 28 #include "media/base/video_util.h" |
30 #include "ui/gfx/geometry/rect.h" | 29 #include "ui/gfx/geometry/rect.h" |
31 | 30 |
32 namespace content { | 31 namespace content { |
33 | 32 |
34 namespace { | 33 namespace { |
35 | 34 |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 return; | 337 return; |
339 | 338 |
340 if (oracle_proxy_.get()) | 339 if (oracle_proxy_.get()) |
341 oracle_proxy_->ReportError(reason); | 340 oracle_proxy_->ReportError(reason); |
342 | 341 |
343 StopAndDeAllocate(); | 342 StopAndDeAllocate(); |
344 TransitionStateTo(kError); | 343 TransitionStateTo(kError); |
345 } | 344 } |
346 | 345 |
347 } // namespace content | 346 } // namespace content |
OLD | NEW |