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 |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 bool use_aa); | 170 bool use_aa); |
171 std::unique_ptr<ScopedResource> GetBackdropTexture( | 171 std::unique_ptr<ScopedResource> GetBackdropTexture( |
172 const gfx::Rect& bounding_rect); | 172 const gfx::Rect& bounding_rect); |
173 | 173 |
174 static bool ShouldApplyBackgroundFilters(const RenderPassDrawQuad* quad); | 174 static bool ShouldApplyBackgroundFilters(const RenderPassDrawQuad* quad); |
175 sk_sp<SkImage> ApplyBackgroundFilters(DrawingFrame* frame, | 175 sk_sp<SkImage> ApplyBackgroundFilters(DrawingFrame* frame, |
176 const RenderPassDrawQuad* quad, | 176 const RenderPassDrawQuad* quad, |
177 ScopedResource* background_texture, | 177 ScopedResource* background_texture, |
178 const gfx::RectF& rect); | 178 const gfx::RectF& rect); |
179 | 179 |
180 const TileDrawQuad* CanPassBeDrawnDirectly(const RenderPass* pass) override; | |
181 | |
182 void DrawRenderPassQuad(DrawingFrame* frame, | 180 void DrawRenderPassQuad(DrawingFrame* frame, |
183 const RenderPassDrawQuad* quadi, | 181 const RenderPassDrawQuad* quadi, |
184 const gfx::QuadF* clip_region); | 182 const gfx::QuadF* clip_region); |
185 void DrawRenderPassQuadInternal(DrawingFrame* frame, | |
186 const RenderPassDrawQuad* quad, | |
187 const gfx::QuadF* clip_region, | |
188 const Resource* contents_texture, | |
189 bool is_render_pass_input); | |
190 void DrawSolidColorQuad(const DrawingFrame* frame, | 183 void DrawSolidColorQuad(const DrawingFrame* frame, |
191 const SolidColorDrawQuad* quad, | 184 const SolidColorDrawQuad* quad, |
192 const gfx::QuadF* clip_region); | 185 const gfx::QuadF* clip_region); |
193 void DrawStreamVideoQuad(const DrawingFrame* frame, | 186 void DrawStreamVideoQuad(const DrawingFrame* frame, |
194 const StreamVideoDrawQuad* quad, | 187 const StreamVideoDrawQuad* quad, |
195 const gfx::QuadF* clip_region); | 188 const gfx::QuadF* clip_region); |
196 void DrawTextureQuad(const DrawingFrame* frame, | 189 void DrawTextureQuad(const DrawingFrame* frame, |
197 const TextureDrawQuad* quad, | 190 const TextureDrawQuad* quad, |
198 const gfx::QuadF* clip_region); | 191 const gfx::QuadF* clip_region); |
199 void EnqueueTextureQuad(const DrawingFrame* frame, | 192 void EnqueueTextureQuad(const DrawingFrame* frame, |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
531 | 524 |
532 SkBitmap on_demand_tile_raster_bitmap_; | 525 SkBitmap on_demand_tile_raster_bitmap_; |
533 ResourceId on_demand_tile_raster_resource_id_; | 526 ResourceId on_demand_tile_raster_resource_id_; |
534 BoundGeometry bound_geometry_; | 527 BoundGeometry bound_geometry_; |
535 DISALLOW_COPY_AND_ASSIGN(GLRenderer); | 528 DISALLOW_COPY_AND_ASSIGN(GLRenderer); |
536 }; | 529 }; |
537 | 530 |
538 } // namespace cc | 531 } // namespace cc |
539 | 532 |
540 #endif // CC_OUTPUT_GL_RENDERER_H_ | 533 #endif // CC_OUTPUT_GL_RENDERER_H_ |
OLD | NEW |