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

Unified Diff: cc/render_pass.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/render_pass.h ('k') | cc/render_surface_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/render_pass.cc
diff --git a/cc/render_pass.cc b/cc/render_pass.cc
index 0a8dc488f66e8b23415af19929977d2eec7cd84c..7d94c8645fff5164b4248f1fb32ab766d61a97c1 100644
--- a/cc/render_pass.cc
+++ b/cc/render_pass.cc
@@ -44,7 +44,8 @@ scoped_ptr<RenderPass> RenderPass::Copy(Id new_id) const {
void RenderPass::SetNew(Id id,
gfx::Rect output_rect,
gfx::RectF damage_rect,
- const WebKit::WebTransformationMatrix& transform_to_root_target) {
+ const WebKit::WebTransformationMatrix& transform_to_root_target,
+ SkImageFilter* filter) {
DCHECK_GT(id.layer_id, 0);
DCHECK_GE(id.index, 0);
@@ -52,6 +53,7 @@ void RenderPass::SetNew(Id id,
this->output_rect = output_rect;
this->damage_rect = damage_rect;
this->transform_to_root_target = transform_to_root_target;
+ SkRefCnt_SafeAssign(this->filter, filter);
enne (OOO) 2012/11/21 16:52:02 What about just making filter an SkRefPtr<SkImageF
DCHECK(quad_list.isEmpty());
DCHECK(shared_quad_state_list.isEmpty());
« no previous file with comments | « cc/render_pass.h ('k') | cc/render_surface_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698