| 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 SolidColorProgramAA; | 254 SolidColorProgramAA; |
| 255 | 255 |
| 256 const TileProgram* GetTileProgram(); | 256 const TileProgram* GetTileProgram(); |
| 257 const TileProgramOpaque* GetTileProgramOpaque(); | 257 const TileProgramOpaque* GetTileProgramOpaque(); |
| 258 const TileProgramAA* GetTileProgramAA(); | 258 const TileProgramAA* GetTileProgramAA(); |
| 259 const TileProgramSwizzle* GetTileProgramSwizzle(); | 259 const TileProgramSwizzle* GetTileProgramSwizzle(); |
| 260 const TileProgramSwizzleOpaque* GetTileProgramSwizzleOpaque(); | 260 const TileProgramSwizzleOpaque* GetTileProgramSwizzleOpaque(); |
| 261 const TileProgramSwizzleAA* GetTileProgramSwizzleAA(); | 261 const TileProgramSwizzleAA* GetTileProgramSwizzleAA(); |
| 262 const TileCheckerboardProgram* GetTileCheckerboardProgram(); | 262 const TileCheckerboardProgram* GetTileCheckerboardProgram(); |
| 263 | 263 |
| 264 const RenderPassProgram* GetRenderPassProgram(); | 264 const RenderPassProgram* GetRenderPassProgram( |
| 265 const RenderPassProgramAA* GetRenderPassProgramAA(); | 265 TexCoordPrecision precision); |
| 266 const RenderPassMaskProgram* GetRenderPassMaskProgram(); | 266 const RenderPassProgramAA* GetRenderPassProgramAA( |
| 267 const RenderPassMaskProgramAA* GetRenderPassMaskProgramAA(); | 267 TexCoordPrecision precision); |
| 268 const RenderPassMaskProgram* GetRenderPassMaskProgram( |
| 269 TexCoordPrecision precision); |
| 270 const RenderPassMaskProgramAA* GetRenderPassMaskProgramAA( |
| 271 TexCoordPrecision precision); |
| 268 | 272 |
| 269 const TextureProgram* GetTextureProgram(); | 273 const TextureProgram* GetTextureProgram( |
| 270 const TextureProgramFlip* GetTextureProgramFlip(); | 274 TexCoordPrecision precision); |
| 271 const TextureIOSurfaceProgram* GetTextureIOSurfaceProgram(); | 275 const TextureProgramFlip* GetTextureProgramFlip( |
| 276 TexCoordPrecision precision); |
| 277 const TextureIOSurfaceProgram* GetTextureIOSurfaceProgram( |
| 278 TexCoordPrecision precision); |
| 272 | 279 |
| 273 const VideoYUVProgram* GetVideoYUVProgram(); | 280 const VideoYUVProgram* GetVideoYUVProgram( |
| 274 const VideoStreamTextureProgram* GetVideoStreamTextureProgram(); | 281 TexCoordPrecision precision); |
| 282 const VideoStreamTextureProgram* GetVideoStreamTextureProgram( |
| 283 TexCoordPrecision precision); |
| 275 | 284 |
| 276 const DebugBorderProgram* GetDebugBorderProgram(); | 285 const DebugBorderProgram* GetDebugBorderProgram(); |
| 277 const SolidColorProgram* GetSolidColorProgram(); | 286 const SolidColorProgram* GetSolidColorProgram(); |
| 278 const SolidColorProgramAA* GetSolidColorProgramAA(); | 287 const SolidColorProgramAA* GetSolidColorProgramAA(); |
| 279 | 288 |
| 280 scoped_ptr<TileProgram> tile_program_; | 289 scoped_ptr<TileProgram> tile_program_; |
| 281 scoped_ptr<TileProgramOpaque> tile_program_opaque_; | 290 scoped_ptr<TileProgramOpaque> tile_program_opaque_; |
| 282 scoped_ptr<TileProgramAA> tile_program_aa_; | 291 scoped_ptr<TileProgramAA> tile_program_aa_; |
| 283 scoped_ptr<TileProgramSwizzle> tile_program_swizzle_; | 292 scoped_ptr<TileProgramSwizzle> tile_program_swizzle_; |
| 284 scoped_ptr<TileProgramSwizzleOpaque> tile_program_swizzle_opaque_; | 293 scoped_ptr<TileProgramSwizzleOpaque> tile_program_swizzle_opaque_; |
| 285 scoped_ptr<TileProgramSwizzleAA> tile_program_swizzle_aa_; | 294 scoped_ptr<TileProgramSwizzleAA> tile_program_swizzle_aa_; |
| 286 scoped_ptr<TileCheckerboardProgram> tile_checkerboard_program_; | 295 scoped_ptr<TileCheckerboardProgram> tile_checkerboard_program_; |
| 287 | 296 |
| 288 scoped_ptr<RenderPassProgram> render_pass_program_; | 297 scoped_ptr<RenderPassProgram> render_pass_program_; |
| 289 scoped_ptr<RenderPassProgramAA> render_pass_program_aa_; | 298 scoped_ptr<RenderPassProgramAA> render_pass_program_aa_; |
| 290 scoped_ptr<RenderPassMaskProgram> render_pass_mask_program_; | 299 scoped_ptr<RenderPassMaskProgram> render_pass_mask_program_; |
| 291 scoped_ptr<RenderPassMaskProgramAA> render_pass_mask_program_aa_; | 300 scoped_ptr<RenderPassMaskProgramAA> render_pass_mask_program_aa_; |
| 292 | 301 |
| 302 scoped_ptr<RenderPassProgram> render_pass_program_highp_; |
| 303 scoped_ptr<RenderPassProgramAA> render_pass_program_aa_highp_; |
| 304 scoped_ptr<RenderPassMaskProgram> render_pass_mask_program_highp_; |
| 305 scoped_ptr<RenderPassMaskProgramAA> render_pass_mask_program_aa_highp_; |
| 306 |
| 293 scoped_ptr<TextureProgram> texture_program_; | 307 scoped_ptr<TextureProgram> texture_program_; |
| 294 scoped_ptr<TextureProgramFlip> texture_program_flip_; | 308 scoped_ptr<TextureProgramFlip> texture_program_flip_; |
| 295 scoped_ptr<TextureIOSurfaceProgram> texture_io_surface_program_; | 309 scoped_ptr<TextureIOSurfaceProgram> texture_io_surface_program_; |
| 296 | 310 |
| 311 scoped_ptr<TextureProgram> texture_program_highp_; |
| 312 scoped_ptr<TextureProgramFlip> texture_program_flip_highp_; |
| 313 scoped_ptr<TextureIOSurfaceProgram> texture_io_surface_program_highp_; |
| 314 |
| 297 scoped_ptr<VideoYUVProgram> video_yuv_program_; | 315 scoped_ptr<VideoYUVProgram> video_yuv_program_; |
| 298 scoped_ptr<VideoStreamTextureProgram> video_stream_texture_program_; | 316 scoped_ptr<VideoStreamTextureProgram> video_stream_texture_program_; |
| 299 | 317 |
| 318 scoped_ptr<VideoYUVProgram> video_yuv_program_highp_; |
| 319 scoped_ptr<VideoStreamTextureProgram> video_stream_texture_program_highp_; |
| 320 |
| 300 scoped_ptr<DebugBorderProgram> debug_border_program_; | 321 scoped_ptr<DebugBorderProgram> debug_border_program_; |
| 301 scoped_ptr<SolidColorProgram> solid_color_program_; | 322 scoped_ptr<SolidColorProgram> solid_color_program_; |
| 302 scoped_ptr<SolidColorProgramAA> solid_color_program_aa_; | 323 scoped_ptr<SolidColorProgramAA> solid_color_program_aa_; |
| 303 | 324 |
| 304 OutputSurface* output_surface_; | 325 OutputSurface* output_surface_; |
| 305 WebKit::WebGraphicsContext3D* context_; | 326 WebKit::WebGraphicsContext3D* context_; |
| 306 | 327 |
| 307 gfx::Rect swap_buffer_rect_; | 328 gfx::Rect swap_buffer_rect_; |
| 308 gfx::Rect scissor_rect_; | 329 gfx::Rect scissor_rect_; |
| 309 bool is_viewport_changed_; | 330 bool is_viewport_changed_; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 331 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 352 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
| 332 #define GLC(context, x) \ | 353 #define GLC(context, x) \ |
| 333 (x, GLRenderer::DebugGLCall (&* context, #x, __FILE__, __LINE__)) | 354 (x, GLRenderer::DebugGLCall (&* context, #x, __FILE__, __LINE__)) |
| 334 #else | 355 #else |
| 335 #define GLC(context, x) (x) | 356 #define GLC(context, x) (x) |
| 336 #endif | 357 #endif |
| 337 | 358 |
| 338 } | 359 } |
| 339 | 360 |
| 340 #endif // CC_OUTPUT_GL_RENDERER_H_ | 361 #endif // CC_OUTPUT_GL_RENDERER_H_ |
| OLD | NEW |