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

Side by Side Diff: webrtc/media/devices/videorendererfactory.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/devices/gdivideorenderer.cc ('k') | webrtc/media/media.gyp » ('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) 2010 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 // A factory to create a GUI video renderer.
13
14 #ifndef WEBRTC_MEDIA_DEVICES_VIDEORENDERERFACTORY_H_
15 #define WEBRTC_MEDIA_DEVICES_VIDEORENDERERFACTORY_H_
16
17 #include "webrtc/media/base/videosinkinterface.h"
18 #if defined(WEBRTC_LINUX) && defined(HAVE_GTK)
19 #include "webrtc/media/devices/gtkvideorenderer.h"
20 #elif defined(WIN32)
21 #include "webrtc/media/devices/gdivideorenderer.h"
22 #endif
23
24 namespace cricket {
25
26 class VideoRendererFactory {
27 public:
28 static rtc::VideoSinkInterface<cricket::VideoFrame>* CreateGuiVideoRenderer(
29 int x,
30 int y) {
31 #if defined(WEBRTC_LINUX) && defined(HAVE_GTK)
32 return new GtkVideoRenderer(x, y);
33 #elif defined(WIN32)
34 return new GdiVideoRenderer(x, y);
35 #else
36 return NULL;
37 #endif
38 }
39 };
40
41 } // namespace cricket
42
43 #endif // WEBRTC_MEDIA_DEVICES_VIDEORENDERERFACTORY_H_
OLDNEW
« no previous file with comments | « webrtc/media/devices/gdivideorenderer.cc ('k') | webrtc/media/media.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698