Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(823)

Side by Side Diff: content/browser/media/capture/web_contents_video_capture_device.cc

Issue 261383002: Remove content/port directory and move the 3 remaining interfaces to content/public. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 #include "base/sequenced_task_runner.h" 61 #include "base/sequenced_task_runner.h"
62 #include "base/threading/thread.h" 62 #include "base/threading/thread.h"
63 #include "base/threading/thread_checker.h" 63 #include "base/threading/thread_checker.h"
64 #include "base/time/time.h" 64 #include "base/time/time.h"
65 #include "content/browser/media/capture/content_video_capture_device_core.h" 65 #include "content/browser/media/capture/content_video_capture_device_core.h"
66 #include "content/browser/media/capture/video_capture_oracle.h" 66 #include "content/browser/media/capture/video_capture_oracle.h"
67 #include "content/browser/media/capture/web_contents_capture_util.h" 67 #include "content/browser/media/capture/web_contents_capture_util.h"
68 #include "content/browser/renderer_host/render_widget_host_impl.h" 68 #include "content/browser/renderer_host/render_widget_host_impl.h"
69 #include "content/browser/renderer_host/render_widget_host_view_base.h" 69 #include "content/browser/renderer_host/render_widget_host_view_base.h"
70 #include "content/browser/web_contents/web_contents_impl.h" 70 #include "content/browser/web_contents/web_contents_impl.h"
71 #include "content/port/browser/render_widget_host_view_frame_subscriber.h"
72 #include "content/public/browser/browser_thread.h" 71 #include "content/public/browser/browser_thread.h"
73 #include "content/public/browser/notification_source.h" 72 #include "content/public/browser/notification_source.h"
74 #include "content/public/browser/notification_types.h" 73 #include "content/public/browser/notification_types.h"
75 #include "content/public/browser/render_view_host.h" 74 #include "content/public/browser/render_view_host.h"
76 #include "content/public/browser/render_widget_host_view.h" 75 #include "content/public/browser/render_widget_host_view.h"
76 #include "content/public/browser/render_widget_host_view_frame_subscriber.h"
77 #include "content/public/browser/web_contents_observer.h" 77 #include "content/public/browser/web_contents_observer.h"
78 #include "media/base/video_util.h" 78 #include "media/base/video_util.h"
79 #include "media/video/capture/video_capture_types.h" 79 #include "media/video/capture/video_capture_types.h"
80 #include "skia/ext/image_operations.h" 80 #include "skia/ext/image_operations.h"
81 #include "third_party/skia/include/core/SkBitmap.h" 81 #include "third_party/skia/include/core/SkBitmap.h"
82 #include "third_party/skia/include/core/SkColor.h" 82 #include "third_party/skia/include/core/SkColor.h"
83 83
84 namespace content { 84 namespace content {
85 85
86 namespace { 86 namespace {
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after
815 scoped_ptr<Client> client) { 815 scoped_ptr<Client> client) {
816 DVLOG(1) << "Allocating " << params.requested_format.frame_size.ToString(); 816 DVLOG(1) << "Allocating " << params.requested_format.frame_size.ToString();
817 core_->AllocateAndStart(params, client.Pass()); 817 core_->AllocateAndStart(params, client.Pass());
818 } 818 }
819 819
820 void WebContentsVideoCaptureDevice::StopAndDeAllocate() { 820 void WebContentsVideoCaptureDevice::StopAndDeAllocate() {
821 core_->StopAndDeAllocate(); 821 core_->StopAndDeAllocate();
822 } 822 }
823 823
824 } // namespace content 824 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_process_host.cc ('k') | content/browser/media/capture/web_contents_video_capture_device_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698