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

Side by Side Diff: ui/gl/yuv_to_rgb_converter.h

Issue 2005463002: Attach YUV420 to RGB converter to GLContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 7 months 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 | « ui/gl/gl_image_io_surface.mm ('k') | ui/gl/yuv_to_rgb_converter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 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.
4
5 #ifndef UI_GL_YUV420_RGB_CONVERTER_H_
6 #define UI_GL_YUV420_RGB_CONVERTER_H_
7
8 #include "ui/gfx/geometry/size.h"
9
10 namespace gl {
11
12 class YUVToRGBConverter {
13 public:
14 YUVToRGBConverter();
15 ~YUVToRGBConverter();
16 void CopyYUV420ToRGB(unsigned target,
17 unsigned y_texture,
18 unsigned uv_texture,
19 const gfx::Size& size,
20 unsigned rgb_texture);
21
22 private:
23 unsigned framebuffer_ = 0;
24 unsigned vertex_shader_ = 0;
25 unsigned fragment_shader_ = 0;
26 unsigned program_ = 0;
27 int size_location_ = -1;
28 unsigned vertex_buffer_ = 0;
29 };
30
31 } // namespace gl
32
33 #endif // UI_GL_YUV420_RGB_CONVERTER_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_image_io_surface.mm ('k') | ui/gl/yuv_to_rgb_converter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698