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