OLD | NEW |
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_PROGRAM_BINDING_H_ | 5 #ifndef CC_OUTPUT_PROGRAM_BINDING_H_ |
6 #define CC_OUTPUT_PROGRAM_BINDING_H_ | 6 #define CC_OUTPUT_PROGRAM_BINDING_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 int uv_texture_location() const { | 259 int uv_texture_location() const { |
260 return fragment_shader_.uv_texture_location_; | 260 return fragment_shader_.uv_texture_location_; |
261 } | 261 } |
262 int a_texture_location() const { | 262 int a_texture_location() const { |
263 return fragment_shader_.a_texture_location_; | 263 return fragment_shader_.a_texture_location_; |
264 } | 264 } |
265 int lut_texture_location() const { | 265 int lut_texture_location() const { |
266 return fragment_shader_.lut_texture_location_; | 266 return fragment_shader_.lut_texture_location_; |
267 } | 267 } |
268 int lut_size_location() const { return fragment_shader_.lut_size_location_; } | 268 int lut_size_location() const { return fragment_shader_.lut_size_location_; } |
269 int yuv_matrix_location() const { | 269 int yuv_and_resource_matrix_location() const { |
270 return fragment_shader_.yuv_matrix_location_; | 270 return fragment_shader_.yuv_and_resource_matrix_location_; |
271 } | 271 } |
272 int yuv_adj_location() const { return fragment_shader_.yuv_adj_location_; } | |
273 int ya_clamp_rect_location() const { | 272 int ya_clamp_rect_location() const { |
274 return fragment_shader_.ya_clamp_rect_location_; | 273 return fragment_shader_.ya_clamp_rect_location_; |
275 } | 274 } |
276 int uv_clamp_rect_location() const { | 275 int uv_clamp_rect_location() const { |
277 return fragment_shader_.uv_clamp_rect_location_; | 276 return fragment_shader_.uv_clamp_rect_location_; |
278 } | 277 } |
279 int resource_multiplier_location() const { | |
280 return fragment_shader_.resource_multiplier_location_; | |
281 } | |
282 int resource_offset_location() const { | |
283 return fragment_shader_.resource_offset_location_; | |
284 } | |
285 | 278 |
286 private: | 279 private: |
287 void InitializeDebugBorderProgram() { | 280 void InitializeDebugBorderProgram() { |
288 // Initialize vertex program. | 281 // Initialize vertex program. |
289 vertex_shader_.has_matrix_ = true; | 282 vertex_shader_.has_matrix_ = true; |
290 | 283 |
291 // Initialize fragment program. | 284 // Initialize fragment program. |
292 fragment_shader_.input_color_type_ = INPUT_COLOR_SOURCE_UNIFORM; | 285 fragment_shader_.input_color_type_ = INPUT_COLOR_SOURCE_UNIFORM; |
293 fragment_shader_.frag_color_mode_ = FRAG_COLOR_MODE_DEFAULT; | 286 fragment_shader_.frag_color_mode_ = FRAG_COLOR_MODE_DEFAULT; |
294 } | 287 } |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 | 416 |
424 VertexShader vertex_shader_; | 417 VertexShader vertex_shader_; |
425 FragmentShader fragment_shader_; | 418 FragmentShader fragment_shader_; |
426 | 419 |
427 DISALLOW_COPY_AND_ASSIGN(Program); | 420 DISALLOW_COPY_AND_ASSIGN(Program); |
428 }; | 421 }; |
429 | 422 |
430 } // namespace cc | 423 } // namespace cc |
431 | 424 |
432 #endif // CC_OUTPUT_PROGRAM_BINDING_H_ | 425 #endif // CC_OUTPUT_PROGRAM_BINDING_H_ |
OLD | NEW |