| 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 "base/cancelable_callback.h" | 8 #include "base/cancelable_callback.h" |
| 9 #include "cc/base/cc_export.h" | 9 #include "cc/base/cc_export.h" |
| 10 #include "cc/base/scoped_ptr_deque.h" | 10 #include "cc/base/scoped_ptr_deque.h" |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 | 327 |
| 328 const TileCheckerboardProgram* GetTileCheckerboardProgram(); | 328 const TileCheckerboardProgram* GetTileCheckerboardProgram(); |
| 329 | 329 |
| 330 const RenderPassProgram* GetRenderPassProgram(TexCoordPrecision precision, | 330 const RenderPassProgram* GetRenderPassProgram(TexCoordPrecision precision, |
| 331 BlendMode blend_mode); | 331 BlendMode blend_mode); |
| 332 const RenderPassProgramAA* GetRenderPassProgramAA(TexCoordPrecision precision, | 332 const RenderPassProgramAA* GetRenderPassProgramAA(TexCoordPrecision precision, |
| 333 BlendMode blend_mode); | 333 BlendMode blend_mode); |
| 334 const RenderPassMaskProgram* GetRenderPassMaskProgram( | 334 const RenderPassMaskProgram* GetRenderPassMaskProgram( |
| 335 TexCoordPrecision precision, | 335 TexCoordPrecision precision, |
| 336 SamplerType sampler, | 336 SamplerType sampler, |
| 337 BlendMode blend_mode); | 337 BlendMode blend_mode, |
| 338 bool mask_for_background); |
| 338 const RenderPassMaskProgramAA* GetRenderPassMaskProgramAA( | 339 const RenderPassMaskProgramAA* GetRenderPassMaskProgramAA( |
| 339 TexCoordPrecision precision, | 340 TexCoordPrecision precision, |
| 340 SamplerType sampler, | 341 SamplerType sampler, |
| 341 BlendMode blend_mode); | 342 BlendMode blend_mode, |
| 343 bool mask_for_background); |
| 342 const RenderPassColorMatrixProgram* GetRenderPassColorMatrixProgram( | 344 const RenderPassColorMatrixProgram* GetRenderPassColorMatrixProgram( |
| 343 TexCoordPrecision precision, | 345 TexCoordPrecision precision, |
| 344 BlendMode blend_mode); | 346 BlendMode blend_mode); |
| 345 const RenderPassColorMatrixProgramAA* GetRenderPassColorMatrixProgramAA( | 347 const RenderPassColorMatrixProgramAA* GetRenderPassColorMatrixProgramAA( |
| 346 TexCoordPrecision precision, | 348 TexCoordPrecision precision, |
| 347 BlendMode blend_mode); | 349 BlendMode blend_mode); |
| 348 const RenderPassMaskColorMatrixProgram* GetRenderPassMaskColorMatrixProgram( | 350 const RenderPassMaskColorMatrixProgram* GetRenderPassMaskColorMatrixProgram( |
| 349 TexCoordPrecision precision, | 351 TexCoordPrecision precision, |
| 350 SamplerType sampler, | 352 SamplerType sampler, |
| 351 BlendMode blend_mode); | 353 BlendMode blend_mode, |
| 354 bool mask_for_background); |
| 352 const RenderPassMaskColorMatrixProgramAA* | 355 const RenderPassMaskColorMatrixProgramAA* |
| 353 GetRenderPassMaskColorMatrixProgramAA(TexCoordPrecision precision, | 356 GetRenderPassMaskColorMatrixProgramAA(TexCoordPrecision precision, |
| 354 SamplerType sampler, | 357 SamplerType sampler, |
| 355 BlendMode blend_mode); | 358 BlendMode blend_mode, |
| 359 bool mask_for_background); |
| 356 | 360 |
| 357 const TextureProgram* GetTextureProgram( | 361 const TextureProgram* GetTextureProgram( |
| 358 TexCoordPrecision precision); | 362 TexCoordPrecision precision); |
| 359 const NonPremultipliedTextureProgram* GetNonPremultipliedTextureProgram( | 363 const NonPremultipliedTextureProgram* GetNonPremultipliedTextureProgram( |
| 360 TexCoordPrecision precision); | 364 TexCoordPrecision precision); |
| 361 const TextureBackgroundProgram* GetTextureBackgroundProgram( | 365 const TextureBackgroundProgram* GetTextureBackgroundProgram( |
| 362 TexCoordPrecision precision); | 366 TexCoordPrecision precision); |
| 363 const NonPremultipliedTextureBackgroundProgram* | 367 const NonPremultipliedTextureBackgroundProgram* |
| 364 GetNonPremultipliedTextureBackgroundProgram(TexCoordPrecision precision); | 368 GetNonPremultipliedTextureBackgroundProgram(TexCoordPrecision precision); |
| 365 const TextureProgram* GetTextureIOSurfaceProgram( | 369 const TextureProgram* GetTextureIOSurfaceProgram( |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 NonPremultipliedTextureBackgroundProgram | 404 NonPremultipliedTextureBackgroundProgram |
| 401 nonpremultiplied_texture_background_program_[LAST_TEX_COORD_PRECISION + | 405 nonpremultiplied_texture_background_program_[LAST_TEX_COORD_PRECISION + |
| 402 1]; | 406 1]; |
| 403 TextureProgram texture_io_surface_program_[LAST_TEX_COORD_PRECISION + 1]; | 407 TextureProgram texture_io_surface_program_[LAST_TEX_COORD_PRECISION + 1]; |
| 404 | 408 |
| 405 RenderPassProgram | 409 RenderPassProgram |
| 406 render_pass_program_[LAST_TEX_COORD_PRECISION + 1][LAST_BLEND_MODE + 1]; | 410 render_pass_program_[LAST_TEX_COORD_PRECISION + 1][LAST_BLEND_MODE + 1]; |
| 407 RenderPassProgramAA render_pass_program_aa_[LAST_TEX_COORD_PRECISION + | 411 RenderPassProgramAA render_pass_program_aa_[LAST_TEX_COORD_PRECISION + |
| 408 1][LAST_BLEND_MODE + 1]; | 412 1][LAST_BLEND_MODE + 1]; |
| 409 RenderPassMaskProgram | 413 RenderPassMaskProgram |
| 410 render_pass_mask_program_[LAST_TEX_COORD_PRECISION + | 414 render_pass_mask_program_[LAST_TEX_COORD_PRECISION + 1] |
| 411 1][LAST_SAMPLER_TYPE + 1][LAST_BLEND_MODE + 1]; | 415 [LAST_SAMPLER_TYPE + 1] |
| 416 [LAST_BLEND_MODE + 1] |
| 417 [LAST_MASK_VALUE + 1]; |
| 412 RenderPassMaskProgramAA | 418 RenderPassMaskProgramAA |
| 413 render_pass_mask_program_aa_[LAST_TEX_COORD_PRECISION + | 419 render_pass_mask_program_aa_[LAST_TEX_COORD_PRECISION + 1] |
| 414 1][LAST_SAMPLER_TYPE + 1][LAST_BLEND_MODE + | 420 [LAST_SAMPLER_TYPE + 1] |
| 415 1]; | 421 [LAST_BLEND_MODE + 1] |
| 422 [LAST_MASK_VALUE + 1]; |
| 416 RenderPassColorMatrixProgram | 423 RenderPassColorMatrixProgram |
| 417 render_pass_color_matrix_program_[LAST_TEX_COORD_PRECISION + | 424 render_pass_color_matrix_program_[LAST_TEX_COORD_PRECISION + |
| 418 1][LAST_BLEND_MODE + 1]; | 425 1][LAST_BLEND_MODE + 1]; |
| 419 RenderPassColorMatrixProgramAA | 426 RenderPassColorMatrixProgramAA |
| 420 render_pass_color_matrix_program_aa_[LAST_TEX_COORD_PRECISION + | 427 render_pass_color_matrix_program_aa_[LAST_TEX_COORD_PRECISION + |
| 421 1][LAST_BLEND_MODE + 1]; | 428 1][LAST_BLEND_MODE + 1]; |
| 422 RenderPassMaskColorMatrixProgram | 429 RenderPassMaskColorMatrixProgram |
| 423 render_pass_mask_color_matrix_program_[LAST_TEX_COORD_PRECISION + | 430 render_pass_mask_color_matrix_program_[LAST_TEX_COORD_PRECISION + 1] |
| 424 1][LAST_SAMPLER_TYPE + | 431 [LAST_SAMPLER_TYPE + 1] |
| 425 1][LAST_BLEND_MODE + 1]; | 432 [LAST_BLEND_MODE + 1] |
| 433 [LAST_MASK_VALUE + 1]; |
| 426 RenderPassMaskColorMatrixProgramAA | 434 RenderPassMaskColorMatrixProgramAA |
| 427 render_pass_mask_color_matrix_program_aa_[LAST_TEX_COORD_PRECISION + | 435 render_pass_mask_color_matrix_program_aa_[LAST_TEX_COORD_PRECISION + 1] |
| 428 1][LAST_SAMPLER_TYPE + | 436 [LAST_SAMPLER_TYPE + 1] |
| 429 1][LAST_BLEND_MODE + 1]; | 437 [LAST_BLEND_MODE + 1] |
| 438 [LAST_MASK_VALUE + 1]; |
| 430 | 439 |
| 431 VideoYUVProgram video_yuv_program_[LAST_TEX_COORD_PRECISION + 1]; | 440 VideoYUVProgram video_yuv_program_[LAST_TEX_COORD_PRECISION + 1]; |
| 432 VideoYUVAProgram video_yuva_program_[LAST_TEX_COORD_PRECISION + 1]; | 441 VideoYUVAProgram video_yuva_program_[LAST_TEX_COORD_PRECISION + 1]; |
| 433 VideoStreamTextureProgram | 442 VideoStreamTextureProgram |
| 434 video_stream_texture_program_[LAST_TEX_COORD_PRECISION + 1]; | 443 video_stream_texture_program_[LAST_TEX_COORD_PRECISION + 1]; |
| 435 | 444 |
| 436 DebugBorderProgram debug_border_program_; | 445 DebugBorderProgram debug_border_program_; |
| 437 SolidColorProgram solid_color_program_; | 446 SolidColorProgram solid_color_program_; |
| 438 SolidColorProgramAA solid_color_program_aa_; | 447 SolidColorProgramAA solid_color_program_aa_; |
| 439 | 448 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 483 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 492 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
| 484 #define GLC(context, x) \ | 493 #define GLC(context, x) \ |
| 485 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) | 494 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) |
| 486 #else | 495 #else |
| 487 #define GLC(context, x) (x) | 496 #define GLC(context, x) (x) |
| 488 #endif | 497 #endif |
| 489 | 498 |
| 490 } // namespace cc | 499 } // namespace cc |
| 491 | 500 |
| 492 #endif // CC_OUTPUT_GL_RENDERER_H_ | 501 #endif // CC_OUTPUT_GL_RENDERER_H_ |
| OLD | NEW |