| 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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 typedef ProgramBinding<VertexShaderPosTex, FragmentShaderCheckerboard> | 253 typedef ProgramBinding<VertexShaderPosTex, FragmentShaderCheckerboard> |
| 254 TileCheckerboardProgram; | 254 TileCheckerboardProgram; |
| 255 | 255 |
| 256 // Texture shaders. | 256 // Texture shaders. |
| 257 typedef ProgramBinding<VertexShaderPosTexTransform, | 257 typedef ProgramBinding<VertexShaderPosTexTransform, |
| 258 FragmentShaderRGBATexVaryingAlpha> TextureProgram; | 258 FragmentShaderRGBATexVaryingAlpha> TextureProgram; |
| 259 typedef ProgramBinding<VertexShaderPosTexTransform, | 259 typedef ProgramBinding<VertexShaderPosTexTransform, |
| 260 FragmentShaderRGBATexPremultiplyAlpha> | 260 FragmentShaderRGBATexPremultiplyAlpha> |
| 261 NonPremultipliedTextureProgram; | 261 NonPremultipliedTextureProgram; |
| 262 typedef ProgramBinding<VertexShaderPosTexTransform, | 262 typedef ProgramBinding<VertexShaderPosTexTransform, |
| 263 FragmentShaderTexBackgroundVaryingAlpha> |
| 264 TextureBackgroundProgram; |
| 265 typedef ProgramBinding<VertexShaderPosTexTransform, |
| 266 FragmentShaderTexBackgroundVaryingAlpha> |
| 267 NonPremultipliedTextureBackgroundProgram; |
| 268 typedef ProgramBinding<VertexShaderPosTexTransform, |
| 263 FragmentShaderRGBATexRectVaryingAlpha> | 269 FragmentShaderRGBATexRectVaryingAlpha> |
| 264 TextureIOSurfaceProgram; | 270 TextureIOSurfaceProgram; |
| 265 | 271 |
| 266 // Render surface shaders. | 272 // Render surface shaders. |
| 267 typedef ProgramBinding<VertexShaderPosTexTransform, | 273 typedef ProgramBinding<VertexShaderPosTexTransform, |
| 268 FragmentShaderRGBATexAlpha> RenderPassProgram; | 274 FragmentShaderRGBATexAlpha> RenderPassProgram; |
| 269 typedef ProgramBinding<VertexShaderPosTexTransform, | 275 typedef ProgramBinding<VertexShaderPosTexTransform, |
| 270 FragmentShaderRGBATexAlphaMask> RenderPassMaskProgram; | 276 FragmentShaderRGBATexAlphaMask> RenderPassMaskProgram; |
| 271 typedef ProgramBinding<VertexShaderQuadTexTransformAA, | 277 typedef ProgramBinding<VertexShaderQuadTexTransformAA, |
| 272 FragmentShaderRGBATexAlphaAA> RenderPassProgramAA; | 278 FragmentShaderRGBATexAlphaAA> RenderPassProgramAA; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 TexCoordPrecision precision); | 333 TexCoordPrecision precision); |
| 328 const RenderPassMaskColorMatrixProgram* GetRenderPassMaskColorMatrixProgram( | 334 const RenderPassMaskColorMatrixProgram* GetRenderPassMaskColorMatrixProgram( |
| 329 TexCoordPrecision precision); | 335 TexCoordPrecision precision); |
| 330 const RenderPassMaskColorMatrixProgramAA* | 336 const RenderPassMaskColorMatrixProgramAA* |
| 331 GetRenderPassMaskColorMatrixProgramAA(TexCoordPrecision precision); | 337 GetRenderPassMaskColorMatrixProgramAA(TexCoordPrecision precision); |
| 332 | 338 |
| 333 const TextureProgram* GetTextureProgram( | 339 const TextureProgram* GetTextureProgram( |
| 334 TexCoordPrecision precision); | 340 TexCoordPrecision precision); |
| 335 const NonPremultipliedTextureProgram* GetNonPremultipliedTextureProgram( | 341 const NonPremultipliedTextureProgram* GetNonPremultipliedTextureProgram( |
| 336 TexCoordPrecision precision); | 342 TexCoordPrecision precision); |
| 343 const TextureBackgroundProgram* GetTextureBackgroundProgram( |
| 344 TexCoordPrecision precision); |
| 345 const NonPremultipliedTextureBackgroundProgram* |
| 346 GetNonPremultipliedTextureBackgroundProgram(TexCoordPrecision precision); |
| 337 const TextureIOSurfaceProgram* GetTextureIOSurfaceProgram( | 347 const TextureIOSurfaceProgram* GetTextureIOSurfaceProgram( |
| 338 TexCoordPrecision precision); | 348 TexCoordPrecision precision); |
| 339 | 349 |
| 340 const VideoYUVProgram* GetVideoYUVProgram( | 350 const VideoYUVProgram* GetVideoYUVProgram( |
| 341 TexCoordPrecision precision); | 351 TexCoordPrecision precision); |
| 342 const VideoYUVAProgram* GetVideoYUVAProgram( | 352 const VideoYUVAProgram* GetVideoYUVAProgram( |
| 343 TexCoordPrecision precision); | 353 TexCoordPrecision precision); |
| 344 const VideoStreamTextureProgram* GetVideoStreamTextureProgram( | 354 const VideoStreamTextureProgram* GetVideoStreamTextureProgram( |
| 345 TexCoordPrecision precision); | 355 TexCoordPrecision precision); |
| 346 | 356 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 358 | 368 |
| 359 scoped_ptr<TileProgram> tile_program_highp_; | 369 scoped_ptr<TileProgram> tile_program_highp_; |
| 360 scoped_ptr<TileProgramOpaque> tile_program_opaque_highp_; | 370 scoped_ptr<TileProgramOpaque> tile_program_opaque_highp_; |
| 361 scoped_ptr<TileProgramAA> tile_program_aa_highp_; | 371 scoped_ptr<TileProgramAA> tile_program_aa_highp_; |
| 362 scoped_ptr<TileProgramSwizzle> tile_program_swizzle_highp_; | 372 scoped_ptr<TileProgramSwizzle> tile_program_swizzle_highp_; |
| 363 scoped_ptr<TileProgramSwizzleOpaque> tile_program_swizzle_opaque_highp_; | 373 scoped_ptr<TileProgramSwizzleOpaque> tile_program_swizzle_opaque_highp_; |
| 364 scoped_ptr<TileProgramSwizzleAA> tile_program_swizzle_aa_highp_; | 374 scoped_ptr<TileProgramSwizzleAA> tile_program_swizzle_aa_highp_; |
| 365 | 375 |
| 366 scoped_ptr<TextureProgram> texture_program_; | 376 scoped_ptr<TextureProgram> texture_program_; |
| 367 scoped_ptr<NonPremultipliedTextureProgram> nonpremultiplied_texture_program_; | 377 scoped_ptr<NonPremultipliedTextureProgram> nonpremultiplied_texture_program_; |
| 378 scoped_ptr<TextureBackgroundProgram> texture_background_program_; |
| 379 scoped_ptr<NonPremultipliedTextureBackgroundProgram> |
| 380 nonpremultiplied_texture_background_program_; |
| 368 scoped_ptr<TextureIOSurfaceProgram> texture_io_surface_program_; | 381 scoped_ptr<TextureIOSurfaceProgram> texture_io_surface_program_; |
| 369 | 382 |
| 370 scoped_ptr<TextureProgram> texture_program_highp_; | 383 scoped_ptr<TextureProgram> texture_program_highp_; |
| 371 scoped_ptr<NonPremultipliedTextureProgram> | 384 scoped_ptr<NonPremultipliedTextureProgram> |
| 372 nonpremultiplied_texture_program_highp_; | 385 nonpremultiplied_texture_program_highp_; |
| 386 scoped_ptr<TextureBackgroundProgram> texture_background_program_highp_; |
| 387 scoped_ptr<NonPremultipliedTextureBackgroundProgram> |
| 388 nonpremultiplied_texture_background_program_highp_; |
| 373 scoped_ptr<TextureIOSurfaceProgram> texture_io_surface_program_highp_; | 389 scoped_ptr<TextureIOSurfaceProgram> texture_io_surface_program_highp_; |
| 374 | 390 |
| 375 scoped_ptr<RenderPassProgram> render_pass_program_; | 391 scoped_ptr<RenderPassProgram> render_pass_program_; |
| 376 scoped_ptr<RenderPassProgramAA> render_pass_program_aa_; | 392 scoped_ptr<RenderPassProgramAA> render_pass_program_aa_; |
| 377 scoped_ptr<RenderPassMaskProgram> render_pass_mask_program_; | 393 scoped_ptr<RenderPassMaskProgram> render_pass_mask_program_; |
| 378 scoped_ptr<RenderPassMaskProgramAA> render_pass_mask_program_aa_; | 394 scoped_ptr<RenderPassMaskProgramAA> render_pass_mask_program_aa_; |
| 379 scoped_ptr<RenderPassColorMatrixProgram> render_pass_color_matrix_program_; | 395 scoped_ptr<RenderPassColorMatrixProgram> render_pass_color_matrix_program_; |
| 380 scoped_ptr<RenderPassColorMatrixProgramAA> | 396 scoped_ptr<RenderPassColorMatrixProgramAA> |
| 381 render_pass_color_matrix_program_aa_; | 397 render_pass_color_matrix_program_aa_; |
| 382 scoped_ptr<RenderPassMaskColorMatrixProgram> | 398 scoped_ptr<RenderPassMaskColorMatrixProgram> |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 468 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
| 453 #define GLC(context, x) \ | 469 #define GLC(context, x) \ |
| 454 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) | 470 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) |
| 455 #else | 471 #else |
| 456 #define GLC(context, x) (x) | 472 #define GLC(context, x) (x) |
| 457 #endif | 473 #endif |
| 458 | 474 |
| 459 } // namespace cc | 475 } // namespace cc |
| 460 | 476 |
| 461 #endif // CC_OUTPUT_GL_RENDERER_H_ | 477 #endif // CC_OUTPUT_GL_RENDERER_H_ |
| OLD | NEW |