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

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

Issue 1882953006: Attach YUV420 to RGB converter to GLContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
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 gfx {
Daniele Castagna 2016/04/16 02:45:59 Shouldn't this be gl?
ccameron 2016/04/16 16:19:19 Done.
11
12 class YUV420RGBConverter {
Daniele Castagna 2016/04/16 02:45:59 I'm not sure about the name. YUV420 doesn't identi
ccameron 2016/04/16 16:19:19 I changed the structure from YUV420RGBConverter to
13 public:
14 YUV420RGBConverter();
15 ~YUV420RGBConverter();
16 void CopyTexImage(unsigned target,
17 unsigned y_texture,
18 unsigned uv_texture,
19 const gfx::Size& size);
20
21 private:
22 unsigned framebuffer_ = 0;
23 unsigned vertex_shader_ = 0;
24 unsigned fragment_shader_ = 0;
25 unsigned program_ = 0;
26 int size_location_ = -1;
27 unsigned vertex_buffer_ = 0;
28 };
29
30 } // namespace gfx
31
32 #endif // UI_GL_YUV420_RGB_CONVERTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698