OLD | NEW |
1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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_GL_RENDERER_H_ | 5 #ifndef CC_OUTPUT_GL_RENDERER_H_ |
6 #define CC_OUTPUT_GL_RENDERER_H_ | 6 #define CC_OUTPUT_GL_RENDERER_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 const NonPremultipliedTextureProgram* GetNonPremultipliedTextureProgram( | 408 const NonPremultipliedTextureProgram* GetNonPremultipliedTextureProgram( |
409 TexCoordPrecision precision, | 409 TexCoordPrecision precision, |
410 SamplerType sampler); | 410 SamplerType sampler); |
411 const TextureBackgroundProgram* GetTextureBackgroundProgram( | 411 const TextureBackgroundProgram* GetTextureBackgroundProgram( |
412 TexCoordPrecision precision, | 412 TexCoordPrecision precision, |
413 SamplerType sampler); | 413 SamplerType sampler); |
414 const NonPremultipliedTextureBackgroundProgram* | 414 const NonPremultipliedTextureBackgroundProgram* |
415 GetNonPremultipliedTextureBackgroundProgram(TexCoordPrecision precision, | 415 GetNonPremultipliedTextureBackgroundProgram(TexCoordPrecision precision, |
416 SamplerType sampler); | 416 SamplerType sampler); |
417 | 417 |
418 const VideoYUVProgram* GetVideoYUVProgram(TexCoordPrecision precision, | 418 const VideoYUVProgram* GetVideoYUVProgram( |
419 SamplerType sampler, | 419 TexCoordPrecision precision, |
420 bool use_alpha_texture, | 420 SamplerType sampler, |
421 bool use_nv12, | 421 bool use_alpha_texture, |
422 bool use_color_lut); | 422 bool use_nv12, |
| 423 bool use_color_lut, |
| 424 FragmentShaderYUVVideo::HighbitTexture highbit_texture); |
423 const VideoStreamTextureProgram* GetVideoStreamTextureProgram( | 425 const VideoStreamTextureProgram* GetVideoStreamTextureProgram( |
424 TexCoordPrecision precision); | 426 TexCoordPrecision precision); |
425 | 427 |
426 const DebugBorderProgram* GetDebugBorderProgram(); | 428 const DebugBorderProgram* GetDebugBorderProgram(); |
427 const SolidColorProgram* GetSolidColorProgram(); | 429 const SolidColorProgram* GetSolidColorProgram(); |
428 const SolidColorProgramAA* GetSolidColorProgramAA(); | 430 const SolidColorProgramAA* GetSolidColorProgramAA(); |
429 | 431 |
430 TileProgram | 432 TileProgram |
431 tile_program_[LAST_TEX_COORD_PRECISION + 1][LAST_SAMPLER_TYPE + 1]; | 433 tile_program_[LAST_TEX_COORD_PRECISION + 1][LAST_SAMPLER_TYPE + 1]; |
432 TileProgramOpaque | 434 TileProgramOpaque |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 render_pass_mask_color_matrix_program_[LAST_TEX_COORD_PRECISION + 1] | 479 render_pass_mask_color_matrix_program_[LAST_TEX_COORD_PRECISION + 1] |
478 [LAST_SAMPLER_TYPE + 1] | 480 [LAST_SAMPLER_TYPE + 1] |
479 [LAST_BLEND_MODE + 1] | 481 [LAST_BLEND_MODE + 1] |
480 [LAST_MASK_VALUE + 1]; | 482 [LAST_MASK_VALUE + 1]; |
481 RenderPassMaskColorMatrixProgramAA | 483 RenderPassMaskColorMatrixProgramAA |
482 render_pass_mask_color_matrix_program_aa_[LAST_TEX_COORD_PRECISION + 1] | 484 render_pass_mask_color_matrix_program_aa_[LAST_TEX_COORD_PRECISION + 1] |
483 [LAST_SAMPLER_TYPE + 1] | 485 [LAST_SAMPLER_TYPE + 1] |
484 [LAST_BLEND_MODE + 1] | 486 [LAST_BLEND_MODE + 1] |
485 [LAST_MASK_VALUE + 1]; | 487 [LAST_MASK_VALUE + 1]; |
486 | 488 |
487 VideoYUVProgram video_yuv_program_[LAST_TEX_COORD_PRECISION + 1] | 489 VideoYUVProgram |
488 [LAST_SAMPLER_TYPE + 1][2][2][2]; | 490 video_yuv_program_[LAST_TEX_COORD_PRECISION + 1][LAST_SAMPLER_TYPE + 1][2] |
| 491 [2][2] |
| 492 [FragmentShaderYUVVideo::LAST_HIGHBIT_TEXTURE + 1]; |
489 VideoStreamTextureProgram | 493 VideoStreamTextureProgram |
490 video_stream_texture_program_[LAST_TEX_COORD_PRECISION + 1]; | 494 video_stream_texture_program_[LAST_TEX_COORD_PRECISION + 1]; |
491 | 495 |
492 DebugBorderProgram debug_border_program_; | 496 DebugBorderProgram debug_border_program_; |
493 SolidColorProgram solid_color_program_; | 497 SolidColorProgram solid_color_program_; |
494 SolidColorProgramAA solid_color_program_aa_; | 498 SolidColorProgramAA solid_color_program_aa_; |
495 | 499 |
496 gpu::gles2::GLES2Interface* gl_; | 500 gpu::gles2::GLES2Interface* gl_; |
497 gpu::ContextSupport* context_support_; | 501 gpu::ContextSupport* context_support_; |
498 std::unique_ptr<ContextCacheController::ScopedVisibility> context_visibility_; | 502 std::unique_ptr<ContextCacheController::ScopedVisibility> context_visibility_; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 bool force_drawing_frame_framebuffer_unflipped_ = false; | 548 bool force_drawing_frame_framebuffer_unflipped_ = false; |
545 | 549 |
546 BoundGeometry bound_geometry_; | 550 BoundGeometry bound_geometry_; |
547 ColorLUTCache color_lut_cache_; | 551 ColorLUTCache color_lut_cache_; |
548 DISALLOW_COPY_AND_ASSIGN(GLRenderer); | 552 DISALLOW_COPY_AND_ASSIGN(GLRenderer); |
549 }; | 553 }; |
550 | 554 |
551 } // namespace cc | 555 } // namespace cc |
552 | 556 |
553 #endif // CC_OUTPUT_GL_RENDERER_H_ | 557 #endif // CC_OUTPUT_GL_RENDERER_H_ |
OLD | NEW |