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

Unified Diff: cc/render_pass.h

Issue 11418217: Add skia::RefPtr class to wrap ref counted classes from Skia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit 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
Index: cc/render_pass.h
diff --git a/cc/render_pass.h b/cc/render_pass.h
index 46247573b488b6f8453c2881ac7b6f672efaa17f..763d7e6a3e745d470850063316928883daf05263 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 "cc/skia_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 SkiaRefPtr<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;
+ SkiaRefPtr<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/layer_tree_host_impl.cc ('k') | cc/render_pass.cc » ('j') | cc/skia_refptr.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698