Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |