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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 const RenderPassDrawQuad* quad, | 169 const RenderPassDrawQuad* quad, |
170 const gfx::Transform& contents_device_transform, | 170 const gfx::Transform& contents_device_transform, |
171 const gfx::QuadF* clip_region, | 171 const gfx::QuadF* clip_region, |
172 bool use_aa); | 172 bool use_aa); |
173 scoped_ptr<ScopedResource> GetBackdropTexture(const gfx::Rect& bounding_rect); | 173 scoped_ptr<ScopedResource> GetBackdropTexture(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 skia::RefPtr<SkImage> ApplyBackgroundFilters( |
177 DrawingFrame* frame, | 177 DrawingFrame* frame, |
178 const RenderPassDrawQuad* quad, | 178 const RenderPassDrawQuad* quad, |
179 ScopedResource* background_texture); | 179 ScopedResource* background_texture, |
| 180 const gfx::RectF& rect); |
180 | 181 |
181 void DrawRenderPassQuad(DrawingFrame* frame, | 182 void DrawRenderPassQuad(DrawingFrame* frame, |
182 const RenderPassDrawQuad* quadi, | 183 const RenderPassDrawQuad* quadi, |
183 const gfx::QuadF* clip_region); | 184 const gfx::QuadF* clip_region); |
184 void DrawSolidColorQuad(const DrawingFrame* frame, | 185 void DrawSolidColorQuad(const DrawingFrame* frame, |
185 const SolidColorDrawQuad* quad, | 186 const SolidColorDrawQuad* quad, |
186 const gfx::QuadF* clip_region); | 187 const gfx::QuadF* clip_region); |
187 void DrawStreamVideoQuad(const DrawingFrame* frame, | 188 void DrawStreamVideoQuad(const DrawingFrame* frame, |
188 const StreamVideoDrawQuad* quad, | 189 const StreamVideoDrawQuad* quad, |
189 const gfx::QuadF* clip_region); | 190 const gfx::QuadF* clip_region); |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 | 517 |
517 SkBitmap on_demand_tile_raster_bitmap_; | 518 SkBitmap on_demand_tile_raster_bitmap_; |
518 ResourceId on_demand_tile_raster_resource_id_; | 519 ResourceId on_demand_tile_raster_resource_id_; |
519 BoundGeometry bound_geometry_; | 520 BoundGeometry bound_geometry_; |
520 DISALLOW_COPY_AND_ASSIGN(GLRenderer); | 521 DISALLOW_COPY_AND_ASSIGN(GLRenderer); |
521 }; | 522 }; |
522 | 523 |
523 } // namespace cc | 524 } // namespace cc |
524 | 525 |
525 #endif // CC_OUTPUT_GL_RENDERER_H_ | 526 #endif // CC_OUTPUT_GL_RENDERER_H_ |
OLD | NEW |