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

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

Issue 448133002: Remove unused RenderPassDrawQuad fields (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rpdqdamage: addmissingfile Created 6 years, 4 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 | Annotate | Revision Log
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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 gfx::Rect(3, 3, 3, 3), 211 gfx::Rect(3, 3, 3, 3),
212 SkColor()); 212 SkColor());
213 213
214 // And a RenderPassDrawQuad for the contributing pass. 214 // And a RenderPassDrawQuad for the contributing pass.
215 scoped_ptr<RenderPassDrawQuad> pass_quad = 215 scoped_ptr<RenderPassDrawQuad> pass_quad =
216 make_scoped_ptr(new RenderPassDrawQuad); 216 make_scoped_ptr(new RenderPassDrawQuad);
217 pass_quad->SetNew(pass->shared_quad_state_list.back(), 217 pass_quad->SetNew(pass->shared_quad_state_list.back(),
218 contrib_output_rect, 218 contrib_output_rect,
219 contrib_output_rect, 219 contrib_output_rect,
220 contrib_id, 220 contrib_id,
221 false, // is_replica
222 0, // mask_resource_id 221 0, // mask_resource_id
223 contrib_damage_rect,
224 gfx::RectF(), // mask_uv_rect 222 gfx::RectF(), // mask_uv_rect
225 FilterOperations(), 223 FilterOperations(),
226 FilterOperations()); 224 FilterOperations());
227 225
228 pass_list.push_back(pass.PassAs<RenderPass>()); 226 pass_list.push_back(pass.PassAs<RenderPass>());
229 pass_list.push_back(contrib.PassAs<RenderPass>()); 227 pass_list.push_back(contrib.PassAs<RenderPass>());
230 228
231 // Make a copy with CopyAll(). 229 // Make a copy with CopyAll().
232 RenderPassList copy_list; 230 RenderPassList copy_list;
233 RenderPass::CopyAll(pass_list, &copy_list); 231 RenderPass::CopyAll(pass_list, &copy_list);
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 312
315 // Make a copy with CopyAll(). 313 // Make a copy with CopyAll().
316 RenderPassList copy_list; 314 RenderPassList copy_list;
317 RenderPass::CopyAll(pass_list, &copy_list); 315 RenderPass::CopyAll(pass_list, &copy_list);
318 316
319 CompareRenderPassLists(pass_list, copy_list); 317 CompareRenderPassLists(pass_list, copy_list);
320 } 318 }
321 319
322 } // namespace 320 } // namespace
323 } // namespace cc 321 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698