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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: ui/gl/yuv420_rgb_converter.h
diff --git a/ui/gl/yuv420_rgb_converter.h b/ui/gl/yuv420_rgb_converter.h
new file mode 100644
index 0000000000000000000000000000000000000000..de6b7f3bfdc16dca07fc93ff4eb9a0c1ea584039
--- /dev/null
+++ b/ui/gl/yuv420_rgb_converter.h
@@ -0,0 +1,32 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_GL_YUV420_RGB_CONVERTER_H_
+#define UI_GL_YUV420_RGB_CONVERTER_H_
+
+#include "ui/gfx/geometry/size.h"
+
+namespace gfx {
Daniele Castagna 2016/04/16 02:45:59 Shouldn't this be gl?
ccameron 2016/04/16 16:19:19 Done.
+
+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
+ public:
+ YUV420RGBConverter();
+ ~YUV420RGBConverter();
+ void CopyTexImage(unsigned target,
+ unsigned y_texture,
+ unsigned uv_texture,
+ const gfx::Size& size);
+
+ private:
+ unsigned framebuffer_ = 0;
+ unsigned vertex_shader_ = 0;
+ unsigned fragment_shader_ = 0;
+ unsigned program_ = 0;
+ int size_location_ = -1;
+ unsigned vertex_buffer_ = 0;
+};
+
+} // namespace gfx
+
+#endif // UI_GL_YUV420_RGB_CONVERTER_H_

Powered by Google App Engine
This is Rietveld 408576698