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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 gfx::Rect GetBackdropBoundingBoxForRenderPassQuad( | 166 gfx::Rect GetBackdropBoundingBoxForRenderPassQuad( |
167 DrawingFrame* frame, | 167 DrawingFrame* frame, |
168 const RenderPassDrawQuad* quad, | 168 const RenderPassDrawQuad* quad, |
169 const gfx::Transform& contents_device_transform, | 169 const gfx::Transform& contents_device_transform, |
170 const gfx::QuadF* clip_region, | 170 const gfx::QuadF* clip_region, |
171 bool use_aa); | 171 bool use_aa); |
172 std::unique_ptr<ScopedResource> GetBackdropTexture( | 172 std::unique_ptr<ScopedResource> GetBackdropTexture( |
173 const gfx::Rect& bounding_rect); | 173 const gfx::Rect& bounding_rect); |
174 | 174 |
175 static bool ShouldApplyBackgroundFilters(const RenderPassDrawQuad* quad); | 175 static bool ShouldApplyBackgroundFilters(const RenderPassDrawQuad* quad); |
176 skia::RefPtr<SkImage> ApplyBackgroundFilters( | 176 sk_sp<SkImage> ApplyBackgroundFilters(DrawingFrame* frame, |
177 DrawingFrame* frame, | 177 const RenderPassDrawQuad* quad, |
178 const RenderPassDrawQuad* quad, | 178 ScopedResource* background_texture, |
179 ScopedResource* background_texture, | 179 const gfx::RectF& rect); |
180 const gfx::RectF& rect); | |
181 | 180 |
182 void DrawRenderPassQuad(DrawingFrame* frame, | 181 void DrawRenderPassQuad(DrawingFrame* frame, |
183 const RenderPassDrawQuad* quadi, | 182 const RenderPassDrawQuad* quadi, |
184 const gfx::QuadF* clip_region); | 183 const gfx::QuadF* clip_region); |
185 void DrawSolidColorQuad(const DrawingFrame* frame, | 184 void DrawSolidColorQuad(const DrawingFrame* frame, |
186 const SolidColorDrawQuad* quad, | 185 const SolidColorDrawQuad* quad, |
187 const gfx::QuadF* clip_region); | 186 const gfx::QuadF* clip_region); |
188 void DrawStreamVideoQuad(const DrawingFrame* frame, | 187 void DrawStreamVideoQuad(const DrawingFrame* frame, |
189 const StreamVideoDrawQuad* quad, | 188 const StreamVideoDrawQuad* quad, |
190 const gfx::QuadF* clip_region); | 189 const gfx::QuadF* clip_region); |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
523 | 522 |
524 SkBitmap on_demand_tile_raster_bitmap_; | 523 SkBitmap on_demand_tile_raster_bitmap_; |
525 ResourceId on_demand_tile_raster_resource_id_; | 524 ResourceId on_demand_tile_raster_resource_id_; |
526 BoundGeometry bound_geometry_; | 525 BoundGeometry bound_geometry_; |
527 DISALLOW_COPY_AND_ASSIGN(GLRenderer); | 526 DISALLOW_COPY_AND_ASSIGN(GLRenderer); |
528 }; | 527 }; |
529 | 528 |
530 } // namespace cc | 529 } // namespace cc |
531 | 530 |
532 #endif // CC_OUTPUT_GL_RENDERER_H_ | 531 #endif // CC_OUTPUT_GL_RENDERER_H_ |
OLD | NEW |