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

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

Issue 2692393002: Tab/Desktop capture: Fix for super-old frame after resume. (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | media/capture/content/screen_capture_device_core.cc » ('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 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 #ifndef MEDIA_CAPTURE_CONTENT_SCREEN_CAPTURE_DEVICE_CORE_H_ 5 #ifndef MEDIA_CAPTURE_CONTENT_SCREEN_CAPTURE_DEVICE_CORE_H_
6 #define MEDIA_CAPTURE_CONTENT_SCREEN_CAPTURE_DEVICE_CORE_H_ 6 #define MEDIA_CAPTURE_CONTENT_SCREEN_CAPTURE_DEVICE_CORE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 // Tracks the CaptureMachine that's doing work on our behalf 115 // Tracks the CaptureMachine that's doing work on our behalf
116 // on the device thread or UI thread. 116 // on the device thread or UI thread.
117 // This value should never be dereferenced by this class. 117 // This value should never be dereferenced by this class.
118 std::unique_ptr<VideoCaptureMachine> capture_machine_; 118 std::unique_ptr<VideoCaptureMachine> capture_machine_;
119 119
120 // Our thread-safe capture oracle which serves as the gateway to the video 120 // Our thread-safe capture oracle which serves as the gateway to the video
121 // capture pipeline. Besides the VideoCaptureDevice itself, it is the only 121 // capture pipeline. Besides the VideoCaptureDevice itself, it is the only
122 // component of the system with direct access to |client_|. 122 // component of the system with direct access to |client_|.
123 scoped_refptr<ThreadSafeCaptureOracle> oracle_proxy_; 123 scoped_refptr<ThreadSafeCaptureOracle> oracle_proxy_;
124 124
125 // After Resume(), some unknown amount of time has passed, and the content of
126 // the capture source may have changed. This flag is used to ensure that the
127 // passive refresh mechanism is not used for the first refresh frame following
128 // a Resume().
129 bool force_active_refresh_once_;
130
125 DISALLOW_COPY_AND_ASSIGN(ScreenCaptureDeviceCore); 131 DISALLOW_COPY_AND_ASSIGN(ScreenCaptureDeviceCore);
126 }; 132 };
127 133
128 } // namespace media 134 } // namespace media
129 135
130 #endif // MEDIA_CAPTURE_CONTENT_SCREEN_CAPTURE_DEVICE_CORE_H_ 136 #endif // MEDIA_CAPTURE_CONTENT_SCREEN_CAPTURE_DEVICE_CORE_H_
OLDNEW
« no previous file with comments | « no previous file | media/capture/content/screen_capture_device_core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698