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_vector.h" | 10 #include "cc/base/scoped_ptr_vector.h" |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 TexCoordPrecision precision); | 350 TexCoordPrecision precision); |
351 const VideoYUVAProgram* GetVideoYUVAProgram( | 351 const VideoYUVAProgram* GetVideoYUVAProgram( |
352 TexCoordPrecision precision); | 352 TexCoordPrecision precision); |
353 const VideoStreamTextureProgram* GetVideoStreamTextureProgram( | 353 const VideoStreamTextureProgram* GetVideoStreamTextureProgram( |
354 TexCoordPrecision precision); | 354 TexCoordPrecision precision); |
355 | 355 |
356 const DebugBorderProgram* GetDebugBorderProgram(); | 356 const DebugBorderProgram* GetDebugBorderProgram(); |
357 const SolidColorProgram* GetSolidColorProgram(); | 357 const SolidColorProgram* GetSolidColorProgram(); |
358 const SolidColorProgramAA* GetSolidColorProgramAA(); | 358 const SolidColorProgramAA* GetSolidColorProgramAA(); |
359 | 359 |
360 scoped_ptr<TileProgram> tile_program_; | 360 TileProgram tile_program_; |
361 scoped_ptr<TileProgramOpaque> tile_program_opaque_; | 361 TileProgramOpaque tile_program_opaque_; |
362 scoped_ptr<TileProgramAA> tile_program_aa_; | 362 TileProgramAA tile_program_aa_; |
363 scoped_ptr<TileProgramSwizzle> tile_program_swizzle_; | 363 TileProgramSwizzle tile_program_swizzle_; |
364 scoped_ptr<TileProgramSwizzleOpaque> tile_program_swizzle_opaque_; | 364 TileProgramSwizzleOpaque tile_program_swizzle_opaque_; |
365 scoped_ptr<TileProgramSwizzleAA> tile_program_swizzle_aa_; | 365 TileProgramSwizzleAA tile_program_swizzle_aa_; |
366 scoped_ptr<TileCheckerboardProgram> tile_checkerboard_program_; | 366 TileCheckerboardProgram tile_checkerboard_program_; |
367 | 367 |
368 scoped_ptr<TileProgram> tile_program_highp_; | 368 TileProgram tile_program_highp_; |
369 scoped_ptr<TileProgramOpaque> tile_program_opaque_highp_; | 369 TileProgramOpaque tile_program_opaque_highp_; |
370 scoped_ptr<TileProgramAA> tile_program_aa_highp_; | 370 TileProgramAA tile_program_aa_highp_; |
371 scoped_ptr<TileProgramSwizzle> tile_program_swizzle_highp_; | 371 TileProgramSwizzle tile_program_swizzle_highp_; |
372 scoped_ptr<TileProgramSwizzleOpaque> tile_program_swizzle_opaque_highp_; | 372 TileProgramSwizzleOpaque tile_program_swizzle_opaque_highp_; |
373 scoped_ptr<TileProgramSwizzleAA> tile_program_swizzle_aa_highp_; | 373 TileProgramSwizzleAA tile_program_swizzle_aa_highp_; |
374 | 374 |
375 scoped_ptr<TextureProgram> texture_program_; | 375 TextureProgram texture_program_; |
376 scoped_ptr<NonPremultipliedTextureProgram> nonpremultiplied_texture_program_; | 376 NonPremultipliedTextureProgram nonpremultiplied_texture_program_; |
377 scoped_ptr<TextureBackgroundProgram> texture_background_program_; | 377 TextureBackgroundProgram texture_background_program_; |
378 scoped_ptr<NonPremultipliedTextureBackgroundProgram> | 378 NonPremultipliedTextureBackgroundProgram |
379 nonpremultiplied_texture_background_program_; | 379 nonpremultiplied_texture_background_program_; |
380 scoped_ptr<TextureIOSurfaceProgram> texture_io_surface_program_; | 380 TextureIOSurfaceProgram texture_io_surface_program_; |
381 | 381 |
382 scoped_ptr<TextureProgram> texture_program_highp_; | 382 TextureProgram texture_program_highp_; |
383 scoped_ptr<NonPremultipliedTextureProgram> | 383 NonPremultipliedTextureProgram nonpremultiplied_texture_program_highp_; |
384 nonpremultiplied_texture_program_highp_; | 384 TextureBackgroundProgram texture_background_program_highp_; |
385 scoped_ptr<TextureBackgroundProgram> texture_background_program_highp_; | 385 NonPremultipliedTextureBackgroundProgram |
386 scoped_ptr<NonPremultipliedTextureBackgroundProgram> | |
387 nonpremultiplied_texture_background_program_highp_; | 386 nonpremultiplied_texture_background_program_highp_; |
388 scoped_ptr<TextureIOSurfaceProgram> texture_io_surface_program_highp_; | 387 TextureIOSurfaceProgram texture_io_surface_program_highp_; |
389 | 388 |
390 scoped_ptr<RenderPassProgram> render_pass_program_; | 389 RenderPassProgram render_pass_program_; |
391 scoped_ptr<RenderPassProgramAA> render_pass_program_aa_; | 390 RenderPassProgramAA render_pass_program_aa_; |
392 scoped_ptr<RenderPassMaskProgram> render_pass_mask_program_; | 391 RenderPassMaskProgram render_pass_mask_program_; |
393 scoped_ptr<RenderPassMaskProgramAA> render_pass_mask_program_aa_; | 392 RenderPassMaskProgramAA render_pass_mask_program_aa_; |
394 scoped_ptr<RenderPassColorMatrixProgram> render_pass_color_matrix_program_; | 393 RenderPassColorMatrixProgram render_pass_color_matrix_program_; |
395 scoped_ptr<RenderPassColorMatrixProgramAA> | 394 RenderPassColorMatrixProgramAA render_pass_color_matrix_program_aa_; |
396 render_pass_color_matrix_program_aa_; | 395 RenderPassMaskColorMatrixProgram render_pass_mask_color_matrix_program_; |
397 scoped_ptr<RenderPassMaskColorMatrixProgram> | 396 RenderPassMaskColorMatrixProgramAA render_pass_mask_color_matrix_program_aa_; |
398 render_pass_mask_color_matrix_program_; | |
399 scoped_ptr<RenderPassMaskColorMatrixProgramAA> | |
400 render_pass_mask_color_matrix_program_aa_; | |
401 | 397 |
402 scoped_ptr<RenderPassProgram> render_pass_program_highp_; | 398 RenderPassProgram render_pass_program_highp_; |
403 scoped_ptr<RenderPassProgramAA> render_pass_program_aa_highp_; | 399 RenderPassProgramAA render_pass_program_aa_highp_; |
404 scoped_ptr<RenderPassMaskProgram> render_pass_mask_program_highp_; | 400 RenderPassMaskProgram render_pass_mask_program_highp_; |
405 scoped_ptr<RenderPassMaskProgramAA> render_pass_mask_program_aa_highp_; | 401 RenderPassMaskProgramAA render_pass_mask_program_aa_highp_; |
406 scoped_ptr<RenderPassColorMatrixProgram> | 402 RenderPassColorMatrixProgram render_pass_color_matrix_program_highp_; |
407 render_pass_color_matrix_program_highp_; | 403 RenderPassColorMatrixProgramAA render_pass_color_matrix_program_aa_highp_; |
408 scoped_ptr<RenderPassColorMatrixProgramAA> | 404 RenderPassMaskColorMatrixProgram render_pass_mask_color_matrix_program_highp_; |
409 render_pass_color_matrix_program_aa_highp_; | 405 RenderPassMaskColorMatrixProgramAA |
410 scoped_ptr<RenderPassMaskColorMatrixProgram> | |
411 render_pass_mask_color_matrix_program_highp_; | |
412 scoped_ptr<RenderPassMaskColorMatrixProgramAA> | |
413 render_pass_mask_color_matrix_program_aa_highp_; | 406 render_pass_mask_color_matrix_program_aa_highp_; |
414 | 407 |
415 scoped_ptr<VideoYUVProgram> video_yuv_program_; | 408 VideoYUVProgram video_yuv_program_; |
416 scoped_ptr<VideoYUVAProgram> video_yuva_program_; | 409 VideoYUVAProgram video_yuva_program_; |
417 scoped_ptr<VideoStreamTextureProgram> video_stream_texture_program_; | 410 VideoStreamTextureProgram video_stream_texture_program_; |
418 | 411 |
419 scoped_ptr<VideoYUVProgram> video_yuv_program_highp_; | 412 VideoYUVProgram video_yuv_program_highp_; |
420 scoped_ptr<VideoYUVAProgram> video_yuva_program_highp_; | 413 VideoYUVAProgram video_yuva_program_highp_; |
421 scoped_ptr<VideoStreamTextureProgram> video_stream_texture_program_highp_; | 414 VideoStreamTextureProgram video_stream_texture_program_highp_; |
422 | 415 |
423 scoped_ptr<DebugBorderProgram> debug_border_program_; | 416 DebugBorderProgram debug_border_program_; |
424 scoped_ptr<SolidColorProgram> solid_color_program_; | 417 SolidColorProgram solid_color_program_; |
425 scoped_ptr<SolidColorProgramAA> solid_color_program_aa_; | 418 SolidColorProgramAA solid_color_program_aa_; |
426 | 419 |
427 WebKit::WebGraphicsContext3D* context_; | 420 WebKit::WebGraphicsContext3D* context_; |
428 gpu::ContextSupport* context_support_; | 421 gpu::ContextSupport* context_support_; |
429 | 422 |
430 skia::RefPtr<GrContext> gr_context_; | 423 skia::RefPtr<GrContext> gr_context_; |
431 skia::RefPtr<SkCanvas> sk_canvas_; | 424 skia::RefPtr<SkCanvas> sk_canvas_; |
432 | 425 |
433 TextureMailboxDeleter* texture_mailbox_deleter_; | 426 TextureMailboxDeleter* texture_mailbox_deleter_; |
434 | 427 |
435 gfx::Rect swap_buffer_rect_; | 428 gfx::Rect swap_buffer_rect_; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 460 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
468 #define GLC(context, x) \ | 461 #define GLC(context, x) \ |
469 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) | 462 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) |
470 #else | 463 #else |
471 #define GLC(context, x) (x) | 464 #define GLC(context, x) (x) |
472 #endif | 465 #endif |
473 | 466 |
474 } // namespace cc | 467 } // namespace cc |
475 | 468 |
476 #endif // CC_OUTPUT_GL_RENDERER_H_ | 469 #endif // CC_OUTPUT_GL_RENDERER_H_ |
OLD | NEW |