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

Side by Side Diff: media/capture/content/video_capture_oracle.h

Issue 2059493002: Revert of Make media/capture gn and gyps produce components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « media/capture/content/thread_safe_capture_oracle.h ('k') | media/capture/device_monitor_mac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #ifndef MEDIA_CAPTURE_CONTENT_VIDEO_CAPTURE_ORACLE_H_ 5 #ifndef MEDIA_CAPTURE_CONTENT_VIDEO_CAPTURE_ORACLE_H_
6 #define MEDIA_CAPTURE_CONTENT_VIDEO_CAPTURE_ORACLE_H_ 6 #define MEDIA_CAPTURE_CONTENT_VIDEO_CAPTURE_ORACLE_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "media/capture/capture_export.h" 10 #include "media/base/media_export.h"
11 #include "media/capture/content/animated_content_sampler.h" 11 #include "media/capture/content/animated_content_sampler.h"
12 #include "media/capture/content/capture_resolution_chooser.h" 12 #include "media/capture/content/capture_resolution_chooser.h"
13 #include "media/capture/content/feedback_signal_accumulator.h" 13 #include "media/capture/content/feedback_signal_accumulator.h"
14 #include "media/capture/content/smooth_event_sampler.h" 14 #include "media/capture/content/smooth_event_sampler.h"
15 #include "ui/gfx/geometry/rect.h" 15 #include "ui/gfx/geometry/rect.h"
16 16
17 namespace media { 17 namespace media {
18 18
19 // VideoCaptureOracle manages the producer-side throttling of captured frames 19 // VideoCaptureOracle manages the producer-side throttling of captured frames
20 // from a video capture device. It is informed of every update by the device; 20 // from a video capture device. It is informed of every update by the device;
21 // this empowers it to look into the future and decide if a particular frame 21 // this empowers it to look into the future and decide if a particular frame
22 // ought to be captured in order to achieve its target frame rate. 22 // ought to be captured in order to achieve its target frame rate.
23 class CAPTURE_EXPORT VideoCaptureOracle { 23 class MEDIA_EXPORT VideoCaptureOracle {
24 public: 24 public:
25 enum Event { 25 enum Event {
26 kCompositorUpdate, 26 kCompositorUpdate,
27 kActiveRefreshRequest, 27 kActiveRefreshRequest,
28 kPassiveRefreshRequest, 28 kPassiveRefreshRequest,
29 kMouseCursorUpdate, 29 kMouseCursorUpdate,
30 kNumEvents, 30 kNumEvents,
31 }; 31 };
32 32
33 VideoCaptureOracle(base::TimeDelta min_capture_period, 33 VideoCaptureOracle(base::TimeDelta min_capture_period,
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 196
197 // The timestamp of the frame where |content_sampler_| last detected 197 // The timestamp of the frame where |content_sampler_| last detected
198 // animation. This determines whether capture size increases will be 198 // animation. This determines whether capture size increases will be
199 // aggressive (because content is not animating). 199 // aggressive (because content is not animating).
200 base::TimeTicks last_time_animation_was_detected_; 200 base::TimeTicks last_time_animation_was_detected_;
201 }; 201 };
202 202
203 } // namespace media 203 } // namespace media
204 204
205 #endif // MEDIA_CAPTURE_CONTENT_VIDEO_CAPTURE_ORACLE_H_ 205 #endif // MEDIA_CAPTURE_CONTENT_VIDEO_CAPTURE_ORACLE_H_
OLDNEW
« no previous file with comments | « media/capture/content/thread_safe_capture_oracle.h ('k') | media/capture/device_monitor_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698