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

Side by Side Diff: cc/surfaces/surface_aggregator_test_helpers.cc

Issue 448133002: Remove unused RenderPassDrawQuad fields (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rpdqdamage: win64 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
« 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 false, 62 false,
63 1, 63 1,
64 SkXfermode::kSrcOver_Mode, 64 SkXfermode::kSrcOver_Mode,
65 0); 65 0);
66 RenderPassDrawQuad* quad = 66 RenderPassDrawQuad* quad =
67 pass->CreateAndAppendDrawQuad<RenderPassDrawQuad>(); 67 pass->CreateAndAppendDrawQuad<RenderPassDrawQuad>();
68 quad->SetNew(shared_state, 68 quad->SetNew(shared_state,
69 output_rect, 69 output_rect,
70 output_rect, 70 output_rect,
71 render_pass_id, 71 render_pass_id,
72 false,
73 0, 72 0,
74 output_rect,
75 gfx::RectF(), 73 gfx::RectF(),
76 FilterOperations(), 74 FilterOperations(),
77 gfx::Vector2dF(), 75 gfx::Vector2dF(),
78 FilterOperations()); 76 FilterOperations());
79 } 77 }
80 78
81 void AddQuadInPass(TestRenderPass* pass, Quad desc) { 79 void AddQuadInPass(TestRenderPass* pass, Quad desc) {
82 switch (desc.material) { 80 switch (desc.material) {
83 case DrawQuad::SOLID_COLOR: 81 case DrawQuad::SOLID_COLOR:
84 AddQuad(pass, gfx::Rect(0, 0, 5, 5), desc.color); 82 AddQuad(pass, gfx::Rect(0, 0, 5, 5), desc.color);
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 139
142 for (size_t i = 0; i < passes->size(); ++i) { 140 for (size_t i = 0; i < passes->size(); ++i) {
143 SCOPED_TRACE(base::StringPrintf("Pass number %" PRIuS, i)); 141 SCOPED_TRACE(base::StringPrintf("Pass number %" PRIuS, i));
144 RenderPass* pass = passes->at(i); 142 RenderPass* pass = passes->at(i);
145 TestPassMatchesExpectations(expected_passes[i], pass); 143 TestPassMatchesExpectations(expected_passes[i], pass);
146 } 144 }
147 } 145 }
148 146
149 } // namespace test 147 } // namespace test
150 } // namespace cc 148 } // 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