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

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

Issue 2415703002: Move files video_capture*.* from media/base to media/capture (Closed)
Patch Set: rebase Created 4 years, 1 month 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
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 #include "content/browser/media/capture/window_activity_tracker.h" 71 #include "content/browser/media/capture/window_activity_tracker.h"
72 #include "content/browser/renderer_host/render_widget_host_impl.h" 72 #include "content/browser/renderer_host/render_widget_host_impl.h"
73 #include "content/browser/renderer_host/render_widget_host_view_base.h" 73 #include "content/browser/renderer_host/render_widget_host_view_base.h"
74 #include "content/public/browser/browser_thread.h" 74 #include "content/public/browser/browser_thread.h"
75 #include "content/public/browser/render_process_host.h" 75 #include "content/public/browser/render_process_host.h"
76 #include "content/public/browser/render_widget_host_view.h" 76 #include "content/public/browser/render_widget_host_view.h"
77 #include "content/public/browser/render_widget_host_view_frame_subscriber.h" 77 #include "content/public/browser/render_widget_host_view_frame_subscriber.h"
78 #include "content/public/browser/web_contents.h" 78 #include "content/public/browser/web_contents.h"
79 #include "content/public/browser/web_contents_media_capture_id.h" 79 #include "content/public/browser/web_contents_media_capture_id.h"
80 #include "media/base/bind_to_current_loop.h" 80 #include "media/base/bind_to_current_loop.h"
81 #include "media/base/video_capture_types.h"
82 #include "media/base/video_frame_metadata.h" 81 #include "media/base/video_frame_metadata.h"
83 #include "media/base/video_util.h" 82 #include "media/base/video_util.h"
84 #include "media/capture/content/screen_capture_device_core.h" 83 #include "media/capture/content/screen_capture_device_core.h"
85 #include "media/capture/content/thread_safe_capture_oracle.h" 84 #include "media/capture/content/thread_safe_capture_oracle.h"
86 #include "media/capture/content/video_capture_oracle.h" 85 #include "media/capture/content/video_capture_oracle.h"
86 #include "media/capture/video_capture_types.h"
87 #include "skia/ext/image_operations.h" 87 #include "skia/ext/image_operations.h"
88 #include "third_party/skia/include/core/SkBitmap.h" 88 #include "third_party/skia/include/core/SkBitmap.h"
89 #include "third_party/skia/include/core/SkColor.h" 89 #include "third_party/skia/include/core/SkColor.h"
90 #include "ui/base/layout.h" 90 #include "ui/base/layout.h"
91 #include "ui/gfx/geometry/dip_util.h" 91 #include "ui/gfx/geometry/dip_util.h"
92 #include "ui/gfx/geometry/size_conversions.h" 92 #include "ui/gfx/geometry/size_conversions.h"
93 93
94 namespace content { 94 namespace content {
95 95
96 namespace { 96 namespace {
(...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after
951 951
952 void WebContentsVideoCaptureDevice::Resume() { 952 void WebContentsVideoCaptureDevice::Resume() {
953 core_->Resume(); 953 core_->Resume();
954 } 954 }
955 955
956 void WebContentsVideoCaptureDevice::StopAndDeAllocate() { 956 void WebContentsVideoCaptureDevice::StopAndDeAllocate() {
957 core_->StopAndDeAllocate(); 957 core_->StopAndDeAllocate();
958 } 958 }
959 959
960 } // namespace content 960 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698