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

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

Issue 191123002: Implement hidpi and pinch-zoom scaling of filter params in cc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove TODO Created 6 years, 9 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
« no previous file with comments | « cc/quads/render_pass_draw_quad.cc ('k') | cc/surfaces/surface_aggregator_test_helpers.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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 scoped_ptr<RenderPassDrawQuad> pass_quad = RenderPassDrawQuad::Create(); 220 scoped_ptr<RenderPassDrawQuad> pass_quad = RenderPassDrawQuad::Create();
221 pass_quad->SetNew(pass->shared_quad_state_list.back(), 221 pass_quad->SetNew(pass->shared_quad_state_list.back(),
222 contrib_output_rect, 222 contrib_output_rect,
223 contrib_output_rect, 223 contrib_output_rect,
224 contrib_id, 224 contrib_id,
225 false, // is_replica 225 false, // is_replica
226 0, // mask_resource_id 226 0, // mask_resource_id
227 contrib_damage_rect, 227 contrib_damage_rect,
228 gfx::RectF(), // mask_uv_rect 228 gfx::RectF(), // mask_uv_rect
229 FilterOperations(), 229 FilterOperations(),
230 gfx::Vector2dF(), // filters_scale
230 FilterOperations()); 231 FilterOperations());
231 pass->quad_list.push_back(pass_quad.PassAs<DrawQuad>()); 232 pass->quad_list.push_back(pass_quad.PassAs<DrawQuad>());
232 233
233 pass_list.push_back(pass.PassAs<RenderPass>()); 234 pass_list.push_back(pass.PassAs<RenderPass>());
234 pass_list.push_back(contrib.PassAs<RenderPass>()); 235 pass_list.push_back(contrib.PassAs<RenderPass>());
235 236
236 // Make a copy with CopyAll(). 237 // Make a copy with CopyAll().
237 RenderPassList copy_list; 238 RenderPassList copy_list;
238 RenderPass::CopyAll(pass_list, &copy_list); 239 RenderPass::CopyAll(pass_list, &copy_list);
239 240
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 322
322 // Make a copy with CopyAll(). 323 // Make a copy with CopyAll().
323 RenderPassList copy_list; 324 RenderPassList copy_list;
324 RenderPass::CopyAll(pass_list, &copy_list); 325 RenderPass::CopyAll(pass_list, &copy_list);
325 326
326 CompareRenderPassLists(pass_list, copy_list); 327 CompareRenderPassLists(pass_list, copy_list);
327 } 328 }
328 329
329 } // namespace 330 } // namespace
330 } // namespace cc 331 } // namespace cc
OLDNEW
« no previous file with comments | « cc/quads/render_pass_draw_quad.cc ('k') | cc/surfaces/surface_aggregator_test_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698