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

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

Issue 2278273004: Fix CSS reference filters with negative transformed children. (Closed)
Patch Set: Remove TODO. 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 invert_pass->CreateAndAppendSharedQuadState(); 134 invert_pass->CreateAndAppendSharedQuadState();
135 shared_state->SetAll(gfx::Transform(), output_rect.size(), output_rect, 135 shared_state->SetAll(gfx::Transform(), output_rect.size(), output_rect,
136 output_rect, false, 1.f, SkXfermode::kSrcOver_Mode, 0); 136 output_rect, false, 1.f, SkXfermode::kSrcOver_Mode, 0);
137 auto* quad = invert_pass->CreateAndAppendDrawQuad<cc::RenderPassDrawQuad>(); 137 auto* quad = invert_pass->CreateAndAppendDrawQuad<cc::RenderPassDrawQuad>();
138 cc::FilterOperations filters; 138 cc::FilterOperations filters;
139 filters.Append(cc::FilterOperation::CreateInvertFilter(1.f)); 139 filters.Append(cc::FilterOperation::CreateInvertFilter(1.f));
140 quad->SetNew(shared_state, output_rect, output_rect, render_pass_id, 140 quad->SetNew(shared_state, output_rect, output_rect, render_pass_id,
141 0 /* mask_resource_id */, gfx::Vector2dF() /* mask_uv_scale */, 141 0 /* mask_resource_id */, gfx::Vector2dF() /* mask_uv_scale */,
142 gfx::Size() /* mask_texture_size */, filters, 142 gfx::Size() /* mask_texture_size */, filters,
143 gfx::Vector2dF() /* filters_scale */, 143 gfx::Vector2dF() /* filters_scale */,
144 gfx::PointF() /* filters_origin */,
144 cc::FilterOperations() /* background_filters */); 145 cc::FilterOperations() /* background_filters */);
145 frame_data->render_pass_list.push_back(std::move(invert_pass)); 146 frame_data->render_pass_list.push_back(std::move(invert_pass));
146 } 147 }
147 148
148 cc::CompositorFrame frame; 149 cc::CompositorFrame frame;
149 frame.delegated_frame_data = std::move(frame_data); 150 frame.delegated_frame_data = std::move(frame_data);
150 frame.metadata.may_contain_video = may_contain_video; 151 frame.metadata.may_contain_video = may_contain_video;
151 return frame; 152 return frame;
152 } 153 }
153 154
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 gfx::Rect() /* opaque_rect */, 227 gfx::Rect() /* opaque_rect */,
227 bounds_at_origin /* visible_rect */, true /* needs_blending*/, 228 bounds_at_origin /* visible_rect */, true /* needs_blending*/,
228 underlay_surface->id()); 229 underlay_surface->id());
229 DCHECK(!underlay_surface->may_contain_video()); 230 DCHECK(!underlay_surface->may_contain_video());
230 } 231 }
231 } 232 }
232 233
233 } // namespace ws 234 } // namespace ws
234 235
235 } // namespace ui 236 } // 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