| 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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 TexCoordPrecision precision); | 369 TexCoordPrecision precision); |
| 370 const VideoYUVAProgram* GetVideoYUVAProgram( | 370 const VideoYUVAProgram* GetVideoYUVAProgram( |
| 371 TexCoordPrecision precision); | 371 TexCoordPrecision precision); |
| 372 const VideoStreamTextureProgram* GetVideoStreamTextureProgram( | 372 const VideoStreamTextureProgram* GetVideoStreamTextureProgram( |
| 373 TexCoordPrecision precision); | 373 TexCoordPrecision precision); |
| 374 | 374 |
| 375 const DebugBorderProgram* GetDebugBorderProgram(); | 375 const DebugBorderProgram* GetDebugBorderProgram(); |
| 376 const SolidColorProgram* GetSolidColorProgram(); | 376 const SolidColorProgram* GetSolidColorProgram(); |
| 377 const SolidColorProgramAA* GetSolidColorProgramAA(); | 377 const SolidColorProgramAA* GetSolidColorProgramAA(); |
| 378 | 378 |
| 379 TileProgram | 379 TileProgram tile_program_[NumTexCoordPrecisions][NumSamplerTypes]; |
| 380 tile_program_[LAST_TEX_COORD_PRECISION + 1][LAST_SAMPLER_TYPE + 1]; | |
| 381 TileProgramOpaque | 380 TileProgramOpaque |
| 382 tile_program_opaque_[LAST_TEX_COORD_PRECISION + 1][LAST_SAMPLER_TYPE + 1]; | 381 tile_program_opaque_[NumTexCoordPrecisions][NumSamplerTypes]; |
| 383 TileProgramAA | 382 TileProgramAA tile_program_aa_[NumTexCoordPrecisions][NumSamplerTypes]; |
| 384 tile_program_aa_[LAST_TEX_COORD_PRECISION + 1][LAST_SAMPLER_TYPE + 1]; | 383 TileProgramSwizzle |
| 385 TileProgramSwizzle tile_program_swizzle_[LAST_TEX_COORD_PRECISION + | 384 tile_program_swizzle_[NumTexCoordPrecisions][NumSamplerTypes]; |
| 386 1][LAST_SAMPLER_TYPE + 1]; | |
| 387 TileProgramSwizzleOpaque | 385 TileProgramSwizzleOpaque |
| 388 tile_program_swizzle_opaque_[LAST_TEX_COORD_PRECISION + | 386 tile_program_swizzle_opaque_[NumTexCoordPrecisions][NumSamplerTypes]; |
| 389 1][LAST_SAMPLER_TYPE + 1]; | 387 TileProgramSwizzleAA |
| 390 TileProgramSwizzleAA tile_program_swizzle_aa_[LAST_TEX_COORD_PRECISION + | 388 tile_program_swizzle_aa_[NumTexCoordPrecisions][NumSamplerTypes]; |
| 391 1][LAST_SAMPLER_TYPE + 1]; | |
| 392 | 389 |
| 393 TileCheckerboardProgram tile_checkerboard_program_; | 390 TileCheckerboardProgram tile_checkerboard_program_; |
| 394 | 391 |
| 395 TextureProgram texture_program_[LAST_TEX_COORD_PRECISION + 1]; | 392 TextureProgram texture_program_[NumTexCoordPrecisions]; |
| 396 NonPremultipliedTextureProgram | 393 NonPremultipliedTextureProgram |
| 397 nonpremultiplied_texture_program_[LAST_TEX_COORD_PRECISION + 1]; | 394 nonpremultiplied_texture_program_[NumTexCoordPrecisions]; |
| 398 TextureBackgroundProgram | 395 TextureBackgroundProgram texture_background_program_[NumTexCoordPrecisions]; |
| 399 texture_background_program_[LAST_TEX_COORD_PRECISION + 1]; | |
| 400 NonPremultipliedTextureBackgroundProgram | 396 NonPremultipliedTextureBackgroundProgram |
| 401 nonpremultiplied_texture_background_program_[LAST_TEX_COORD_PRECISION + | 397 nonpremultiplied_texture_background_program_[NumTexCoordPrecisions]; |
| 402 1]; | 398 TextureProgram texture_io_surface_program_[NumTexCoordPrecisions]; |
| 403 TextureProgram texture_io_surface_program_[LAST_TEX_COORD_PRECISION + 1]; | |
| 404 | 399 |
| 405 RenderPassProgram | 400 RenderPassProgram render_pass_program_[NumTexCoordPrecisions][NumBlendModes]; |
| 406 render_pass_program_[LAST_TEX_COORD_PRECISION + 1][LAST_BLEND_MODE + 1]; | 401 RenderPassProgramAA |
| 407 RenderPassProgramAA render_pass_program_aa_[LAST_TEX_COORD_PRECISION + | 402 render_pass_program_aa_[NumTexCoordPrecisions][NumBlendModes]; |
| 408 1][LAST_BLEND_MODE + 1]; | 403 RenderPassMaskProgram render_pass_mask_program_ |
| 409 RenderPassMaskProgram | 404 [NumTexCoordPrecisions][NumSamplerTypes][NumBlendModes]; |
| 410 render_pass_mask_program_[LAST_TEX_COORD_PRECISION + | 405 RenderPassMaskProgramAA render_pass_mask_program_aa_ |
| 411 1][LAST_SAMPLER_TYPE + 1][LAST_BLEND_MODE + 1]; | 406 [NumTexCoordPrecisions][NumSamplerTypes][NumBlendModes]; |
| 412 RenderPassMaskProgramAA | |
| 413 render_pass_mask_program_aa_[LAST_TEX_COORD_PRECISION + | |
| 414 1][LAST_SAMPLER_TYPE + 1][LAST_BLEND_MODE + | |
| 415 1]; | |
| 416 RenderPassColorMatrixProgram | 407 RenderPassColorMatrixProgram |
| 417 render_pass_color_matrix_program_[LAST_TEX_COORD_PRECISION + | 408 render_pass_color_matrix_program_[NumTexCoordPrecisions][NumBlendModes]; |
| 418 1][LAST_BLEND_MODE + 1]; | 409 RenderPassColorMatrixProgramAA render_pass_color_matrix_program_aa_ |
| 419 RenderPassColorMatrixProgramAA | 410 [NumTexCoordPrecisions][NumBlendModes]; |
| 420 render_pass_color_matrix_program_aa_[LAST_TEX_COORD_PRECISION + | 411 RenderPassMaskColorMatrixProgram render_pass_mask_color_matrix_program_ |
| 421 1][LAST_BLEND_MODE + 1]; | 412 [NumTexCoordPrecisions][NumSamplerTypes][NumBlendModes]; |
| 422 RenderPassMaskColorMatrixProgram | 413 RenderPassMaskColorMatrixProgramAA render_pass_mask_color_matrix_program_aa_ |
| 423 render_pass_mask_color_matrix_program_[LAST_TEX_COORD_PRECISION + | 414 [NumTexCoordPrecisions][NumSamplerTypes][NumBlendModes]; |
| 424 1][LAST_SAMPLER_TYPE + | |
| 425 1][LAST_BLEND_MODE + 1]; | |
| 426 RenderPassMaskColorMatrixProgramAA | |
| 427 render_pass_mask_color_matrix_program_aa_[LAST_TEX_COORD_PRECISION + | |
| 428 1][LAST_SAMPLER_TYPE + | |
| 429 1][LAST_BLEND_MODE + 1]; | |
| 430 | 415 |
| 431 VideoYUVProgram video_yuv_program_[LAST_TEX_COORD_PRECISION + 1]; | 416 VideoYUVProgram video_yuv_program_[NumTexCoordPrecisions]; |
| 432 VideoYUVAProgram video_yuva_program_[LAST_TEX_COORD_PRECISION + 1]; | 417 VideoYUVAProgram video_yuva_program_[NumTexCoordPrecisions]; |
| 433 VideoStreamTextureProgram | 418 VideoStreamTextureProgram |
| 434 video_stream_texture_program_[LAST_TEX_COORD_PRECISION + 1]; | 419 video_stream_texture_program_[NumTexCoordPrecisions]; |
| 435 | 420 |
| 436 DebugBorderProgram debug_border_program_; | 421 DebugBorderProgram debug_border_program_; |
| 437 SolidColorProgram solid_color_program_; | 422 SolidColorProgram solid_color_program_; |
| 438 SolidColorProgramAA solid_color_program_aa_; | 423 SolidColorProgramAA solid_color_program_aa_; |
| 439 | 424 |
| 440 gpu::gles2::GLES2Interface* gl_; | 425 gpu::gles2::GLES2Interface* gl_; |
| 441 gpu::ContextSupport* context_support_; | 426 gpu::ContextSupport* context_support_; |
| 442 | 427 |
| 443 TextureMailboxDeleter* texture_mailbox_deleter_; | 428 TextureMailboxDeleter* texture_mailbox_deleter_; |
| 444 | 429 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 483 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 468 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
| 484 #define GLC(context, x) \ | 469 #define GLC(context, x) \ |
| 485 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) | 470 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) |
| 486 #else | 471 #else |
| 487 #define GLC(context, x) (x) | 472 #define GLC(context, x) (x) |
| 488 #endif | 473 #endif |
| 489 | 474 |
| 490 } // namespace cc | 475 } // namespace cc |
| 491 | 476 |
| 492 #endif // CC_OUTPUT_GL_RENDERER_H_ | 477 #endif // CC_OUTPUT_GL_RENDERER_H_ |
| OLD | NEW |