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

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

Issue 2136003003: Put background filters on the makeWithFilter() fast-path Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months 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 | « no previous file | cc/output/gl_renderer.cc » ('j') | cc/output/gl_renderer.cc » ('J')
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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 std::unique_ptr<ScopedResource> GetBackdropTexture( 173 std::unique_ptr<ScopedResource> GetBackdropTexture(
174 const gfx::Rect& bounding_rect); 174 const gfx::Rect& bounding_rect);
175 175
176 static bool ShouldApplyBackgroundFilters(const RenderPassDrawQuad* quad); 176 static bool ShouldApplyBackgroundFilters(const RenderPassDrawQuad* quad);
177 sk_sp<SkImage> ApplyBackgroundFilters(DrawingFrame* frame, 177 sk_sp<SkImage> ApplyBackgroundFilters(DrawingFrame* frame,
178 const RenderPassDrawQuad* quad, 178 const RenderPassDrawQuad* quad,
179 ScopedResource* background_texture, 179 ScopedResource* background_texture,
180 const gfx::RectF& rect); 180 const gfx::RectF& rect,
181 SkIPoint* offset,
182 SkIRect* subset,
183 bool flip_texture);
181 184
182 const TileDrawQuad* CanPassBeDrawnDirectly(const RenderPass* pass) override; 185 const TileDrawQuad* CanPassBeDrawnDirectly(const RenderPass* pass) override;
183 186
184 void DrawRenderPassQuad(DrawingFrame* frame, 187 void DrawRenderPassQuad(DrawingFrame* frame,
185 const RenderPassDrawQuad* quadi, 188 const RenderPassDrawQuad* quadi,
186 const gfx::QuadF* clip_region); 189 const gfx::QuadF* clip_region);
187 void DrawRenderPassQuadInternal(DrawingFrame* frame, 190 void DrawRenderPassQuadInternal(DrawingFrame* frame,
188 const RenderPassDrawQuad* quad, 191 const RenderPassDrawQuad* quad,
189 const gfx::QuadF* clip_region, 192 const gfx::QuadF* clip_region,
190 const Resource* contents_texture, 193 const Resource* contents_texture,
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 526
524 SkBitmap on_demand_tile_raster_bitmap_; 527 SkBitmap on_demand_tile_raster_bitmap_;
525 ResourceId on_demand_tile_raster_resource_id_; 528 ResourceId on_demand_tile_raster_resource_id_;
526 BoundGeometry bound_geometry_; 529 BoundGeometry bound_geometry_;
527 DISALLOW_COPY_AND_ASSIGN(GLRenderer); 530 DISALLOW_COPY_AND_ASSIGN(GLRenderer);
528 }; 531 };
529 532
530 } // namespace cc 533 } // namespace cc
531 534
532 #endif // CC_OUTPUT_GL_RENDERER_H_ 535 #endif // CC_OUTPUT_GL_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/output/gl_renderer.cc » ('j') | cc/output/gl_renderer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698