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 <deque> | 8 #include <deque> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/cancelable_callback.h" | 11 #include "base/cancelable_callback.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "cc/base/cc_export.h" | 13 #include "cc/base/cc_export.h" |
14 #include "cc/output/direct_renderer.h" | 14 #include "cc/output/direct_renderer.h" |
15 #include "cc/output/gl_renderer_draw_cache.h" | 15 #include "cc/output/gl_renderer_draw_cache.h" |
16 #include "cc/output/program_binding.h" | 16 #include "cc/output/program_binding.h" |
17 #include "cc/output/renderer.h" | 17 #include "cc/output/renderer.h" |
18 #include "cc/quads/debug_border_draw_quad.h" | 18 #include "cc/quads/debug_border_draw_quad.h" |
19 #include "cc/quads/io_surface_draw_quad.h" | |
20 #include "cc/quads/render_pass_draw_quad.h" | 19 #include "cc/quads/render_pass_draw_quad.h" |
21 #include "cc/quads/solid_color_draw_quad.h" | 20 #include "cc/quads/solid_color_draw_quad.h" |
22 #include "cc/quads/tile_draw_quad.h" | 21 #include "cc/quads/tile_draw_quad.h" |
23 #include "cc/quads/yuv_video_draw_quad.h" | 22 #include "cc/quads/yuv_video_draw_quad.h" |
24 #include "ui/gfx/geometry/quad_f.h" | 23 #include "ui/gfx/geometry/quad_f.h" |
25 | 24 |
26 class SkBitmap; | 25 class SkBitmap; |
27 | 26 |
28 namespace gpu { | 27 namespace gpu { |
29 namespace gles2 { | 28 namespace gles2 { |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 void DrawStreamVideoQuad(const DrawingFrame* frame, | 186 void DrawStreamVideoQuad(const DrawingFrame* frame, |
188 const StreamVideoDrawQuad* quad, | 187 const StreamVideoDrawQuad* quad, |
189 const gfx::QuadF* clip_region); | 188 const gfx::QuadF* clip_region); |
190 void DrawTextureQuad(const DrawingFrame* frame, | 189 void DrawTextureQuad(const DrawingFrame* frame, |
191 const TextureDrawQuad* quad, | 190 const TextureDrawQuad* quad, |
192 const gfx::QuadF* clip_region); | 191 const gfx::QuadF* clip_region); |
193 void EnqueueTextureQuad(const DrawingFrame* frame, | 192 void EnqueueTextureQuad(const DrawingFrame* frame, |
194 const TextureDrawQuad* quad, | 193 const TextureDrawQuad* quad, |
195 const gfx::QuadF* clip_region); | 194 const gfx::QuadF* clip_region); |
196 void FlushTextureQuadCache(BoundGeometry flush_binding); | 195 void FlushTextureQuadCache(BoundGeometry flush_binding); |
197 void DrawIOSurfaceQuad(const DrawingFrame* frame, | |
198 const IOSurfaceDrawQuad* quad, | |
199 const gfx::QuadF* clip_region); | |
200 void DrawTileQuad(const DrawingFrame* frame, | 196 void DrawTileQuad(const DrawingFrame* frame, |
201 const TileDrawQuad* quad, | 197 const TileDrawQuad* quad, |
202 const gfx::QuadF* clip_region); | 198 const gfx::QuadF* clip_region); |
203 void DrawContentQuad(const DrawingFrame* frame, | 199 void DrawContentQuad(const DrawingFrame* frame, |
204 const ContentDrawQuadBase* quad, | 200 const ContentDrawQuadBase* quad, |
205 ResourceId resource_id, | 201 ResourceId resource_id, |
206 const gfx::QuadF* clip_region); | 202 const gfx::QuadF* clip_region); |
207 void DrawContentQuadAA(const DrawingFrame* frame, | 203 void DrawContentQuadAA(const DrawingFrame* frame, |
208 const ContentDrawQuadBase* quad, | 204 const ContentDrawQuadBase* quad, |
209 ResourceId resource_id, | 205 ResourceId resource_id, |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 SamplerType sampler); | 389 SamplerType sampler); |
394 const NonPremultipliedTextureProgram* GetNonPremultipliedTextureProgram( | 390 const NonPremultipliedTextureProgram* GetNonPremultipliedTextureProgram( |
395 TexCoordPrecision precision, | 391 TexCoordPrecision precision, |
396 SamplerType sampler); | 392 SamplerType sampler); |
397 const TextureBackgroundProgram* GetTextureBackgroundProgram( | 393 const TextureBackgroundProgram* GetTextureBackgroundProgram( |
398 TexCoordPrecision precision, | 394 TexCoordPrecision precision, |
399 SamplerType sampler); | 395 SamplerType sampler); |
400 const NonPremultipliedTextureBackgroundProgram* | 396 const NonPremultipliedTextureBackgroundProgram* |
401 GetNonPremultipliedTextureBackgroundProgram(TexCoordPrecision precision, | 397 GetNonPremultipliedTextureBackgroundProgram(TexCoordPrecision precision, |
402 SamplerType sampler); | 398 SamplerType sampler); |
403 const TextureProgram* GetTextureIOSurfaceProgram( | |
404 TexCoordPrecision precision); | |
405 | 399 |
406 const VideoYUVProgram* GetVideoYUVProgram(TexCoordPrecision precision, | 400 const VideoYUVProgram* GetVideoYUVProgram(TexCoordPrecision precision, |
407 SamplerType sampler); | 401 SamplerType sampler); |
408 const VideoNV12Program* GetVideoNV12Program(TexCoordPrecision precision, | 402 const VideoNV12Program* GetVideoNV12Program(TexCoordPrecision precision, |
409 SamplerType sampler); | 403 SamplerType sampler); |
410 const VideoYUVAProgram* GetVideoYUVAProgram(TexCoordPrecision precision, | 404 const VideoYUVAProgram* GetVideoYUVAProgram(TexCoordPrecision precision, |
411 SamplerType sampler); | 405 SamplerType sampler); |
412 const VideoStreamTextureProgram* GetVideoStreamTextureProgram( | 406 const VideoStreamTextureProgram* GetVideoStreamTextureProgram( |
413 TexCoordPrecision precision); | 407 TexCoordPrecision precision); |
414 | 408 |
(...skipping 19 matching lines...) Expand all Loading... |
434 texture_program_[LAST_TEX_COORD_PRECISION + 1][LAST_SAMPLER_TYPE + 1]; | 428 texture_program_[LAST_TEX_COORD_PRECISION + 1][LAST_SAMPLER_TYPE + 1]; |
435 NonPremultipliedTextureProgram | 429 NonPremultipliedTextureProgram |
436 nonpremultiplied_texture_program_[LAST_TEX_COORD_PRECISION + | 430 nonpremultiplied_texture_program_[LAST_TEX_COORD_PRECISION + |
437 1][LAST_SAMPLER_TYPE + 1]; | 431 1][LAST_SAMPLER_TYPE + 1]; |
438 TextureBackgroundProgram | 432 TextureBackgroundProgram |
439 texture_background_program_[LAST_TEX_COORD_PRECISION + | 433 texture_background_program_[LAST_TEX_COORD_PRECISION + |
440 1][LAST_SAMPLER_TYPE + 1]; | 434 1][LAST_SAMPLER_TYPE + 1]; |
441 NonPremultipliedTextureBackgroundProgram | 435 NonPremultipliedTextureBackgroundProgram |
442 nonpremultiplied_texture_background_program_[LAST_TEX_COORD_PRECISION + | 436 nonpremultiplied_texture_background_program_[LAST_TEX_COORD_PRECISION + |
443 1][LAST_SAMPLER_TYPE + 1]; | 437 1][LAST_SAMPLER_TYPE + 1]; |
444 TextureProgram texture_io_surface_program_[LAST_TEX_COORD_PRECISION + 1]; | |
445 | 438 |
446 RenderPassProgram | 439 RenderPassProgram |
447 render_pass_program_[LAST_TEX_COORD_PRECISION + 1][LAST_BLEND_MODE + 1]; | 440 render_pass_program_[LAST_TEX_COORD_PRECISION + 1][LAST_BLEND_MODE + 1]; |
448 RenderPassProgramAA render_pass_program_aa_[LAST_TEX_COORD_PRECISION + | 441 RenderPassProgramAA render_pass_program_aa_[LAST_TEX_COORD_PRECISION + |
449 1][LAST_BLEND_MODE + 1]; | 442 1][LAST_BLEND_MODE + 1]; |
450 RenderPassMaskProgram | 443 RenderPassMaskProgram |
451 render_pass_mask_program_[LAST_TEX_COORD_PRECISION + 1] | 444 render_pass_mask_program_[LAST_TEX_COORD_PRECISION + 1] |
452 [LAST_SAMPLER_TYPE + 1] | 445 [LAST_SAMPLER_TYPE + 1] |
453 [LAST_BLEND_MODE + 1] | 446 [LAST_BLEND_MODE + 1] |
454 [LAST_MASK_VALUE + 1]; | 447 [LAST_MASK_VALUE + 1]; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 | 515 |
523 SkBitmap on_demand_tile_raster_bitmap_; | 516 SkBitmap on_demand_tile_raster_bitmap_; |
524 ResourceId on_demand_tile_raster_resource_id_; | 517 ResourceId on_demand_tile_raster_resource_id_; |
525 BoundGeometry bound_geometry_; | 518 BoundGeometry bound_geometry_; |
526 DISALLOW_COPY_AND_ASSIGN(GLRenderer); | 519 DISALLOW_COPY_AND_ASSIGN(GLRenderer); |
527 }; | 520 }; |
528 | 521 |
529 } // namespace cc | 522 } // namespace cc |
530 | 523 |
531 #endif // CC_OUTPUT_GL_RENDERER_H_ | 524 #endif // CC_OUTPUT_GL_RENDERER_H_ |
OLD | NEW |