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

Unified Diff: ui/gl/yuv_to_rgb_converter.h

Issue 2001753002: Workaround for Mac video flickering (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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/yuv_to_rgb_converter.h
diff --git a/ui/gl/yuv_to_rgb_converter.h b/ui/gl/yuv_to_rgb_converter.h
index 794b61511a61b8001428780c22a765e26bbacd51..c1d5e97e0e84238fc1ec659062c00a3edce85bbd 100644
--- a/ui/gl/yuv_to_rgb_converter.h
+++ b/ui/gl/yuv_to_rgb_converter.h
@@ -13,9 +13,13 @@ class YUVToRGBConverter {
public:
YUVToRGBConverter();
~YUVToRGBConverter();
+
+ // The input Y and UV textures should be bound to these texture objects
+ // prior to calling CopyYUV420ToRGB.
+ unsigned y_texture() const { return y_texture_; }
+ unsigned uv_texture() const { return uv_texture_; }
+
void CopyYUV420ToRGB(unsigned target,
- unsigned y_texture,
- unsigned uv_texture,
const gfx::Size& size,
unsigned rgb_texture);
@@ -26,6 +30,8 @@ class YUVToRGBConverter {
unsigned program_ = 0;
int size_location_ = -1;
unsigned vertex_buffer_ = 0;
+ unsigned y_texture_ = 0;
+ unsigned uv_texture_ = 0;
};
} // namespace gl
« 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