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

Side by Side Diff: services/ui/ws/frame_generator.cc

Issue 2297213003: Fix CSS reference filters with negative transformed children. (Closed)
Patch Set: Created 4 years, 3 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 | « cc/trees/property_tree_builder.cc ('k') | third_party/WebKit/LayoutTests/TestExpectations » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "services/ui/ws/frame_generator.h" 5 #include "services/ui/ws/frame_generator.h"
6 6
7 #include "base/containers/adapters.h" 7 #include "base/containers/adapters.h"
8 #include "cc/output/compositor_frame.h" 8 #include "cc/output/compositor_frame.h"
9 #include "cc/quads/render_pass.h" 9 #include "cc/quads/render_pass.h"
10 #include "cc/quads/render_pass_draw_quad.h" 10 #include "cc/quads/render_pass_draw_quad.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 invert_pass->CreateAndAppendSharedQuadState(); 120 invert_pass->CreateAndAppendSharedQuadState();
121 shared_state->SetAll(gfx::Transform(), output_rect.size(), output_rect, 121 shared_state->SetAll(gfx::Transform(), output_rect.size(), output_rect,
122 output_rect, false, 1.f, SkXfermode::kSrcOver_Mode, 0); 122 output_rect, false, 1.f, SkXfermode::kSrcOver_Mode, 0);
123 auto* quad = invert_pass->CreateAndAppendDrawQuad<cc::RenderPassDrawQuad>(); 123 auto* quad = invert_pass->CreateAndAppendDrawQuad<cc::RenderPassDrawQuad>();
124 cc::FilterOperations filters; 124 cc::FilterOperations filters;
125 filters.Append(cc::FilterOperation::CreateInvertFilter(1.f)); 125 filters.Append(cc::FilterOperation::CreateInvertFilter(1.f));
126 quad->SetNew(shared_state, output_rect, output_rect, render_pass_id, 126 quad->SetNew(shared_state, output_rect, output_rect, render_pass_id,
127 0 /* mask_resource_id */, gfx::Vector2dF() /* mask_uv_scale */, 127 0 /* mask_resource_id */, gfx::Vector2dF() /* mask_uv_scale */,
128 gfx::Size() /* mask_texture_size */, filters, 128 gfx::Size() /* mask_texture_size */, filters,
129 gfx::Vector2dF() /* filters_scale */, 129 gfx::Vector2dF() /* filters_scale */,
130 gfx::PointF() /* filters_origin */,
130 cc::FilterOperations() /* background_filters */); 131 cc::FilterOperations() /* background_filters */);
131 frame_data->render_pass_list.push_back(std::move(invert_pass)); 132 frame_data->render_pass_list.push_back(std::move(invert_pass));
132 } 133 }
133 134
134 cc::CompositorFrame frame; 135 cc::CompositorFrame frame;
135 frame.delegated_frame_data = std::move(frame_data); 136 frame.delegated_frame_data = std::move(frame_data);
136 frame.metadata.may_contain_video = may_contain_video; 137 frame.metadata.may_contain_video = may_contain_video;
137 return frame; 138 return frame;
138 } 139 }
139 140
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 gfx::Rect() /* opaque_rect */, 213 gfx::Rect() /* opaque_rect */,
213 bounds_at_origin /* visible_rect */, true /* needs_blending*/, 214 bounds_at_origin /* visible_rect */, true /* needs_blending*/,
214 underlay_surface->id()); 215 underlay_surface->id());
215 DCHECK(!underlay_surface->may_contain_video()); 216 DCHECK(!underlay_surface->may_contain_video());
216 } 217 }
217 } 218 }
218 219
219 } // namespace ws 220 } // namespace ws
220 221
221 } // namespace ui 222 } // namespace ui
OLDNEW
« no previous file with comments | « cc/trees/property_tree_builder.cc ('k') | third_party/WebKit/LayoutTests/TestExpectations » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698