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