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

Unified Diff: cc/output/shader.h

Issue 207233002: cc: Support texcoord offsets in YUVVideoDrawQuad (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: c7cdf916 Rebase. Created 6 years, 9 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 36430cc6cfbce2d18b212d3d184519816cb0be45..83c41ee85ff66370a8019452afc6c540f254884c 100644
--- a/cc/output/shader.h
+++ b/cc/output/shader.h
@@ -72,9 +72,9 @@ class VertexShaderPosTex {
DISALLOW_COPY_AND_ASSIGN(VertexShaderPosTex);
};
-class VertexShaderPosTexYUVStretch {
+class VertexShaderPosTexYUVStretchOffset {
public:
- VertexShaderPosTexYUVStretch();
+ VertexShaderPosTexYUVStretchOffset();
void Init(gpu::gles2::GLES2Interface* context,
unsigned program,
@@ -83,12 +83,14 @@ class VertexShaderPosTexYUVStretch {
int matrix_location() const { return matrix_location_; }
int tex_scale_location() const { return tex_scale_location_; }
+ int tex_offset_location() const { return tex_offset_location_; }
private:
int matrix_location_;
int tex_scale_location_;
+ int tex_offset_location_;
- DISALLOW_COPY_AND_ASSIGN(VertexShaderPosTexYUVStretch);
+ DISALLOW_COPY_AND_ASSIGN(VertexShaderPosTexYUVStretchOffset);
};
class VertexShaderPos {
« 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