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

Side by Side Diff: cc/output/shader.h

Issue 1131253003: cc: Add support for non-2D texture targets to YUVVideoQuad. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 unified diff | Download patch
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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 VertexShaderPosTexYUVStretchOffset(); 125 VertexShaderPosTexYUVStretchOffset();
126 126
127 void Init(gpu::gles2::GLES2Interface* context, 127 void Init(gpu::gles2::GLES2Interface* context,
128 unsigned program, 128 unsigned program,
129 int* base_uniform_index); 129 int* base_uniform_index);
130 std::string GetShaderString() const; 130 std::string GetShaderString() const;
131 static std::string GetShaderHead(); 131 static std::string GetShaderHead();
132 static std::string GetShaderBody(); 132 static std::string GetShaderBody();
133 133
134 int matrix_location() const { return matrix_location_; } 134 int matrix_location() const { return matrix_location_; }
135 int tex_scale_location() const { return tex_scale_location_; } 135 int ya_tex_scale_location() const { return ya_tex_scale_location_; }
136 int tex_offset_location() const { return tex_offset_location_; } 136 int ya_tex_offset_location() const { return ya_tex_offset_location_; }
137 int uv_tex_scale_location() const { return uv_tex_scale_location_; }
138 int uv_tex_offset_location() const { return uv_tex_offset_location_; }
137 139
138 private: 140 private:
139 int matrix_location_; 141 int matrix_location_;
140 int tex_scale_location_; 142 int ya_tex_scale_location_;
141 int tex_offset_location_; 143 int ya_tex_offset_location_;
144 int uv_tex_scale_location_;
145 int uv_tex_offset_location_;
142 146
143 DISALLOW_COPY_AND_ASSIGN(VertexShaderPosTexYUVStretchOffset); 147 DISALLOW_COPY_AND_ASSIGN(VertexShaderPosTexYUVStretchOffset);
144 }; 148 };
145 149
146 class VertexShaderPos { 150 class VertexShaderPos {
147 public: 151 public:
148 VertexShaderPos(); 152 VertexShaderPos();
149 153
150 void Init(gpu::gles2::GLES2Interface* context, 154 void Init(gpu::gles2::GLES2Interface* context,
151 unsigned program, 155 unsigned program,
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after
885 int tex_transform_location_; 889 int tex_transform_location_;
886 int frequency_location_; 890 int frequency_location_;
887 int color_location_; 891 int color_location_;
888 892
889 DISALLOW_COPY_AND_ASSIGN(FragmentShaderCheckerboard); 893 DISALLOW_COPY_AND_ASSIGN(FragmentShaderCheckerboard);
890 }; 894 };
891 895
892 } // namespace cc 896 } // namespace cc
893 897
894 #endif // CC_OUTPUT_SHADER_H_ 898 #endif // CC_OUTPUT_SHADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698