| OLD | NEW |
| 1 /* | 1 /* |
| 2 * libjingle | 2 * libjingle |
| 3 * Copyright 2004 Google Inc. | 3 * Copyright 2004 Google Inc. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
| 9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 virtual bool RenderFrame(const VideoFrame* frame); | 51 virtual bool RenderFrame(const VideoFrame* frame); |
| 52 | 52 |
| 53 private: | 53 private: |
| 54 // Initialize the attributes when the first frame arrives. | 54 // Initialize the attributes when the first frame arrives. |
| 55 bool Initialize(int width, int height); | 55 bool Initialize(int width, int height); |
| 56 // Pump the Gtk event loop until there are no events left. | 56 // Pump the Gtk event loop until there are no events left. |
| 57 void Pump(); | 57 void Pump(); |
| 58 // Check if the window has been closed. | 58 // Check if the window has been closed. |
| 59 bool IsClosed() const; | 59 bool IsClosed() const; |
| 60 | 60 |
| 61 rtc::scoped_ptr<uint8[]> image_; | 61 rtc::scoped_ptr<uint8_t[]> image_; |
| 62 GtkWidget* window_; | 62 GtkWidget* window_; |
| 63 GtkWidget* draw_area_; | 63 GtkWidget* draw_area_; |
| 64 // The initial position of the window. | 64 // The initial position of the window. |
| 65 int initial_x_; | 65 int initial_x_; |
| 66 int initial_y_; | 66 int initial_y_; |
| 67 | 67 |
| 68 int width_; | 68 int width_; |
| 69 int height_; | 69 int height_; |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 } // namespace cricket | 72 } // namespace cricket |
| 73 | 73 |
| 74 #endif // TALK_MEDIA_DEVICES_GTKVIDEORENDERER_H_ | 74 #endif // TALK_MEDIA_DEVICES_GTKVIDEORENDERER_H_ |
| OLD | NEW |