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

Unified Diff: cc/output/filter_operation.h

Issue 1869753003: Replace many skia::RefPtr with sk_sp<> in cc/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: cc/output/filter_operation.h
diff --git a/cc/output/filter_operation.h b/cc/output/filter_operation.h
index d0d768acb281186da448d4b60e2c2ac92c950df6..f895c131ddca742e87257411c18db2c80de41619 100644
--- a/cc/output/filter_operation.h
+++ b/cc/output/filter_operation.h
@@ -9,7 +9,6 @@
#include "base/logging.h"
#include "cc/base/cc_export.h"
-#include "skia/ext/refptr.h"
#include "third_party/skia/include/core/SkColor.h"
#include "third_party/skia/include/core/SkImageFilter.h"
#include "third_party/skia/include/core/SkRegion.h"
@@ -77,7 +76,7 @@ class CC_EXPORT FilterOperation {
return drop_shadow_color_;
}
- skia::RefPtr<SkImageFilter> image_filter() const {
+ sk_sp<SkImageFilter> image_filter() const {
DCHECK_EQ(type_, REFERENCE);
return image_filter_;
}
@@ -148,7 +147,7 @@ class CC_EXPORT FilterOperation {
}
static FilterOperation CreateReferenceFilter(
- const skia::RefPtr<SkImageFilter>& image_filter) {
+ const sk_sp<SkImageFilter>& image_filter) {
danakj 2016/04/14 19:37:31 while you're here, with c++11 I think you should w
tomhudson 2016/04/25 20:48:10 Done.
return FilterOperation(REFERENCE, image_filter);
}
@@ -197,7 +196,7 @@ class CC_EXPORT FilterOperation {
drop_shadow_color_ = color;
}
- void set_image_filter(const skia::RefPtr<SkImageFilter>& image_filter) {
+ void set_image_filter(const sk_sp<SkImageFilter>& image_filter) {
danakj 2016/04/14 19:37:31 ditto
tomhudson 2016/04/25 20:48:10 Done.
DCHECK_EQ(type_, REFERENCE);
image_filter_ = image_filter;
}
@@ -246,8 +245,7 @@ class CC_EXPORT FilterOperation {
FilterOperation(FilterType type, float amount, int inset);
- FilterOperation(FilterType type,
- const skia::RefPtr<SkImageFilter>& image_filter);
+ FilterOperation(FilterType type, const sk_sp<SkImageFilter>& image_filter);
danakj 2016/04/14 19:37:31 ditto
tomhudson 2016/04/25 20:48:10 Done.
FilterOperation(FilterType type,
const SkRegion& region,
@@ -259,7 +257,7 @@ class CC_EXPORT FilterOperation {
float outer_threshold_;
gfx::Point drop_shadow_offset_;
SkColor drop_shadow_color_;
- skia::RefPtr<SkImageFilter> image_filter_;
+ sk_sp<SkImageFilter> image_filter_;
SkScalar matrix_[20];
int zoom_inset_;
SkRegion region_;

Powered by Google App Engine
This is Rietveld 408576698