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

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

Issue 380763002: Add builders for tracing event's structural arguments (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed memory leak found by Linux ASAN 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/picture_draw_quad.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"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/containers/hash_tables.h" 12 #include "base/containers/hash_tables.h"
13 #include "cc/base/cc_export.h" 13 #include "cc/base/cc_export.h"
14 #include "cc/base/scoped_ptr_vector.h" 14 #include "cc/base/scoped_ptr_vector.h"
15 #include "skia/ext/refptr.h" 15 #include "skia/ext/refptr.h"
16 #include "ui/gfx/rect.h" 16 #include "ui/gfx/rect.h"
17 #include "ui/gfx/rect_f.h" 17 #include "ui/gfx/rect_f.h"
18 #include "ui/gfx/transform.h" 18 #include "ui/gfx/transform.h"
19 19
20 namespace base { 20 namespace base {
21 namespace debug {
22 class TracedValue;
23 }
21 class Value; 24 class Value;
22 }; 25 };
23 26
24 namespace cc { 27 namespace cc {
25 28
26 class DrawQuad; 29 class DrawQuad;
27 class RenderPassDrawQuad; 30 class RenderPassDrawQuad;
28 class CopyOutputRequest; 31 class CopyOutputRequest;
29 class SharedQuadState; 32 class SharedQuadState;
30 33
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 const gfx::Rect& output_rect, 83 const gfx::Rect& output_rect,
81 const gfx::Rect& damage_rect, 84 const gfx::Rect& damage_rect,
82 const gfx::Transform& transform_to_root_target); 85 const gfx::Transform& transform_to_root_target);
83 86
84 void SetAll(Id id, 87 void SetAll(Id id,
85 const gfx::Rect& output_rect, 88 const gfx::Rect& output_rect,
86 const gfx::Rect& damage_rect, 89 const gfx::Rect& damage_rect,
87 const gfx::Transform& transform_to_root_target, 90 const gfx::Transform& transform_to_root_target,
88 bool has_transparent_background); 91 bool has_transparent_background);
89 92
90 scoped_ptr<base::Value> AsValue() const; 93 void AsValueInto(base::debug::TracedValue* dict) const;
91 94
92 SharedQuadState* CreateAndAppendSharedQuadState(); 95 SharedQuadState* CreateAndAppendSharedQuadState();
93 template <typename DrawQuadType> 96 template <typename DrawQuadType>
94 DrawQuadType* CreateAndAppendDrawQuad() { 97 DrawQuadType* CreateAndAppendDrawQuad() {
95 scoped_ptr<DrawQuadType> draw_quad = make_scoped_ptr(new DrawQuadType); 98 scoped_ptr<DrawQuadType> draw_quad = make_scoped_ptr(new DrawQuadType);
96 quad_list.push_back(draw_quad.template PassAs<DrawQuad>()); 99 quad_list.push_back(draw_quad.template PassAs<DrawQuad>());
97 return static_cast<DrawQuadType*>(quad_list.back()); 100 return static_cast<DrawQuadType*>(quad_list.back());
98 } 101 }
99 102
100 RenderPassDrawQuad* CopyFromAndAppendRenderPassDrawQuad( 103 RenderPassDrawQuad* CopyFromAndAppendRenderPassDrawQuad(
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 #error define a hash function for your compiler 164 #error define a hash function for your compiler
162 #endif // COMPILER 165 #endif // COMPILER
163 } // namespace BASE_HASH_NAMESPACE 166 } // namespace BASE_HASH_NAMESPACE
164 167
165 namespace cc { 168 namespace cc {
166 typedef ScopedPtrVector<RenderPass> RenderPassList; 169 typedef ScopedPtrVector<RenderPass> RenderPassList;
167 typedef base::hash_map<RenderPass::Id, RenderPass*> RenderPassIdHashMap; 170 typedef base::hash_map<RenderPass::Id, RenderPass*> RenderPassIdHashMap;
168 } // namespace cc 171 } // namespace cc
169 172
170 #endif // CC_QUADS_RENDER_PASS_H_ 173 #endif // CC_QUADS_RENDER_PASS_H_
OLDNEW
« no previous file with comments | « cc/quads/picture_draw_quad.cc ('k') | cc/quads/render_pass.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698