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

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

Issue 308193003: Removed QuadSink and MockQuadCuller (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@plumLayerImpl
Patch Set: rebase Created 6 years, 6 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/output/software_renderer_unittest.cc ('k') | cc/test/fake_picture_layer_impl.h » ('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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 "base/values.h" 7 #include "base/values.h"
8 #include "cc/base/math_util.h" 8 #include "cc/base/math_util.h"
9 #include "cc/debug/traced_value.h" 9 #include "cc/debug/traced_value.h"
10 #include "cc/output/copy_output_request.h" 10 #include "cc/output/copy_output_request.h"
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 value.get(), "cc::RenderPass", id.AsTracingId()); 168 value.get(), "cc::RenderPass", id.AsTracingId());
169 return value.PassAs<base::Value>(); 169 return value.PassAs<base::Value>();
170 } 170 }
171 171
172 SharedQuadState* RenderPass::CreateAndAppendSharedQuadState() { 172 SharedQuadState* RenderPass::CreateAndAppendSharedQuadState() {
173 shared_quad_state_list.push_back(make_scoped_ptr(new SharedQuadState)); 173 shared_quad_state_list.push_back(make_scoped_ptr(new SharedQuadState));
174 return shared_quad_state_list.back(); 174 return shared_quad_state_list.back();
175 } 175 }
176 176
177 void RenderPass::AppendDrawQuad(scoped_ptr<DrawQuad> draw_quad) { 177 void RenderPass::AppendDrawQuad(scoped_ptr<DrawQuad> draw_quad) {
178 DCHECK(!shared_quad_state_list.empty());
179 DCHECK(!draw_quad->rect.IsEmpty());
180 DCHECK(!draw_quad->visible_rect.IsEmpty());
181
178 quad_list.push_back(draw_quad.Pass()); 182 quad_list.push_back(draw_quad.Pass());
179 } 183 }
180 184
181 } // namespace cc 185 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/software_renderer_unittest.cc ('k') | cc/test/fake_picture_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698