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

Side by Side Diff: media/tools/player_x11/x11_video_renderer.cc

Issue 431046: Re-organizing all tools under /src/media to be consistent with the rest of the repository. (Closed)
Patch Set: Created 11 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
« no previous file with comments | « media/tools/player_x11/x11_video_renderer.h ('k') | media/tools/qt_faststart/qt_faststart.c » ('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 (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
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 }
OLDNEW
« no previous file with comments | « media/tools/player_x11/x11_video_renderer.h ('k') | media/tools/qt_faststart/qt_faststart.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698