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

Side by Side Diff: webrtc/media/devices/gdivideorenderer.h

Issue 2460793002: Delete videorendererfactory.h and cricket::GdiVideoRenderer. (Closed)
Patch Set: Drop windows link dependencies on d3d9.lib, gdi32.lib and strmiids.lib. 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
« no previous file with comments | « webrtc/media/BUILD.gn ('k') | webrtc/media/devices/gdivideorenderer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 //
12 // Definition of class GdiVideoRenderer that implements the abstract class
13 // cricket::VideoRenderer via GDI on Windows.
14
15 #ifndef WEBRTC_MEDIA_DEVICES_GDIVIDEORENDERER_H_
16 #define WEBRTC_MEDIA_DEVICES_GDIVIDEORENDERER_H_
17 #ifdef WIN32
18
19 #include <memory>
20
21 // TODO(nisse): Temporarily; to be replaced with a forward declaration
22 // of webrtc::VideoFrame when dependency on cricket::VideoFrame is deleted.
23 #include "webrtc/media/base/videoframe.h"
24 #include "webrtc/media/base/videosinkinterface.h"
25
26 namespace cricket {
27
28 class GdiVideoRenderer : public rtc::VideoSinkInterface<cricket::VideoFrame> {
29 public:
30 GdiVideoRenderer(int x, int y);
31 virtual ~GdiVideoRenderer();
32
33 // Implementation of VideoSinkInterface
34 void OnFrame(const VideoFrame& frame) override;
35
36 private:
37 class VideoWindow; // forward declaration, defined in the .cc file
38 std::unique_ptr<VideoWindow> window_;
39 // The initial position of the window.
40 int initial_x_;
41 int initial_y_;
42 };
43
44 } // namespace cricket
45
46 #endif // WIN32
47 #endif // WEBRTC_MEDIA_DEVICES_GDIVIDEORENDERER_H_
OLDNEW
« no previous file with comments | « webrtc/media/BUILD.gn ('k') | webrtc/media/devices/gdivideorenderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698