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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 const NonPremultipliedTextureProgram* GetNonPremultipliedTextureProgram( | 404 const NonPremultipliedTextureProgram* GetNonPremultipliedTextureProgram( |
405 TexCoordPrecision precision, | 405 TexCoordPrecision precision, |
406 SamplerType sampler); | 406 SamplerType sampler); |
407 const TextureBackgroundProgram* GetTextureBackgroundProgram( | 407 const TextureBackgroundProgram* GetTextureBackgroundProgram( |
408 TexCoordPrecision precision, | 408 TexCoordPrecision precision, |
409 SamplerType sampler); | 409 SamplerType sampler); |
410 const NonPremultipliedTextureBackgroundProgram* | 410 const NonPremultipliedTextureBackgroundProgram* |
411 GetNonPremultipliedTextureBackgroundProgram(TexCoordPrecision precision, | 411 GetNonPremultipliedTextureBackgroundProgram(TexCoordPrecision precision, |
412 SamplerType sampler); | 412 SamplerType sampler); |
413 | 413 |
414 const VideoYUVProgram* GetVideoYUVProgram(TexCoordPrecision precision, | 414 const VideoYUVProgram* GetVideoYUVProgram( |
415 SamplerType sampler, | 415 TexCoordPrecision precision, |
416 bool use_alpha_texture, | 416 SamplerType sampler, |
417 bool use_nv12, | 417 bool use_alpha_texture, |
418 bool use_color_lut); | 418 bool use_nv12, |
| 419 bool use_color_lut, |
| 420 FragmentShaderYUVVideo::HighbitTexture highbit_texture); |
419 const VideoStreamTextureProgram* GetVideoStreamTextureProgram( | 421 const VideoStreamTextureProgram* GetVideoStreamTextureProgram( |
420 TexCoordPrecision precision); | 422 TexCoordPrecision precision); |
421 | 423 |
422 const DebugBorderProgram* GetDebugBorderProgram(); | 424 const DebugBorderProgram* GetDebugBorderProgram(); |
423 const SolidColorProgram* GetSolidColorProgram(); | 425 const SolidColorProgram* GetSolidColorProgram(); |
424 const SolidColorProgramAA* GetSolidColorProgramAA(); | 426 const SolidColorProgramAA* GetSolidColorProgramAA(); |
425 | 427 |
426 TileProgram | 428 TileProgram |
427 tile_program_[LAST_TEX_COORD_PRECISION + 1][LAST_SAMPLER_TYPE + 1]; | 429 tile_program_[LAST_TEX_COORD_PRECISION + 1][LAST_SAMPLER_TYPE + 1]; |
428 TileProgramOpaque | 430 TileProgramOpaque |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 render_pass_mask_color_matrix_program_[LAST_TEX_COORD_PRECISION + 1] | 475 render_pass_mask_color_matrix_program_[LAST_TEX_COORD_PRECISION + 1] |
474 [LAST_SAMPLER_TYPE + 1] | 476 [LAST_SAMPLER_TYPE + 1] |
475 [LAST_BLEND_MODE + 1] | 477 [LAST_BLEND_MODE + 1] |
476 [LAST_MASK_VALUE + 1]; | 478 [LAST_MASK_VALUE + 1]; |
477 RenderPassMaskColorMatrixProgramAA | 479 RenderPassMaskColorMatrixProgramAA |
478 render_pass_mask_color_matrix_program_aa_[LAST_TEX_COORD_PRECISION + 1] | 480 render_pass_mask_color_matrix_program_aa_[LAST_TEX_COORD_PRECISION + 1] |
479 [LAST_SAMPLER_TYPE + 1] | 481 [LAST_SAMPLER_TYPE + 1] |
480 [LAST_BLEND_MODE + 1] | 482 [LAST_BLEND_MODE + 1] |
481 [LAST_MASK_VALUE + 1]; | 483 [LAST_MASK_VALUE + 1]; |
482 | 484 |
483 VideoYUVProgram video_yuv_program_[LAST_TEX_COORD_PRECISION + 1] | 485 VideoYUVProgram |
484 [LAST_SAMPLER_TYPE + 1][2][2][2]; | 486 video_yuv_program_[LAST_TEX_COORD_PRECISION + 1][LAST_SAMPLER_TYPE + 1][2] |
| 487 [2][2] |
| 488 [FragmentShaderYUVVideo::LAST_HIGHBIT_TEXTURE + 1]; |
485 VideoStreamTextureProgram | 489 VideoStreamTextureProgram |
486 video_stream_texture_program_[LAST_TEX_COORD_PRECISION + 1]; | 490 video_stream_texture_program_[LAST_TEX_COORD_PRECISION + 1]; |
487 | 491 |
488 DebugBorderProgram debug_border_program_; | 492 DebugBorderProgram debug_border_program_; |
489 SolidColorProgram solid_color_program_; | 493 SolidColorProgram solid_color_program_; |
490 SolidColorProgramAA solid_color_program_aa_; | 494 SolidColorProgramAA solid_color_program_aa_; |
491 | 495 |
492 gpu::gles2::GLES2Interface* gl_; | 496 gpu::gles2::GLES2Interface* gl_; |
493 gpu::ContextSupport* context_support_; | 497 gpu::ContextSupport* context_support_; |
494 std::unique_ptr<ContextCacheController::ScopedVisibility> context_visibility_; | 498 std::unique_ptr<ContextCacheController::ScopedVisibility> context_visibility_; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 bool force_drawing_frame_framebuffer_unflipped_ = false; | 544 bool force_drawing_frame_framebuffer_unflipped_ = false; |
541 | 545 |
542 BoundGeometry bound_geometry_; | 546 BoundGeometry bound_geometry_; |
543 ColorLUTCache color_lut_cache_; | 547 ColorLUTCache color_lut_cache_; |
544 DISALLOW_COPY_AND_ASSIGN(GLRenderer); | 548 DISALLOW_COPY_AND_ASSIGN(GLRenderer); |
545 }; | 549 }; |
546 | 550 |
547 } // namespace cc | 551 } // namespace cc |
548 | 552 |
549 #endif // CC_OUTPUT_GL_RENDERER_H_ | 553 #endif // CC_OUTPUT_GL_RENDERER_H_ |
OLD | NEW |