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

Unified Diff: cc/render_pass.h

Issue 11412255: cc: Use skia::RefPtr in place of raw pointers and SkAutoTUnref. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ref() Created 8 years 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/picture.cc ('k') | cc/render_pass.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/render_pass.h
diff --git a/cc/render_pass.h b/cc/render_pass.h
index 46247573b488b6f8453c2881ac7b6f672efaa17f..a7e685f72d307b0fd721cfa2d89feaaddd894b8f 100644
--- a/cc/render_pass.h
+++ b/cc/render_pass.h
@@ -15,12 +15,12 @@
#include "cc/scoped_ptr_hash_map.h"
#include "cc/scoped_ptr_vector.h"
#include "cc/shared_quad_state.h"
+#include "skia/ext/refptr.h"
#include "third_party/skia/include/core/SkColor.h"
+#include "third_party/skia/include/core/SkImageFilter.h"
#include "ui/gfx/rect_f.h"
#include "ui/gfx/transform.h"
-class SkImageFilter;
-
namespace cc {
// A list of DrawQuad objects, sorted internally in front-to-back order.
@@ -76,7 +76,7 @@ class CC_EXPORT RenderPass {
bool has_transparent_background,
bool has_occlusion_from_outside_target_surface,
const WebKit::WebFilterOperations& filters,
- SkImageFilter* filter,
+ const skia::RefPtr<SkImageFilter>& filter,
const WebKit::WebFilterOperations& background_filters);
// Uniquely identifies the render pass in the compositor's current frame.
@@ -101,7 +101,7 @@ class CC_EXPORT RenderPass {
// pass' texture.
WebKit::WebFilterOperations filters;
// Post-processing filter applied to the pixels in the render pass' texture.
- SkImageFilter* filter;
+ skia::RefPtr<SkImageFilter> filter;
// Post-processing filters, applied to the pixels showing through the
// background of the render pass, from behind it.
« no previous file with comments | « cc/picture.cc ('k') | cc/render_pass.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698