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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 typedef ProgramBinding<VertexShaderPosTexTransform, | 282 typedef ProgramBinding<VertexShaderPosTexTransform, |
283 FragmentShaderRGBATexAlphaMaskColorMatrix> | 283 FragmentShaderRGBATexAlphaMaskColorMatrix> |
284 RenderPassMaskColorMatrixProgram; | 284 RenderPassMaskColorMatrixProgram; |
285 | 285 |
286 // Video shaders. | 286 // Video shaders. |
287 typedef ProgramBinding<VertexShaderVideoTransform, | 287 typedef ProgramBinding<VertexShaderVideoTransform, |
288 FragmentShaderOESImageExternal> | 288 FragmentShaderOESImageExternal> |
289 VideoStreamTextureProgram; | 289 VideoStreamTextureProgram; |
290 typedef ProgramBinding<VertexShaderPosTexYUVStretch, FragmentShaderYUVVideo> | 290 typedef ProgramBinding<VertexShaderPosTexYUVStretch, FragmentShaderYUVVideo> |
291 VideoYUVProgram; | 291 VideoYUVProgram; |
| 292 typedef ProgramBinding<VertexShaderPosTexYUVStretch, FragmentShaderYUVAVideo> |
| 293 VideoYUVAProgram; |
292 | 294 |
293 // Special purpose / effects shaders. | 295 // Special purpose / effects shaders. |
294 typedef ProgramBinding<VertexShaderPos, FragmentShaderColor> | 296 typedef ProgramBinding<VertexShaderPos, FragmentShaderColor> |
295 DebugBorderProgram; | 297 DebugBorderProgram; |
296 typedef ProgramBinding<VertexShaderQuad, FragmentShaderColor> | 298 typedef ProgramBinding<VertexShaderQuad, FragmentShaderColor> |
297 SolidColorProgram; | 299 SolidColorProgram; |
298 typedef ProgramBinding<VertexShaderQuad, FragmentShaderColorAA> | 300 typedef ProgramBinding<VertexShaderQuad, FragmentShaderColorAA> |
299 SolidColorProgramAA; | 301 SolidColorProgramAA; |
300 | 302 |
301 const TileProgram* GetTileProgram(TexCoordPrecision precision); | 303 const TileProgram* GetTileProgram(TexCoordPrecision precision); |
(...skipping 25 matching lines...) Expand all Loading... |
327 | 329 |
328 const TextureProgram* GetTextureProgram( | 330 const TextureProgram* GetTextureProgram( |
329 TexCoordPrecision precision); | 331 TexCoordPrecision precision); |
330 const TextureProgramFlip* GetTextureProgramFlip( | 332 const TextureProgramFlip* GetTextureProgramFlip( |
331 TexCoordPrecision precision); | 333 TexCoordPrecision precision); |
332 const TextureIOSurfaceProgram* GetTextureIOSurfaceProgram( | 334 const TextureIOSurfaceProgram* GetTextureIOSurfaceProgram( |
333 TexCoordPrecision precision); | 335 TexCoordPrecision precision); |
334 | 336 |
335 const VideoYUVProgram* GetVideoYUVProgram( | 337 const VideoYUVProgram* GetVideoYUVProgram( |
336 TexCoordPrecision precision); | 338 TexCoordPrecision precision); |
| 339 const VideoYUVAProgram* GetVideoYUVAProgram( |
| 340 TexCoordPrecision precision); |
337 const VideoStreamTextureProgram* GetVideoStreamTextureProgram( | 341 const VideoStreamTextureProgram* GetVideoStreamTextureProgram( |
338 TexCoordPrecision precision); | 342 TexCoordPrecision precision); |
339 | 343 |
340 const DebugBorderProgram* GetDebugBorderProgram(); | 344 const DebugBorderProgram* GetDebugBorderProgram(); |
341 const SolidColorProgram* GetSolidColorProgram(); | 345 const SolidColorProgram* GetSolidColorProgram(); |
342 const SolidColorProgramAA* GetSolidColorProgramAA(); | 346 const SolidColorProgramAA* GetSolidColorProgramAA(); |
343 | 347 |
344 scoped_ptr<TileProgram> tile_program_; | 348 scoped_ptr<TileProgram> tile_program_; |
345 scoped_ptr<TileProgramOpaque> tile_program_opaque_; | 349 scoped_ptr<TileProgramOpaque> tile_program_opaque_; |
346 scoped_ptr<TileProgramAA> tile_program_aa_; | 350 scoped_ptr<TileProgramAA> tile_program_aa_; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 scoped_ptr<RenderPassColorMatrixProgram> | 387 scoped_ptr<RenderPassColorMatrixProgram> |
384 render_pass_color_matrix_program_highp_; | 388 render_pass_color_matrix_program_highp_; |
385 scoped_ptr<RenderPassColorMatrixProgramAA> | 389 scoped_ptr<RenderPassColorMatrixProgramAA> |
386 render_pass_color_matrix_program_aa_highp_; | 390 render_pass_color_matrix_program_aa_highp_; |
387 scoped_ptr<RenderPassMaskColorMatrixProgram> | 391 scoped_ptr<RenderPassMaskColorMatrixProgram> |
388 render_pass_mask_color_matrix_program_highp_; | 392 render_pass_mask_color_matrix_program_highp_; |
389 scoped_ptr<RenderPassMaskColorMatrixProgramAA> | 393 scoped_ptr<RenderPassMaskColorMatrixProgramAA> |
390 render_pass_mask_color_matrix_program_aa_highp_; | 394 render_pass_mask_color_matrix_program_aa_highp_; |
391 | 395 |
392 scoped_ptr<VideoYUVProgram> video_yuv_program_; | 396 scoped_ptr<VideoYUVProgram> video_yuv_program_; |
| 397 scoped_ptr<VideoYUVAProgram> video_yuva_program_; |
393 scoped_ptr<VideoStreamTextureProgram> video_stream_texture_program_; | 398 scoped_ptr<VideoStreamTextureProgram> video_stream_texture_program_; |
394 | 399 |
395 scoped_ptr<VideoYUVProgram> video_yuv_program_highp_; | 400 scoped_ptr<VideoYUVProgram> video_yuv_program_highp_; |
| 401 scoped_ptr<VideoYUVAProgram> video_yuva_program_highp_; |
396 scoped_ptr<VideoStreamTextureProgram> video_stream_texture_program_highp_; | 402 scoped_ptr<VideoStreamTextureProgram> video_stream_texture_program_highp_; |
397 | 403 |
398 scoped_ptr<DebugBorderProgram> debug_border_program_; | 404 scoped_ptr<DebugBorderProgram> debug_border_program_; |
399 scoped_ptr<SolidColorProgram> solid_color_program_; | 405 scoped_ptr<SolidColorProgram> solid_color_program_; |
400 scoped_ptr<SolidColorProgramAA> solid_color_program_aa_; | 406 scoped_ptr<SolidColorProgramAA> solid_color_program_aa_; |
401 | 407 |
402 OutputSurface* output_surface_; | 408 OutputSurface* output_surface_; |
403 WebKit::WebGraphicsContext3D* context_; | 409 WebKit::WebGraphicsContext3D* context_; |
404 | 410 |
405 skia::RefPtr<GrContext> gr_context_; | 411 skia::RefPtr<GrContext> gr_context_; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 447 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
442 #define GLC(context, x) \ | 448 #define GLC(context, x) \ |
443 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) | 449 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) |
444 #else | 450 #else |
445 #define GLC(context, x) (x) | 451 #define GLC(context, x) (x) |
446 #endif | 452 #endif |
447 | 453 |
448 } // namespace cc | 454 } // namespace cc |
449 | 455 |
450 #endif // CC_OUTPUT_GL_RENDERER_H_ | 456 #endif // CC_OUTPUT_GL_RENDERER_H_ |
OLD | NEW |