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

Side by Side Diff: media/cast/test/linux_output_window.h

Issue 82593005: Cast: Switching recevier to use media::VideoFrame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing includes Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/cast/test/end2end_unittest.cc ('k') | media/cast/test/linux_output_window.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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>
11 #include <sys/shm.h> 11 #include <sys/shm.h>
12 #include <X11/extensions/XShm.h> 12 #include <X11/extensions/XShm.h>
13 13
14 #include "media/cast/cast_config.h" 14 #include <string>
15
16 #include "base/memory/ref_counted.h"
17 #include "base/memory/scoped_ptr.h"
18
19 namespace media {
20 class VideoFrame;
21 }
22
15 23
16 namespace media { 24 namespace media {
17 namespace cast { 25 namespace cast {
18 namespace test { 26 namespace test {
19 27
20 class LinuxOutputWindow { 28 class LinuxOutputWindow {
21 public: 29 public:
22 LinuxOutputWindow(int x_pos, 30 LinuxOutputWindow(int x_pos,
23 int y_pos, 31 int y_pos,
24 int width, 32 int width,
25 int height, 33 int height,
26 const std::string& name); 34 const std::string& name);
27 virtual ~LinuxOutputWindow(); 35 virtual ~LinuxOutputWindow();
28 36
29 void RenderFrame(const I420VideoFrame& video_frame); 37 void RenderFrame(const scoped_refptr<media::VideoFrame>& video_frame);
30 38
31 private: 39 private:
32 void CreateWindow(int x_pos, 40 void CreateWindow(int x_pos,
33 int y_pos, 41 int y_pos,
34 int width, 42 int width,
35 int height, 43 int height,
36 const std::string& name); 44 const std::string& name);
37 uint8* render_buffer_; 45 uint8* render_buffer_;
38 Display* display_; 46 Display* display_;
39 Window window_; 47 Window window_;
40 XShmSegmentInfo shminfo_; 48 XShmSegmentInfo shminfo_;
41 GC gc_; 49 GC gc_;
42 XImage* image_; 50 XImage* image_;
43 }; 51 };
44 52
45 } // namespace test 53 } // namespace test
46 } // namespace cast 54 } // namespace cast
47 } // namespace media 55 } // namespace media
48 56
49 #endif // MEDIA_CAST_TEST_LINUX_OUTPUT_WINDOW_H_ 57 #endif // MEDIA_CAST_TEST_LINUX_OUTPUT_WINDOW_H_
OLDNEW
« no previous file with comments | « media/cast/test/end2end_unittest.cc ('k') | media/cast/test/linux_output_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698