| 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 void ApplyBlendModeUsingBlendFunc(SkXfermode::Mode blend_mode); | 163 void ApplyBlendModeUsingBlendFunc(SkXfermode::Mode blend_mode); |
| 164 void RestoreBlendFuncToDefault(SkXfermode::Mode blend_mode); | 164 void RestoreBlendFuncToDefault(SkXfermode::Mode blend_mode); |
| 165 | 165 |
| 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 DrawingFrame* frame, |
| 173 const gfx::Rect& bounding_rect); | 174 const gfx::Rect& bounding_rect); |
| 174 | 175 |
| 175 static bool ShouldApplyBackgroundFilters(const RenderPassDrawQuad* quad); | 176 static bool ShouldApplyBackgroundFilters(const RenderPassDrawQuad* quad); |
| 176 sk_sp<SkImage> ApplyBackgroundFilters(const RenderPassDrawQuad* quad, | 177 sk_sp<SkImage> ApplyBackgroundFilters(const RenderPassDrawQuad* quad, |
| 177 ScopedResource* background_texture, | 178 ScopedResource* background_texture, |
| 178 const gfx::RectF& rect); | 179 const gfx::RectF& rect); |
| 179 | 180 |
| 180 const TileDrawQuad* CanPassBeDrawnDirectly(const RenderPass* pass) override; | 181 const TileDrawQuad* CanPassBeDrawnDirectly(const RenderPass* pass) override; |
| 181 | 182 |
| 182 void DrawRenderPassQuad(DrawingFrame* frame, | 183 void DrawRenderPassQuad(DrawingFrame* frame, |
| (...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 bool force_drawing_frame_framebuffer_unflipped_ = false; | 542 bool force_drawing_frame_framebuffer_unflipped_ = false; |
| 542 | 543 |
| 543 BoundGeometry bound_geometry_; | 544 BoundGeometry bound_geometry_; |
| 544 ColorLUTCache color_lut_cache_; | 545 ColorLUTCache color_lut_cache_; |
| 545 DISALLOW_COPY_AND_ASSIGN(GLRenderer); | 546 DISALLOW_COPY_AND_ASSIGN(GLRenderer); |
| 546 }; | 547 }; |
| 547 | 548 |
| 548 } // namespace cc | 549 } // namespace cc |
| 549 | 550 |
| 550 #endif // CC_OUTPUT_GL_RENDERER_H_ | 551 #endif // CC_OUTPUT_GL_RENDERER_H_ |
| OLD | NEW |