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

Side by Side Diff: cc/quads/render_pass_unittest.cc

Issue 659683002: Include mask texture size in RenderPassDrawQuad (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@update_mask_draw_quad_test
Patch Set: No ToEnclosedRect Created 6 years, 2 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 "cc/base/math_util.h" 7 #include "cc/base/math_util.h"
8 #include "cc/base/scoped_ptr_vector.h" 8 #include "cc/base/scoped_ptr_vector.h"
9 #include "cc/output/copy_output_request.h" 9 #include "cc/output/copy_output_request.h"
10 #include "cc/quads/checkerboard_draw_quad.h" 10 #include "cc/quads/checkerboard_draw_quad.h"
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 gfx::Rect(3, 3, 3, 3), 212 gfx::Rect(3, 3, 3, 3),
213 SkColor()); 213 SkColor());
214 214
215 // And a RenderPassDrawQuad for the contributing pass. 215 // And a RenderPassDrawQuad for the contributing pass.
216 scoped_ptr<RenderPassDrawQuad> pass_quad = 216 scoped_ptr<RenderPassDrawQuad> pass_quad =
217 make_scoped_ptr(new RenderPassDrawQuad); 217 make_scoped_ptr(new RenderPassDrawQuad);
218 pass_quad->SetNew(pass->shared_quad_state_list.back(), 218 pass_quad->SetNew(pass->shared_quad_state_list.back(),
219 contrib_output_rect, 219 contrib_output_rect,
220 contrib_output_rect, 220 contrib_output_rect,
221 contrib_id, 221 contrib_id,
222 0, // mask_resource_id 222 0,
223 gfx::RectF(), // mask_uv_rect 223 gfx::Vector2dF(),
224 gfx::Size(),
224 FilterOperations(), 225 FilterOperations(),
225 gfx::Vector2dF(), // filters_scale 226 gfx::Vector2dF(),
226 FilterOperations()); 227 FilterOperations());
227 228
228 pass_list.push_back(pass.Pass()); 229 pass_list.push_back(pass.Pass());
229 pass_list.push_back(contrib.Pass()); 230 pass_list.push_back(contrib.Pass());
230 231
231 // Make a copy with CopyAll(). 232 // Make a copy with CopyAll().
232 RenderPassList copy_list; 233 RenderPassList copy_list;
233 RenderPass::CopyAll(pass_list, &copy_list); 234 RenderPass::CopyAll(pass_list, &copy_list);
234 235
235 CompareRenderPassLists(pass_list, copy_list); 236 CompareRenderPassLists(pass_list, copy_list);
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 315
315 // Make a copy with CopyAll(). 316 // Make a copy with CopyAll().
316 RenderPassList copy_list; 317 RenderPassList copy_list;
317 RenderPass::CopyAll(pass_list, &copy_list); 318 RenderPass::CopyAll(pass_list, &copy_list);
318 319
319 CompareRenderPassLists(pass_list, copy_list); 320 CompareRenderPassLists(pass_list, copy_list);
320 } 321 }
321 322
322 } // namespace 323 } // namespace
323 } // namespace cc 324 } // 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