OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Implementation notes: This needs to work on a variety of hardware | 5 // Implementation notes: This needs to work on a variety of hardware |
6 // configurations where the speed of the CPU and GPU greatly affect overall | 6 // configurations where the speed of the CPU and GPU greatly affect overall |
7 // performance. Spanning several threads, the process of capturing has been | 7 // performance. Spanning several threads, the process of capturing has been |
8 // split up into four conceptual stages: | 8 // split up into four conceptual stages: |
9 // | 9 // |
10 // 1. Reserve Buffer: Before a frame can be captured, a slot in the client's | 10 // 1. Reserve Buffer: Before a frame can be captured, a slot in the client's |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 70 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
71 #include "content/public/browser/browser_thread.h" | 71 #include "content/public/browser/browser_thread.h" |
72 #include "content/public/browser/notification_observer.h" | 72 #include "content/public/browser/notification_observer.h" |
73 #include "content/public/browser/notification_registrar.h" | 73 #include "content/public/browser/notification_registrar.h" |
74 #include "content/public/browser/notification_source.h" | 74 #include "content/public/browser/notification_source.h" |
75 #include "content/public/browser/notification_types.h" | 75 #include "content/public/browser/notification_types.h" |
76 #include "content/public/browser/render_process_host.h" | 76 #include "content/public/browser/render_process_host.h" |
77 #include "content/public/browser/render_widget_host_view.h" | 77 #include "content/public/browser/render_widget_host_view.h" |
78 #include "content/public/browser/render_widget_host_view_frame_subscriber.h" | 78 #include "content/public/browser/render_widget_host_view_frame_subscriber.h" |
79 #include "content/public/browser/web_contents.h" | 79 #include "content/public/browser/web_contents.h" |
| 80 #include "media/base/video_capture_types.h" |
80 #include "media/base/video_util.h" | 81 #include "media/base/video_util.h" |
81 #include "media/video/capture/video_capture_types.h" | |
82 #include "skia/ext/image_operations.h" | 82 #include "skia/ext/image_operations.h" |
83 #include "third_party/skia/include/core/SkBitmap.h" | 83 #include "third_party/skia/include/core/SkBitmap.h" |
84 #include "third_party/skia/include/core/SkColor.h" | 84 #include "third_party/skia/include/core/SkColor.h" |
85 #include "ui/gfx/display.h" | 85 #include "ui/gfx/display.h" |
86 #include "ui/gfx/geometry/size.h" | 86 #include "ui/gfx/geometry/size.h" |
87 #include "ui/gfx/geometry/size_conversions.h" | 87 #include "ui/gfx/geometry/size_conversions.h" |
88 #include "ui/gfx/screen.h" | 88 #include "ui/gfx/screen.h" |
89 | 89 |
90 namespace content { | 90 namespace content { |
91 | 91 |
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
786 scoped_ptr<Client> client) { | 786 scoped_ptr<Client> client) { |
787 DVLOG(1) << "Allocating " << params.requested_format.frame_size.ToString(); | 787 DVLOG(1) << "Allocating " << params.requested_format.frame_size.ToString(); |
788 core_->AllocateAndStart(params, client.Pass()); | 788 core_->AllocateAndStart(params, client.Pass()); |
789 } | 789 } |
790 | 790 |
791 void WebContentsVideoCaptureDevice::StopAndDeAllocate() { | 791 void WebContentsVideoCaptureDevice::StopAndDeAllocate() { |
792 core_->StopAndDeAllocate(); | 792 core_->StopAndDeAllocate(); |
793 } | 793 } |
794 | 794 |
795 } // namespace content | 795 } // namespace content |
OLD | NEW |