OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 MEDIA_CAST_TEST_LINUX_OUTPUT_WINDOW_H_ | 5 #ifndef MEDIA_CAST_TEST_LINUX_OUTPUT_WINDOW_H_ |
6 #define MEDIA_CAST_TEST_LINUX_OUTPUT_WINDOW_H_ | 6 #define MEDIA_CAST_TEST_LINUX_OUTPUT_WINDOW_H_ |
7 | 7 |
8 #include <X11/Xlib.h> | 8 #include <X11/Xlib.h> |
9 #include <X11/Xutil.h> | 9 #include <X11/Xutil.h> |
10 #include <sys/ipc.h> | 10 #include <sys/ipc.h> |
(...skipping 23 matching lines...) Expand all Loading... |
34 virtual ~LinuxOutputWindow(); | 34 virtual ~LinuxOutputWindow(); |
35 | 35 |
36 void RenderFrame(const scoped_refptr<media::VideoFrame>& video_frame); | 36 void RenderFrame(const scoped_refptr<media::VideoFrame>& video_frame); |
37 | 37 |
38 private: | 38 private: |
39 void CreateWindow(int x_pos, | 39 void CreateWindow(int x_pos, |
40 int y_pos, | 40 int y_pos, |
41 int width, | 41 int width, |
42 int height, | 42 int height, |
43 const std::string& name); | 43 const std::string& name); |
44 uint8* render_buffer_; | |
45 Display* display_; | 44 Display* display_; |
46 Window window_; | 45 Window window_; |
47 XShmSegmentInfo shminfo_; | 46 XShmSegmentInfo shminfo_; |
48 GC gc_; | 47 GC gc_; |
49 XImage* image_; | 48 XImage* image_; |
50 }; | 49 }; |
51 | 50 |
52 } // namespace test | 51 } // namespace test |
53 } // namespace cast | 52 } // namespace cast |
54 } // namespace media | 53 } // namespace media |
55 | 54 |
56 #endif // MEDIA_CAST_TEST_LINUX_OUTPUT_WINDOW_H_ | 55 #endif // MEDIA_CAST_TEST_LINUX_OUTPUT_WINDOW_H_ |
OLD | NEW |