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

Side by Side Diff: ui/gl/gl_image_glx.cc

Issue 817023005: Reland: Refactor Vaapi video decoder/encoder in preparation of Freon support (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 6 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
« content/content_common.gypi ('K') | « media/media.gyp ('k') | no next file » | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 extern "C" { 5 extern "C" {
6 #include <X11/Xlib.h> 6 #include <X11/Xlib.h>
7 } 7 }
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 default: 54 default:
55 NOTREACHED(); 55 NOTREACHED();
56 return 0; 56 return 0;
57 } 57 }
58 } 58 }
59 59
60 unsigned PixmapDepth(unsigned internalformat) { 60 unsigned PixmapDepth(unsigned internalformat) {
61 switch (internalformat) { 61 switch (internalformat) {
62 case GL_RGBA: 62 case GL_RGBA:
63 return 32u; 63 return 32u;
64 case GL_RGB:
65 return 24u;
64 default: 66 default:
65 NOTREACHED(); 67 NOTREACHED();
66 return 0u; 68 return 0u;
67 } 69 }
68 } 70 }
69 71
70 bool ActualPixmapGeometry(XID pixmap, gfx::Size* size, unsigned* depth) { 72 bool ActualPixmapGeometry(XID pixmap, gfx::Size* size, unsigned* depth) {
71 XID root_return; 73 XID root_return;
72 int x_return; 74 int x_return;
73 int y_return; 75 int y_return;
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 202
201 bool GLImageGLX::ScheduleOverlayPlane(gfx::AcceleratedWidget widget, 203 bool GLImageGLX::ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
202 int z_order, 204 int z_order,
203 OverlayTransform transform, 205 OverlayTransform transform,
204 const Rect& bounds_rect, 206 const Rect& bounds_rect,
205 const RectF& crop_rect) { 207 const RectF& crop_rect) {
206 return false; 208 return false;
207 } 209 }
208 210
209 } // namespace gfx 211 } // namespace gfx
OLDNEW
« content/content_common.gypi ('K') | « media/media.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698