Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: cc/output/gl_renderer.h

Issue 2543473004: cc: Move filters from RenderPassDrawQuad to RenderPass (Closed)
Patch Set: Rebase again Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/output/direct_renderer.cc ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 return blend_mode == SkBlendMode::kSrcOver; 156 return blend_mode == SkBlendMode::kSrcOver;
157 } 157 }
158 bool CanApplyBlendModeUsingBlendFunc(SkBlendMode blend_mode); 158 bool CanApplyBlendModeUsingBlendFunc(SkBlendMode blend_mode);
159 void ApplyBlendModeUsingBlendFunc(SkBlendMode blend_mode); 159 void ApplyBlendModeUsingBlendFunc(SkBlendMode blend_mode);
160 void RestoreBlendFuncToDefault(SkBlendMode blend_mode); 160 void RestoreBlendFuncToDefault(SkBlendMode blend_mode);
161 161
162 gfx::Rect GetBackdropBoundingBoxForRenderPassQuad( 162 gfx::Rect GetBackdropBoundingBoxForRenderPassQuad(
163 DrawingFrame* frame, 163 DrawingFrame* frame,
164 const RenderPassDrawQuad* quad, 164 const RenderPassDrawQuad* quad,
165 const gfx::Transform& contents_device_transform, 165 const gfx::Transform& contents_device_transform,
166 const FilterOperations* filters,
167 const FilterOperations* background_filters,
166 const gfx::QuadF* clip_region, 168 const gfx::QuadF* clip_region,
167 bool use_aa, 169 bool use_aa,
168 gfx::Rect* unclipped_rect); 170 gfx::Rect* unclipped_rect);
169 std::unique_ptr<ScopedResource> GetBackdropTexture( 171 std::unique_ptr<ScopedResource> GetBackdropTexture(
170 DrawingFrame* frame, 172 DrawingFrame* frame,
171 const gfx::Rect& bounding_rect); 173 const gfx::Rect& bounding_rect);
172 174
173 static bool ShouldApplyBackgroundFilters(const RenderPassDrawQuad* quad); 175 static bool ShouldApplyBackgroundFilters(
174 sk_sp<SkImage> ApplyBackgroundFilters(const RenderPassDrawQuad* quad, 176 const RenderPassDrawQuad* quad,
175 ScopedResource* background_texture, 177 const FilterOperations* background_filters);
176 const gfx::RectF& rect, 178 sk_sp<SkImage> ApplyBackgroundFilters(
177 const gfx::RectF& unclipped_rect); 179 const RenderPassDrawQuad* quad,
180 const FilterOperations& background_filters,
181 ScopedResource* background_texture,
182 const gfx::RectF& rect,
183 const gfx::RectF& unclipped_rect);
178 184
179 const TileDrawQuad* CanPassBeDrawnDirectly(const RenderPass* pass) override; 185 const TileDrawQuad* CanPassBeDrawnDirectly(const RenderPass* pass) override;
180 186
181 void DrawRenderPassQuad(DrawingFrame* frame, 187 void DrawRenderPassQuad(DrawingFrame* frame,
182 const RenderPassDrawQuad* quadi, 188 const RenderPassDrawQuad* quadi,
183 const gfx::QuadF* clip_region); 189 const gfx::QuadF* clip_region);
184 void DrawRenderPassQuadInternal(DrawRenderPassDrawQuadParams* params); 190 void DrawRenderPassQuadInternal(DrawRenderPassDrawQuadParams* params);
185 void DrawSolidColorQuad(const DrawingFrame* frame, 191 void DrawSolidColorQuad(const DrawingFrame* frame,
186 const SolidColorDrawQuad* quad, 192 const SolidColorDrawQuad* quad,
187 const gfx::QuadF* clip_region); 193 const gfx::QuadF* clip_region);
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 bool force_drawing_frame_framebuffer_unflipped_ = false; 542 bool force_drawing_frame_framebuffer_unflipped_ = false;
537 543
538 BoundGeometry bound_geometry_; 544 BoundGeometry bound_geometry_;
539 ColorLUTCache color_lut_cache_; 545 ColorLUTCache color_lut_cache_;
540 DISALLOW_COPY_AND_ASSIGN(GLRenderer); 546 DISALLOW_COPY_AND_ASSIGN(GLRenderer);
541 }; 547 };
542 548
543 } // namespace cc 549 } // namespace cc
544 550
545 #endif // CC_OUTPUT_GL_RENDERER_H_ 551 #endif // CC_OUTPUT_GL_RENDERER_H_
OLDNEW
« no previous file with comments | « cc/output/direct_renderer.cc ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698