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

Unified Diff: webrtc/examples/peerconnection/client/linux/main_wnd.h

Issue 2563203002: Add a gtk3 port of peerconnection_client on Linux (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/examples/BUILD.gn ('k') | webrtc/examples/peerconnection/client/linux/main_wnd.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/examples/peerconnection/client/linux/main_wnd.h
diff --git a/webrtc/examples/peerconnection/client/linux/main_wnd.h b/webrtc/examples/peerconnection/client/linux/main_wnd.h
index 33b0725c08898bb3cfa98a8680466b6472c63d2c..68ed8bf99caf1bd489166b1049b916d2fe3fa13e 100644
--- a/webrtc/examples/peerconnection/client/linux/main_wnd.h
+++ b/webrtc/examples/peerconnection/client/linux/main_wnd.h
@@ -24,6 +24,7 @@ typedef struct _GdkEventKey GdkEventKey;
typedef struct _GtkTreeView GtkTreeView;
typedef struct _GtkTreePath GtkTreePath;
typedef struct _GtkTreeViewColumn GtkTreeViewColumn;
+typedef struct _cairo cairo_t;
// Implements the main UI of the peer connection client.
// This is functionally equivalent to the MainWnd class in the Windows
@@ -71,6 +72,8 @@ class GtkMainWnd : public MainWindow {
void OnRedraw();
+ void Draw(GtkWidget* widget, cairo_t* cr);
+
protected:
class VideoRenderer : public rtc::VideoSinkInterface<webrtc::VideoFrame> {
public:
@@ -114,6 +117,8 @@ class GtkMainWnd : public MainWindow {
bool autocall_;
std::unique_ptr<VideoRenderer> local_renderer_;
std::unique_ptr<VideoRenderer> remote_renderer_;
+ int width_;
+ int height_;
std::unique_ptr<uint8_t[]> draw_buffer_;
int draw_buffer_size_;
};
« no previous file with comments | « webrtc/examples/BUILD.gn ('k') | webrtc/examples/peerconnection/client/linux/main_wnd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698