| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "media/player/x11_video_renderer.h" | 5 #include "media/tools/player_x11/x11_video_renderer.h" |
| 6 | 6 |
| 7 #include <X11/Xutil.h> | 7 #include <X11/Xutil.h> |
| 8 #include <X11/extensions/Xrender.h> | 8 #include <X11/extensions/Xrender.h> |
| 9 #include <X11/extensions/Xcomposite.h> | 9 #include <X11/extensions/Xcomposite.h> |
| 10 | 10 |
| 11 #include "media/base/buffers.h" | 11 #include "media/base/buffers.h" |
| 12 #include "media/base/yuv_convert.h" | 12 #include "media/base/yuv_convert.h" |
| 13 | 13 |
| 14 X11VideoRenderer* X11VideoRenderer::instance_ = NULL; | 14 X11VideoRenderer* X11VideoRenderer::instance_ = NULL; |
| 15 | 15 |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 // If XRender is not used, simply put the image to the server. | 228 // If XRender is not used, simply put the image to the server. |
| 229 // This will have a tearing effect but this is OK. | 229 // This will have a tearing effect but this is OK. |
| 230 // TODO(hclam): Upload the image to a pixmap and do XCopyArea() | 230 // TODO(hclam): Upload the image to a pixmap and do XCopyArea() |
| 231 // to the window. | 231 // to the window. |
| 232 GC gc = XCreateGC(display_, window_, 0, NULL); | 232 GC gc = XCreateGC(display_, window_, 0, NULL); |
| 233 XPutImage(display_, window_, gc, image_, | 233 XPutImage(display_, window_, gc, image_, |
| 234 0, 0, 0, 0, width_, height_); | 234 0, 0, 0, 0, width_, height_); |
| 235 XFlush(display_); | 235 XFlush(display_); |
| 236 XFreeGC(display_, gc); | 236 XFreeGC(display_, gc); |
| 237 } | 237 } |
| OLD | NEW |