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

Side by Side Diff: content/browser/renderer_host/media/video_capture_host.h

Issue 2735083002: [Mojo Video Capture] Add test coverage for accelerated jpeg decoding (Closed)
Patch Set: Rebase to March 15th, Remove #include jpeg_parser Created 3 years, 9 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
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 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 int length, 45 int length,
46 int buffer_id) override; 46 int buffer_id) override;
47 void OnBufferDestroyed(VideoCaptureControllerID id, 47 void OnBufferDestroyed(VideoCaptureControllerID id,
48 int buffer_id) override; 48 int buffer_id) override;
49 void OnBufferReady( 49 void OnBufferReady(
50 VideoCaptureControllerID id, 50 VideoCaptureControllerID id,
51 int buffer_id, 51 int buffer_id,
52 const media::mojom::VideoFrameInfoPtr& frame_info) override; 52 const media::mojom::VideoFrameInfoPtr& frame_info) override;
53 void OnEnded(VideoCaptureControllerID id) override; 53 void OnEnded(VideoCaptureControllerID id) override;
54 void OnStarted(VideoCaptureControllerID id) override; 54 void OnStarted(VideoCaptureControllerID id) override;
55 void OnStartedUsingGpuDecode(VideoCaptureControllerID id) override;
55 56
56 // mojom::VideoCaptureHost implementation 57 // mojom::VideoCaptureHost implementation
57 void Start(int32_t device_id, 58 void Start(int32_t device_id,
58 int32_t session_id, 59 int32_t session_id,
59 const media::VideoCaptureParams& params, 60 const media::VideoCaptureParams& params,
60 mojom::VideoCaptureObserverPtr observer) override; 61 mojom::VideoCaptureObserverPtr observer) override;
61 void Stop(int32_t device_id) override; 62 void Stop(int32_t device_id) override;
62 void Pause(int32_t device_id) override; 63 void Pause(int32_t device_id) override;
63 void Resume(int32_t device_id, 64 void Resume(int32_t device_id,
64 int32_t session_id, 65 int32_t session_id,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 std::map<int32_t, mojom::VideoCaptureObserverPtr> device_id_to_observer_map_; 104 std::map<int32_t, mojom::VideoCaptureObserverPtr> device_id_to_observer_map_;
104 105
105 base::WeakPtrFactory<VideoCaptureHost> weak_factory_; 106 base::WeakPtrFactory<VideoCaptureHost> weak_factory_;
106 107
107 DISALLOW_COPY_AND_ASSIGN(VideoCaptureHost); 108 DISALLOW_COPY_AND_ASSIGN(VideoCaptureHost);
108 }; 109 };
109 110
110 } // namespace content 111 } // namespace content
111 112
112 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_ 113 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698