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

Side by Side Diff: cc/surfaces/surface_aggregator_test_helpers.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_unittest.cc ('k') | cc/test/render_pass_test_common.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/surfaces/surface_aggregator_test_helpers.h" 5 #include "cc/surfaces/surface_aggregator_test_helpers.h"
6 6
7 #include "base/format_macros.h" 7 #include "base/format_macros.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "cc/layers/append_quads_data.h" 9 #include "cc/layers/append_quads_data.h"
10 #include "cc/output/compositor_frame.h" 10 #include "cc/output/compositor_frame.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 scoped_ptr<RenderPassDrawQuad> quad = RenderPassDrawQuad::Create(); 68 scoped_ptr<RenderPassDrawQuad> quad = RenderPassDrawQuad::Create();
69 quad->SetNew(shared_state, 69 quad->SetNew(shared_state,
70 output_rect, 70 output_rect,
71 output_rect, 71 output_rect,
72 render_pass_id, 72 render_pass_id,
73 false, 73 false,
74 0, 74 0,
75 output_rect, 75 output_rect,
76 gfx::RectF(), 76 gfx::RectF(),
77 FilterOperations(), 77 FilterOperations(),
78 gfx::Vector2dF(),
78 FilterOperations()); 79 FilterOperations());
79 quad_sink.MaybeAppend(quad.PassAs<DrawQuad>()); 80 quad_sink.MaybeAppend(quad.PassAs<DrawQuad>());
80 } 81 }
81 82
82 void AddQuadInPass(TestRenderPass* pass, Quad desc) { 83 void AddQuadInPass(TestRenderPass* pass, Quad desc) {
83 switch (desc.material) { 84 switch (desc.material) {
84 case DrawQuad::SOLID_COLOR: 85 case DrawQuad::SOLID_COLOR:
85 AddQuad(pass, gfx::Rect(0, 0, 5, 5), desc.color); 86 AddQuad(pass, gfx::Rect(0, 0, 5, 5), desc.color);
86 break; 87 break;
87 case DrawQuad::SURFACE_CONTENT: 88 case DrawQuad::SURFACE_CONTENT:
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 delegated_frame_data->render_pass_list.push_back(pass.Pass()); 166 delegated_frame_data->render_pass_list.push_back(pass.Pass());
166 167
167 scoped_ptr<CompositorFrame> child_frame(new CompositorFrame); 168 scoped_ptr<CompositorFrame> child_frame(new CompositorFrame);
168 child_frame->delegated_frame_data = delegated_frame_data.Pass(); 169 child_frame->delegated_frame_data = delegated_frame_data.Pass();
169 170
170 surface->QueueFrame(child_frame.Pass()); 171 surface->QueueFrame(child_frame.Pass());
171 } 172 }
172 173
173 } // namespace test 174 } // namespace test
174 } // namespace cc 175 } // namespace cc
OLDNEW
« no previous file with comments | « cc/quads/render_pass_unittest.cc ('k') | cc/test/render_pass_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698