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