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
3 // found in the LICENSE file.
5 #ifndef MEDIA_CAST_TEST_LINUX_OUTPUT_WINDOW_H_
6 #define MEDIA_CAST_TEST_LINUX_OUTPUT_WINDOW_H_
12 #include <X11/extensions/XShm.h>
16 #include "base/memory/ref_counted.h"
17 #include "base/memory/scoped_ptr.h"
28 class LinuxOutputWindow
{
30 LinuxOutputWindow(int x_pos
,
34 const std::string
& name
);
35 virtual ~LinuxOutputWindow();
37 void RenderFrame(const scoped_refptr
<media::VideoFrame
>& video_frame
);
40 void CreateWindow(int x_pos
,
44 const std::string
& name
);
45 uint8
* render_buffer_
;
48 XShmSegmentInfo shminfo_
;
57 #endif // MEDIA_CAST_TEST_LINUX_OUTPUT_WINDOW_H_