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

Side by Side Diff: cc/quads/render_pass_unittest.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/quads/render_pass_draw_quad.cc ('k') | cc/surfaces/surface_aggregator.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 "cc/quads/render_pass.h" 5 #include "cc/quads/render_pass.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "cc/base/math_util.h" 10 #include "cc/base/math_util.h"
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 202
203 SolidColorDrawQuad* contrib_quad = 203 SolidColorDrawQuad* contrib_quad =
204 contrib->CreateAndAppendDrawQuad<SolidColorDrawQuad>(); 204 contrib->CreateAndAppendDrawQuad<SolidColorDrawQuad>();
205 contrib_quad->SetNew(contrib->shared_quad_state_list.back(), 205 contrib_quad->SetNew(contrib->shared_quad_state_list.back(),
206 gfx::Rect(3, 3, 3, 3), gfx::Rect(3, 3, 3, 3), SkColor(), 206 gfx::Rect(3, 3, 3, 3), gfx::Rect(3, 3, 3, 3), SkColor(),
207 false); 207 false);
208 208
209 // And a RenderPassDrawQuad for the contributing pass. 209 // And a RenderPassDrawQuad for the contributing pass.
210 std::unique_ptr<RenderPassDrawQuad> pass_quad = 210 std::unique_ptr<RenderPassDrawQuad> pass_quad =
211 base::WrapUnique(new RenderPassDrawQuad); 211 base::WrapUnique(new RenderPassDrawQuad);
212 pass_quad->SetNew(pass->shared_quad_state_list.back(), 212 pass_quad->SetNew(pass->shared_quad_state_list.back(), contrib_output_rect,
213 contrib_output_rect, 213 contrib_output_rect, contrib_id, 0, gfx::Vector2dF(),
214 contrib_output_rect, 214 gfx::Size(), FilterOperations(), gfx::Vector2dF(),
215 contrib_id, 215 gfx::PointF(), FilterOperations());
216 0,
217 gfx::Vector2dF(),
218 gfx::Size(),
219 FilterOperations(),
220 gfx::Vector2dF(),
221 FilterOperations());
222 216
223 pass_list.push_back(std::move(pass)); 217 pass_list.push_back(std::move(pass));
224 pass_list.push_back(std::move(contrib)); 218 pass_list.push_back(std::move(contrib));
225 219
226 // Make a copy with CopyAll(). 220 // Make a copy with CopyAll().
227 RenderPassList copy_list; 221 RenderPassList copy_list;
228 RenderPass::CopyAll(pass_list, &copy_list); 222 RenderPass::CopyAll(pass_list, &copy_list);
229 223
230 CompareRenderPassLists(pass_list, copy_list); 224 CompareRenderPassLists(pass_list, copy_list);
231 } 225 }
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 301
308 // Make a copy with CopyAll(). 302 // Make a copy with CopyAll().
309 RenderPassList copy_list; 303 RenderPassList copy_list;
310 RenderPass::CopyAll(pass_list, &copy_list); 304 RenderPass::CopyAll(pass_list, &copy_list);
311 305
312 CompareRenderPassLists(pass_list, copy_list); 306 CompareRenderPassLists(pass_list, copy_list);
313 } 307 }
314 308
315 } // namespace 309 } // namespace
316 } // namespace cc 310 } // namespace cc
OLDNEW
« no previous file with comments | « cc/quads/render_pass_draw_quad.cc ('k') | cc/surfaces/surface_aggregator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698