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

Side by Side Diff: cc/render_pass.cc

Issue 11418108: cc: Make the ScopedPtrVector and ScopedPtrDeque containers act like STL vector and deque. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: android!! Created 7 years, 11 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/quad_culler.cc ('k') | cc/render_pass_unittest.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 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/render_pass.h" 5 #include "cc/render_pass.h"
6 6
7 namespace cc { 7 namespace cc {
8 8
9 scoped_ptr<RenderPass> RenderPass::Create() { 9 scoped_ptr<RenderPass> RenderPass::Create() {
10 return make_scoped_ptr(new RenderPass); 10 return make_scoped_ptr(new RenderPass);
(...skipping 26 matching lines...) Expand all
37 gfx::RectF damage_rect, 37 gfx::RectF damage_rect,
38 const gfx::Transform& transform_to_root_target) { 38 const gfx::Transform& transform_to_root_target) {
39 DCHECK_GT(id.layer_id, 0); 39 DCHECK_GT(id.layer_id, 0);
40 DCHECK_GE(id.index, 0); 40 DCHECK_GE(id.index, 0);
41 41
42 this->id = id; 42 this->id = id;
43 this->output_rect = output_rect; 43 this->output_rect = output_rect;
44 this->damage_rect = damage_rect; 44 this->damage_rect = damage_rect;
45 this->transform_to_root_target = transform_to_root_target; 45 this->transform_to_root_target = transform_to_root_target;
46 46
47 DCHECK(quad_list.isEmpty()); 47 DCHECK(quad_list.empty());
48 DCHECK(shared_quad_state_list.isEmpty()); 48 DCHECK(shared_quad_state_list.empty());
49 } 49 }
50 50
51 void RenderPass::SetAll(Id id, 51 void RenderPass::SetAll(Id id,
52 gfx::Rect output_rect, 52 gfx::Rect output_rect,
53 gfx::RectF damage_rect, 53 gfx::RectF damage_rect,
54 const gfx::Transform& transform_to_root_target, 54 const gfx::Transform& transform_to_root_target,
55 bool has_transparent_background, 55 bool has_transparent_background,
56 bool has_occlusion_from_outside_target_surface) { 56 bool has_occlusion_from_outside_target_surface) {
57 DCHECK_GT(id.layer_id, 0); 57 DCHECK_GT(id.layer_id, 0);
58 DCHECK_GE(id.index, 0); 58 DCHECK_GE(id.index, 0);
59 59
60 this->id = id; 60 this->id = id;
61 this->output_rect = output_rect; 61 this->output_rect = output_rect;
62 this->damage_rect = damage_rect; 62 this->damage_rect = damage_rect;
63 this->transform_to_root_target = transform_to_root_target; 63 this->transform_to_root_target = transform_to_root_target;
64 this->has_transparent_background = has_transparent_background; 64 this->has_transparent_background = has_transparent_background;
65 this->has_occlusion_from_outside_target_surface = 65 this->has_occlusion_from_outside_target_surface =
66 has_occlusion_from_outside_target_surface; 66 has_occlusion_from_outside_target_surface;
67 67
68 DCHECK(quad_list.isEmpty()); 68 DCHECK(quad_list.empty());
69 DCHECK(shared_quad_state_list.isEmpty()); 69 DCHECK(shared_quad_state_list.empty());
70 } 70 }
71 71
72 } // namespace cc 72 } // namespace cc
OLDNEW
« no previous file with comments | « cc/quad_culler.cc ('k') | cc/render_pass_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698