| 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 "cc/base/cc_export.h" | 8 #include "cc/base/cc_export.h" |
| 9 #include "cc/output/direct_renderer.h" | 9 #include "cc/output/direct_renderer.h" |
| 10 #include "cc/output/gl_renderer_draw_cache.h" | 10 #include "cc/output/gl_renderer_draw_cache.h" |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 typedef ProgramBinding<VertexShaderPosTexTransform, | 243 typedef ProgramBinding<VertexShaderPosTexTransform, |
| 244 FragmentShaderRGBATexRectVaryingAlpha> | 244 FragmentShaderRGBATexRectVaryingAlpha> |
| 245 TextureIOSurfaceProgram; | 245 TextureIOSurfaceProgram; |
| 246 | 246 |
| 247 // Video shaders. | 247 // Video shaders. |
| 248 typedef ProgramBinding<VertexShaderVideoTransform, | 248 typedef ProgramBinding<VertexShaderVideoTransform, |
| 249 FragmentShaderOESImageExternal> | 249 FragmentShaderOESImageExternal> |
| 250 VideoStreamTextureProgram; | 250 VideoStreamTextureProgram; |
| 251 typedef ProgramBinding<VertexShaderPosTexYUVStretch, FragmentShaderYUVVideo> | 251 typedef ProgramBinding<VertexShaderPosTexYUVStretch, FragmentShaderYUVVideo> |
| 252 VideoYUVProgram; | 252 VideoYUVProgram; |
| 253 typedef ProgramBinding<VertexShaderPosTexYUVStretch, FragmentShaderYUVAVideo> |
| 254 VideoYUVAProgram; |
| 253 | 255 |
| 254 // Special purpose / effects shaders. | 256 // Special purpose / effects shaders. |
| 255 typedef ProgramBinding<VertexShaderPos, FragmentShaderColor> | 257 typedef ProgramBinding<VertexShaderPos, FragmentShaderColor> |
| 256 DebugBorderProgram; | 258 DebugBorderProgram; |
| 257 typedef ProgramBinding<VertexShaderQuad, FragmentShaderColor> | 259 typedef ProgramBinding<VertexShaderQuad, FragmentShaderColor> |
| 258 SolidColorProgram; | 260 SolidColorProgram; |
| 259 typedef ProgramBinding<VertexShaderQuad, FragmentShaderColorAA> | 261 typedef ProgramBinding<VertexShaderQuad, FragmentShaderColorAA> |
| 260 SolidColorProgramAA; | 262 SolidColorProgramAA; |
| 261 | 263 |
| 262 const TileProgram* GetTileProgram(); | 264 const TileProgram* GetTileProgram(); |
| 263 const TileProgramOpaque* GetTileProgramOpaque(); | 265 const TileProgramOpaque* GetTileProgramOpaque(); |
| 264 const TileProgramAA* GetTileProgramAA(); | 266 const TileProgramAA* GetTileProgramAA(); |
| 265 const TileProgramSwizzle* GetTileProgramSwizzle(); | 267 const TileProgramSwizzle* GetTileProgramSwizzle(); |
| 266 const TileProgramSwizzleOpaque* GetTileProgramSwizzleOpaque(); | 268 const TileProgramSwizzleOpaque* GetTileProgramSwizzleOpaque(); |
| 267 const TileProgramSwizzleAA* GetTileProgramSwizzleAA(); | 269 const TileProgramSwizzleAA* GetTileProgramSwizzleAA(); |
| 268 const TileCheckerboardProgram* GetTileCheckerboardProgram(); | 270 const TileCheckerboardProgram* GetTileCheckerboardProgram(); |
| 269 | 271 |
| 270 const RenderPassProgram* GetRenderPassProgram(); | 272 const RenderPassProgram* GetRenderPassProgram(); |
| 271 const RenderPassProgramAA* GetRenderPassProgramAA(); | 273 const RenderPassProgramAA* GetRenderPassProgramAA(); |
| 272 const RenderPassMaskProgram* GetRenderPassMaskProgram(); | 274 const RenderPassMaskProgram* GetRenderPassMaskProgram(); |
| 273 const RenderPassMaskProgramAA* GetRenderPassMaskProgramAA(); | 275 const RenderPassMaskProgramAA* GetRenderPassMaskProgramAA(); |
| 274 | 276 |
| 275 const TextureProgram* GetTextureProgram(); | 277 const TextureProgram* GetTextureProgram(); |
| 276 const TextureProgramFlip* GetTextureProgramFlip(); | 278 const TextureProgramFlip* GetTextureProgramFlip(); |
| 277 const TextureIOSurfaceProgram* GetTextureIOSurfaceProgram(); | 279 const TextureIOSurfaceProgram* GetTextureIOSurfaceProgram(); |
| 278 | 280 |
| 279 const VideoYUVProgram* GetVideoYUVProgram(); | 281 const VideoYUVProgram* GetVideoYUVProgram(); |
| 282 const VideoYUVAProgram* GetVideoYUVAProgram(); |
| 280 const VideoStreamTextureProgram* GetVideoStreamTextureProgram(); | 283 const VideoStreamTextureProgram* GetVideoStreamTextureProgram(); |
| 281 | 284 |
| 282 const DebugBorderProgram* GetDebugBorderProgram(); | 285 const DebugBorderProgram* GetDebugBorderProgram(); |
| 283 const SolidColorProgram* GetSolidColorProgram(); | 286 const SolidColorProgram* GetSolidColorProgram(); |
| 284 const SolidColorProgramAA* GetSolidColorProgramAA(); | 287 const SolidColorProgramAA* GetSolidColorProgramAA(); |
| 285 | 288 |
| 286 scoped_ptr<TileProgram> tile_program_; | 289 scoped_ptr<TileProgram> tile_program_; |
| 287 scoped_ptr<TileProgramOpaque> tile_program_opaque_; | 290 scoped_ptr<TileProgramOpaque> tile_program_opaque_; |
| 288 scoped_ptr<TileProgramAA> tile_program_aa_; | 291 scoped_ptr<TileProgramAA> tile_program_aa_; |
| 289 scoped_ptr<TileProgramSwizzle> tile_program_swizzle_; | 292 scoped_ptr<TileProgramSwizzle> tile_program_swizzle_; |
| 290 scoped_ptr<TileProgramSwizzleOpaque> tile_program_swizzle_opaque_; | 293 scoped_ptr<TileProgramSwizzleOpaque> tile_program_swizzle_opaque_; |
| 291 scoped_ptr<TileProgramSwizzleAA> tile_program_swizzle_aa_; | 294 scoped_ptr<TileProgramSwizzleAA> tile_program_swizzle_aa_; |
| 292 scoped_ptr<TileCheckerboardProgram> tile_checkerboard_program_; | 295 scoped_ptr<TileCheckerboardProgram> tile_checkerboard_program_; |
| 293 | 296 |
| 294 scoped_ptr<RenderPassProgram> render_pass_program_; | 297 scoped_ptr<RenderPassProgram> render_pass_program_; |
| 295 scoped_ptr<RenderPassProgramAA> render_pass_program_aa_; | 298 scoped_ptr<RenderPassProgramAA> render_pass_program_aa_; |
| 296 scoped_ptr<RenderPassMaskProgram> render_pass_mask_program_; | 299 scoped_ptr<RenderPassMaskProgram> render_pass_mask_program_; |
| 297 scoped_ptr<RenderPassMaskProgramAA> render_pass_mask_program_aa_; | 300 scoped_ptr<RenderPassMaskProgramAA> render_pass_mask_program_aa_; |
| 298 | 301 |
| 299 scoped_ptr<TextureProgram> texture_program_; | 302 scoped_ptr<TextureProgram> texture_program_; |
| 300 scoped_ptr<TextureProgramFlip> texture_program_flip_; | 303 scoped_ptr<TextureProgramFlip> texture_program_flip_; |
| 301 scoped_ptr<TextureIOSurfaceProgram> texture_io_surface_program_; | 304 scoped_ptr<TextureIOSurfaceProgram> texture_io_surface_program_; |
| 302 | 305 |
| 303 scoped_ptr<VideoYUVProgram> video_yuv_program_; | 306 scoped_ptr<VideoYUVProgram> video_yuv_program_; |
| 307 scoped_ptr<VideoYUVAProgram> video_yuva_program_; |
| 304 scoped_ptr<VideoStreamTextureProgram> video_stream_texture_program_; | 308 scoped_ptr<VideoStreamTextureProgram> video_stream_texture_program_; |
| 305 | 309 |
| 306 scoped_ptr<DebugBorderProgram> debug_border_program_; | 310 scoped_ptr<DebugBorderProgram> debug_border_program_; |
| 307 scoped_ptr<SolidColorProgram> solid_color_program_; | 311 scoped_ptr<SolidColorProgram> solid_color_program_; |
| 308 scoped_ptr<SolidColorProgramAA> solid_color_program_aa_; | 312 scoped_ptr<SolidColorProgramAA> solid_color_program_aa_; |
| 309 | 313 |
| 310 OutputSurface* output_surface_; | 314 OutputSurface* output_surface_; |
| 311 WebKit::WebGraphicsContext3D* context_; | 315 WebKit::WebGraphicsContext3D* context_; |
| 312 | 316 |
| 313 gfx::Rect swap_buffer_rect_; | 317 gfx::Rect swap_buffer_rect_; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 340 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 344 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
| 341 #define GLC(context, x) \ | 345 #define GLC(context, x) \ |
| 342 (x, GLRenderer::DebugGLCall (&* context, #x, __FILE__, __LINE__)) | 346 (x, GLRenderer::DebugGLCall (&* context, #x, __FILE__, __LINE__)) |
| 343 #else | 347 #else |
| 344 #define GLC(context, x) (x) | 348 #define GLC(context, x) (x) |
| 345 #endif | 349 #endif |
| 346 | 350 |
| 347 } | 351 } |
| 348 | 352 |
| 349 #endif // CC_OUTPUT_GL_RENDERER_H_ | 353 #endif // CC_OUTPUT_GL_RENDERER_H_ |
| OLD | NEW |