Chromium Code Reviews| 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_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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 405 int y_texture_location_; | 405 int y_texture_location_; |
| 406 int u_texture_location_; | 406 int u_texture_location_; |
| 407 int v_texture_location_; | 407 int v_texture_location_; |
| 408 int alpha_location_; | 408 int alpha_location_; |
| 409 int yuv_matrix_location_; | 409 int yuv_matrix_location_; |
| 410 int yuv_adj_location_; | 410 int yuv_adj_location_; |
| 411 | 411 |
| 412 DISALLOW_COPY_AND_ASSIGN(FragmentShaderYUVVideo); | 412 DISALLOW_COPY_AND_ASSIGN(FragmentShaderYUVVideo); |
| 413 }; | 413 }; |
| 414 | 414 |
| 415 | |
| 416 class FragmentShaderYUVAVideo { | |
| 417 public: | |
|
danakj
2013/04/04 15:01:55
nit: 1 space before public/private:
does the pres
vignesh
2013/04/04 22:06:14
not sure why, presubmit did not mention this.
Don
| |
| 418 FragmentShaderYUVAVideo(); | |
| 419 std::string GetShaderString() const; | |
| 420 | |
| 421 void Init(WebKit::WebGraphicsContext3D*, | |
|
danakj
2013/04/04 15:01:55
nit: give all arguments variable names
vignesh
2013/04/04 22:06:14
Done.
| |
| 422 unsigned program, | |
| 423 bool using_bind_uniform, | |
| 424 int* base_uniform_index); | |
| 425 | |
| 426 int y_texture_location() const { return y_texture_location_; } | |
| 427 int u_texture_location() const { return u_texture_location_; } | |
| 428 int v_texture_location() const { return v_texture_location_; } | |
| 429 int a_texture_location() const { return a_texture_location_; } | |
| 430 int alpha_location() const { return alpha_location_; } | |
| 431 int yuv_matrix_location() const { return yuv_matrix_location_; } | |
| 432 int yuv_adj_location() const { return yuv_adj_location_; } | |
| 433 | |
| 434 private: | |
| 435 int y_texture_location_; | |
| 436 int u_texture_location_; | |
| 437 int v_texture_location_; | |
| 438 int a_texture_location_; | |
| 439 int alpha_location_; | |
| 440 int yuv_matrix_location_; | |
| 441 int yuv_adj_location_; | |
| 442 | |
| 443 DISALLOW_COPY_AND_ASSIGN(FragmentShaderYUVAVideo); | |
| 444 }; | |
| 445 | |
| 415 class FragmentShaderColor { | 446 class FragmentShaderColor { |
| 416 public: | 447 public: |
| 417 FragmentShaderColor(); | 448 FragmentShaderColor(); |
| 418 std::string GetShaderString() const; | 449 std::string GetShaderString() const; |
| 419 | 450 |
| 420 void Init(WebKit::WebGraphicsContext3D*, | 451 void Init(WebKit::WebGraphicsContext3D*, |
| 421 unsigned program, | 452 unsigned program, |
| 422 bool using_bind_uniform, | 453 bool using_bind_uniform, |
| 423 int* base_uniform_index); | 454 int* base_uniform_index); |
| 424 int edge_location() const { return -1; } | 455 int edge_location() const { return -1; } |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 468 int tex_transform_location_; | 499 int tex_transform_location_; |
| 469 int frequency_location_; | 500 int frequency_location_; |
| 470 int color_location_; | 501 int color_location_; |
| 471 | 502 |
| 472 DISALLOW_COPY_AND_ASSIGN(FragmentShaderCheckerboard); | 503 DISALLOW_COPY_AND_ASSIGN(FragmentShaderCheckerboard); |
| 473 }; | 504 }; |
| 474 | 505 |
| 475 } // namespace cc | 506 } // namespace cc |
| 476 | 507 |
| 477 #endif // CC_OUTPUT_SHADER_H_ | 508 #endif // CC_OUTPUT_SHADER_H_ |
| OLD | NEW |