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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 | 334 |
335 const VideoYUVProgram* GetVideoYUVProgram( | 335 const VideoYUVProgram* GetVideoYUVProgram( |
336 TexCoordPrecision precision); | 336 TexCoordPrecision precision); |
337 const VideoStreamTextureProgram* GetVideoStreamTextureProgram( | 337 const VideoStreamTextureProgram* GetVideoStreamTextureProgram( |
338 TexCoordPrecision precision); | 338 TexCoordPrecision precision); |
339 | 339 |
340 const DebugBorderProgram* GetDebugBorderProgram(); | 340 const DebugBorderProgram* GetDebugBorderProgram(); |
341 const SolidColorProgram* GetSolidColorProgram(); | 341 const SolidColorProgram* GetSolidColorProgram(); |
342 const SolidColorProgramAA* GetSolidColorProgramAA(); | 342 const SolidColorProgramAA* GetSolidColorProgramAA(); |
343 | 343 |
| 344 gfx::Rect GetFrameDamage(); |
| 345 |
344 scoped_ptr<TileProgram> tile_program_; | 346 scoped_ptr<TileProgram> tile_program_; |
345 scoped_ptr<TileProgramOpaque> tile_program_opaque_; | 347 scoped_ptr<TileProgramOpaque> tile_program_opaque_; |
346 scoped_ptr<TileProgramAA> tile_program_aa_; | 348 scoped_ptr<TileProgramAA> tile_program_aa_; |
347 scoped_ptr<TileProgramSwizzle> tile_program_swizzle_; | 349 scoped_ptr<TileProgramSwizzle> tile_program_swizzle_; |
348 scoped_ptr<TileProgramSwizzleOpaque> tile_program_swizzle_opaque_; | 350 scoped_ptr<TileProgramSwizzleOpaque> tile_program_swizzle_opaque_; |
349 scoped_ptr<TileProgramSwizzleAA> tile_program_swizzle_aa_; | 351 scoped_ptr<TileProgramSwizzleAA> tile_program_swizzle_aa_; |
350 scoped_ptr<TileCheckerboardProgram> tile_checkerboard_program_; | 352 scoped_ptr<TileCheckerboardProgram> tile_checkerboard_program_; |
351 | 353 |
352 scoped_ptr<TileProgram> tile_program_highp_; | 354 scoped_ptr<TileProgram> tile_program_highp_; |
353 scoped_ptr<TileProgramOpaque> tile_program_opaque_highp_; | 355 scoped_ptr<TileProgramOpaque> tile_program_opaque_highp_; |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 #if DEBUG_GL_CALLS && !defined(NDEBUG) | 440 #if DEBUG_GL_CALLS && !defined(NDEBUG) |
439 #define GLC(context, x) \ | 441 #define GLC(context, x) \ |
440 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) | 442 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) |
441 #else | 443 #else |
442 #define GLC(context, x) (x) | 444 #define GLC(context, x) (x) |
443 #endif | 445 #endif |
444 | 446 |
445 } // namespace cc | 447 } // namespace cc |
446 | 448 |
447 #endif // CC_OUTPUT_GL_RENDERER_H_ | 449 #endif // CC_OUTPUT_GL_RENDERER_H_ |
OLD | NEW |