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

Side by Side Diff: cc/render_pass.h

Issue 11418117: cc: Increment the ref count when assigning the SkImageFilter (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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
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_RENDER_PASS_H_ 5 #ifndef CC_RENDER_PASS_H_
6 #define CC_RENDER_PASS_H_ 6 #define CC_RENDER_PASS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "cc/cc_export.h" 9 #include "cc/cc_export.h"
10 #include "cc/draw_quad.h" 10 #include "cc/draw_quad.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 ~RenderPass(); 59 ~RenderPass();
60 60
61 static scoped_ptr<RenderPass> Create(); 61 static scoped_ptr<RenderPass> Create();
62 62
63 // A shallow copy of the render pass, which does not include its quads. 63 // A shallow copy of the render pass, which does not include its quads.
64 scoped_ptr<RenderPass> Copy(Id newId) const; 64 scoped_ptr<RenderPass> Copy(Id newId) const;
65 65
66 void SetNew(Id id, 66 void SetNew(Id id,
67 gfx::Rect output_rect, 67 gfx::Rect output_rect,
68 gfx::RectF damage_rect, 68 gfx::RectF damage_rect,
69 const WebKit::WebTransformationMatrix& transform_to_root_target); 69 const WebKit::WebTransformationMatrix& transform_to_root_target,
70 SkImageFilter* filter);
70 71
71 void SetAll(Id id, 72 void SetAll(Id id,
72 gfx::Rect output_rect, 73 gfx::Rect output_rect,
73 gfx::RectF damage_rect, 74 gfx::RectF damage_rect,
74 const WebKit::WebTransformationMatrix& transform_to_root_target, 75 const WebKit::WebTransformationMatrix& transform_to_root_target,
75 bool has_transparent_background, 76 bool has_transparent_background,
76 bool has_occlusion_from_outside_target_surface, 77 bool has_occlusion_from_outside_target_surface,
77 const WebKit::WebFilterOperations& filters, 78 const WebKit::WebFilterOperations& filters,
78 SkImageFilter* filter, 79 SkImageFilter* filter,
79 const WebKit::WebFilterOperations& background_filters); 80 const WebKit::WebFilterOperations& background_filters);
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 #error define a hash function for your compiler 137 #error define a hash function for your compiler
137 #endif // COMPILER 138 #endif // COMPILER
138 } 139 }
139 140
140 namespace cc { 141 namespace cc {
141 typedef std::vector<RenderPass*> RenderPassList; 142 typedef std::vector<RenderPass*> RenderPassList;
142 typedef ScopedPtrHashMap<RenderPass::Id, RenderPass> RenderPassIdHashMap; 143 typedef ScopedPtrHashMap<RenderPass::Id, RenderPass> RenderPassIdHashMap;
143 } // namespace cc 144 } // namespace cc
144 145
145 #endif // CC_RENDER_PASS_H_ 146 #endif // CC_RENDER_PASS_H_
OLDNEW
« no previous file with comments | « cc/layer_tree_host_impl_unittest.cc ('k') | cc/render_pass.cc » ('j') | cc/render_pass.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698