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

Side by Side 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: 61f23173 Test update. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_OUTPUT_SHADER_H_ 5 #ifndef CC_OUTPUT_SHADER_H_
6 #define CC_OUTPUT_SHADER_H_ 6 #define CC_OUTPUT_SHADER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 std::string GetShaderString() const; 65 std::string GetShaderString() const;
66 66
67 int matrix_location() const { return matrix_location_; } 67 int matrix_location() const { return matrix_location_; }
68 68
69 private: 69 private:
70 int matrix_location_; 70 int matrix_location_;
71 71
72 DISALLOW_COPY_AND_ASSIGN(VertexShaderPosTex); 72 DISALLOW_COPY_AND_ASSIGN(VertexShaderPosTex);
73 }; 73 };
74 74
75 class VertexShaderPosTexYUVStretch { 75 class VertexShaderPosTexYUVStretchOffset {
76 public: 76 public:
77 VertexShaderPosTexYUVStretch(); 77 VertexShaderPosTexYUVStretchOffset();
78 78
79 void Init(gpu::gles2::GLES2Interface* context, 79 void Init(gpu::gles2::GLES2Interface* context,
80 unsigned program, 80 unsigned program,
81 int* base_uniform_index); 81 int* base_uniform_index);
82 std::string GetShaderString() const; 82 std::string GetShaderString() const;
83 83
84 int matrix_location() const { return matrix_location_; } 84 int matrix_location() const { return matrix_location_; }
85 int tex_scale_location() const { return tex_scale_location_; } 85 int tex_scale_location() const { return tex_scale_location_; }
86 int tex_offset_location() const { return tex_offset_location_; }
86 87
87 private: 88 private:
88 int matrix_location_; 89 int matrix_location_;
89 int tex_scale_location_; 90 int tex_scale_location_;
91 int tex_offset_location_;
90 92
91 DISALLOW_COPY_AND_ASSIGN(VertexShaderPosTexYUVStretch); 93 DISALLOW_COPY_AND_ASSIGN(VertexShaderPosTexYUVStretchOffset);
92 }; 94 };
93 95
94 class VertexShaderPos { 96 class VertexShaderPos {
95 public: 97 public:
96 VertexShaderPos(); 98 VertexShaderPos();
97 99
98 void Init(gpu::gles2::GLES2Interface* context, 100 void Init(gpu::gles2::GLES2Interface* context,
99 unsigned program, 101 unsigned program,
100 int* base_uniform_index); 102 int* base_uniform_index);
101 std::string GetShaderString() const; 103 std::string GetShaderString() const;
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 int tex_transform_location_; 726 int tex_transform_location_;
725 int frequency_location_; 727 int frequency_location_;
726 int color_location_; 728 int color_location_;
727 729
728 DISALLOW_COPY_AND_ASSIGN(FragmentShaderCheckerboard); 730 DISALLOW_COPY_AND_ASSIGN(FragmentShaderCheckerboard);
729 }; 731 };
730 732
731 } // namespace cc 733 } // namespace cc
732 734
733 #endif // CC_OUTPUT_SHADER_H_ 735 #endif // CC_OUTPUT_SHADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698