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

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

Issue 288273003: Do not use MockQuadCuller when only testing with RenderPass (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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/layers/delegated_renderer_layer_impl_unittest.cc ('k') | cc/quads/render_pass.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 #ifndef CC_QUADS_RENDER_PASS_H_ 5 #ifndef CC_QUADS_RENDER_PASS_H_
6 #define CC_QUADS_RENDER_PASS_H_ 6 #define CC_QUADS_RENDER_PASS_H_
7 7
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 void SetAll(Id id, 83 void SetAll(Id id,
84 const gfx::Rect& output_rect, 84 const gfx::Rect& output_rect,
85 const gfx::Rect& damage_rect, 85 const gfx::Rect& damage_rect,
86 const gfx::Transform& transform_to_root_target, 86 const gfx::Transform& transform_to_root_target,
87 bool has_transparent_background); 87 bool has_transparent_background);
88 88
89 scoped_ptr<base::Value> AsValue() const; 89 scoped_ptr<base::Value> AsValue() const;
90 90
91 SharedQuadState* CreateAndAppendSharedQuadState(); 91 SharedQuadState* CreateAndAppendSharedQuadState();
92 void AppendDrawQuad(scoped_ptr<DrawQuad> draw_quad);
92 93
93 // Uniquely identifies the render pass in the compositor's current frame. 94 // Uniquely identifies the render pass in the compositor's current frame.
94 Id id; 95 Id id;
95 96
96 // These are in the space of the render pass' physical pixels. 97 // These are in the space of the render pass' physical pixels.
97 gfx::Rect output_rect; 98 gfx::Rect output_rect;
98 gfx::Rect damage_rect; 99 gfx::Rect damage_rect;
99 100
100 // Transforms from the origin of the |output_rect| to the origin of the root 101 // Transforms from the origin of the |output_rect| to the origin of the root
101 // render pass' |output_rect|. 102 // render pass' |output_rect|.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 #error define a hash function for your compiler 140 #error define a hash function for your compiler
140 #endif // COMPILER 141 #endif // COMPILER
141 } // namespace BASE_HASH_NAMESPACE 142 } // namespace BASE_HASH_NAMESPACE
142 143
143 namespace cc { 144 namespace cc {
144 typedef ScopedPtrVector<RenderPass> RenderPassList; 145 typedef ScopedPtrVector<RenderPass> RenderPassList;
145 typedef base::hash_map<RenderPass::Id, RenderPass*> RenderPassIdHashMap; 146 typedef base::hash_map<RenderPass::Id, RenderPass*> RenderPassIdHashMap;
146 } // namespace cc 147 } // namespace cc
147 148
148 #endif // CC_QUADS_RENDER_PASS_H_ 149 #endif // CC_QUADS_RENDER_PASS_H_
OLDNEW
« no previous file with comments | « cc/layers/delegated_renderer_layer_impl_unittest.cc ('k') | cc/quads/render_pass.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698