| 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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 typedef ProgramBinding<VertexShaderPosTexTransform, | 325 typedef ProgramBinding<VertexShaderPosTexTransform, |
| 326 FragmentShaderRGBATexAlphaMaskColorMatrix> | 326 FragmentShaderRGBATexAlphaMaskColorMatrix> |
| 327 RenderPassMaskColorMatrixProgram; | 327 RenderPassMaskColorMatrixProgram; |
| 328 | 328 |
| 329 // Video shaders. | 329 // Video shaders. |
| 330 typedef ProgramBinding<VertexShaderVideoTransform, FragmentShaderRGBATex> | 330 typedef ProgramBinding<VertexShaderVideoTransform, FragmentShaderRGBATex> |
| 331 VideoStreamTextureProgram; | 331 VideoStreamTextureProgram; |
| 332 typedef ProgramBinding<VertexShaderPosTexYUVStretchOffset, | 332 typedef ProgramBinding<VertexShaderPosTexYUVStretchOffset, |
| 333 FragmentShaderYUVVideo> VideoYUVProgram; | 333 FragmentShaderYUVVideo> VideoYUVProgram; |
| 334 typedef ProgramBinding<VertexShaderPosTexYUVStretchOffset, | 334 typedef ProgramBinding<VertexShaderPosTexYUVStretchOffset, |
| 335 FragmentShaderYUVAVideo> VideoYUVAProgram; | 335 FragmentShaderNV12Video> |
| 336 VideoNV12Program; |
| 337 typedef ProgramBinding<VertexShaderPosTexYUVStretchOffset, |
| 338 FragmentShaderYUVAVideo> |
| 339 VideoYUVAProgram; |
| 336 | 340 |
| 337 // Special purpose / effects shaders. | 341 // Special purpose / effects shaders. |
| 338 typedef ProgramBinding<VertexShaderPos, FragmentShaderColor> | 342 typedef ProgramBinding<VertexShaderPos, FragmentShaderColor> |
| 339 DebugBorderProgram; | 343 DebugBorderProgram; |
| 340 typedef ProgramBinding<VertexShaderQuad, FragmentShaderColor> | 344 typedef ProgramBinding<VertexShaderQuad, FragmentShaderColor> |
| 341 SolidColorProgram; | 345 SolidColorProgram; |
| 342 typedef ProgramBinding<VertexShaderQuadAA, FragmentShaderColorAA> | 346 typedef ProgramBinding<VertexShaderQuadAA, FragmentShaderColorAA> |
| 343 SolidColorProgramAA; | 347 SolidColorProgramAA; |
| 344 | 348 |
| 345 const TileProgram* GetTileProgram( | 349 const TileProgram* GetTileProgram( |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 TexCoordPrecision precision, | 399 TexCoordPrecision precision, |
| 396 SamplerType sampler); | 400 SamplerType sampler); |
| 397 const NonPremultipliedTextureBackgroundProgram* | 401 const NonPremultipliedTextureBackgroundProgram* |
| 398 GetNonPremultipliedTextureBackgroundProgram(TexCoordPrecision precision, | 402 GetNonPremultipliedTextureBackgroundProgram(TexCoordPrecision precision, |
| 399 SamplerType sampler); | 403 SamplerType sampler); |
| 400 const TextureProgram* GetTextureIOSurfaceProgram( | 404 const TextureProgram* GetTextureIOSurfaceProgram( |
| 401 TexCoordPrecision precision); | 405 TexCoordPrecision precision); |
| 402 | 406 |
| 403 const VideoYUVProgram* GetVideoYUVProgram(TexCoordPrecision precision, | 407 const VideoYUVProgram* GetVideoYUVProgram(TexCoordPrecision precision, |
| 404 SamplerType sampler); | 408 SamplerType sampler); |
| 409 const VideoNV12Program* GetVideoNV12Program(TexCoordPrecision precision, |
| 410 SamplerType sampler); |
| 405 const VideoYUVAProgram* GetVideoYUVAProgram(TexCoordPrecision precision, | 411 const VideoYUVAProgram* GetVideoYUVAProgram(TexCoordPrecision precision, |
| 406 SamplerType sampler); | 412 SamplerType sampler); |
| 407 const VideoStreamTextureProgram* GetVideoStreamTextureProgram( | 413 const VideoStreamTextureProgram* GetVideoStreamTextureProgram( |
| 408 TexCoordPrecision precision); | 414 TexCoordPrecision precision); |
| 409 | 415 |
| 410 const DebugBorderProgram* GetDebugBorderProgram(); | 416 const DebugBorderProgram* GetDebugBorderProgram(); |
| 411 const SolidColorProgram* GetSolidColorProgram(); | 417 const SolidColorProgram* GetSolidColorProgram(); |
| 412 const SolidColorProgramAA* GetSolidColorProgramAA(); | 418 const SolidColorProgramAA* GetSolidColorProgramAA(); |
| 413 | 419 |
| 414 TileProgram | 420 TileProgram |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 464 [LAST_BLEND_MODE + 1] | 470 [LAST_BLEND_MODE + 1] |
| 465 [LAST_MASK_VALUE + 1]; | 471 [LAST_MASK_VALUE + 1]; |
| 466 RenderPassMaskColorMatrixProgramAA | 472 RenderPassMaskColorMatrixProgramAA |
| 467 render_pass_mask_color_matrix_program_aa_[LAST_TEX_COORD_PRECISION + 1] | 473 render_pass_mask_color_matrix_program_aa_[LAST_TEX_COORD_PRECISION + 1] |
| 468 [LAST_SAMPLER_TYPE + 1] | 474 [LAST_SAMPLER_TYPE + 1] |
| 469 [LAST_BLEND_MODE + 1] | 475 [LAST_BLEND_MODE + 1] |
| 470 [LAST_MASK_VALUE + 1]; | 476 [LAST_MASK_VALUE + 1]; |
| 471 | 477 |
| 472 VideoYUVProgram | 478 VideoYUVProgram |
| 473 video_yuv_program_[LAST_TEX_COORD_PRECISION + 1][LAST_SAMPLER_TYPE + 1]; | 479 video_yuv_program_[LAST_TEX_COORD_PRECISION + 1][LAST_SAMPLER_TYPE + 1]; |
| 480 VideoNV12Program video_nv12_program_[LAST_TEX_COORD_PRECISION + 1] |
| 481 [LAST_SAMPLER_TYPE + 1]; |
| 474 VideoYUVAProgram | 482 VideoYUVAProgram |
| 475 video_yuva_program_[LAST_TEX_COORD_PRECISION + 1][LAST_SAMPLER_TYPE + 1]; | 483 video_yuva_program_[LAST_TEX_COORD_PRECISION + 1][LAST_SAMPLER_TYPE + 1]; |
| 476 VideoStreamTextureProgram | 484 VideoStreamTextureProgram |
| 477 video_stream_texture_program_[LAST_TEX_COORD_PRECISION + 1]; | 485 video_stream_texture_program_[LAST_TEX_COORD_PRECISION + 1]; |
| 478 | 486 |
| 479 DebugBorderProgram debug_border_program_; | 487 DebugBorderProgram debug_border_program_; |
| 480 SolidColorProgram solid_color_program_; | 488 SolidColorProgram solid_color_program_; |
| 481 SolidColorProgramAA solid_color_program_aa_; | 489 SolidColorProgramAA solid_color_program_aa_; |
| 482 | 490 |
| 483 gpu::gles2::GLES2Interface* gl_; | 491 gpu::gles2::GLES2Interface* gl_; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 | 523 |
| 516 SkBitmap on_demand_tile_raster_bitmap_; | 524 SkBitmap on_demand_tile_raster_bitmap_; |
| 517 ResourceId on_demand_tile_raster_resource_id_; | 525 ResourceId on_demand_tile_raster_resource_id_; |
| 518 BoundGeometry bound_geometry_; | 526 BoundGeometry bound_geometry_; |
| 519 DISALLOW_COPY_AND_ASSIGN(GLRenderer); | 527 DISALLOW_COPY_AND_ASSIGN(GLRenderer); |
| 520 }; | 528 }; |
| 521 | 529 |
| 522 } // namespace cc | 530 } // namespace cc |
| 523 | 531 |
| 524 #endif // CC_OUTPUT_GL_RENDERER_H_ | 532 #endif // CC_OUTPUT_GL_RENDERER_H_ |
| OLD | NEW |