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

Unified Diff: cc/output/shader.h

Issue 881963002: Clamp YUV videos to their visible size in the shader (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: danakj review, build fix Created 5 years, 11 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 | « cc/output/renderer_pixeltest.cc ('k') | cc/output/shader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/shader.h
diff --git a/cc/output/shader.h b/cc/output/shader.h
index 8c1f2647946906b1a87ce00618b3ba3384c020ca..5adca47de80d507af6c0acec6f60c45d5331f5ff 100644
--- a/cc/output/shader.h
+++ b/cc/output/shader.h
@@ -676,6 +676,7 @@ class FragmentShaderYUVVideo : public FragmentTexBlendMode {
int alpha_location() const { return alpha_location_; }
int yuv_matrix_location() const { return yuv_matrix_location_; }
int yuv_adj_location() const { return yuv_adj_location_; }
+ int clamp_rect_location() const { return clamp_rect_location_; }
private:
int y_texture_location_;
@@ -684,6 +685,7 @@ class FragmentShaderYUVVideo : public FragmentTexBlendMode {
int alpha_location_;
int yuv_matrix_location_;
int yuv_adj_location_;
+ int clamp_rect_location_;
DISALLOW_COPY_AND_ASSIGN(FragmentShaderYUVVideo);
};
@@ -705,6 +707,7 @@ class FragmentShaderYUVAVideo : public FragmentTexBlendMode {
int alpha_location() const { return alpha_location_; }
int yuv_matrix_location() const { return yuv_matrix_location_; }
int yuv_adj_location() const { return yuv_adj_location_; }
+ int clamp_rect_location() const { return clamp_rect_location_; }
private:
int y_texture_location_;
@@ -714,6 +717,7 @@ class FragmentShaderYUVAVideo : public FragmentTexBlendMode {
int alpha_location_;
int yuv_matrix_location_;
int yuv_adj_location_;
+ int clamp_rect_location_;
DISALLOW_COPY_AND_ASSIGN(FragmentShaderYUVAVideo);
};
« no previous file with comments | « cc/output/renderer_pixeltest.cc ('k') | cc/output/shader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698