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

Side by Side Diff: content/browser/media/capture/desktop_capture_device_aura.h

Issue 2518143004: [Mojo Video Capture] Replace RESOURCE_UTILIZATION with interface ReceiverLoadObserver (Closed)
Patch Set: Fix for android-only code Created 4 years 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 | content/browser/media/capture/desktop_capture_device_aura.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 CONTENT_BROWSER_MEDIA_CAPTURE_DESKTOP_CAPTURE_DEVICE_AURA_H_ 5 #ifndef CONTENT_BROWSER_MEDIA_CAPTURE_DESKTOP_CAPTURE_DEVICE_AURA_H_
6 #define CONTENT_BROWSER_MEDIA_CAPTURE_DESKTOP_CAPTURE_DEVICE_AURA_H_ 6 #define CONTENT_BROWSER_MEDIA_CAPTURE_DESKTOP_CAPTURE_DEVICE_AURA_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 14 matching lines...) Expand all
25 static std::unique_ptr<media::VideoCaptureDevice> Create( 25 static std::unique_ptr<media::VideoCaptureDevice> Create(
26 const DesktopMediaID& source); 26 const DesktopMediaID& source);
27 27
28 ~DesktopCaptureDeviceAura() override; 28 ~DesktopCaptureDeviceAura() override;
29 29
30 // VideoCaptureDevice implementation. 30 // VideoCaptureDevice implementation.
31 void AllocateAndStart(const media::VideoCaptureParams& params, 31 void AllocateAndStart(const media::VideoCaptureParams& params,
32 std::unique_ptr<Client> client) override; 32 std::unique_ptr<Client> client) override;
33 void RequestRefreshFrame() override; 33 void RequestRefreshFrame() override;
34 void StopAndDeAllocate() override; 34 void StopAndDeAllocate() override;
35 void OnUtilizationReport(int frame_feedback_id, double utilization) override;
35 36
36 private: 37 private:
37 explicit DesktopCaptureDeviceAura(const DesktopMediaID& source); 38 explicit DesktopCaptureDeviceAura(const DesktopMediaID& source);
38 39
39 std::unique_ptr<media::ScreenCaptureDeviceCore> core_; 40 std::unique_ptr<media::ScreenCaptureDeviceCore> core_;
40 41
41 DISALLOW_COPY_AND_ASSIGN(DesktopCaptureDeviceAura); 42 DISALLOW_COPY_AND_ASSIGN(DesktopCaptureDeviceAura);
42 }; 43 };
43 44
44 45
45 } // namespace content 46 } // namespace content
46 47
47 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_DESKTOP_CAPTURE_DEVICE_AURA_H_ 48 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_DESKTOP_CAPTURE_DEVICE_AURA_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/media/capture/desktop_capture_device_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698