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

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

Issue 1159573002: cc: Move cc/quads/list_container.* files to cc/base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merging list_container.cc in list_container.h Created 5 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/quads/render_pass.h ('k') | no next file » | 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 <algorithm> 7 #include <algorithm>
8 8
9 #include "base/trace_event/trace_event_argument.h" 9 #include "base/trace_event/trace_event_argument.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 15 matching lines...) Expand all
26 #include "cc/quads/tile_draw_quad.h" 26 #include "cc/quads/tile_draw_quad.h"
27 #include "cc/quads/yuv_video_draw_quad.h" 27 #include "cc/quads/yuv_video_draw_quad.h"
28 28
29 namespace { 29 namespace {
30 const size_t kDefaultNumSharedQuadStatesToReserve = 32; 30 const size_t kDefaultNumSharedQuadStatesToReserve = 32;
31 const size_t kDefaultNumQuadsToReserve = 128; 31 const size_t kDefaultNumQuadsToReserve = 128;
32 } 32 }
33 33
34 namespace cc { 34 namespace cc {
35 35
36 template class ListContainer<SharedQuadState>;
37 template class ListContainer<DrawQuad>;
38
36 QuadList::QuadList(size_t default_size_to_reserve) 39 QuadList::QuadList(size_t default_size_to_reserve)
37 : ListContainer<DrawQuad>(LargestDrawQuadSize(), default_size_to_reserve) { 40 : ListContainer<DrawQuad>(LargestDrawQuadSize(), default_size_to_reserve) {
38 } 41 }
39 42
40 scoped_ptr<RenderPass> RenderPass::Create() { 43 scoped_ptr<RenderPass> RenderPass::Create() {
41 return make_scoped_ptr(new RenderPass()); 44 return make_scoped_ptr(new RenderPass());
42 } 45 }
43 46
44 scoped_ptr<RenderPass> RenderPass::Create(size_t num_layers) { 47 scoped_ptr<RenderPass> RenderPass::Create(size_t num_layers) {
45 return make_scoped_ptr(new RenderPass(num_layers)); 48 return make_scoped_ptr(new RenderPass(num_layers));
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 case DrawQuad::RENDER_PASS: 266 case DrawQuad::RENDER_PASS:
264 case DrawQuad::INVALID: 267 case DrawQuad::INVALID:
265 LOG(FATAL) << "Invalid DrawQuad material " << quad->material; 268 LOG(FATAL) << "Invalid DrawQuad material " << quad->material;
266 break; 269 break;
267 } 270 }
268 quad_list.back()->shared_quad_state = shared_quad_state; 271 quad_list.back()->shared_quad_state = shared_quad_state;
269 return quad_list.back(); 272 return quad_list.back();
270 } 273 }
271 274
272 } // namespace cc 275 } // namespace cc
OLDNEW
« no previous file with comments | « cc/quads/render_pass.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698